diff --git a/datacatalog/pkg/manager/impl/artifact_manager.go b/datacatalog/pkg/manager/impl/artifact_manager.go index c5fa9512a3..655e1f6b25 100644 --- a/datacatalog/pkg/manager/impl/artifact_manager.go +++ b/datacatalog/pkg/manager/impl/artifact_manager.go @@ -486,35 +486,6 @@ func (m *artifactManager) DeleteArtifact(ctx context.Context, request *datacatal return &datacatalog.DeleteArtifactResponse{}, nil } -// DeleteArtifacts deletes the given artifacts, removing all stored artifact data from the underlying blob storage. -func (m *artifactManager) DeleteArtifacts(ctx context.Context, request *datacatalog.DeleteArtifactsRequest) (*datacatalog.DeleteArtifactResponse, error) { - timer := m.systemMetrics.bulkDeleteResponseTime.Start(ctx) - defer timer.Stop() - - err := validators.ValidateDeleteArtifactsRequest(request) - if err != nil { - logger.Warningf(ctx, "Invalid delete artifacts request %v, err: %v", request, err) - m.systemMetrics.validationErrorCounter.Inc(ctx) - m.systemMetrics.bulkDeleteFailureCounter.Inc(ctx) - return nil, err - } - - for _, deleteArtifactReq := range request.Artifacts { - if err := m.deleteArtifact(ctx, deleteArtifactReq.GetDataset(), deleteArtifactReq); err != nil { - // bulk delete endpoint is idempotent, ignore errors regarding missing artifacts as they might've already - // been deleted by a previous call. - if errors.IsDoesNotExistError(err) { - continue - } - m.systemMetrics.bulkDeleteFailureCounter.Inc(ctx) - return nil, err - } - } - - m.systemMetrics.bulkDeleteSuccessCounter.Inc(ctx) - return &datacatalog.DeleteArtifactResponse{}, nil -} - func NewArtifactManager(repo repositories.RepositoryInterface, store *storage.DataStore, storagePrefix storage.DataReference, artifactScope promutils.Scope) interfaces.ArtifactManager { artifactMetrics := artifactMetrics{ scope: artifactScope, diff --git a/datacatalog/pkg/manager/impl/artifact_manager_test.go b/datacatalog/pkg/manager/impl/artifact_manager_test.go index 3313980cb1..a06fe4c744 100644 --- a/datacatalog/pkg/manager/impl/artifact_manager_test.go +++ b/datacatalog/pkg/manager/impl/artifact_manager_test.go @@ -5,28 +5,28 @@ import ( stdErrors "errors" "fmt" "os" + "reflect" "testing" "time" - "reflect" - "github.com/golang/protobuf/proto" - "github.com/golang/protobuf/ptypes" - "github.com/stretchr/testify/assert" - "github.com/stretchr/testify/mock" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/status" - "github.com/flyteorg/flyte/datacatalog/pkg/repositories/transformers" "github.com/flyteorg/flyte/datacatalog/pkg/common" "github.com/flyteorg/flyte/datacatalog/pkg/errors" repoErrors "github.com/flyteorg/flyte/datacatalog/pkg/repositories/errors" "github.com/flyteorg/flyte/datacatalog/pkg/repositories/mocks" "github.com/flyteorg/flyte/datacatalog/pkg/repositories/models" + "github.com/flyteorg/flyte/datacatalog/pkg/repositories/transformers" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog" "github.com/flyteorg/flyte/flytestdlib/contextutils" mockScope "github.com/flyteorg/flyte/flytestdlib/promutils" "github.com/flyteorg/flyte/flytestdlib/promutils/labeled" "github.com/flyteorg/flyte/flytestdlib/storage" + "github.com/golang/protobuf/proto" + "github.com/golang/protobuf/ptypes" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) func init() { @@ -657,7 +657,6 @@ func TestUpdateArtifact(t *testing.T) { reflect.DeepEqual(artifact.SerializedMetadata, serializedMetadata) })).Return(nil) - request := &datacatalog.UpdateArtifactRequest{ Dataset: expectedDataset.Id, QueryHandle: &datacatalog.UpdateArtifactRequest_ArtifactId{ @@ -1262,403 +1261,3 @@ func TestDeleteArtifact(t *testing.T) { assert.Nil(t, artifactResponse) }) } - -func TestDeleteArtifacts(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - testStoragePrefix, err := datastore.ConstructReference(ctx, datastore.GetBaseContainerFQN(ctx), "test") - assert.NoError(t, err) - - expectedDataset := getTestDataset() - expectedArtifact := getTestArtifact() - expectedTag := getTestTag() - - t.Run("Delete by ID", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == expectedArtifact.Id && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(mockArtifactModel, nil) - - dcRepo.MockArtifactRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifact models.Artifact) bool { - return artifact.ArtifactID == expectedArtifact.Id && - artifact.DatasetProject == expectedArtifact.Dataset.Project && - artifact.DatasetDomain == expectedArtifact.Dataset.Domain && - artifact.DatasetName == expectedArtifact.Dataset.Name && - artifact.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(nil) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - - // check that the datastore no longer has artifactData available - dataRef, err := getExpectedDatastoreLocationFromName(ctx, datastore, testStoragePrefix, expectedArtifact, "data1") - assert.NoError(t, err) - var value core.Literal - err = datastore.ReadProtobuf(ctx, dataRef, &value) - assert.Error(t, err) - assert.True(t, stdErrors.Is(err, os.ErrNotExist)) - }) - - t.Run("Delete by artifact tag", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifact models.Artifact) bool { - return artifact.ArtifactID == expectedArtifact.Id && - artifact.DatasetProject == expectedArtifact.Dataset.Project && - artifact.DatasetDomain == expectedArtifact.Dataset.Domain && - artifact.DatasetName == expectedArtifact.Dataset.Name && - artifact.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(nil) - - dcRepo.MockTagRepo.On("Get", mock.Anything, - mock.MatchedBy(func(tag models.TagKey) bool { - return tag.TagName == expectedTag.TagName && - tag.DatasetProject == expectedTag.DatasetProject && - tag.DatasetDomain == expectedTag.DatasetDomain && - tag.DatasetVersion == expectedTag.DatasetVersion && - tag.DatasetName == expectedTag.DatasetName - })).Return(models.Tag{ - TagKey: models.TagKey{ - DatasetProject: expectedTag.DatasetProject, - DatasetDomain: expectedTag.DatasetDomain, - DatasetName: expectedTag.DatasetName, - DatasetVersion: expectedTag.DatasetVersion, - TagName: expectedTag.TagName, - }, - DatasetUUID: expectedTag.DatasetUUID, - Artifact: mockArtifactModel, - ArtifactID: mockArtifactModel.ArtifactID, - }, nil) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_TagName{ - TagName: expectedTag.TagName, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - - // check that the datastore no longer has artifactData available - dataRef, err := getExpectedDatastoreLocationFromName(ctx, datastore, testStoragePrefix, expectedArtifact, "data1") - assert.NoError(t, err) - var value core.Literal - err = datastore.ReadProtobuf(ctx, dataRef, &value) - assert.Error(t, err) - assert.True(t, stdErrors.Is(err, os.ErrNotExist)) - }) - - t.Run("Artifact not found", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", mock.Anything, mock.Anything).Return(models.Artifact{}, repoErrors.GetMissingEntityError("Artifact", &datacatalog.Artifact{ - Dataset: expectedDataset.Id, - Id: expectedArtifact.Id, - })) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - }) - - t.Run("Artifact not found during delete", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == expectedArtifact.Id && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(mockArtifactModel, nil) - dcRepo.MockArtifactRepo.On("Delete", mock.Anything, mock.Anything).Return(repoErrors.GetMissingEntityError("Artifact", &datacatalog.Artifact{ - Dataset: expectedDataset.Id, - Id: expectedArtifact.Id, - })) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - }) - - t.Run("Artifact delete failed", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == expectedArtifact.Id && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(mockArtifactModel, nil) - dcRepo.MockArtifactRepo.On("Delete", mock.Anything, mock.Anything).Return(errors.NewDataCatalogError(codes.Internal, "failed")) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.Error(t, err) - assert.Equal(t, codes.Internal, status.Code(err)) - assert.Nil(t, artifactResponse) - }) - - t.Run("Missing artifact ID", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - - dcRepo := newMockDataCatalogRepo() - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{}, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.Error(t, err) - assert.Equal(t, codes.InvalidArgument, status.Code(err)) - assert.Nil(t, artifactResponse) - }) - - t.Run("Missing artifact tag", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - - dcRepo := newMockDataCatalogRepo() - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_TagName{}, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.Error(t, err) - assert.Equal(t, codes.InvalidArgument, status.Code(err)) - assert.Nil(t, artifactResponse) - }) - - t.Run("Idempotency", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == expectedArtifact.Id && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Once().Return(mockArtifactModel, nil) - dcRepo.MockArtifactRepo.On("Get", mock.Anything, mock.Anything).Return(models.Artifact{}, - repoErrors.GetMissingEntityError("Artifact", &datacatalog.Artifact{ - Dataset: expectedDataset.Id, - Id: expectedArtifact.Id, - })) - - dcRepo.MockArtifactRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifact models.Artifact) bool { - return artifact.ArtifactID == expectedArtifact.Id && - artifact.DatasetProject == expectedArtifact.Dataset.Project && - artifact.DatasetDomain == expectedArtifact.Dataset.Domain && - artifact.DatasetName == expectedArtifact.Dataset.Name && - artifact.DatasetVersion == expectedArtifact.Dataset.Version - })).Once().Return(nil) - dcRepo.MockArtifactRepo.On("Delete", mock.Anything, mock.Anything). - Return(repoErrors.GetMissingEntityError("Artifact", &datacatalog.Artifact{ - Dataset: expectedDataset.Id, - Id: expectedArtifact.Id, - })) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - - // check that the datastore no longer has artifactData available - dataRef, err := getExpectedDatastoreLocationFromName(ctx, datastore, testStoragePrefix, expectedArtifact, "data1") - assert.NoError(t, err) - var value core.Literal - err = datastore.ReadProtobuf(ctx, dataRef, &value) - assert.Error(t, err) - assert.True(t, stdErrors.Is(err, os.ErrNotExist)) - - artifactResponse, err = artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - }) - - t.Run("Multiple states", func(t *testing.T) { - ctx := context.Background() - datastore := createInmemoryDataStore(t, mockScope.NewTestScope()) - mockArtifactModel := getExpectedArtifactModel(ctx, t, datastore, expectedArtifact) - - dcRepo := newMockDataCatalogRepo() - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == expectedArtifact.Id && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(mockArtifactModel, nil) - dcRepo.MockArtifactRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifactKey models.ArtifactKey) bool { - return artifactKey.ArtifactID == "notFound" && - artifactKey.DatasetProject == expectedArtifact.Dataset.Project && - artifactKey.DatasetDomain == expectedArtifact.Dataset.Domain && - artifactKey.DatasetName == expectedArtifact.Dataset.Name && - artifactKey.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(models.Artifact{}, repoErrors.GetMissingEntityError("Artifact", &datacatalog.Artifact{ - Dataset: expectedDataset.Id, - Id: "notFound", - })) - - dcRepo.MockArtifactRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(artifact models.Artifact) bool { - return artifact.ArtifactID == expectedArtifact.Id && - artifact.DatasetProject == expectedArtifact.Dataset.Project && - artifact.DatasetDomain == expectedArtifact.Dataset.Domain && - artifact.DatasetName == expectedArtifact.Dataset.Name && - artifact.DatasetVersion == expectedArtifact.Dataset.Version - })).Return(nil) - - request := &datacatalog.DeleteArtifactsRequest{ - Artifacts: []*datacatalog.DeleteArtifactRequest{ - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: expectedArtifact.Id, - }, - }, - { - Dataset: expectedDataset.Id, - QueryHandle: &datacatalog.DeleteArtifactRequest_ArtifactId{ - ArtifactId: "notFound", - }, - }, - }, - } - - artifactManager := NewArtifactManager(dcRepo, datastore, testStoragePrefix, mockScope.NewTestScope()) - artifactResponse, err := artifactManager.DeleteArtifacts(ctx, request) - assert.NoError(t, err) - assert.NotNil(t, artifactResponse) - - // check that the datastore no longer has artifactData available - dataRef, err := getExpectedDatastoreLocationFromName(ctx, datastore, testStoragePrefix, expectedArtifact, "data1") - assert.NoError(t, err) - var value core.Literal - err = datastore.ReadProtobuf(ctx, dataRef, &value) - assert.Error(t, err) - assert.True(t, stdErrors.Is(err, os.ErrNotExist)) - }) -} diff --git a/datacatalog/pkg/manager/impl/reservation_manager.go b/datacatalog/pkg/manager/impl/reservation_manager.go index 08d324ccf5..d63a28f85d 100644 --- a/datacatalog/pkg/manager/impl/reservation_manager.go +++ b/datacatalog/pkg/manager/impl/reservation_manager.go @@ -23,9 +23,7 @@ type reservationMetrics struct { reservationReleased labeled.Counter reservationAlreadyInProgress labeled.Counter acquireReservationFailure labeled.Counter - acquireReservationsFailure labeled.Counter releaseReservationFailure labeled.Counter - releaseReservationsFailure labeled.Counter reservationDoesNotExist labeled.Counter } @@ -67,21 +65,11 @@ func NewReservationManager( "Number of times we failed to acquire reservation", reservationScope, ), - acquireReservationsFailure: labeled.NewCounter( - "acquire_reservations_failure", - "Number of times we failed to acquire multiple reservations", - reservationScope, - ), releaseReservationFailure: labeled.NewCounter( "release_reservation_failure", "Number of times we failed to release a reservation", reservationScope, ), - releaseReservationsFailure: labeled.NewCounter( - "release_reservations_failure", - "Number of times we failed to release multiple reservations", - reservationScope, - ), reservationDoesNotExist: labeled.NewCounter( "reservation_does_not_exist", "Number of times we attempt to modify a reservation that does not exist", @@ -127,36 +115,6 @@ func (r *reservationManager) GetOrExtendReservation(ctx context.Context, request }, nil } -// GetOrExtendReservations attempts to get or extend reservations for multiple artifacts in a single operation. -func (r *reservationManager) GetOrExtendReservations(ctx context.Context, request *datacatalog.GetOrExtendReservationsRequest) (*datacatalog.GetOrExtendReservationsResponse, error) { - if err := validators.ValidateGetOrExtendReservationsRequest(request); err != nil { - r.systemMetrics.acquireReservationsFailure.Inc(ctx) - return nil, err - } - - var reservations []*datacatalog.Reservation - for _, req := range request.GetReservations() { - // Use minimum of maxHeartbeatInterval and requested heartbeat interval - heartbeatInterval := r.maxHeartbeatInterval - requestHeartbeatInterval := req.GetHeartbeatInterval() - if requestHeartbeatInterval != nil && requestHeartbeatInterval.AsDuration() < heartbeatInterval { - heartbeatInterval = requestHeartbeatInterval.AsDuration() - } - - reservation, err := r.tryAcquireReservation(ctx, req.ReservationId, req.OwnerId, heartbeatInterval) - if err != nil { - r.systemMetrics.acquireReservationsFailure.Inc(ctx) - return nil, err - } - - reservations = append(reservations, &reservation) - } - - return &datacatalog.GetOrExtendReservationsResponse{ - Reservations: reservations, - }, nil -} - // tryAcquireReservation will fetch the reservation first and only create/update // the reservation if it does not exist or has expired. // This is an optimization to reduce the number of writes to db. We always need @@ -249,24 +207,6 @@ func (r *reservationManager) ReleaseReservation(ctx context.Context, request *da return &datacatalog.ReleaseReservationResponse{}, nil } -// ReleaseReservations releases reservations for multiple artifacts in a single operation. -// This is an idempotent operation, releasing reservations multiple times or trying to release an unknown reservation -// will not result in an error being returned. -func (r *reservationManager) ReleaseReservations(ctx context.Context, request *datacatalog.ReleaseReservationsRequest) (*datacatalog.ReleaseReservationResponse, error) { - if err := validators.ValidateReleaseReservationsRequest(request); err != nil { - return nil, err - } - - for _, req := range request.GetReservations() { - if err := r.releaseReservation(ctx, req.ReservationId, req.OwnerId); err != nil { - r.systemMetrics.releaseReservationsFailure.Inc(ctx) - return nil, err - } - } - - return &datacatalog.ReleaseReservationResponse{}, nil -} - // releaseReservation performs the actual reservation release operation, deleting the respective object from // datacatalog's database, thus freeing the associated artifact for other entities. If the specified reservation was not // found, no error will be returned. diff --git a/datacatalog/pkg/manager/impl/reservation_manager_test.go b/datacatalog/pkg/manager/impl/reservation_manager_test.go index b7f36e3395..fc883600cf 100644 --- a/datacatalog/pkg/manager/impl/reservation_manager_test.go +++ b/datacatalog/pkg/manager/impl/reservation_manager_test.go @@ -9,7 +9,6 @@ import ( "github.com/golang/protobuf/ptypes" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - "github.com/stretchr/testify/require" "google.golang.org/grpc/codes" errors2 "github.com/flyteorg/flyte/datacatalog/pkg/errors" @@ -91,78 +90,6 @@ func TestGetOrExtendReservation_CreateReservation(t *testing.T) { assert.Equal(t, heartbeatIntervalPb, resp.GetReservation().HeartbeatInterval) } -func TestGetOrExtendReservations_CreateReservations(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - tagNames[key.TagName] - })).Return(models.Reservation{}, errors2.NewDataCatalogErrorf(codes.NotFound, "entry not found")) - - now := time.Now() - dcRepo.MockReservationRepo.On("Create", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - tagNames[reservation.TagName] && - reservation.OwnerID == currentOwner && - reservation.ExpiresAt == now.Add(heartbeatInterval*heartbeatGracePeriodMultiplier) - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 3) - for _, reservation := range resp.GetReservations() { - assert.Equal(t, currentOwner, reservation.OwnerId) - assert.Equal(t, heartbeatIntervalPb, reservation.HeartbeatInterval) - } -} - func TestGetOrExtendReservation_MaxHeartbeatInterval(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -211,79 +138,6 @@ func TestGetOrExtendReservation_MaxHeartbeatInterval(t *testing.T) { assert.Equal(t, heartbeatIntervalPb, resp.GetReservation().HeartbeatInterval) } -func TestGetOrExtendReservations_MaxHeartbeatInterval(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - tagNames[key.TagName] - })).Return(models.Reservation{}, errors2.NewDataCatalogErrorf(codes.NotFound, "entry not found")) - - now := time.Now() - - dcRepo.MockReservationRepo.On("Create", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - tagNames[reservation.TagName] && - reservation.OwnerID == currentOwner && - reservation.ExpiresAt == now.Add(heartbeatInterval*heartbeatGracePeriodMultiplier) - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, heartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - HeartbeatInterval: maxHeartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - HeartbeatInterval: maxHeartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - HeartbeatInterval: maxHeartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 3) - for _, reservation := range resp.GetReservations() { - assert.Equal(t, currentOwner, reservation.OwnerId) - assert.Equal(t, heartbeatIntervalPb, reservation.HeartbeatInterval) - } -} - func TestGetOrExtendReservation_ExtendReservation(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -324,71 +178,6 @@ func TestGetOrExtendReservation_ExtendReservation(t *testing.T) { assert.Equal(t, prevOwner, resp.GetReservation().OwnerId) } -func TestGetOrExtendReservations_ExtendReservations(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - now := time.Now() - prevExpiresAt := now.Add(time.Second * 10) - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - setUpReservationRepoGet(&dcRepo, prevExpiresAt, tagName, "tag2", "nonexistence") - - dcRepo.MockReservationRepo.On("Update", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - tagNames[reservation.TagName] && - reservation.OwnerID == prevOwner && - reservation.ExpiresAt == now.Add(heartbeatInterval*heartbeatGracePeriodMultiplier) - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: prevOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: prevOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: prevOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 3) - for _, reservation := range resp.GetReservations() { - assert.Equal(t, prevOwner, reservation.OwnerId) - } -} - func TestGetOrExtendReservation_TakeOverReservation(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -429,71 +218,6 @@ func TestGetOrExtendReservation_TakeOverReservation(t *testing.T) { assert.Equal(t, currentOwner, resp.GetReservation().OwnerId) } -func TestGetOrExtendReservations_TakeOverReservations(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - now := time.Now() - prevExpiresAt := now.Add(time.Second * 10 * time.Duration(-1)) - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - setUpReservationRepoGet(&dcRepo, prevExpiresAt, tagName, "tag2", "nonexistence") - - dcRepo.MockReservationRepo.On("Update", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - tagNames[reservation.TagName] && - reservation.OwnerID == currentOwner && - reservation.ExpiresAt == now.Add(heartbeatInterval*heartbeatGracePeriodMultiplier) - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 3) - for _, reservation := range resp.GetReservations() { - assert.Equal(t, currentOwner, reservation.OwnerId) - } -} - func TestGetOrExtendReservation_ReservationExists(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -520,209 +244,6 @@ func TestGetOrExtendReservation_ReservationExists(t *testing.T) { assert.Equal(t, prevOwner, resp.GetReservation().OwnerId) } -func TestGetOrExtendReservations_ReservationsExist(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - now := time.Now() - prevExpiresAt := now.Add(time.Second * 10) - - setUpReservationRepoGet(&dcRepo, prevExpiresAt, tagName, "tag2", "nonexistence") - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 3) - for _, reservation := range resp.GetReservations() { - assert.Equal(t, prevOwner, reservation.OwnerId) - } -} - -func TestGetOrExtendReservations_MultipleStates(t *testing.T) { - dcRepo := getDatacatalogRepo() - - setUpTagRepoGetNotFound(&dcRepo) - - now := time.Now() - prevExpiresAt := now.Add(time.Second * 10) - - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - key.TagName == tagName - })).Return(models.Reservation{}, errors2.NewDataCatalogErrorf(codes.NotFound, "entry not found")) - - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - key.TagName == "prevOwner" - })).Return( - models.Reservation{ - ReservationKey: models.ReservationKey{ - DatasetProject: project, - DatasetName: name, - DatasetDomain: domain, - DatasetVersion: version, - TagName: "prevOwner", - }, - OwnerID: prevOwner, - ExpiresAt: prevExpiresAt, - }, nil, - ) - - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - key.TagName == "currentOwner" - })).Return( - models.Reservation{ - ReservationKey: getReservationKey(), - OwnerID: currentOwner, - ExpiresAt: prevExpiresAt, - }, nil, - ) - - dcRepo.MockReservationRepo.On("Get", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(key models.ReservationKey) bool { - return key.DatasetProject == datasetID.Project && - key.DatasetDomain == datasetID.Domain && - key.DatasetVersion == datasetID.Version && - key.DatasetName == datasetID.Name && - key.TagName == "currentOwnerExpired" - })).Return( - models.Reservation{ - ReservationKey: getReservationKey(), - OwnerID: currentOwner, - ExpiresAt: now.Add(-10 * time.Second), - }, nil, - ) - - dcRepo.MockReservationRepo.On("Create", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - reservation.TagName == tagName && - reservation.OwnerID == currentOwner && - reservation.ExpiresAt == now.Add(heartbeatInterval*heartbeatGracePeriodMultiplier) - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - updateTagNames := map[string]bool{"currentOwner": true, "currentOwnerExpired": true} - dcRepo.MockReservationRepo.On("Update", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservation models.Reservation) bool { - return reservation.DatasetProject == datasetID.Project && - reservation.DatasetDomain == datasetID.Domain && - reservation.DatasetName == datasetID.Name && - reservation.DatasetVersion == datasetID.Version && - updateTagNames[reservation.TagName] && - reservation.OwnerID == currentOwner - }), - mock.MatchedBy(func(now time.Time) bool { return true }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.GetOrExtendReservationsRequest{ - Reservations: []*datacatalog.GetOrExtendReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "prevOwner", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "currentOwner", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "currentOwnerExpired", - }, - OwnerId: currentOwner, - HeartbeatInterval: heartbeatIntervalPb, - }, - }, - } - - resp, err := reservationManager.GetOrExtendReservations(context.Background(), req) - - assert.Nil(t, err) - require.NotNil(t, resp.GetReservations()) - require.Len(t, resp.GetReservations(), 4) - for _, reservation := range resp.GetReservations() { - if reservation.ReservationId.TagName == "prevOwner" { - assert.Equal(t, prevOwner, reservation.OwnerId) - } else { - assert.Equal(t, currentOwner, reservation.OwnerId) - } - assert.Equal(t, heartbeatIntervalPb, reservation.HeartbeatInterval) - } -} - func TestReleaseReservation(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -756,58 +277,6 @@ func TestReleaseReservation(t *testing.T) { assert.Nil(t, err) } -func TestReleaseReservations(t *testing.T) { - dcRepo := getDatacatalogRepo() - - now := time.Now() - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - dcRepo.MockReservationRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservationKey models.ReservationKey) bool { - return reservationKey.DatasetProject == datasetID.Project && - reservationKey.DatasetDomain == datasetID.Domain && - reservationKey.DatasetName == datasetID.Name && - reservationKey.DatasetVersion == datasetID.Version && - tagNames[reservationKey.TagName] - }), - mock.MatchedBy(func(ownerID string) bool { - return ownerID == currentOwner - }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.ReleaseReservationsRequest{ - Reservations: []*datacatalog.ReleaseReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - }, - }, - } - - _, err := reservationManager.ReleaseReservations(context.Background(), req) - - assert.Nil(t, err) -} - func TestReleaseReservation_Failure(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -842,59 +311,6 @@ func TestReleaseReservation_Failure(t *testing.T) { assert.Equal(t, reservationErr, err) } -func TestReleaseReservations_Failure(t *testing.T) { - dcRepo := getDatacatalogRepo() - - now := time.Now() - reservationErr := fmt.Errorf("unknown error") - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - dcRepo.MockReservationRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservationKey models.ReservationKey) bool { - return reservationKey.DatasetProject == datasetID.Project && - reservationKey.DatasetDomain == datasetID.Domain && - reservationKey.DatasetName == datasetID.Name && - reservationKey.DatasetVersion == datasetID.Version && - tagNames[reservationKey.TagName] - }), - mock.MatchedBy(func(ownerID string) bool { - return ownerID == currentOwner - }), - ).Return(reservationErr) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.ReleaseReservationsRequest{ - Reservations: []*datacatalog.ReleaseReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - }, - }, - } - - _, err := reservationManager.ReleaseReservations(context.Background(), req) - - assert.Equal(t, reservationErr, err) -} - func TestReleaseReservation_GracefulFailure(t *testing.T) { dcRepo := getDatacatalogRepo() @@ -933,133 +349,6 @@ func TestReleaseReservation_GracefulFailure(t *testing.T) { assert.Nil(t, err) } -func TestReleaseReservations_GracefulFailure(t *testing.T) { - dcRepo := getDatacatalogRepo() - - now := time.Now() - reservationErr := errors3.GetMissingEntityError("Reservation", - &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: tagName, - }) - - tagNames := map[string]bool{tagName: true, "tag2": true, "nonexistence": true} - dcRepo.MockReservationRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservationKey models.ReservationKey) bool { - return reservationKey.DatasetProject == datasetID.Project && - reservationKey.DatasetDomain == datasetID.Domain && - reservationKey.DatasetName == datasetID.Name && - reservationKey.DatasetVersion == datasetID.Version && - tagNames[reservationKey.TagName] - }), - mock.MatchedBy(func(ownerID string) bool { - return ownerID == currentOwner - }), - ).Return(reservationErr) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.ReleaseReservationsRequest{ - Reservations: []*datacatalog.ReleaseReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "tag2", - }, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "nonexistence", - }, - OwnerId: currentOwner, - }, - }, - } - - _, err := reservationManager.ReleaseReservations(context.Background(), req) - - assert.Nil(t, err) -} - -func TestReleaseReservation_MultipleStates(t *testing.T) { - dcRepo := getDatacatalogRepo() - - now := time.Now() - notFoundErr := errors3.GetMissingEntityError("Reservation", - &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: tagName, - }) - - dcRepo.MockReservationRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservationKey models.ReservationKey) bool { - return reservationKey.DatasetProject == datasetID.Project && - reservationKey.DatasetDomain == datasetID.Domain && - reservationKey.DatasetName == datasetID.Name && - reservationKey.DatasetVersion == datasetID.Version && - (reservationKey.TagName == tagName || reservationKey.TagName == prevOwner) - }), - mock.MatchedBy(func(ownerID string) bool { - return ownerID == currentOwner - }), - ).Return(notFoundErr) - - dcRepo.MockReservationRepo.On("Delete", - mock.MatchedBy(func(ctx context.Context) bool { return true }), - mock.MatchedBy(func(reservationKey models.ReservationKey) bool { - return reservationKey.DatasetProject == datasetID.Project && - reservationKey.DatasetDomain == datasetID.Domain && - reservationKey.DatasetName == datasetID.Name && - reservationKey.DatasetVersion == datasetID.Version && - reservationKey.TagName == "currentOwner" - }), - mock.MatchedBy(func(ownerID string) bool { - return ownerID == currentOwner - }), - ).Return(nil) - - reservationManager := NewReservationManager(&dcRepo, - heartbeatGracePeriodMultiplier, maxHeartbeatInterval, - func() time.Time { return now }, mockScope.NewTestScope()) - - req := &datacatalog.ReleaseReservationsRequest{ - Reservations: []*datacatalog.ReleaseReservationRequest{ - { - ReservationId: &reservationID, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "prevOwner", - }, - OwnerId: currentOwner, - }, - { - ReservationId: &datacatalog.ReservationID{ - DatasetId: &datasetID, - TagName: "currentOwner", - }, - OwnerId: currentOwner, - }, - }, - } - - _, err := reservationManager.ReleaseReservations(context.Background(), req) - - assert.Nil(t, err) -} - func getDatacatalogRepo() mocks.DataCatalogRepo { return mocks.DataCatalogRepo{ MockReservationRepo: &mocks.ReservationRepo{}, diff --git a/datacatalog/pkg/manager/impl/validators/artifact_validator.go b/datacatalog/pkg/manager/impl/validators/artifact_validator.go index cdbcdf16a4..4244c2b0ac 100644 --- a/datacatalog/pkg/manager/impl/validators/artifact_validator.go +++ b/datacatalog/pkg/manager/impl/validators/artifact_validator.go @@ -3,10 +3,7 @@ package validators import ( "fmt" - "google.golang.org/grpc/codes" - "github.com/flyteorg/flyte/datacatalog/pkg/common" - "github.com/flyteorg/flyte/datacatalog/pkg/errors" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog" ) @@ -173,22 +170,3 @@ func ValidateDeleteArtifactRequest(request *datacatalog.DeleteArtifactRequest) e return nil } - -func ValidateDeleteArtifactsRequest(request *datacatalog.DeleteArtifactsRequest) error { - if request.GetArtifacts() == nil { - return NewMissingArgumentError("artifacts") - } - - var errs []error - for _, deleteArtifactReq := range request.GetArtifacts() { - if err := ValidateDeleteArtifactRequest(deleteArtifactReq); err != nil { - errs = append(errs, err) - } - } - - if len(errs) > 0 { - return errors.NewCollectedErrors(codes.InvalidArgument, errs) - } - - return nil -} diff --git a/datacatalog/pkg/manager/impl/validators/reservation_validator.go b/datacatalog/pkg/manager/impl/validators/reservation_validator.go index 28c488cb55..150751bd21 100644 --- a/datacatalog/pkg/manager/impl/validators/reservation_validator.go +++ b/datacatalog/pkg/manager/impl/validators/reservation_validator.go @@ -1,9 +1,6 @@ package validators import ( - "google.golang.org/grpc/codes" - - "github.com/flyteorg/flyte/datacatalog/pkg/errors" "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog" ) @@ -29,25 +26,6 @@ func ValidateGetOrExtendReservationRequest(request *datacatalog.GetOrExtendReser return nil } -func ValidateGetOrExtendReservationsRequest(request *datacatalog.GetOrExtendReservationsRequest) error { - if request.GetReservations() == nil { - return NewMissingArgumentError("reservations") - } - - var errs []error - for _, req := range request.GetReservations() { - if err := ValidateGetOrExtendReservationRequest(req); err != nil { - errs = append(errs, err) - } - } - - if len(errs) > 0 { - return errors.NewCollectedErrors(codes.InvalidArgument, errs) - } - - return nil -} - func ValidateReleaseReservationRequest(request *datacatalog.ReleaseReservationRequest) error { if request.GetReservationId() == nil { return NewMissingArgumentError("reservationID") @@ -65,22 +43,3 @@ func ValidateReleaseReservationRequest(request *datacatalog.ReleaseReservationRe return nil } - -func ValidateReleaseReservationsRequest(request *datacatalog.ReleaseReservationsRequest) error { - if request.GetReservations() == nil { - return NewMissingArgumentError("reservations") - } - - var errs []error - for _, req := range request.GetReservations() { - if err := ValidateReleaseReservationRequest(req); err != nil { - errs = append(errs, err) - } - } - - if len(errs) > 0 { - return errors.NewCollectedErrors(codes.InvalidArgument, errs) - } - - return nil -} diff --git a/datacatalog/pkg/manager/interfaces/artifact.go b/datacatalog/pkg/manager/interfaces/artifact.go index fdddf9ff12..c527c55233 100644 --- a/datacatalog/pkg/manager/interfaces/artifact.go +++ b/datacatalog/pkg/manager/interfaces/artifact.go @@ -14,5 +14,4 @@ type ArtifactManager interface { ListArtifacts(ctx context.Context, request *idl_datacatalog.ListArtifactsRequest) (*idl_datacatalog.ListArtifactsResponse, error) UpdateArtifact(ctx context.Context, request *idl_datacatalog.UpdateArtifactRequest) (*idl_datacatalog.UpdateArtifactResponse, error) DeleteArtifact(ctx context.Context, request *idl_datacatalog.DeleteArtifactRequest) (*idl_datacatalog.DeleteArtifactResponse, error) - DeleteArtifacts(ctx context.Context, request *idl_datacatalog.DeleteArtifactsRequest) (*idl_datacatalog.DeleteArtifactResponse, error) } diff --git a/datacatalog/pkg/manager/interfaces/reservation.go b/datacatalog/pkg/manager/interfaces/reservation.go index 73e9dd7377..a20750ff9b 100644 --- a/datacatalog/pkg/manager/interfaces/reservation.go +++ b/datacatalog/pkg/manager/interfaces/reservation.go @@ -11,7 +11,5 @@ import ( // in flyteidl type ReservationManager interface { GetOrExtendReservation(context.Context, *datacatalog.GetOrExtendReservationRequest) (*datacatalog.GetOrExtendReservationResponse, error) - GetOrExtendReservations(context.Context, *datacatalog.GetOrExtendReservationsRequest) (*datacatalog.GetOrExtendReservationsResponse, error) ReleaseReservation(context.Context, *datacatalog.ReleaseReservationRequest) (*datacatalog.ReleaseReservationResponse, error) - ReleaseReservations(context.Context, *datacatalog.ReleaseReservationsRequest) (*datacatalog.ReleaseReservationResponse, error) } diff --git a/datacatalog/pkg/manager/mocks/artifact_manager.go b/datacatalog/pkg/manager/mocks/artifact_manager.go index 31bc614756..a4d2b5ba30 100644 --- a/datacatalog/pkg/manager/mocks/artifact_manager.go +++ b/datacatalog/pkg/manager/mocks/artifact_manager.go @@ -97,47 +97,6 @@ func (_m *ArtifactManager) DeleteArtifact(ctx context.Context, request *datacata return r0, r1 } -type ArtifactManager_DeleteArtifacts struct { - *mock.Call -} - -func (_m ArtifactManager_DeleteArtifacts) Return(_a0 *datacatalog.DeleteArtifactResponse, _a1 error) *ArtifactManager_DeleteArtifacts { - return &ArtifactManager_DeleteArtifacts{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ArtifactManager) OnDeleteArtifacts(ctx context.Context, request *datacatalog.DeleteArtifactsRequest) *ArtifactManager_DeleteArtifacts { - c_call := _m.On("DeleteArtifacts", ctx, request) - return &ArtifactManager_DeleteArtifacts{Call: c_call} -} - -func (_m *ArtifactManager) OnDeleteArtifactsMatch(matchers ...interface{}) *ArtifactManager_DeleteArtifacts { - c_call := _m.On("DeleteArtifacts", matchers...) - return &ArtifactManager_DeleteArtifacts{Call: c_call} -} - -// DeleteArtifacts provides a mock function with given fields: ctx, request -func (_m *ArtifactManager) DeleteArtifacts(ctx context.Context, request *datacatalog.DeleteArtifactsRequest) (*datacatalog.DeleteArtifactResponse, error) { - ret := _m.Called(ctx, request) - - var r0 *datacatalog.DeleteArtifactResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.DeleteArtifactsRequest) *datacatalog.DeleteArtifactResponse); ok { - r0 = rf(ctx, request) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.DeleteArtifactResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.DeleteArtifactsRequest) error); ok { - r1 = rf(ctx, request) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type ArtifactManager_GetArtifact struct { *mock.Call } diff --git a/datacatalog/pkg/manager/mocks/reservation_manager.go b/datacatalog/pkg/manager/mocks/reservation_manager.go index 3f7b6003a6..3753ee64e4 100644 --- a/datacatalog/pkg/manager/mocks/reservation_manager.go +++ b/datacatalog/pkg/manager/mocks/reservation_manager.go @@ -56,47 +56,6 @@ func (_m *ReservationManager) GetOrExtendReservation(_a0 context.Context, _a1 *d return r0, r1 } -type ReservationManager_GetOrExtendReservations struct { - *mock.Call -} - -func (_m ReservationManager_GetOrExtendReservations) Return(_a0 *datacatalog.GetOrExtendReservationsResponse, _a1 error) *ReservationManager_GetOrExtendReservations { - return &ReservationManager_GetOrExtendReservations{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ReservationManager) OnGetOrExtendReservations(_a0 context.Context, _a1 *datacatalog.GetOrExtendReservationsRequest) *ReservationManager_GetOrExtendReservations { - c_call := _m.On("GetOrExtendReservations", _a0, _a1) - return &ReservationManager_GetOrExtendReservations{Call: c_call} -} - -func (_m *ReservationManager) OnGetOrExtendReservationsMatch(matchers ...interface{}) *ReservationManager_GetOrExtendReservations { - c_call := _m.On("GetOrExtendReservations", matchers...) - return &ReservationManager_GetOrExtendReservations{Call: c_call} -} - -// GetOrExtendReservations provides a mock function with given fields: _a0, _a1 -func (_m *ReservationManager) GetOrExtendReservations(_a0 context.Context, _a1 *datacatalog.GetOrExtendReservationsRequest) (*datacatalog.GetOrExtendReservationsResponse, error) { - ret := _m.Called(_a0, _a1) - - var r0 *datacatalog.GetOrExtendReservationsResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetOrExtendReservationsRequest) *datacatalog.GetOrExtendReservationsResponse); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.GetOrExtendReservationsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetOrExtendReservationsRequest) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type ReservationManager_ReleaseReservation struct { *mock.Call } @@ -137,44 +96,3 @@ func (_m *ReservationManager) ReleaseReservation(_a0 context.Context, _a1 *datac return r0, r1 } - -type ReservationManager_ReleaseReservations struct { - *mock.Call -} - -func (_m ReservationManager_ReleaseReservations) Return(_a0 *datacatalog.ReleaseReservationResponse, _a1 error) *ReservationManager_ReleaseReservations { - return &ReservationManager_ReleaseReservations{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *ReservationManager) OnReleaseReservations(_a0 context.Context, _a1 *datacatalog.ReleaseReservationsRequest) *ReservationManager_ReleaseReservations { - c_call := _m.On("ReleaseReservations", _a0, _a1) - return &ReservationManager_ReleaseReservations{Call: c_call} -} - -func (_m *ReservationManager) OnReleaseReservationsMatch(matchers ...interface{}) *ReservationManager_ReleaseReservations { - c_call := _m.On("ReleaseReservations", matchers...) - return &ReservationManager_ReleaseReservations{Call: c_call} -} - -// ReleaseReservations provides a mock function with given fields: _a0, _a1 -func (_m *ReservationManager) ReleaseReservations(_a0 context.Context, _a1 *datacatalog.ReleaseReservationsRequest) (*datacatalog.ReleaseReservationResponse, error) { - ret := _m.Called(_a0, _a1) - - var r0 *datacatalog.ReleaseReservationResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ReleaseReservationsRequest) *datacatalog.ReleaseReservationResponse); ok { - r0 = rf(_a0, _a1) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.ReleaseReservationResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ReleaseReservationsRequest) error); ok { - r1 = rf(_a0, _a1) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} diff --git a/datacatalog/pkg/rpc/datacatalogservice/service.go b/datacatalog/pkg/rpc/datacatalogservice/service.go index f6613e4075..163c24b92c 100644 --- a/datacatalog/pkg/rpc/datacatalogservice/service.go +++ b/datacatalog/pkg/rpc/datacatalogservice/service.go @@ -71,26 +71,14 @@ func (s *DataCatalogService) DeleteArtifact(ctx context.Context, request *catalo return s.ArtifactManager.DeleteArtifact(ctx, request) } -func (s *DataCatalogService) DeleteArtifacts(ctx context.Context, request *catalog.DeleteArtifactsRequest) (*catalog.DeleteArtifactResponse, error) { - return s.ArtifactManager.DeleteArtifacts(ctx, request) -} - func (s *DataCatalogService) GetOrExtendReservation(ctx context.Context, request *catalog.GetOrExtendReservationRequest) (*catalog.GetOrExtendReservationResponse, error) { return s.ReservationManager.GetOrExtendReservation(ctx, request) } -func (s *DataCatalogService) GetOrExtendReservations(ctx context.Context, request *catalog.GetOrExtendReservationsRequest) (*catalog.GetOrExtendReservationsResponse, error) { - return s.ReservationManager.GetOrExtendReservations(ctx, request) -} - func (s *DataCatalogService) ReleaseReservation(ctx context.Context, request *catalog.ReleaseReservationRequest) (*catalog.ReleaseReservationResponse, error) { return s.ReservationManager.ReleaseReservation(ctx, request) } -func (s *DataCatalogService) ReleaseReservations(ctx context.Context, request *catalog.ReleaseReservationsRequest) (*catalog.ReleaseReservationResponse, error) { - return s.ReservationManager.ReleaseReservations(ctx, request) -} - func NewDataCatalogService() *DataCatalogService { configProvider := runtime.NewConfigurationProvider() dataCatalogConfig := configProvider.ApplicationConfiguration().GetDataCatalogConfig() diff --git a/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go index 6653a4bca2..1a9a449456 100644 --- a/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go +++ b/flyteidl/clients/go/datacatalog/mocks/DataCatalogClient.go @@ -208,54 +208,6 @@ func (_m *DataCatalogClient) DeleteArtifact(ctx context.Context, in *datacatalog return r0, r1 } -type DataCatalogClient_DeleteArtifacts struct { - *mock.Call -} - -func (_m DataCatalogClient_DeleteArtifacts) Return(_a0 *datacatalog.DeleteArtifactResponse, _a1 error) *DataCatalogClient_DeleteArtifacts { - return &DataCatalogClient_DeleteArtifacts{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *DataCatalogClient) OnDeleteArtifacts(ctx context.Context, in *datacatalog.DeleteArtifactsRequest, opts ...grpc.CallOption) *DataCatalogClient_DeleteArtifacts { - c_call := _m.On("DeleteArtifacts", ctx, in, opts) - return &DataCatalogClient_DeleteArtifacts{Call: c_call} -} - -func (_m *DataCatalogClient) OnDeleteArtifactsMatch(matchers ...interface{}) *DataCatalogClient_DeleteArtifacts { - c_call := _m.On("DeleteArtifacts", matchers...) - return &DataCatalogClient_DeleteArtifacts{Call: c_call} -} - -// DeleteArtifacts provides a mock function with given fields: ctx, in, opts -func (_m *DataCatalogClient) DeleteArtifacts(ctx context.Context, in *datacatalog.DeleteArtifactsRequest, opts ...grpc.CallOption) (*datacatalog.DeleteArtifactResponse, 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.DeleteArtifactResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.DeleteArtifactsRequest, ...grpc.CallOption) *datacatalog.DeleteArtifactResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.DeleteArtifactResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.DeleteArtifactsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type DataCatalogClient_GetArtifact struct { *mock.Call } @@ -400,54 +352,6 @@ func (_m *DataCatalogClient) GetOrExtendReservation(ctx context.Context, in *dat return r0, r1 } -type DataCatalogClient_GetOrExtendReservations struct { - *mock.Call -} - -func (_m DataCatalogClient_GetOrExtendReservations) Return(_a0 *datacatalog.GetOrExtendReservationsResponse, _a1 error) *DataCatalogClient_GetOrExtendReservations { - return &DataCatalogClient_GetOrExtendReservations{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *DataCatalogClient) OnGetOrExtendReservations(ctx context.Context, in *datacatalog.GetOrExtendReservationsRequest, opts ...grpc.CallOption) *DataCatalogClient_GetOrExtendReservations { - c_call := _m.On("GetOrExtendReservations", ctx, in, opts) - return &DataCatalogClient_GetOrExtendReservations{Call: c_call} -} - -func (_m *DataCatalogClient) OnGetOrExtendReservationsMatch(matchers ...interface{}) *DataCatalogClient_GetOrExtendReservations { - c_call := _m.On("GetOrExtendReservations", matchers...) - return &DataCatalogClient_GetOrExtendReservations{Call: c_call} -} - -// GetOrExtendReservations provides a mock function with given fields: ctx, in, opts -func (_m *DataCatalogClient) GetOrExtendReservations(ctx context.Context, in *datacatalog.GetOrExtendReservationsRequest, opts ...grpc.CallOption) (*datacatalog.GetOrExtendReservationsResponse, 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.GetOrExtendReservationsResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.GetOrExtendReservationsRequest, ...grpc.CallOption) *datacatalog.GetOrExtendReservationsResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.GetOrExtendReservationsResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.GetOrExtendReservationsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type DataCatalogClient_ListArtifacts struct { *mock.Call } @@ -592,54 +496,6 @@ func (_m *DataCatalogClient) ReleaseReservation(ctx context.Context, in *datacat return r0, r1 } -type DataCatalogClient_ReleaseReservations struct { - *mock.Call -} - -func (_m DataCatalogClient_ReleaseReservations) Return(_a0 *datacatalog.ReleaseReservationResponse, _a1 error) *DataCatalogClient_ReleaseReservations { - return &DataCatalogClient_ReleaseReservations{Call: _m.Call.Return(_a0, _a1)} -} - -func (_m *DataCatalogClient) OnReleaseReservations(ctx context.Context, in *datacatalog.ReleaseReservationsRequest, opts ...grpc.CallOption) *DataCatalogClient_ReleaseReservations { - c_call := _m.On("ReleaseReservations", ctx, in, opts) - return &DataCatalogClient_ReleaseReservations{Call: c_call} -} - -func (_m *DataCatalogClient) OnReleaseReservationsMatch(matchers ...interface{}) *DataCatalogClient_ReleaseReservations { - c_call := _m.On("ReleaseReservations", matchers...) - return &DataCatalogClient_ReleaseReservations{Call: c_call} -} - -// ReleaseReservations provides a mock function with given fields: ctx, in, opts -func (_m *DataCatalogClient) ReleaseReservations(ctx context.Context, in *datacatalog.ReleaseReservationsRequest, opts ...grpc.CallOption) (*datacatalog.ReleaseReservationResponse, 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.ReleaseReservationResponse - if rf, ok := ret.Get(0).(func(context.Context, *datacatalog.ReleaseReservationsRequest, ...grpc.CallOption) *datacatalog.ReleaseReservationResponse); ok { - r0 = rf(ctx, in, opts...) - } else { - if ret.Get(0) != nil { - r0 = ret.Get(0).(*datacatalog.ReleaseReservationResponse) - } - } - - var r1 error - if rf, ok := ret.Get(1).(func(context.Context, *datacatalog.ReleaseReservationsRequest, ...grpc.CallOption) error); ok { - r1 = rf(ctx, in, opts...) - } else { - r1 = ret.Error(1) - } - - return r0, r1 -} - type DataCatalogClient_UpdateArtifact struct { *mock.Call } diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc index b8ce82e486..3abf6da52c 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc @@ -28,11 +28,8 @@ static const char* DataCatalog_method_names[] = { "/datacatalog.DataCatalog/ListDatasets", "/datacatalog.DataCatalog/UpdateArtifact", "/datacatalog.DataCatalog/DeleteArtifact", - "/datacatalog.DataCatalog/DeleteArtifacts", "/datacatalog.DataCatalog/GetOrExtendReservation", - "/datacatalog.DataCatalog/GetOrExtendReservations", "/datacatalog.DataCatalog/ReleaseReservation", - "/datacatalog.DataCatalog/ReleaseReservations", }; std::unique_ptr< DataCatalog::Stub> DataCatalog::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { @@ -51,11 +48,8 @@ DataCatalog::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channe , rpcmethod_ListDatasets_(DataCatalog_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_UpdateArtifact_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) , rpcmethod_DeleteArtifact_(DataCatalog_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteArtifacts_(DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrExtendReservations_(DataCatalog_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReleaseReservation_(DataCatalog_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReleaseReservations_(DataCatalog_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReleaseReservation_(DataCatalog_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) {} ::grpc::Status DataCatalog::Stub::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) { @@ -310,34 +304,6 @@ ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* DataC return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::DeleteArtifactResponse>::Create(channel_.get(), cq, rpcmethod_DeleteArtifact_, context, request, false); } -::grpc::Status DataCatalog::Stub::DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::datacatalog::DeleteArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteArtifacts_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteArtifacts_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteArtifacts_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteArtifacts_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteArtifacts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* DataCatalog::Stub::AsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::DeleteArtifactResponse>::Create(channel_.get(), cq, rpcmethod_DeleteArtifacts_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* DataCatalog::Stub::PrepareAsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::DeleteArtifactResponse>::Create(channel_.get(), cq, rpcmethod_DeleteArtifacts_, context, request, false); -} - ::grpc::Status DataCatalog::Stub::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrExtendReservation_, context, request, response); } @@ -366,34 +332,6 @@ ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservation_, context, request, false); } -::grpc::Status DataCatalog::Stub::GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::datacatalog::GetOrExtendReservationsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrExtendReservations_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservations_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservations_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservations_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservations_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>* DataCatalog::Stub::AsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationsResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservations_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>* DataCatalog::Stub::PrepareAsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationsResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservations_, context, request, false); -} - ::grpc::Status DataCatalog::Stub::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) { return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReleaseReservation_, context, request, response); } @@ -422,34 +360,6 @@ ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* D return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, false); } -::grpc::Status DataCatalog::Stub::ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::datacatalog::ReleaseReservationResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReleaseReservations_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservations_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservations_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservations_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservations_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::AsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservations_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::PrepareAsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservations_, context, request, false); -} - DataCatalog::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataCatalog_method_names[0], @@ -499,28 +409,13 @@ DataCatalog::Service::Service() { AddMethod(new ::grpc::internal::RpcServiceMethod( DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::DeleteArtifactsRequest, ::datacatalog::DeleteArtifactResponse>( - std::mem_fn(&DataCatalog::Service::DeleteArtifacts), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[10], - ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( std::mem_fn(&DataCatalog::Service::GetOrExtendReservation), this))); AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[11], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrExtendReservationsRequest, ::datacatalog::GetOrExtendReservationsResponse>( - std::mem_fn(&DataCatalog::Service::GetOrExtendReservations), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[12], + DataCatalog_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( std::mem_fn(&DataCatalog::Service::ReleaseReservation), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[13], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ReleaseReservationsRequest, ::datacatalog::ReleaseReservationResponse>( - std::mem_fn(&DataCatalog::Service::ReleaseReservations), this))); } DataCatalog::Service::~Service() { @@ -589,13 +484,6 @@ ::grpc::Status DataCatalog::Service::DeleteArtifact(::grpc::ServerContext* conte return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DataCatalog::Service::DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status DataCatalog::Service::GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) { (void) context; (void) request; @@ -603,13 +491,6 @@ ::grpc::Status DataCatalog::Service::GetOrExtendReservation(::grpc::ServerContex return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DataCatalog::Service::GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - ::grpc::Status DataCatalog::Service::ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) { (void) context; (void) request; @@ -617,13 +498,6 @@ ::grpc::Status DataCatalog::Service::ReleaseReservation(::grpc::ServerContext* c return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } -::grpc::Status DataCatalog::Service::ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - } // namespace datacatalog diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h index 6a7c039a44..b4c3a41a3c 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h @@ -125,18 +125,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>> PrepareAsyncDeleteArtifact(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>>(PrepareAsyncDeleteArtifactRaw(context, request, cq)); } - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - virtual ::grpc::Status DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::datacatalog::DeleteArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>> AsyncDeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>>(AsyncDeleteArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>> PrepareAsyncDeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>>(PrepareAsyncDeleteArtifactsRaw(context, request, cq)); - } // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -155,17 +143,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); } - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - virtual ::grpc::Status GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::datacatalog::GetOrExtendReservationsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>> AsyncGetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>>(AsyncGetOrExtendReservationsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>> PrepareAsyncGetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>>(PrepareAsyncGetOrExtendReservationsRaw(context, request, cq)); - } // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. virtual ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) = 0; @@ -175,19 +152,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); } - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - virtual ::grpc::Status ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::datacatalog::ReleaseReservationResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationsRaw(context, request, cq)); - } class experimental_async_interface { public: virtual ~experimental_async_interface() {} @@ -238,15 +202,6 @@ class DataCatalog final { virtual void DeleteArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, std::function) = 0; virtual void DeleteArtifact(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void DeleteArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - virtual void DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, std::function) = 0; - virtual void DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, std::function) = 0; - virtual void DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -262,30 +217,12 @@ class DataCatalog final { virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) = 0; virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - virtual void GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function) = 0; - virtual void GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function) = 0; - virtual void GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - virtual void ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; - virtual void ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; - virtual void ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; }; virtual class experimental_async_interface* experimental_async() { return nullptr; } private: @@ -307,16 +244,10 @@ class DataCatalog final { virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>* AsyncDeleteArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>* PrepareAsyncDeleteArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>* AsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::DeleteArtifactResponse>* PrepareAsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>* AsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationsResponse>* PrepareAsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) = 0; }; class Stub final : public StubInterface { public: @@ -384,13 +315,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>> PrepareAsyncDeleteArtifact(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>>(PrepareAsyncDeleteArtifactRaw(context, request, cq)); } - ::grpc::Status DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::datacatalog::DeleteArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>> AsyncDeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>>(AsyncDeleteArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>> PrepareAsyncDeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>>(PrepareAsyncDeleteArtifactsRaw(context, request, cq)); - } ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); @@ -398,13 +322,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); } - ::grpc::Status GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::datacatalog::GetOrExtendReservationsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>> AsyncGetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>>(AsyncGetOrExtendReservationsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>> PrepareAsyncGetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>>(PrepareAsyncGetOrExtendReservationsRaw(context, request, cq)); - } ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) override; std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); @@ -412,13 +329,6 @@ class DataCatalog final { std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); } - ::grpc::Status ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::datacatalog::ReleaseReservationResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationsRaw(context, request, cq)); - } class experimental_async final : public StubInterface::experimental_async_interface { public: @@ -458,26 +368,14 @@ class DataCatalog final { void DeleteArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, std::function) override; void DeleteArtifact(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void DeleteArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, std::function) override; - void DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, std::function) override; - void DeleteArtifacts(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function) override; - void GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, std::function) override; - void GetOrExtendReservations(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOrExtendReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; - void ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; - void ReleaseReservations(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReleaseReservations(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; private: friend class Stub; explicit experimental_async(Stub* stub): stub_(stub) { } @@ -507,16 +405,10 @@ class DataCatalog final { ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* AsyncDeleteArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* PrepareAsyncDeleteArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* AsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::DeleteArtifactResponse>* PrepareAsyncDeleteArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::DeleteArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>* AsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationsResponse>* PrepareAsyncGetOrExtendReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationsRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationsRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationsRequest& request, ::grpc::CompletionQueue* cq) override; const ::grpc::internal::RpcMethod rpcmethod_CreateDataset_; const ::grpc::internal::RpcMethod rpcmethod_GetDataset_; const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; @@ -526,11 +418,8 @@ class DataCatalog final { const ::grpc::internal::RpcMethod rpcmethod_ListDatasets_; const ::grpc::internal::RpcMethod rpcmethod_UpdateArtifact_; const ::grpc::internal::RpcMethod rpcmethod_DeleteArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteArtifacts_; const ::grpc::internal::RpcMethod rpcmethod_GetOrExtendReservation_; - const ::grpc::internal::RpcMethod rpcmethod_GetOrExtendReservations_; const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservation_; - const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservations_; }; static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); @@ -558,12 +447,6 @@ class DataCatalog final { virtual ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response); // Deletes an existing artifact, removing the stored artifact data from the underlying blob storage. virtual ::grpc::Status DeleteArtifact(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactRequest* request, ::datacatalog::DeleteArtifactResponse* response); - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - virtual ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response); // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -576,21 +459,9 @@ class DataCatalog final { // task B may take over the reservation, resulting in two tasks A and B running in parallel. So // a third task C may get the Artifact from A or B, whichever writes last. virtual ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response); - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - virtual ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response); // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. virtual ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response); - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - virtual ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response); }; template class WithAsyncMethod_CreateDataset : public BaseClass { @@ -773,32 +644,12 @@ class DataCatalog final { } }; template - class WithAsyncMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteArtifacts() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteArtifacts(::grpc::ServerContext* context, ::datacatalog::DeleteArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::DeleteArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithAsyncMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodAsync(10); + ::grpc::Service::MarkMethodAsync(9); } ~WithAsyncMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -809,27 +660,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::datacatalog::GetOrExtendReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrExtendReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetOrExtendReservations() { - ::grpc::Service::MarkMethodAsync(11); - } - ~WithAsyncMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrExtendReservations(::grpc::ServerContext* context, ::datacatalog::GetOrExtendReservationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrExtendReservationsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -838,7 +669,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithAsyncMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodAsync(12); + ::grpc::Service::MarkMethodAsync(10); } ~WithAsyncMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -849,30 +680,10 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReleaseReservation(::grpc::ServerContext* context, ::datacatalog::ReleaseReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ReleaseReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ReleaseReservations() { - ::grpc::Service::MarkMethodAsync(13); - } - ~WithAsyncMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReleaseReservations(::grpc::ServerContext* context, ::datacatalog::ReleaseReservationsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ReleaseReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; - typedef WithAsyncMethod_CreateDataset > > > > > > > > > > > > > AsyncService; + typedef WithAsyncMethod_CreateDataset > > > > > > > > > > AsyncService; template class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { private: @@ -1153,43 +964,12 @@ class DataCatalog final { virtual void DeleteArtifact(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteArtifacts() { - ::grpc::Service::experimental().MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::DeleteArtifactsRequest, ::datacatalog::DeleteArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::DeleteArtifactsRequest* request, - ::datacatalog::DeleteArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteArtifacts(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteArtifacts( - ::grpc::experimental::MessageAllocator< ::datacatalog::DeleteArtifactsRequest, ::datacatalog::DeleteArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::DeleteArtifactsRequest, ::datacatalog::DeleteArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(9)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithCallbackMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodCallback(10, + ::grpc::Service::experimental().MarkMethodCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( [this](::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, @@ -1201,7 +981,7 @@ class DataCatalog final { void SetMessageAllocatorFor_GetOrExtendReservation( ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(10)) + ::grpc::Service::experimental().GetHandler(9)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_GetOrExtendReservation() override { @@ -1215,43 +995,12 @@ class DataCatalog final { virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithCallbackMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetOrExtendReservations() { - ::grpc::Service::experimental().MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationsRequest, ::datacatalog::GetOrExtendReservationsResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::GetOrExtendReservationsRequest* request, - ::datacatalog::GetOrExtendReservationsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetOrExtendReservations(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetOrExtendReservations( - ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrExtendReservationsRequest, ::datacatalog::GetOrExtendReservationsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationsRequest, ::datacatalog::GetOrExtendReservationsResponse>*>( - ::grpc::Service::experimental().GetHandler(11)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithCallbackMethod_ReleaseReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodCallback(12, + ::grpc::Service::experimental().MarkMethodCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( [this](::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, @@ -1263,7 +1012,7 @@ class DataCatalog final { void SetMessageAllocatorFor_ReleaseReservation( ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(12)) + ::grpc::Service::experimental().GetHandler(10)) ->SetMessageAllocator(allocator); } ~ExperimentalWithCallbackMethod_ReleaseReservation() override { @@ -1276,38 +1025,7 @@ class DataCatalog final { } virtual void ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; - template - class ExperimentalWithCallbackMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ReleaseReservations() { - ::grpc::Service::experimental().MarkMethodCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationsRequest, ::datacatalog::ReleaseReservationResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::ReleaseReservationsRequest* request, - ::datacatalog::ReleaseReservationResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ReleaseReservations(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ReleaseReservations( - ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationsRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationsRequest, ::datacatalog::ReleaseReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(13)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > > > > > > ExperimentalCallbackService; + typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > > > ExperimentalCallbackService; template class WithGenericMethod_CreateDataset : public BaseClass { private: @@ -1462,29 +1180,12 @@ class DataCatalog final { } }; template - class WithGenericMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteArtifacts() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodGeneric(10); + ::grpc::Service::MarkMethodGeneric(9); } ~WithGenericMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1496,29 +1197,12 @@ class DataCatalog final { } }; template - class WithGenericMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetOrExtendReservations() { - ::grpc::Service::MarkMethodGeneric(11); - } - ~WithGenericMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithGenericMethod_ReleaseReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithGenericMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodGeneric(12); + ::grpc::Service::MarkMethodGeneric(10); } ~WithGenericMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1530,23 +1214,6 @@ class DataCatalog final { } }; template - class WithGenericMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ReleaseReservations() { - ::grpc::Service::MarkMethodGeneric(13); - } - ~WithGenericMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template class WithRawMethod_CreateDataset : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} @@ -1727,32 +1394,12 @@ class DataCatalog final { } }; template - class WithRawMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteArtifacts() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteArtifacts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template class WithRawMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodRaw(10); + ::grpc::Service::MarkMethodRaw(9); } ~WithRawMethod_GetOrExtendReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1763,27 +1410,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestGetOrExtendReservation(::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(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetOrExtendReservations() { - ::grpc::Service::MarkMethodRaw(11); - } - ~WithRawMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrExtendReservations(::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(11, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -1792,7 +1419,7 @@ class DataCatalog final { void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithRawMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodRaw(12); + ::grpc::Service::MarkMethodRaw(10); } ~WithRawMethod_ReleaseReservation() override { BaseClassMustBeDerivedFromService(this); @@ -1803,27 +1430,7 @@ class DataCatalog final { return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); } void RequestReleaseReservation(::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(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ReleaseReservations() { - ::grpc::Service::MarkMethodRaw(13); - } - ~WithRawMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReleaseReservations(::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(13, context, request, response, new_call_cq, notification_cq, tag); + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); } }; template @@ -2052,37 +1659,12 @@ class DataCatalog final { virtual void DeleteArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteArtifacts() { - ::grpc::Service::experimental().MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteArtifacts(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithRawCallbackMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(10, + ::grpc::Service::experimental().MarkMethodRawCallback(9, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -2102,37 +1684,12 @@ class DataCatalog final { virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetOrExtendReservations() { - ::grpc::Service::experimental().MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetOrExtendReservations(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrExtendReservations(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template class ExperimentalWithRawCallbackMethod_ReleaseReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: ExperimentalWithRawCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(12, + ::grpc::Service::experimental().MarkMethodRawCallback(10, new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( [this](::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, @@ -2152,31 +1709,6 @@ class DataCatalog final { virtual void ReleaseReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } }; template - class ExperimentalWithRawCallbackMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ReleaseReservations() { - ::grpc::Service::experimental().MarkMethodRawCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ReleaseReservations(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReleaseReservations(::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) {} @@ -2357,32 +1889,12 @@ class DataCatalog final { virtual ::grpc::Status StreamedDeleteArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::DeleteArtifactRequest,::datacatalog::DeleteArtifactResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_DeleteArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteArtifacts() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::DeleteArtifactsRequest, ::datacatalog::DeleteArtifactResponse>(std::bind(&WithStreamedUnaryMethod_DeleteArtifacts::StreamedDeleteArtifacts, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteArtifacts(::grpc::ServerContext* context, const ::datacatalog::DeleteArtifactsRequest* request, ::datacatalog::DeleteArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::DeleteArtifactsRequest,::datacatalog::DeleteArtifactResponse>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_GetOrExtendReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodStreamed(10, + ::grpc::Service::MarkMethodStreamed(9, new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>(std::bind(&WithStreamedUnaryMethod_GetOrExtendReservation::StreamedGetOrExtendReservation, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_GetOrExtendReservation() override { @@ -2397,32 +1909,12 @@ class DataCatalog final { virtual ::grpc::Status StreamedGetOrExtendReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetOrExtendReservationRequest,::datacatalog::GetOrExtendReservationResponse>* server_unary_streamer) = 0; }; template - class WithStreamedUnaryMethod_GetOrExtendReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetOrExtendReservations() { - ::grpc::Service::MarkMethodStreamed(11, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrExtendReservationsRequest, ::datacatalog::GetOrExtendReservationsResponse>(std::bind(&WithStreamedUnaryMethod_GetOrExtendReservations::StreamedGetOrExtendReservations, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetOrExtendReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetOrExtendReservations(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationsRequest* request, ::datacatalog::GetOrExtendReservationsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetOrExtendReservations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetOrExtendReservationsRequest,::datacatalog::GetOrExtendReservationsResponse>* server_unary_streamer) = 0; - }; - template class WithStreamedUnaryMethod_ReleaseReservation : public BaseClass { private: void BaseClassMustBeDerivedFromService(const Service *service) {} public: WithStreamedUnaryMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodStreamed(12, + ::grpc::Service::MarkMethodStreamed(10, new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>(std::bind(&WithStreamedUnaryMethod_ReleaseReservation::StreamedReleaseReservation, this, std::placeholders::_1, std::placeholders::_2))); } ~WithStreamedUnaryMethod_ReleaseReservation() override { @@ -2436,29 +1928,9 @@ class DataCatalog final { // replace default version of method with streamed unary virtual ::grpc::Status StreamedReleaseReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ReleaseReservationRequest,::datacatalog::ReleaseReservationResponse>* server_unary_streamer) = 0; }; - template - class WithStreamedUnaryMethod_ReleaseReservations : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ReleaseReservations() { - ::grpc::Service::MarkMethodStreamed(13, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ReleaseReservationsRequest, ::datacatalog::ReleaseReservationResponse>(std::bind(&WithStreamedUnaryMethod_ReleaseReservations::StreamedReleaseReservations, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ReleaseReservations() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ReleaseReservations(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationsRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedReleaseReservations(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ReleaseReservationsRequest,::datacatalog::ReleaseReservationResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > > > > > StreamedUnaryService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > > StreamedUnaryService; typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > > > > > StreamedService; + typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > > StreamedService; }; } // namespace datacatalog diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc index eae7501337..7fd95ef25c 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc @@ -26,15 +26,12 @@ extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::g 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_DeleteArtifactRequest_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_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ReservationID_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<2> scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Reservation_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; @@ -115,10 +112,6 @@ class DeleteArtifactRequestDefaultTypeInternal { ::google::protobuf::internal::ArenaStringPtr artifact_id_; ::google::protobuf::internal::ArenaStringPtr tag_name_; } _DeleteArtifactRequest_default_instance_; -class DeleteArtifactsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DeleteArtifactsRequest_default_instance_; class DeleteArtifactResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -131,10 +124,6 @@ class GetOrExtendReservationRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetOrExtendReservationRequest_default_instance_; -class GetOrExtendReservationsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetOrExtendReservationsRequest_default_instance_; class ReservationDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -143,18 +132,10 @@ class GetOrExtendReservationResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _GetOrExtendReservationResponse_default_instance_; -class GetOrExtendReservationsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetOrExtendReservationsResponse_default_instance_; class ReleaseReservationRequestDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; } _ReleaseReservationRequest_default_instance_; -class ReleaseReservationsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReleaseReservationsRequest_default_instance_; class ReleaseReservationResponseDefaultTypeInternal { public: ::google::protobuf::internal::ExplicitlyConstructed _instance; @@ -492,21 +473,6 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_DeleteArtifactRequest_flyteidl {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeleteArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsDeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_DeleteArtifactsRequest_default_instance_; - new (ptr) ::datacatalog::DeleteArtifactsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::DeleteArtifactsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DeleteArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - static void InitDefaultsDeleteArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -552,21 +518,6 @@ ::google::protobuf::internal::SCCInfo<2> scc_info_GetOrExtendReservationRequest_ &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; -static void InitDefaultsGetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetOrExtendReservationsRequest_default_instance_; - new (ptr) ::datacatalog::GetOrExtendReservationsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetOrExtendReservationsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - static void InitDefaultsReservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -600,21 +551,6 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_GetOrExtendReservationResponse {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsGetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetOrExtendReservationsResponse_default_instance_; - new (ptr) ::datacatalog::GetOrExtendReservationsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetOrExtendReservationsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - static void InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -630,21 +566,6 @@ ::google::protobuf::internal::SCCInfo<1> scc_info_ReleaseReservationRequest_flyt {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; -static void InitDefaultsReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ReleaseReservationsRequest_default_instance_; - new (ptr) ::datacatalog::ReleaseReservationsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ReleaseReservationsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - static void InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; @@ -917,16 +838,12 @@ void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_DeleteArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_DeleteArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationResponse_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); @@ -946,7 +863,7 @@ void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { ::google::protobuf::internal::InitSCC(&scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); } -::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[44]; +::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[40]; 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; @@ -1067,12 +984,6 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalo offsetof(::datacatalog::DeleteArtifactRequestDefaultTypeInternal, tag_name_), PROTOBUF_FIELD_OFFSET(::datacatalog::DeleteArtifactRequest, query_handle_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DeleteArtifactsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DeleteArtifactsRequest, artifacts_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::DeleteArtifactResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1093,12 +1004,6 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalo PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, owner_id_), PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, heartbeat_interval_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationsRequest, reservations_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1115,12 +1020,6 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalo ~0u, // no _weak_field_map_ PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationResponse, reservation_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationsResponse, reservations_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1128,12 +1027,6 @@ const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalo PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, reservation_id_), PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, owner_id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationsRequest, reservations_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationResponse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -1290,33 +1183,29 @@ static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SE { 89, -1, sizeof(::datacatalog::UpdateArtifactRequest)}, { 100, -1, sizeof(::datacatalog::UpdateArtifactResponse)}, { 106, -1, sizeof(::datacatalog::DeleteArtifactRequest)}, - { 115, -1, sizeof(::datacatalog::DeleteArtifactsRequest)}, - { 121, -1, sizeof(::datacatalog::DeleteArtifactResponse)}, - { 126, -1, sizeof(::datacatalog::ReservationID)}, - { 133, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, - { 141, -1, sizeof(::datacatalog::GetOrExtendReservationsRequest)}, - { 147, -1, sizeof(::datacatalog::Reservation)}, - { 157, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, - { 163, -1, sizeof(::datacatalog::GetOrExtendReservationsResponse)}, - { 169, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, - { 176, -1, sizeof(::datacatalog::ReleaseReservationsRequest)}, - { 182, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, - { 187, -1, sizeof(::datacatalog::Dataset)}, - { 195, -1, sizeof(::datacatalog::Partition)}, - { 202, -1, sizeof(::datacatalog::DatasetID)}, - { 213, -1, sizeof(::datacatalog::Artifact)}, - { 225, -1, sizeof(::datacatalog::ArtifactData)}, - { 232, -1, sizeof(::datacatalog::Tag)}, - { 240, 247, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, - { 249, -1, sizeof(::datacatalog::Metadata)}, - { 255, -1, sizeof(::datacatalog::FilterExpression)}, - { 261, -1, sizeof(::datacatalog::SinglePropertyFilter)}, - { 272, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, - { 279, -1, sizeof(::datacatalog::TagPropertyFilter)}, - { 286, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, - { 293, -1, sizeof(::datacatalog::KeyValuePair)}, - { 300, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, - { 311, -1, sizeof(::datacatalog::PaginationOptions)}, + { 115, -1, sizeof(::datacatalog::DeleteArtifactResponse)}, + { 120, -1, sizeof(::datacatalog::ReservationID)}, + { 127, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, + { 135, -1, sizeof(::datacatalog::Reservation)}, + { 145, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, + { 151, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, + { 158, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, + { 163, -1, sizeof(::datacatalog::Dataset)}, + { 171, -1, sizeof(::datacatalog::Partition)}, + { 178, -1, sizeof(::datacatalog::DatasetID)}, + { 189, -1, sizeof(::datacatalog::Artifact)}, + { 201, -1, sizeof(::datacatalog::ArtifactData)}, + { 208, -1, sizeof(::datacatalog::Tag)}, + { 216, 223, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, + { 225, -1, sizeof(::datacatalog::Metadata)}, + { 231, -1, sizeof(::datacatalog::FilterExpression)}, + { 237, -1, sizeof(::datacatalog::SinglePropertyFilter)}, + { 248, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, + { 255, -1, sizeof(::datacatalog::TagPropertyFilter)}, + { 262, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, + { 269, -1, sizeof(::datacatalog::KeyValuePair)}, + { 276, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, + { 287, -1, sizeof(::datacatalog::PaginationOptions)}, }; static ::google::protobuf::Message const * const file_default_instances[] = { @@ -1337,16 +1226,12 @@ static ::google::protobuf::Message const * const file_default_instances[] = { reinterpret_cast(&::datacatalog::_UpdateArtifactRequest_default_instance_), reinterpret_cast(&::datacatalog::_UpdateArtifactResponse_default_instance_), reinterpret_cast(&::datacatalog::_DeleteArtifactRequest_default_instance_), - reinterpret_cast(&::datacatalog::_DeleteArtifactsRequest_default_instance_), reinterpret_cast(&::datacatalog::_DeleteArtifactResponse_default_instance_), reinterpret_cast(&::datacatalog::_ReservationID_default_instance_), reinterpret_cast(&::datacatalog::_GetOrExtendReservationRequest_default_instance_), - reinterpret_cast(&::datacatalog::_GetOrExtendReservationsRequest_default_instance_), reinterpret_cast(&::datacatalog::_Reservation_default_instance_), reinterpret_cast(&::datacatalog::_GetOrExtendReservationResponse_default_instance_), - reinterpret_cast(&::datacatalog::_GetOrExtendReservationsResponse_default_instance_), reinterpret_cast(&::datacatalog::_ReleaseReservationRequest_default_instance_), - reinterpret_cast(&::datacatalog::_ReleaseReservationsRequest_default_instance_), reinterpret_cast(&::datacatalog::_ReleaseReservationResponse_default_instance_), reinterpret_cast(&::datacatalog::_Dataset_default_instance_), reinterpret_cast(&::datacatalog::_Partition_default_instance_), @@ -1369,7 +1254,7 @@ static ::google::protobuf::Message const * const file_default_instances[] = { ::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, 44, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, + file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 40, 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[] = @@ -1411,120 +1296,103 @@ const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eprot "rtifact_id\030\001 \001(\t\"{\n\025DeleteArtifactReques" "t\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog.Dataset" "ID\022\025\n\013artifact_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 " - "\001(\tH\000B\016\n\014query_handle\"O\n\026DeleteArtifacts" - "Request\0225\n\tartifacts\030\001 \003(\0132\".datacatalog" - ".DeleteArtifactRequest\"\030\n\026DeleteArtifact" - "Response\"M\n\rReservationID\022*\n\ndataset_id\030" - "\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag_nam" - "e\030\002 \001(\t\"\234\001\n\035GetOrExtendReservationReques" - "t\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog." - "ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heart" - "beat_interval\030\003 \001(\0132\031.google.protobuf.Du" - "ration\"b\n\036GetOrExtendReservationsRequest" - "\022@\n\014reservations\030\001 \003(\0132*.datacatalog.Get" - "OrExtendReservationRequest\"\343\001\n\013Reservati" - "on\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog" - ".ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022hear" - "tbeat_interval\030\003 \001(\0132\031.google.protobuf.D" - "uration\022.\n\nexpires_at\030\004 \001(\0132\032.google.pro" - "tobuf.Timestamp\022\'\n\010metadata\030\006 \001(\0132\025.data" - "catalog.Metadata\"O\n\036GetOrExtendReservati" - "onResponse\022-\n\013reservation\030\001 \001(\0132\030.dataca" - "talog.Reservation\"Q\n\037GetOrExtendReservat" - "ionsResponse\022.\n\014reservations\030\001 \003(\0132\030.dat" - "acatalog.Reservation\"a\n\031ReleaseReservati" - "onRequest\0222\n\016reservation_id\030\001 \001(\0132\032.data" - "catalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\"" - "Z\n\032ReleaseReservationsRequest\022<\n\014reserva" - "tions\030\001 \003(\0132&.datacatalog.ReleaseReserva" - "tionRequest\"\034\n\032ReleaseReservationRespons" - "e\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.D" - "atasetID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog" - ".Metadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPart" - "ition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"f\n\tDat" - "asetID\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\022\013\n\003org\030\006 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001" - "(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Datase" - "tID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Artifact" - "Data\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Met" - "adata\022*\n\npartitions\030\005 \003(\0132\026.datacatalog." - "Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Ta" - "g\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf." - "Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022" - "%\n\005value\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\007dataset\030\003 \001(\0132\026.datacatalog.DatasetI" - "D\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacat" - "alog.Metadata.KeyMapEntry\032-\n\013KeyMapEntry" - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filt" - "erExpression\0222\n\007filters\030\001 \003(\0132!.datacata" - "log.SinglePropertyFilter\"\211\003\n\024SinglePrope" - "rtyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacata" - "log.TagPropertyFilterH\000\022@\n\020partition_fil" - "ter\030\002 \001(\0132$.datacatalog.PartitionPropert" - "yFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.dat" - "acatalog.ArtifactPropertyFilterH\000\022<\n\016dat" - "aset_filter\030\004 \001(\0132\".datacatalog.DatasetP" - "ropertyFilterH\000\022F\n\010operator\030\n \001(\01624.data" - "catalog.SinglePropertyFilter.ComparisonO" - "perator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020" - "\000B\021\n\017property_filter\";\n\026ArtifactProperty" - "Filter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010propert" - "y\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\t" - "H\000B\n\n\010property\"S\n\027PartitionPropertyFilte" - "r\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValu" - "ePairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003k" - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"z\n\025DatasetProper" - "tyFilter\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\000" - "\022\r\n\003org\030\005 \001(\tH\000B\n\n\010property\"\361\001\n\021Paginati" - "onOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\022" - "7\n\007sortKey\030\003 \001(\0162&.datacatalog.Paginatio" - "nOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162(.da" - "tacatalog.PaginationOptions.SortOrder\"*\n" - "\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDING\020" - "\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\235\n\n\013Data" - "Catalog\022V\n\rCreateDataset\022!.datacatalog.C" - "reateDatasetRequest\032\".datacatalog.Create" - "DatasetResponse\022M\n\nGetDataset\022\036.datacata" - "log.GetDatasetRequest\032\037.datacatalog.GetD" - "atasetResponse\022Y\n\016CreateArtifact\022\".datac" - "atalog.CreateArtifactRequest\032#.datacatal" - "og.CreateArtifactResponse\022P\n\013GetArtifact" - "\022\037.datacatalog.GetArtifactRequest\032 .data" - "catalog.GetArtifactResponse\022A\n\006AddTag\022\032." - "datacatalog.AddTagRequest\032\033.datacatalog." - "AddTagResponse\022V\n\rListArtifacts\022!.dataca" - "talog.ListArtifactsRequest\032\".datacatalog" - ".ListArtifactsResponse\022S\n\014ListDatasets\022 " - ".datacatalog.ListDatasetsRequest\032!.datac" - "atalog.ListDatasetsResponse\022Y\n\016UpdateArt" - "ifact\022\".datacatalog.UpdateArtifactReques" - "t\032#.datacatalog.UpdateArtifactResponse\022Y" - "\n\016DeleteArtifact\022\".datacatalog.DeleteArt" - "ifactRequest\032#.datacatalog.DeleteArtifac" - "tResponse\022[\n\017DeleteArtifacts\022#.datacatal" - "og.DeleteArtifactsRequest\032#.datacatalog." - "DeleteArtifactResponse\022q\n\026GetOrExtendRes" - "ervation\022*.datacatalog.GetOrExtendReserv" - "ationRequest\032+.datacatalog.GetOrExtendRe" - "servationResponse\022t\n\027GetOrExtendReservat" - "ions\022+.datacatalog.GetOrExtendReservatio" - "nsRequest\032,.datacatalog.GetOrExtendReser" - "vationsResponse\022e\n\022ReleaseReservation\022&." - "datacatalog.ReleaseReservationRequest\032\'." - "datacatalog.ReleaseReservationResponse\022g" - "\n\023ReleaseReservations\022\'.datacatalog.Rele" - "aseReservationsRequest\032\'.datacatalog.Rel" - "easeReservationResponseBCZAgithub.com/fl" - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" - "/datacatalogb\006proto3" + "\001(\tH\000B\016\n\014query_handle\"\030\n\026DeleteArtifactR" + "esponse\"M\n\rReservationID\022*\n\ndataset_id\030\001" + " \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag_name" + "\030\002 \001(\t\"\234\001\n\035GetOrExtendReservationRequest" + "\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog.R" + "eservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartb" + "eat_interval\030\003 \001(\0132\031.google.protobuf.Dur" + "ation\"\343\001\n\013Reservation\0222\n\016reservation_id\030" + "\001 \001(\0132\032.datacatalog.ReservationID\022\020\n\010own" + "er_id\030\002 \001(\t\0225\n\022heartbeat_interval\030\003 \001(\0132" + "\031.google.protobuf.Duration\022.\n\nexpires_at" + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022\'\n\010me" + "tadata\030\006 \001(\0132\025.datacatalog.Metadata\"O\n\036G" + "etOrExtendReservationResponse\022-\n\013reserva" + "tion\030\001 \001(\0132\030.datacatalog.Reservation\"a\n\031" + "ReleaseReservationRequest\0222\n\016reservation" + "_id\030\001 \001(\0132\032.datacatalog.ReservationID\022\020\n" + "\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReservationRes" + "ponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatal" + "og.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.datacat" + "alog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\t" + "Partition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"f\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\004UU" + "ID\030\005 \001(\t\022\013\n\003org\030\006 \001(\t\"\215\002\n\010Artifact\022\n\n\002id" + "\030\001 \001(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Da" + "tasetID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Arti" + "factData\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog" + ".Metadata\022*\n\npartitions\030\005 \003(\0132\026.datacata" + "log.Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalo" + "g.Tag\022.\n\ncreated_at\030\007 \001(\0132\032.google.proto" + "buf.Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 " + "\001(\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Liter" + "al\"Q\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002" + " \001(\t\022\'\n\007dataset\030\003 \001(\0132\026.datacatalog.Data" + "setID\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.dat" + "acatalog.Metadata.KeyMapEntry\032-\n\013KeyMapE" + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020" + "FilterExpression\0222\n\007filters\030\001 \003(\0132!.data" + "catalog.SinglePropertyFilter\"\211\003\n\024SingleP" + "ropertyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.data" + "catalog.TagPropertyFilterH\000\022@\n\020partition" + "_filter\030\002 \001(\0132$.datacatalog.PartitionPro" + "pertyFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#" + ".datacatalog.ArtifactPropertyFilterH\000\022<\n" + "\016dataset_filter\030\004 \001(\0132\".datacatalog.Data" + "setPropertyFilterH\000\022F\n\010operator\030\n \001(\01624." + "datacatalog.SinglePropertyFilter.Compari" + "sonOperator\" \n\022ComparisonOperator\022\n\n\006EQU" + "ALS\020\000B\021\n\017property_filter\";\n\026ArtifactProp" + "ertyFilter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010pro" + "perty\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001" + " \001(\tH\000B\n\n\010property\"S\n\027PartitionPropertyF" + "ilter\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.Key" + "ValuePairH\000B\n\n\010property\"*\n\014KeyValuePair\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"z\n\025DatasetPr" + "opertyFilter\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\000\022\r\n\003org\030\005 \001(\tH\000B\n\n\010property\"\361\001\n\021Pagi" + "nationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 " + "\001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.Pagin" + "ationOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162" + "(.datacatalog.PaginationOptions.SortOrde" + "r\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCEND" + "ING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\341\007\n\013" + "DataCatalog\022V\n\rCreateDataset\022!.datacatal" + "og.CreateDatasetRequest\032\".datacatalog.Cr" + "eateDatasetResponse\022M\n\nGetDataset\022\036.data" + "catalog.GetDatasetRequest\032\037.datacatalog." + "GetDatasetResponse\022Y\n\016CreateArtifact\022\".d" + "atacatalog.CreateArtifactRequest\032#.datac" + "atalog.CreateArtifactResponse\022P\n\013GetArti" + "fact\022\037.datacatalog.GetArtifactRequest\032 ." + "datacatalog.GetArtifactResponse\022A\n\006AddTa" + "g\022\032.datacatalog.AddTagRequest\032\033.datacata" + "log.AddTagResponse\022V\n\rListArtifacts\022!.da" + "tacatalog.ListArtifactsRequest\032\".datacat" + "alog.ListArtifactsResponse\022S\n\014ListDatase" + "ts\022 .datacatalog.ListDatasetsRequest\032!.d" + "atacatalog.ListDatasetsResponse\022Y\n\016Updat" + "eArtifact\022\".datacatalog.UpdateArtifactRe" + "quest\032#.datacatalog.UpdateArtifactRespon" + "se\022Y\n\016DeleteArtifact\022\".datacatalog.Delet" + "eArtifactRequest\032#.datacatalog.DeleteArt" + "ifactResponse\022q\n\026GetOrExtendReservation\022" + "*.datacatalog.GetOrExtendReservationRequ" + "est\032+.datacatalog.GetOrExtendReservation" + "Response\022e\n\022ReleaseReservation\022&.datacat" + "alog.ReleaseReservationRequest\032\'.datacat" + "alog.ReleaseReservationResponseBCZAgithu" + "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" + "flyteidl/datacatalogb\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, 5860, + "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 5188, }; void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { @@ -7285,65 +7153,60 @@ ::google::protobuf::Metadata DeleteArtifactRequest::GetMetadata() const { // =================================================================== -void DeleteArtifactsRequest::InitAsDefaultInstance() { +void DeleteArtifactResponse::InitAsDefaultInstance() { } -class DeleteArtifactsRequest::HasBitSetters { +class DeleteArtifactResponse::HasBitSetters { public: }; #if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteArtifactsRequest::kArtifactsFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -DeleteArtifactsRequest::DeleteArtifactsRequest() +DeleteArtifactResponse::DeleteArtifactResponse() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(constructor:datacatalog.DeleteArtifactResponse) } -DeleteArtifactsRequest::DeleteArtifactsRequest(const DeleteArtifactsRequest& from) +DeleteArtifactResponse::DeleteArtifactResponse(const DeleteArtifactResponse& from) : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifacts_(from.artifacts_) { + _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(copy_constructor:datacatalog.DeleteArtifactResponse) } -void DeleteArtifactsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +void DeleteArtifactResponse::SharedCtor() { } -DeleteArtifactsRequest::~DeleteArtifactsRequest() { - // @@protoc_insertion_point(destructor:datacatalog.DeleteArtifactsRequest) +DeleteArtifactResponse::~DeleteArtifactResponse() { + // @@protoc_insertion_point(destructor:datacatalog.DeleteArtifactResponse) SharedDtor(); } -void DeleteArtifactsRequest::SharedDtor() { +void DeleteArtifactResponse::SharedDtor() { } -void DeleteArtifactsRequest::SetCachedSize(int size) const { +void DeleteArtifactResponse::SetCachedSize(int size) const { _cached_size_.Set(size); } -const DeleteArtifactsRequest& DeleteArtifactsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +const DeleteArtifactResponse& DeleteArtifactResponse::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_DeleteArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void DeleteArtifactsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.DeleteArtifactsRequest) +void DeleteArtifactResponse::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.DeleteArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - artifacts_.Clear(); _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteArtifactsRequest::_InternalParse(const char* begin, const char* end, void* object, +const char* DeleteArtifactResponse::_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; @@ -7353,24 +7216,7 @@ const char* DeleteArtifactsRequest::_InternalParse(const char* begin, const char ptr = ::google::protobuf::io::Parse32(ptr, &tag); GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); switch (tag >> 3) { - // repeated .datacatalog.DeleteArtifactRequest 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::DeleteArtifactRequest::_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; - } default: { - handle_unusual: if ((tag & 7) == 4 || tag == 0) { ctx->EndGroup(tag); return ptr; @@ -7384,99 +7230,63 @@ const char* DeleteArtifactsRequest::_InternalParse(const char* begin, const char } // 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 DeleteArtifactsRequest::MergePartialFromCodedStream( +bool DeleteArtifactResponse::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.DeleteArtifactsRequest) + // @@protoc_insertion_point(parse_start:datacatalog.DeleteArtifactResponse) 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.DeleteArtifactRequest 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; - } - - default: { - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - break; - } + 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.DeleteArtifactsRequest) + // @@protoc_insertion_point(parse_success:datacatalog.DeleteArtifactResponse) return true; failure: - // @@protoc_insertion_point(parse_failure:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(parse_failure:datacatalog.DeleteArtifactResponse) return false; #undef DO_ } #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -void DeleteArtifactsRequest::SerializeWithCachedSizes( +void DeleteArtifactResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(serialize_start:datacatalog.DeleteArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .datacatalog.DeleteArtifactRequest 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); - } - if (_internal_metadata_.have_unknown_fields()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( _internal_metadata_.unknown_fields(), output); } - // @@protoc_insertion_point(serialize_end:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(serialize_end:datacatalog.DeleteArtifactResponse) } -::google::protobuf::uint8* DeleteArtifactsRequest::InternalSerializeWithCachedSizesToArray( +::google::protobuf::uint8* DeleteArtifactResponse::InternalSerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DeleteArtifactResponse) ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // repeated .datacatalog.DeleteArtifactRequest 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); - } - 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.DeleteArtifactsRequest) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.DeleteArtifactResponse) return target; } -size_t DeleteArtifactsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.DeleteArtifactsRequest) +size_t DeleteArtifactResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.DeleteArtifactResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -7488,76 +7298,63 @@ size_t DeleteArtifactsRequest::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .datacatalog.DeleteArtifactRequest 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))); - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); SetCachedSize(cached_size); return total_size; } -void DeleteArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DeleteArtifactsRequest) +void DeleteArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DeleteArtifactResponse) GOOGLE_DCHECK_NE(&from, this); - const DeleteArtifactsRequest* source = - ::google::protobuf::DynamicCastToGenerated( + const DeleteArtifactResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DeleteArtifactResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DeleteArtifactsRequest) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DeleteArtifactResponse) MergeFrom(*source); } } -void DeleteArtifactsRequest::MergeFrom(const DeleteArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DeleteArtifactsRequest) +void DeleteArtifactResponse::MergeFrom(const DeleteArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DeleteArtifactResponse) 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_); } -void DeleteArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DeleteArtifactsRequest) +void DeleteArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DeleteArtifactResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void DeleteArtifactsRequest::CopyFrom(const DeleteArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DeleteArtifactsRequest) +void DeleteArtifactResponse::CopyFrom(const DeleteArtifactResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DeleteArtifactResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool DeleteArtifactsRequest::IsInitialized() const { +bool DeleteArtifactResponse::IsInitialized() const { return true; } -void DeleteArtifactsRequest::Swap(DeleteArtifactsRequest* other) { +void DeleteArtifactResponse::Swap(DeleteArtifactResponse* other) { if (other == this) return; InternalSwap(other); } -void DeleteArtifactsRequest::InternalSwap(DeleteArtifactsRequest* other) { +void DeleteArtifactResponse::InternalSwap(DeleteArtifactResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); } -::google::protobuf::Metadata DeleteArtifactsRequest::GetMetadata() const { +::google::protobuf::Metadata DeleteArtifactResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -7565,298 +7362,89 @@ ::google::protobuf::Metadata DeleteArtifactsRequest::GetMetadata() const { // =================================================================== -void DeleteArtifactResponse::InitAsDefaultInstance() { +void ReservationID::InitAsDefaultInstance() { + ::datacatalog::_ReservationID_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( + ::datacatalog::DatasetID::internal_default_instance()); } -class DeleteArtifactResponse::HasBitSetters { +class ReservationID::HasBitSetters { public: + static const ::datacatalog::DatasetID& dataset_id(const ReservationID* msg); }; +const ::datacatalog::DatasetID& +ReservationID::HasBitSetters::dataset_id(const ReservationID* msg) { + return *msg->dataset_id_; +} #if !defined(_MSC_VER) || _MSC_VER >= 1900 +const int ReservationID::kDatasetIdFieldNumber; +const int ReservationID::kTagNameFieldNumber; #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -DeleteArtifactResponse::DeleteArtifactResponse() +ReservationID::ReservationID() : ::google::protobuf::Message(), _internal_metadata_(nullptr) { SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.DeleteArtifactResponse) + // @@protoc_insertion_point(constructor:datacatalog.ReservationID) } -DeleteArtifactResponse::DeleteArtifactResponse(const DeleteArtifactResponse& from) +ReservationID::ReservationID(const ReservationID& from) : ::google::protobuf::Message(), _internal_metadata_(nullptr) { _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.DeleteArtifactResponse) + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (from.tag_name().size() > 0) { + tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); + } + if (from.has_dataset_id()) { + dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); + } else { + dataset_id_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:datacatalog.ReservationID) } -void DeleteArtifactResponse::SharedCtor() { +void ReservationID::SharedCtor() { + ::google::protobuf::internal::InitSCC( + &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); + tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + dataset_id_ = nullptr; } -DeleteArtifactResponse::~DeleteArtifactResponse() { - // @@protoc_insertion_point(destructor:datacatalog.DeleteArtifactResponse) +ReservationID::~ReservationID() { + // @@protoc_insertion_point(destructor:datacatalog.ReservationID) SharedDtor(); } -void DeleteArtifactResponse::SharedDtor() { +void ReservationID::SharedDtor() { + tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (this != internal_default_instance()) delete dataset_id_; } -void DeleteArtifactResponse::SetCachedSize(int size) const { +void ReservationID::SetCachedSize(int size) const { _cached_size_.Set(size); } -const DeleteArtifactResponse& DeleteArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); +const ReservationID& ReservationID::default_instance() { + ::google::protobuf::internal::InitSCC(&::scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); return *internal_default_instance(); } -void DeleteArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.DeleteArtifactResponse) +void ReservationID::Clear() { +// @@protoc_insertion_point(message_clear_start:datacatalog.ReservationID) ::google::protobuf::uint32 cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { + delete dataset_id_; + } + dataset_id_ = nullptr; _internal_metadata_.Clear(); } #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteArtifactResponse::_InternalParse(const char* begin, const char* end, void* object, +const char* ReservationID::_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 DeleteArtifactResponse::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.DeleteArtifactResponse) - 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.DeleteArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.DeleteArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.DeleteArtifactResponse) - ::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.DeleteArtifactResponse) -} - -::google::protobuf::uint8* DeleteArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DeleteArtifactResponse) - ::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.DeleteArtifactResponse) - return target; -} - -size_t DeleteArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.DeleteArtifactResponse) - 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 DeleteArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DeleteArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const DeleteArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DeleteArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DeleteArtifactResponse) - MergeFrom(*source); - } -} - -void DeleteArtifactResponse::MergeFrom(const DeleteArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DeleteArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void DeleteArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DeleteArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteArtifactResponse::CopyFrom(const DeleteArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DeleteArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteArtifactResponse::IsInitialized() const { - return true; -} - -void DeleteArtifactResponse::Swap(DeleteArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteArtifactResponse::InternalSwap(DeleteArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata DeleteArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ReservationID::InitAsDefaultInstance() { - ::datacatalog::_ReservationID_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); -} -class ReservationID::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset_id(const ReservationID* msg); -}; - -const ::datacatalog::DatasetID& -ReservationID::HasBitSetters::dataset_id(const ReservationID* msg) { - return *msg->dataset_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReservationID::kDatasetIdFieldNumber; -const int ReservationID::kTagNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReservationID::ReservationID() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ReservationID) -} -ReservationID::ReservationID(const ReservationID& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.tag_name().size() > 0) { - tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); - } - if (from.has_dataset_id()) { - dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); - } else { - dataset_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ReservationID) -} - -void ReservationID::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dataset_id_ = nullptr; -} - -ReservationID::~ReservationID() { - // @@protoc_insertion_point(destructor:datacatalog.ReservationID) - SharedDtor(); -} - -void ReservationID::SharedDtor() { - tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete dataset_id_; -} - -void ReservationID::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReservationID& ReservationID::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ReservationID::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ReservationID) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { - delete dataset_id_; - } - dataset_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReservationID::_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; @@ -8531,324 +8119,44 @@ void GetOrExtendReservationRequest::MergeFrom(const GetOrExtendReservationReques } if (from.has_reservation_id()) { mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); - } - if (from.has_heartbeat_interval()) { - mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); - } -} - -void GetOrExtendReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetOrExtendReservationRequest::CopyFrom(const GetOrExtendReservationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetOrExtendReservationRequest::IsInitialized() const { - return true; -} - -void GetOrExtendReservationRequest::Swap(GetOrExtendReservationRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetOrExtendReservationRequest::InternalSwap(GetOrExtendReservationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(reservation_id_, other->reservation_id_); - swap(heartbeat_interval_, other->heartbeat_interval_); -} - -::google::protobuf::Metadata GetOrExtendReservationRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetOrExtendReservationsRequest::InitAsDefaultInstance() { -} -class GetOrExtendReservationsRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetOrExtendReservationsRequest::kReservationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetOrExtendReservationsRequest::GetOrExtendReservationsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationsRequest) -} -GetOrExtendReservationsRequest::GetOrExtendReservationsRequest(const GetOrExtendReservationsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - reservations_(from.reservations_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationsRequest) -} - -void GetOrExtendReservationsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -GetOrExtendReservationsRequest::~GetOrExtendReservationsRequest() { - // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationsRequest) - SharedDtor(); -} - -void GetOrExtendReservationsRequest::SharedDtor() { -} - -void GetOrExtendReservationsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetOrExtendReservationsRequest& GetOrExtendReservationsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetOrExtendReservationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reservations_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetOrExtendReservationsRequest::_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.GetOrExtendReservationRequest reservations = 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::GetOrExtendReservationRequest::_InternalParse; - object = msg->add_reservations(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetOrExtendReservationsRequest::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.GetOrExtendReservationsRequest) - 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.GetOrExtendReservationRequest reservations = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_reservations())); - } 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.GetOrExtendReservationsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetOrExtendReservationsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->reservations(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:datacatalog.GetOrExtendReservationsRequest) -} - -::google::protobuf::uint8* GetOrExtendReservationsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->reservations(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:datacatalog.GetOrExtendReservationsRequest) - return target; -} - -size_t GetOrExtendReservationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationsRequest) - 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.GetOrExtendReservationRequest reservations = 1; - { - unsigned int count = static_cast(this->reservations_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->reservations(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetOrExtendReservationsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationsRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetOrExtendReservationsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationsRequest) - MergeFrom(*source); - } -} - -void GetOrExtendReservationsRequest::MergeFrom(const GetOrExtendReservationsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - reservations_.MergeFrom(from.reservations_); + } + if (from.has_heartbeat_interval()) { + mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); + } } -void GetOrExtendReservationsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationsRequest) +void GetOrExtendReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -void GetOrExtendReservationsRequest::CopyFrom(const GetOrExtendReservationsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationsRequest) +void GetOrExtendReservationRequest::CopyFrom(const GetOrExtendReservationRequest& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationRequest) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetOrExtendReservationsRequest::IsInitialized() const { +bool GetOrExtendReservationRequest::IsInitialized() const { return true; } -void GetOrExtendReservationsRequest::Swap(GetOrExtendReservationsRequest* other) { +void GetOrExtendReservationRequest::Swap(GetOrExtendReservationRequest* other) { if (other == this) return; InternalSwap(other); } -void GetOrExtendReservationsRequest::InternalSwap(GetOrExtendReservationsRequest* other) { +void GetOrExtendReservationRequest::InternalSwap(GetOrExtendReservationRequest* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&reservations_)->InternalSwap(CastToBase(&other->reservations_)); + owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), + GetArenaNoVirtual()); + swap(reservation_id_, other->reservation_id_); + swap(heartbeat_interval_, other->heartbeat_interval_); } -::google::protobuf::Metadata GetOrExtendReservationsRequest::GetMetadata() const { +::google::protobuf::Metadata GetOrExtendReservationRequest::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -9616,301 +8924,23 @@ ::google::protobuf::uint8* GetOrExtendReservationResponse::InternalSerializeWith ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - // .datacatalog.Reservation reservation = 1; - if (this->has_reservation()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reservation(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.GetOrExtendReservationResponse) - return target; -} - -size_t GetOrExtendReservationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationResponse) - 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.Reservation reservation = 1; - if (this->has_reservation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reservation_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetOrExtendReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetOrExtendReservationResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationResponse) - MergeFrom(*source); - } -} - -void GetOrExtendReservationResponse::MergeFrom(const GetOrExtendReservationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationResponse) - 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_reservation()) { - mutable_reservation()->::datacatalog::Reservation::MergeFrom(from.reservation()); - } -} - -void GetOrExtendReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetOrExtendReservationResponse::CopyFrom(const GetOrExtendReservationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetOrExtendReservationResponse::IsInitialized() const { - return true; -} - -void GetOrExtendReservationResponse::Swap(GetOrExtendReservationResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetOrExtendReservationResponse::InternalSwap(GetOrExtendReservationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(reservation_, other->reservation_); -} - -::google::protobuf::Metadata GetOrExtendReservationResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetOrExtendReservationsResponse::InitAsDefaultInstance() { -} -class GetOrExtendReservationsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetOrExtendReservationsResponse::kReservationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetOrExtendReservationsResponse::GetOrExtendReservationsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationsResponse) -} -GetOrExtendReservationsResponse::GetOrExtendReservationsResponse(const GetOrExtendReservationsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - reservations_(from.reservations_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationsResponse) -} - -void GetOrExtendReservationsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -GetOrExtendReservationsResponse::~GetOrExtendReservationsResponse() { - // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationsResponse) - SharedDtor(); -} - -void GetOrExtendReservationsResponse::SharedDtor() { -} - -void GetOrExtendReservationsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetOrExtendReservationsResponse& GetOrExtendReservationsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetOrExtendReservationsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reservations_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetOrExtendReservationsResponse::_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.Reservation reservations = 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::Reservation::_InternalParse; - object = msg->add_reservations(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetOrExtendReservationsResponse::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.GetOrExtendReservationsResponse) - 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.Reservation reservations = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_reservations())); - } 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.GetOrExtendReservationsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetOrExtendReservationsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Reservation reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->reservations(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:datacatalog.GetOrExtendReservationsResponse) -} - -::google::protobuf::uint8* GetOrExtendReservationsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Reservation reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { + // .datacatalog.Reservation reservation = 1; + if (this->has_reservation()) { target = ::google::protobuf::internal::WireFormatLite:: InternalWriteMessageToArray( - 1, this->reservations(static_cast(i)), target); + 1, HasBitSetters::reservation(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.GetOrExtendReservationsResponse) + // @@protoc_insertion_point(serialize_to_array_end:datacatalog.GetOrExtendReservationResponse) return target; } -size_t GetOrExtendReservationsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationsResponse) +size_t GetOrExtendReservationResponse::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationResponse) size_t total_size = 0; if (_internal_metadata_.have_unknown_fields()) { @@ -9922,15 +8952,11 @@ size_t GetOrExtendReservationsResponse::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .datacatalog.Reservation reservations = 1; - { - unsigned int count = static_cast(this->reservations_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->reservations(static_cast(i))); - } + // .datacatalog.Reservation reservation = 1; + if (this->has_reservation()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reservation_); } int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); @@ -9938,60 +8964,62 @@ size_t GetOrExtendReservationsResponse::ByteSizeLong() const { return total_size; } -void GetOrExtendReservationsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationsResponse) +void GetOrExtendReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationResponse) GOOGLE_DCHECK_NE(&from, this); - const GetOrExtendReservationsResponse* source = - ::google::protobuf::DynamicCastToGenerated( + const GetOrExtendReservationResponse* source = + ::google::protobuf::DynamicCastToGenerated( &from); if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationResponse) ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationsResponse) + // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationResponse) MergeFrom(*source); } } -void GetOrExtendReservationsResponse::MergeFrom(const GetOrExtendReservationsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationsResponse) +void GetOrExtendReservationResponse::MergeFrom(const GetOrExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationResponse) GOOGLE_DCHECK_NE(&from, this); _internal_metadata_.MergeFrom(from._internal_metadata_); ::google::protobuf::uint32 cached_has_bits = 0; (void) cached_has_bits; - reservations_.MergeFrom(from.reservations_); + if (from.has_reservation()) { + mutable_reservation()->::datacatalog::Reservation::MergeFrom(from.reservation()); + } } -void GetOrExtendReservationsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationsResponse) +void GetOrExtendReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { +// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -void GetOrExtendReservationsResponse::CopyFrom(const GetOrExtendReservationsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationsResponse) +void GetOrExtendReservationResponse::CopyFrom(const GetOrExtendReservationResponse& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationResponse) if (&from == this) return; Clear(); MergeFrom(from); } -bool GetOrExtendReservationsResponse::IsInitialized() const { +bool GetOrExtendReservationResponse::IsInitialized() const { return true; } -void GetOrExtendReservationsResponse::Swap(GetOrExtendReservationsResponse* other) { +void GetOrExtendReservationResponse::Swap(GetOrExtendReservationResponse* other) { if (other == this) return; InternalSwap(other); } -void GetOrExtendReservationsResponse::InternalSwap(GetOrExtendReservationsResponse* other) { +void GetOrExtendReservationResponse::InternalSwap(GetOrExtendReservationResponse* other) { using std::swap; _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&reservations_)->InternalSwap(CastToBase(&other->reservations_)); + swap(reservation_, other->reservation_); } -::google::protobuf::Metadata GetOrExtendReservationsResponse::GetMetadata() const { +::google::protobuf::Metadata GetOrExtendReservationResponse::GetMetadata() const { ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; } @@ -10361,286 +9389,6 @@ ::google::protobuf::Metadata ReleaseReservationRequest::GetMetadata() const { } -// =================================================================== - -void ReleaseReservationsRequest::InitAsDefaultInstance() { -} -class ReleaseReservationsRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReleaseReservationsRequest::kReservationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReleaseReservationsRequest::ReleaseReservationsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationsRequest) -} -ReleaseReservationsRequest::ReleaseReservationsRequest(const ReleaseReservationsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - reservations_(from.reservations_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationsRequest) -} - -void ReleaseReservationsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -ReleaseReservationsRequest::~ReleaseReservationsRequest() { - // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationsRequest) - SharedDtor(); -} - -void ReleaseReservationsRequest::SharedDtor() { -} - -void ReleaseReservationsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReleaseReservationsRequest& ReleaseReservationsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ReleaseReservationsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reservations_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReleaseReservationsRequest::_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.ReleaseReservationRequest reservations = 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::ReleaseReservationRequest::_InternalParse; - object = msg->add_reservations(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - default: { - handle_unusual: - if ((tag & 7) == 4 || tag == 0) { - ctx->EndGroup(tag); - return ptr; - } - auto res = UnknownFieldParse(tag, {_InternalParse, msg}, - ptr, end, msg->_internal_metadata_.mutable_unknown_fields(), ctx); - ptr = res.first; - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr != nullptr); - if (res.second) return ptr; - } - } // switch - } // while - return ptr; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReleaseReservationsRequest::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.ReleaseReservationsRequest) - 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.ReleaseReservationRequest reservations = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_reservations())); - } 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.ReleaseReservationsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReleaseReservationsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.ReleaseReservationRequest reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->reservations(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:datacatalog.ReleaseReservationsRequest) -} - -::google::protobuf::uint8* ReleaseReservationsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.ReleaseReservationRequest reservations = 1; - for (unsigned int i = 0, - n = static_cast(this->reservations_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->reservations(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:datacatalog.ReleaseReservationsRequest) - return target; -} - -size_t ReleaseReservationsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationsRequest) - 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.ReleaseReservationRequest reservations = 1; - { - unsigned int count = static_cast(this->reservations_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->reservations(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReleaseReservationsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ReleaseReservationsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReleaseReservationsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReleaseReservationsRequest) - MergeFrom(*source); - } -} - -void ReleaseReservationsRequest::MergeFrom(const ReleaseReservationsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - reservations_.MergeFrom(from.reservations_); -} - -void ReleaseReservationsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReleaseReservationsRequest::CopyFrom(const ReleaseReservationsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReleaseReservationsRequest::IsInitialized() const { - return true; -} - -void ReleaseReservationsRequest::Swap(ReleaseReservationsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ReleaseReservationsRequest::InternalSwap(ReleaseReservationsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&reservations_)->InternalSwap(CastToBase(&other->reservations_)); -} - -::google::protobuf::Metadata ReleaseReservationsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - // =================================================================== void ReleaseReservationResponse::InitAsDefaultInstance() { @@ -13810,7 +12558,7 @@ void Metadata_KeyMapEntry_DoNotUse::MergeFrom(const Metadata_KeyMapEntry_DoNotUs } ::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[34]; + return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[30]; } void Metadata_KeyMapEntry_DoNotUse::MergeFrom( const ::google::protobuf::Message& other) { @@ -17604,9 +16352,6 @@ template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactResponse* Arena::Creat template<> PROTOBUF_NOINLINE ::datacatalog::DeleteArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::DeleteArtifactRequest >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::DeleteArtifactRequest >(arena); } -template<> PROTOBUF_NOINLINE ::datacatalog::DeleteArtifactsRequest* Arena::CreateMaybeMessage< ::datacatalog::DeleteArtifactsRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::DeleteArtifactsRequest >(arena); -} template<> PROTOBUF_NOINLINE ::datacatalog::DeleteArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::DeleteArtifactResponse >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::DeleteArtifactResponse >(arena); } @@ -17616,24 +16361,15 @@ template<> PROTOBUF_NOINLINE ::datacatalog::ReservationID* Arena::CreateMaybeMes template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationRequest >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationRequest >(arena); } -template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationsRequest* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationsRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationsRequest >(arena); -} template<> PROTOBUF_NOINLINE ::datacatalog::Reservation* Arena::CreateMaybeMessage< ::datacatalog::Reservation >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::Reservation >(arena); } template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationResponse >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationResponse >(arena); } -template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationsResponse* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationsResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationsResponse >(arena); -} template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationRequest >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::ReleaseReservationRequest >(arena); } -template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationsRequest* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationsRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ReleaseReservationsRequest >(arena); -} template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationResponse >(Arena* arena) { return Arena::CreateInternal< ::datacatalog::ReleaseReservationResponse >(arena); } diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h index 181c05e802..6fc21f41de 100644 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h +++ b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h @@ -48,7 +48,7 @@ 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[44] + static const ::google::protobuf::internal::ParseTable schema[40] PROTOBUF_SECTION_VARIABLE(protodesc_cold); static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; @@ -98,9 +98,6 @@ extern DeleteArtifactRequestDefaultTypeInternal _DeleteArtifactRequest_default_i class DeleteArtifactResponse; class DeleteArtifactResponseDefaultTypeInternal; extern DeleteArtifactResponseDefaultTypeInternal _DeleteArtifactResponse_default_instance_; -class DeleteArtifactsRequest; -class DeleteArtifactsRequestDefaultTypeInternal; -extern DeleteArtifactsRequestDefaultTypeInternal _DeleteArtifactsRequest_default_instance_; class FilterExpression; class FilterExpressionDefaultTypeInternal; extern FilterExpressionDefaultTypeInternal _FilterExpression_default_instance_; @@ -122,12 +119,6 @@ extern GetOrExtendReservationRequestDefaultTypeInternal _GetOrExtendReservationR class GetOrExtendReservationResponse; class GetOrExtendReservationResponseDefaultTypeInternal; extern GetOrExtendReservationResponseDefaultTypeInternal _GetOrExtendReservationResponse_default_instance_; -class GetOrExtendReservationsRequest; -class GetOrExtendReservationsRequestDefaultTypeInternal; -extern GetOrExtendReservationsRequestDefaultTypeInternal _GetOrExtendReservationsRequest_default_instance_; -class GetOrExtendReservationsResponse; -class GetOrExtendReservationsResponseDefaultTypeInternal; -extern GetOrExtendReservationsResponseDefaultTypeInternal _GetOrExtendReservationsResponse_default_instance_; class KeyValuePair; class KeyValuePairDefaultTypeInternal; extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; @@ -164,9 +155,6 @@ extern ReleaseReservationRequestDefaultTypeInternal _ReleaseReservationRequest_d class ReleaseReservationResponse; class ReleaseReservationResponseDefaultTypeInternal; extern ReleaseReservationResponseDefaultTypeInternal _ReleaseReservationResponse_default_instance_; -class ReleaseReservationsRequest; -class ReleaseReservationsRequestDefaultTypeInternal; -extern ReleaseReservationsRequestDefaultTypeInternal _ReleaseReservationsRequest_default_instance_; class Reservation; class ReservationDefaultTypeInternal; extern ReservationDefaultTypeInternal _Reservation_default_instance_; @@ -205,7 +193,6 @@ template<> ::datacatalog::DatasetID* Arena::CreateMaybeMessage<::datacatalog::Da template<> ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::DatasetPropertyFilter>(Arena*); template<> ::datacatalog::DeleteArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::DeleteArtifactRequest>(Arena*); template<> ::datacatalog::DeleteArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::DeleteArtifactResponse>(Arena*); -template<> ::datacatalog::DeleteArtifactsRequest* Arena::CreateMaybeMessage<::datacatalog::DeleteArtifactsRequest>(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*); @@ -213,8 +200,6 @@ template<> ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage<::datacat template<> ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::GetDatasetResponse>(Arena*); template<> ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationRequest>(Arena*); template<> ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationResponse>(Arena*); -template<> ::datacatalog::GetOrExtendReservationsRequest* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationsRequest>(Arena*); -template<> ::datacatalog::GetOrExtendReservationsResponse* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationsResponse>(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*); @@ -227,7 +212,6 @@ template<> ::datacatalog::Partition* Arena::CreateMaybeMessage<::datacatalog::Pa template<> ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::PartitionPropertyFilter>(Arena*); template<> ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationRequest>(Arena*); template<> ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationResponse>(Arena*); -template<> ::datacatalog::ReleaseReservationsRequest* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationsRequest>(Arena*); template<> ::datacatalog::Reservation* Arena::CreateMaybeMessage<::datacatalog::Reservation>(Arena*); template<> ::datacatalog::ReservationID* Arena::CreateMaybeMessage<::datacatalog::ReservationID>(Arena*); template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); @@ -2483,124 +2467,6 @@ class DeleteArtifactRequest final : }; // ------------------------------------------------------------------- -class DeleteArtifactsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DeleteArtifactsRequest) */ { - public: - DeleteArtifactsRequest(); - virtual ~DeleteArtifactsRequest(); - - DeleteArtifactsRequest(const DeleteArtifactsRequest& from); - - inline DeleteArtifactsRequest& operator=(const DeleteArtifactsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteArtifactsRequest(DeleteArtifactsRequest&& from) noexcept - : DeleteArtifactsRequest() { - *this = ::std::move(from); - } - - inline DeleteArtifactsRequest& operator=(DeleteArtifactsRequest&& 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 DeleteArtifactsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteArtifactsRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteArtifactsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(DeleteArtifactsRequest* other); - friend void swap(DeleteArtifactsRequest& a, DeleteArtifactsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteArtifactsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteArtifactsRequest* 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 DeleteArtifactsRequest& from); - void MergeFrom(const DeleteArtifactsRequest& 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(DeleteArtifactsRequest* 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.DeleteArtifactRequest artifacts = 1; - int artifacts_size() const; - void clear_artifacts(); - static const int kArtifactsFieldNumber = 1; - ::datacatalog::DeleteArtifactRequest* mutable_artifacts(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::DeleteArtifactRequest >* - mutable_artifacts(); - const ::datacatalog::DeleteArtifactRequest& artifacts(int index) const; - ::datacatalog::DeleteArtifactRequest* add_artifacts(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::DeleteArtifactRequest >& - artifacts() const; - - // @@protoc_insertion_point(class_scope:datacatalog.DeleteArtifactsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::DeleteArtifactRequest > artifacts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - class DeleteArtifactResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DeleteArtifactResponse) */ { public: @@ -2639,7 +2505,7 @@ class DeleteArtifactResponse final : &_DeleteArtifactResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 17; void Swap(DeleteArtifactResponse* other); friend void swap(DeleteArtifactResponse& a, DeleteArtifactResponse& b) { @@ -2744,7 +2610,7 @@ class ReservationID final : &_ReservationID_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 18; void Swap(ReservationID* other); friend void swap(ReservationID& a, ReservationID& b) { @@ -2874,7 +2740,7 @@ class GetOrExtendReservationRequest final : &_GetOrExtendReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 19; void Swap(GetOrExtendReservationRequest* other); friend void swap(GetOrExtendReservationRequest& a, GetOrExtendReservationRequest& b) { @@ -2976,124 +2842,6 @@ class GetOrExtendReservationRequest final : }; // ------------------------------------------------------------------- -class GetOrExtendReservationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationsRequest) */ { - public: - GetOrExtendReservationsRequest(); - virtual ~GetOrExtendReservationsRequest(); - - GetOrExtendReservationsRequest(const GetOrExtendReservationsRequest& from); - - inline GetOrExtendReservationsRequest& operator=(const GetOrExtendReservationsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetOrExtendReservationsRequest(GetOrExtendReservationsRequest&& from) noexcept - : GetOrExtendReservationsRequest() { - *this = ::std::move(from); - } - - inline GetOrExtendReservationsRequest& operator=(GetOrExtendReservationsRequest&& 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 GetOrExtendReservationsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetOrExtendReservationsRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrExtendReservationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(GetOrExtendReservationsRequest* other); - friend void swap(GetOrExtendReservationsRequest& a, GetOrExtendReservationsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetOrExtendReservationsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetOrExtendReservationsRequest* 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 GetOrExtendReservationsRequest& from); - void MergeFrom(const GetOrExtendReservationsRequest& 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(GetOrExtendReservationsRequest* 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.GetOrExtendReservationRequest reservations = 1; - int reservations_size() const; - void clear_reservations(); - static const int kReservationsFieldNumber = 1; - ::datacatalog::GetOrExtendReservationRequest* mutable_reservations(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::GetOrExtendReservationRequest >* - mutable_reservations(); - const ::datacatalog::GetOrExtendReservationRequest& reservations(int index) const; - ::datacatalog::GetOrExtendReservationRequest* add_reservations(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::GetOrExtendReservationRequest >& - reservations() const; - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::GetOrExtendReservationRequest > reservations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - class Reservation final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Reservation) */ { public: @@ -3132,7 +2880,7 @@ class Reservation final : &_Reservation_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 20; void Swap(Reservation* other); friend void swap(Reservation& a, Reservation& b) { @@ -3292,7 +3040,7 @@ class GetOrExtendReservationResponse final : &_GetOrExtendReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 21; void Swap(GetOrExtendReservationResponse* other); friend void swap(GetOrExtendReservationResponse& a, GetOrExtendReservationResponse& b) { @@ -3369,124 +3117,6 @@ class GetOrExtendReservationResponse final : }; // ------------------------------------------------------------------- -class GetOrExtendReservationsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationsResponse) */ { - public: - GetOrExtendReservationsResponse(); - virtual ~GetOrExtendReservationsResponse(); - - GetOrExtendReservationsResponse(const GetOrExtendReservationsResponse& from); - - inline GetOrExtendReservationsResponse& operator=(const GetOrExtendReservationsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetOrExtendReservationsResponse(GetOrExtendReservationsResponse&& from) noexcept - : GetOrExtendReservationsResponse() { - *this = ::std::move(from); - } - - inline GetOrExtendReservationsResponse& operator=(GetOrExtendReservationsResponse&& 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 GetOrExtendReservationsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetOrExtendReservationsResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrExtendReservationsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void Swap(GetOrExtendReservationsResponse* other); - friend void swap(GetOrExtendReservationsResponse& a, GetOrExtendReservationsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetOrExtendReservationsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetOrExtendReservationsResponse* 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 GetOrExtendReservationsResponse& from); - void MergeFrom(const GetOrExtendReservationsResponse& 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(GetOrExtendReservationsResponse* 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.Reservation reservations = 1; - int reservations_size() const; - void clear_reservations(); - static const int kReservationsFieldNumber = 1; - ::datacatalog::Reservation* mutable_reservations(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Reservation >* - mutable_reservations(); - const ::datacatalog::Reservation& reservations(int index) const; - ::datacatalog::Reservation* add_reservations(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Reservation >& - reservations() const; - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Reservation > reservations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - class ReleaseReservationRequest final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationRequest) */ { public: @@ -3525,7 +3155,7 @@ class ReleaseReservationRequest final : &_ReleaseReservationRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 22; void Swap(ReleaseReservationRequest* other); friend void swap(ReleaseReservationRequest& a, ReleaseReservationRequest& b) { @@ -3617,124 +3247,6 @@ class ReleaseReservationRequest final : }; // ------------------------------------------------------------------- -class ReleaseReservationsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationsRequest) */ { - public: - ReleaseReservationsRequest(); - virtual ~ReleaseReservationsRequest(); - - ReleaseReservationsRequest(const ReleaseReservationsRequest& from); - - inline ReleaseReservationsRequest& operator=(const ReleaseReservationsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReleaseReservationsRequest(ReleaseReservationsRequest&& from) noexcept - : ReleaseReservationsRequest() { - *this = ::std::move(from); - } - - inline ReleaseReservationsRequest& operator=(ReleaseReservationsRequest&& 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 ReleaseReservationsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReleaseReservationsRequest* internal_default_instance() { - return reinterpret_cast( - &_ReleaseReservationsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - void Swap(ReleaseReservationsRequest* other); - friend void swap(ReleaseReservationsRequest& a, ReleaseReservationsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReleaseReservationsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReleaseReservationsRequest* 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 ReleaseReservationsRequest& from); - void MergeFrom(const ReleaseReservationsRequest& 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(ReleaseReservationsRequest* 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.ReleaseReservationRequest reservations = 1; - int reservations_size() const; - void clear_reservations(); - static const int kReservationsFieldNumber = 1; - ::datacatalog::ReleaseReservationRequest* mutable_reservations(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::ReleaseReservationRequest >* - mutable_reservations(); - const ::datacatalog::ReleaseReservationRequest& reservations(int index) const; - ::datacatalog::ReleaseReservationRequest* add_reservations(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::ReleaseReservationRequest >& - reservations() const; - - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::ReleaseReservationRequest > reservations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - class ReleaseReservationResponse final : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationResponse) */ { public: @@ -3773,7 +3285,7 @@ class ReleaseReservationResponse final : &_ReleaseReservationResponse_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 23; void Swap(ReleaseReservationResponse* other); friend void swap(ReleaseReservationResponse& a, ReleaseReservationResponse& b) { @@ -3878,7 +3390,7 @@ class Dataset final : &_Dataset_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 24; void Swap(Dataset* other); friend void swap(Dataset& a, Dataset& b) { @@ -4026,7 +3538,7 @@ class Partition final : &_Partition_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 25; void Swap(Partition* other); friend void swap(Partition& a, Partition& b) { @@ -4161,7 +3673,7 @@ class DatasetID final : &_DatasetID_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 26; void Swap(DatasetID* other); friend void swap(DatasetID& a, DatasetID& b) { @@ -4356,7 +3868,7 @@ class Artifact final : &_Artifact_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 27; void Swap(Artifact* other); friend void swap(Artifact& a, Artifact& b) { @@ -4545,7 +4057,7 @@ class ArtifactData final : &_ArtifactData_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 28; void Swap(ArtifactData* other); friend void swap(ArtifactData& a, ArtifactData& b) { @@ -4675,7 +4187,7 @@ class Tag final : &_Tag_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 29; void Swap(Tag* other); friend void swap(Tag& a, Tag& b) { @@ -4844,7 +4356,7 @@ class Metadata final : &_Metadata_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 31; void Swap(Metadata* other); friend void swap(Metadata& a, Metadata& b) { @@ -4965,7 +4477,7 @@ class FilterExpression final : &_FilterExpression_default_instance_); } static constexpr int kIndexInFileMessages = - 36; + 32; void Swap(FilterExpression* other); friend void swap(FilterExpression& a, FilterExpression& b) { @@ -5091,7 +4603,7 @@ class SinglePropertyFilter final : &_SinglePropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 37; + 33; void Swap(SinglePropertyFilter* other); friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { @@ -5286,7 +4798,7 @@ class ArtifactPropertyFilter final : &_ArtifactPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 38; + 34; void Swap(ArtifactPropertyFilter* other); friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { @@ -5425,7 +4937,7 @@ class TagPropertyFilter final : &_TagPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 39; + 35; void Swap(TagPropertyFilter* other); friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { @@ -5564,7 +5076,7 @@ class PartitionPropertyFilter final : &_PartitionPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 40; + 36; void Swap(PartitionPropertyFilter* other); friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { @@ -5690,7 +5202,7 @@ class KeyValuePair final : &_KeyValuePair_default_instance_); } static constexpr int kIndexInFileMessages = - 41; + 37; void Swap(KeyValuePair* other); friend void swap(KeyValuePair& a, KeyValuePair& b) { @@ -5834,7 +5346,7 @@ class DatasetPropertyFilter final : &_DatasetPropertyFilter_default_instance_); } static constexpr int kIndexInFileMessages = - 42; + 38; void Swap(DatasetPropertyFilter* other); friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { @@ -6044,7 +5556,7 @@ class PaginationOptions final : &_PaginationOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 43; + 39; void Swap(PaginationOptions* other); friend void swap(PaginationOptions& a, PaginationOptions& b) { @@ -7865,40 +7377,6 @@ inline DeleteArtifactRequest::QueryHandleCase DeleteArtifactRequest::query_handl } // ------------------------------------------------------------------- -// DeleteArtifactsRequest - -// repeated .datacatalog.DeleteArtifactRequest artifacts = 1; -inline int DeleteArtifactsRequest::artifacts_size() const { - return artifacts_.size(); -} -inline void DeleteArtifactsRequest::clear_artifacts() { - artifacts_.Clear(); -} -inline ::datacatalog::DeleteArtifactRequest* DeleteArtifactsRequest::mutable_artifacts(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.DeleteArtifactsRequest.artifacts) - return artifacts_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::DeleteArtifactRequest >* -DeleteArtifactsRequest::mutable_artifacts() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.DeleteArtifactsRequest.artifacts) - return &artifacts_; -} -inline const ::datacatalog::DeleteArtifactRequest& DeleteArtifactsRequest::artifacts(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.DeleteArtifactsRequest.artifacts) - return artifacts_.Get(index); -} -inline ::datacatalog::DeleteArtifactRequest* DeleteArtifactsRequest::add_artifacts() { - // @@protoc_insertion_point(field_add:datacatalog.DeleteArtifactsRequest.artifacts) - return artifacts_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::DeleteArtifactRequest >& -DeleteArtifactsRequest::artifacts() const { - // @@protoc_insertion_point(field_list:datacatalog.DeleteArtifactsRequest.artifacts) - return artifacts_; -} - -// ------------------------------------------------------------------- - // DeleteArtifactResponse // ------------------------------------------------------------------- @@ -8165,40 +7643,6 @@ inline void GetOrExtendReservationRequest::set_allocated_heartbeat_interval(::go // ------------------------------------------------------------------- -// GetOrExtendReservationsRequest - -// repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; -inline int GetOrExtendReservationsRequest::reservations_size() const { - return reservations_.size(); -} -inline void GetOrExtendReservationsRequest::clear_reservations() { - reservations_.Clear(); -} -inline ::datacatalog::GetOrExtendReservationRequest* GetOrExtendReservationsRequest::mutable_reservations(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationsRequest.reservations) - return reservations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::GetOrExtendReservationRequest >* -GetOrExtendReservationsRequest::mutable_reservations() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.GetOrExtendReservationsRequest.reservations) - return &reservations_; -} -inline const ::datacatalog::GetOrExtendReservationRequest& GetOrExtendReservationsRequest::reservations(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationsRequest.reservations) - return reservations_.Get(index); -} -inline ::datacatalog::GetOrExtendReservationRequest* GetOrExtendReservationsRequest::add_reservations() { - // @@protoc_insertion_point(field_add:datacatalog.GetOrExtendReservationsRequest.reservations) - return reservations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::GetOrExtendReservationRequest >& -GetOrExtendReservationsRequest::reservations() const { - // @@protoc_insertion_point(field_list:datacatalog.GetOrExtendReservationsRequest.reservations) - return reservations_; -} - -// ------------------------------------------------------------------- - // Reservation // .datacatalog.ReservationID reservation_id = 1; @@ -8505,40 +7949,6 @@ inline void GetOrExtendReservationResponse::set_allocated_reservation(::datacata // ------------------------------------------------------------------- -// GetOrExtendReservationsResponse - -// repeated .datacatalog.Reservation reservations = 1; -inline int GetOrExtendReservationsResponse::reservations_size() const { - return reservations_.size(); -} -inline void GetOrExtendReservationsResponse::clear_reservations() { - reservations_.Clear(); -} -inline ::datacatalog::Reservation* GetOrExtendReservationsResponse::mutable_reservations(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationsResponse.reservations) - return reservations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Reservation >* -GetOrExtendReservationsResponse::mutable_reservations() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.GetOrExtendReservationsResponse.reservations) - return &reservations_; -} -inline const ::datacatalog::Reservation& GetOrExtendReservationsResponse::reservations(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationsResponse.reservations) - return reservations_.Get(index); -} -inline ::datacatalog::Reservation* GetOrExtendReservationsResponse::add_reservations() { - // @@protoc_insertion_point(field_add:datacatalog.GetOrExtendReservationsResponse.reservations) - return reservations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Reservation >& -GetOrExtendReservationsResponse::reservations() const { - // @@protoc_insertion_point(field_list:datacatalog.GetOrExtendReservationsResponse.reservations) - return reservations_; -} - -// ------------------------------------------------------------------- - // ReleaseReservationRequest // .datacatalog.ReservationID reservation_id = 1; @@ -8647,40 +8057,6 @@ inline void ReleaseReservationRequest::set_allocated_owner_id(::std::string* own // ------------------------------------------------------------------- -// ReleaseReservationsRequest - -// repeated .datacatalog.ReleaseReservationRequest reservations = 1; -inline int ReleaseReservationsRequest::reservations_size() const { - return reservations_.size(); -} -inline void ReleaseReservationsRequest::clear_reservations() { - reservations_.Clear(); -} -inline ::datacatalog::ReleaseReservationRequest* ReleaseReservationsRequest::mutable_reservations(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationsRequest.reservations) - return reservations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ReleaseReservationRequest >* -ReleaseReservationsRequest::mutable_reservations() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.ReleaseReservationsRequest.reservations) - return &reservations_; -} -inline const ::datacatalog::ReleaseReservationRequest& ReleaseReservationsRequest::reservations(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationsRequest.reservations) - return reservations_.Get(index); -} -inline ::datacatalog::ReleaseReservationRequest* ReleaseReservationsRequest::add_reservations() { - // @@protoc_insertion_point(field_add:datacatalog.ReleaseReservationsRequest.reservations) - return reservations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ReleaseReservationRequest >& -ReleaseReservationsRequest::reservations() const { - // @@protoc_insertion_point(field_list:datacatalog.ReleaseReservationsRequest.reservations) - return reservations_; -} - -// ------------------------------------------------------------------- - // ReleaseReservationResponse // ------------------------------------------------------------------- @@ -11124,14 +10500,6 @@ inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_So // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go index 612083e022..d0c768188f 100644 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go @@ -47,7 +47,7 @@ func (x SinglePropertyFilter_ComparisonOperator) String() string { } func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{36, 0} + return fileDescriptor_275951237ff4368a, []int{32, 0} } type PaginationOptions_SortOrder int32 @@ -72,7 +72,7 @@ func (x PaginationOptions_SortOrder) String() string { } func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{42, 0} + return fileDescriptor_275951237ff4368a, []int{38, 0} } type PaginationOptions_SortKey int32 @@ -94,7 +94,7 @@ func (x PaginationOptions_SortKey) String() string { } func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{42, 1} + return fileDescriptor_275951237ff4368a, []int{38, 1} } // @@ -993,47 +993,6 @@ func (*DeleteArtifactRequest) XXX_OneofWrappers() []interface{} { } } -// Request message for deleting multiple Artifacts and their associated ArtifactData. -type DeleteArtifactsRequest struct { - // List of deletion requests for artifacts to remove - Artifacts []*DeleteArtifactRequest `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteArtifactsRequest) Reset() { *m = DeleteArtifactsRequest{} } -func (m *DeleteArtifactsRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteArtifactsRequest) ProtoMessage() {} -func (*DeleteArtifactsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{17} -} - -func (m *DeleteArtifactsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteArtifactsRequest.Unmarshal(m, b) -} -func (m *DeleteArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteArtifactsRequest.Marshal(b, m, deterministic) -} -func (m *DeleteArtifactsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteArtifactsRequest.Merge(m, src) -} -func (m *DeleteArtifactsRequest) XXX_Size() int { - return xxx_messageInfo_DeleteArtifactsRequest.Size(m) -} -func (m *DeleteArtifactsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteArtifactsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteArtifactsRequest proto.InternalMessageInfo - -func (m *DeleteArtifactsRequest) GetArtifacts() []*DeleteArtifactRequest { - if m != nil { - return m.Artifacts - } - return nil -} - // // Response message for deleting an Artifact. type DeleteArtifactResponse struct { @@ -1046,7 +1005,7 @@ func (m *DeleteArtifactResponse) Reset() { *m = DeleteArtifactResponse{} func (m *DeleteArtifactResponse) String() string { return proto.CompactTextString(m) } func (*DeleteArtifactResponse) ProtoMessage() {} func (*DeleteArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{18} + return fileDescriptor_275951237ff4368a, []int{17} } func (m *DeleteArtifactResponse) XXX_Unmarshal(b []byte) error { @@ -1083,7 +1042,7 @@ func (m *ReservationID) Reset() { *m = ReservationID{} } func (m *ReservationID) String() string { return proto.CompactTextString(m) } func (*ReservationID) ProtoMessage() {} func (*ReservationID) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{19} + return fileDescriptor_275951237ff4368a, []int{18} } func (m *ReservationID) XXX_Unmarshal(b []byte) error { @@ -1135,7 +1094,7 @@ func (m *GetOrExtendReservationRequest) Reset() { *m = GetOrExtendReserv func (m *GetOrExtendReservationRequest) String() string { return proto.CompactTextString(m) } func (*GetOrExtendReservationRequest) ProtoMessage() {} func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{20} + return fileDescriptor_275951237ff4368a, []int{19} } func (m *GetOrExtendReservationRequest) XXX_Unmarshal(b []byte) error { @@ -1177,47 +1136,6 @@ func (m *GetOrExtendReservationRequest) GetHeartbeatInterval() *duration.Duratio return nil } -// Request message for acquiring or extending reservations for multiple artifacts in a single operation. -type GetOrExtendReservationsRequest struct { - // List of reservation requests for artifacts to acquire - Reservations []*GetOrExtendReservationRequest `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetOrExtendReservationsRequest) Reset() { *m = GetOrExtendReservationsRequest{} } -func (m *GetOrExtendReservationsRequest) String() string { return proto.CompactTextString(m) } -func (*GetOrExtendReservationsRequest) ProtoMessage() {} -func (*GetOrExtendReservationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{21} -} - -func (m *GetOrExtendReservationsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetOrExtendReservationsRequest.Unmarshal(m, b) -} -func (m *GetOrExtendReservationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetOrExtendReservationsRequest.Marshal(b, m, deterministic) -} -func (m *GetOrExtendReservationsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOrExtendReservationsRequest.Merge(m, src) -} -func (m *GetOrExtendReservationsRequest) XXX_Size() int { - return xxx_messageInfo_GetOrExtendReservationsRequest.Size(m) -} -func (m *GetOrExtendReservationsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetOrExtendReservationsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetOrExtendReservationsRequest proto.InternalMessageInfo - -func (m *GetOrExtendReservationsRequest) GetReservations() []*GetOrExtendReservationRequest { - if m != nil { - return m.Reservations - } - return nil -} - // A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. type Reservation struct { // The unique ID for the reservation @@ -1239,7 +1157,7 @@ func (m *Reservation) Reset() { *m = Reservation{} } func (m *Reservation) String() string { return proto.CompactTextString(m) } func (*Reservation) ProtoMessage() {} func (*Reservation) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{22} + return fileDescriptor_275951237ff4368a, []int{20} } func (m *Reservation) XXX_Unmarshal(b []byte) error { @@ -1308,7 +1226,7 @@ func (m *GetOrExtendReservationResponse) Reset() { *m = GetOrExtendReser func (m *GetOrExtendReservationResponse) String() string { return proto.CompactTextString(m) } func (*GetOrExtendReservationResponse) ProtoMessage() {} func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{23} + return fileDescriptor_275951237ff4368a, []int{21} } func (m *GetOrExtendReservationResponse) XXX_Unmarshal(b []byte) error { @@ -1336,47 +1254,6 @@ func (m *GetOrExtendReservationResponse) GetReservation() *Reservation { return nil } -// List of reservations acquired for multiple artifacts in a single operation. -type GetOrExtendReservationsResponse struct { - // List of (newly created or existing) reservations for artifacts requested - Reservations []*Reservation `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetOrExtendReservationsResponse) Reset() { *m = GetOrExtendReservationsResponse{} } -func (m *GetOrExtendReservationsResponse) String() string { return proto.CompactTextString(m) } -func (*GetOrExtendReservationsResponse) ProtoMessage() {} -func (*GetOrExtendReservationsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{24} -} - -func (m *GetOrExtendReservationsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetOrExtendReservationsResponse.Unmarshal(m, b) -} -func (m *GetOrExtendReservationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetOrExtendReservationsResponse.Marshal(b, m, deterministic) -} -func (m *GetOrExtendReservationsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOrExtendReservationsResponse.Merge(m, src) -} -func (m *GetOrExtendReservationsResponse) XXX_Size() int { - return xxx_messageInfo_GetOrExtendReservationsResponse.Size(m) -} -func (m *GetOrExtendReservationsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetOrExtendReservationsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetOrExtendReservationsResponse proto.InternalMessageInfo - -func (m *GetOrExtendReservationsResponse) GetReservations() []*Reservation { - if m != nil { - return m.Reservations - } - return nil -} - // Request to release reservation type ReleaseReservationRequest struct { // The unique ID for the reservation @@ -1392,7 +1269,7 @@ func (m *ReleaseReservationRequest) Reset() { *m = ReleaseReservationReq func (m *ReleaseReservationRequest) String() string { return proto.CompactTextString(m) } func (*ReleaseReservationRequest) ProtoMessage() {} func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{25} + return fileDescriptor_275951237ff4368a, []int{22} } func (m *ReleaseReservationRequest) XXX_Unmarshal(b []byte) error { @@ -1427,47 +1304,6 @@ func (m *ReleaseReservationRequest) GetOwnerId() string { return "" } -// Request message for releasing reservations for multiple artifacts in a single operation. -type ReleaseReservationsRequest struct { - // List of reservation requests for artifacts to release - Reservations []*ReleaseReservationRequest `protobuf:"bytes,1,rep,name=reservations,proto3" json:"reservations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReleaseReservationsRequest) Reset() { *m = ReleaseReservationsRequest{} } -func (m *ReleaseReservationsRequest) String() string { return proto.CompactTextString(m) } -func (*ReleaseReservationsRequest) ProtoMessage() {} -func (*ReleaseReservationsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{26} -} - -func (m *ReleaseReservationsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReleaseReservationsRequest.Unmarshal(m, b) -} -func (m *ReleaseReservationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReleaseReservationsRequest.Marshal(b, m, deterministic) -} -func (m *ReleaseReservationsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReleaseReservationsRequest.Merge(m, src) -} -func (m *ReleaseReservationsRequest) XXX_Size() int { - return xxx_messageInfo_ReleaseReservationsRequest.Size(m) -} -func (m *ReleaseReservationsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReleaseReservationsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReleaseReservationsRequest proto.InternalMessageInfo - -func (m *ReleaseReservationsRequest) GetReservations() []*ReleaseReservationRequest { - if m != nil { - return m.Reservations - } - return nil -} - // Response to release reservation type ReleaseReservationResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` @@ -1479,7 +1315,7 @@ func (m *ReleaseReservationResponse) Reset() { *m = ReleaseReservationRe func (m *ReleaseReservationResponse) String() string { return proto.CompactTextString(m) } func (*ReleaseReservationResponse) ProtoMessage() {} func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{27} + return fileDescriptor_275951237ff4368a, []int{23} } func (m *ReleaseReservationResponse) XXX_Unmarshal(b []byte) error { @@ -1515,7 +1351,7 @@ 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{28} + return fileDescriptor_275951237ff4368a, []int{24} } func (m *Dataset) XXX_Unmarshal(b []byte) error { @@ -1571,7 +1407,7 @@ 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{29} + return fileDescriptor_275951237ff4368a, []int{25} } func (m *Partition) XXX_Unmarshal(b []byte) error { @@ -1625,7 +1461,7 @@ 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{30} + return fileDescriptor_275951237ff4368a, []int{26} } func (m *DatasetID) XXX_Unmarshal(b []byte) error { @@ -1707,7 +1543,7 @@ 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{31} + return fileDescriptor_275951237ff4368a, []int{27} } func (m *Artifact) XXX_Unmarshal(b []byte) error { @@ -1791,7 +1627,7 @@ 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{32} + return fileDescriptor_275951237ff4368a, []int{28} } func (m *ArtifactData) XXX_Unmarshal(b []byte) error { @@ -1842,7 +1678,7 @@ 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{33} + return fileDescriptor_275951237ff4368a, []int{29} } func (m *Tag) XXX_Unmarshal(b []byte) error { @@ -1897,7 +1733,7 @@ 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{34} + return fileDescriptor_275951237ff4368a, []int{30} } func (m *Metadata) XXX_Unmarshal(b []byte) error { @@ -1937,7 +1773,7 @@ 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{35} + return fileDescriptor_275951237ff4368a, []int{31} } func (m *FilterExpression) XXX_Unmarshal(b []byte) error { @@ -1983,7 +1819,7 @@ 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{36} + return fileDescriptor_275951237ff4368a, []int{32} } func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { @@ -2100,7 +1936,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{37} + return fileDescriptor_275951237ff4368a, []int{33} } func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -2166,7 +2002,7 @@ 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{38} + return fileDescriptor_275951237ff4368a, []int{34} } func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -2232,7 +2068,7 @@ 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{39} + return fileDescriptor_275951237ff4368a, []int{35} } func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -2296,7 +2132,7 @@ 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{40} + return fileDescriptor_275951237ff4368a, []int{36} } func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { @@ -2349,7 +2185,7 @@ 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{41} + return fileDescriptor_275951237ff4368a, []int{37} } func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { @@ -2476,7 +2312,7 @@ 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{42} + return fileDescriptor_275951237ff4368a, []int{38} } func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { @@ -2546,16 +2382,12 @@ func init() { proto.RegisterType((*UpdateArtifactRequest)(nil), "datacatalog.UpdateArtifactRequest") proto.RegisterType((*UpdateArtifactResponse)(nil), "datacatalog.UpdateArtifactResponse") proto.RegisterType((*DeleteArtifactRequest)(nil), "datacatalog.DeleteArtifactRequest") - proto.RegisterType((*DeleteArtifactsRequest)(nil), "datacatalog.DeleteArtifactsRequest") proto.RegisterType((*DeleteArtifactResponse)(nil), "datacatalog.DeleteArtifactResponse") proto.RegisterType((*ReservationID)(nil), "datacatalog.ReservationID") proto.RegisterType((*GetOrExtendReservationRequest)(nil), "datacatalog.GetOrExtendReservationRequest") - proto.RegisterType((*GetOrExtendReservationsRequest)(nil), "datacatalog.GetOrExtendReservationsRequest") proto.RegisterType((*Reservation)(nil), "datacatalog.Reservation") proto.RegisterType((*GetOrExtendReservationResponse)(nil), "datacatalog.GetOrExtendReservationResponse") - proto.RegisterType((*GetOrExtendReservationsResponse)(nil), "datacatalog.GetOrExtendReservationsResponse") proto.RegisterType((*ReleaseReservationRequest)(nil), "datacatalog.ReleaseReservationRequest") - proto.RegisterType((*ReleaseReservationsRequest)(nil), "datacatalog.ReleaseReservationsRequest") proto.RegisterType((*ReleaseReservationResponse)(nil), "datacatalog.ReleaseReservationResponse") proto.RegisterType((*Dataset)(nil), "datacatalog.Dataset") proto.RegisterType((*Partition)(nil), "datacatalog.Partition") @@ -2580,122 +2412,116 @@ func init() { } var fileDescriptor_275951237ff4368a = []byte{ - // 1836 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0xcd, 0x6f, 0xdb, 0xc8, - 0x15, 0x37, 0x25, 0x5b, 0x32, 0x9f, 0x2c, 0x59, 0x9e, 0xd8, 0x8a, 0xac, 0x4d, 0x6c, 0x85, 0x1b, - 0xa4, 0xc6, 0x76, 0x57, 0xda, 0xda, 0xbb, 0x8b, 0x26, 0x5d, 0xb4, 0x2b, 0x5b, 0x8a, 0xad, 0x75, - 0xfc, 0xb1, 0xf4, 0x07, 0xb0, 0x9b, 0x02, 0xc2, 0xd8, 0x1c, 0xd3, 0xac, 0x29, 0x91, 0x21, 0xc7, - 0xa9, 0x75, 0xec, 0xb5, 0xe8, 0xa5, 0x28, 0x50, 0xa0, 0x87, 0xa2, 0x87, 0xfe, 0x21, 0x3d, 0xe6, - 0xd6, 0x7f, 0xa8, 0x97, 0x62, 0xc8, 0x21, 0xc5, 0x21, 0x29, 0x5b, 0xf6, 0x21, 0x68, 0x2f, 0x02, - 0x67, 0xe6, 0xbd, 0xdf, 0xbc, 0x8f, 0x99, 0x37, 0xef, 0x3d, 0xc1, 0x8b, 0x0b, 0x73, 0x48, 0x89, - 0xa1, 0x99, 0x4d, 0x0d, 0x53, 0x7c, 0x8e, 0x29, 0x36, 0x2d, 0x3d, 0xfa, 0xdd, 0xb0, 0x1d, 0x8b, - 0x5a, 0xa8, 0x10, 0x99, 0xaa, 0x3d, 0x09, 0x99, 0xce, 0x2d, 0x87, 0x34, 0x4d, 0x83, 0x12, 0x07, - 0x9b, 0xae, 0x4f, 0x5a, 0x5b, 0xd1, 0x2d, 0x4b, 0x37, 0x49, 0xd3, 0x1b, 0x9d, 0x5d, 0x5f, 0x34, - 0xb5, 0x6b, 0x07, 0x53, 0xc3, 0x1a, 0xf0, 0xf5, 0xd5, 0xf8, 0x3a, 0x35, 0xfa, 0xc4, 0xa5, 0xb8, - 0x6f, 0xfb, 0x04, 0xca, 0x6b, 0x58, 0xdc, 0x72, 0x08, 0xa6, 0xa4, 0x8d, 0x29, 0x76, 0x09, 0x55, - 0xc9, 0xbb, 0x6b, 0xe2, 0x52, 0xd4, 0x80, 0xbc, 0xe6, 0xcf, 0x54, 0xa5, 0xba, 0xb4, 0x56, 0x58, - 0x5f, 0x6c, 0x44, 0x05, 0x0d, 0xa8, 0x03, 0x22, 0xe5, 0x31, 0x2c, 0xc5, 0x70, 0x5c, 0xdb, 0x1a, - 0xb8, 0x44, 0xe9, 0xc0, 0xc2, 0x36, 0xa1, 0x31, 0xf4, 0x2f, 0xe3, 0xe8, 0x95, 0x34, 0xf4, 0x6e, - 0x7b, 0x84, 0xdf, 0x06, 0x14, 0x85, 0xf1, 0xc1, 0xef, 0x2d, 0xe5, 0x5f, 0x25, 0x0f, 0xa6, 0xe5, - 0x50, 0xe3, 0x02, 0x9f, 0x3f, 0x5c, 0x1c, 0xf4, 0x0c, 0x0a, 0x98, 0x83, 0xf4, 0x0c, 0xad, 0x9a, - 0xa9, 0x4b, 0x6b, 0xf2, 0xce, 0x94, 0x0a, 0xc1, 0x64, 0x57, 0x43, 0x9f, 0xc0, 0x2c, 0xc5, 0x7a, - 0x6f, 0x80, 0xfb, 0xa4, 0x9a, 0xe5, 0xeb, 0x79, 0x8a, 0xf5, 0x7d, 0xdc, 0x27, 0x9b, 0x25, 0x98, - 0x7b, 0x77, 0x4d, 0x9c, 0x61, 0xef, 0x12, 0x0f, 0x34, 0x93, 0x28, 0x3b, 0xf0, 0x48, 0x90, 0x8b, - 0xeb, 0xf7, 0x0b, 0x98, 0x0d, 0x10, 0xb9, 0x64, 0x4b, 0x82, 0x64, 0x21, 0x43, 0x48, 0xa6, 0x7c, - 0x1f, 0x38, 0x22, 0xae, 0xe4, 0x03, 0xb0, 0xaa, 0x50, 0x89, 0x63, 0x71, 0xaf, 0x6e, 0x40, 0xb1, - 0xa5, 0x69, 0xc7, 0x58, 0x0f, 0xd0, 0x15, 0xc8, 0x52, 0xac, 0x73, 0xe0, 0xb2, 0x00, 0xcc, 0xa8, - 0xd8, 0xa2, 0x52, 0x86, 0x52, 0xc0, 0xc4, 0x61, 0xfe, 0x25, 0xc1, 0xe2, 0x1b, 0xc3, 0x0d, 0x15, - 0x77, 0x1f, 0xee, 0x91, 0xaf, 0x21, 0x77, 0x61, 0x98, 0x94, 0x38, 0x9e, 0x33, 0x0a, 0xeb, 0x4f, - 0x05, 0x86, 0xd7, 0xde, 0x52, 0xe7, 0xc6, 0x76, 0x88, 0xeb, 0x1a, 0xd6, 0x40, 0xe5, 0xc4, 0xe8, - 0xd7, 0x00, 0x36, 0xd6, 0x8d, 0x81, 0x77, 0x69, 0x3c, 0x3f, 0x15, 0xd6, 0x57, 0x04, 0xd6, 0xc3, - 0x70, 0xf9, 0xc0, 0x66, 0xbf, 0xae, 0x1a, 0xe1, 0x50, 0xae, 0x60, 0x29, 0xa6, 0x00, 0x77, 0xdd, - 0x06, 0xc8, 0x81, 0x1d, 0xdd, 0xaa, 0x54, 0xcf, 0x8e, 0xb7, 0xf7, 0x88, 0x0e, 0x3d, 0x05, 0x18, - 0x90, 0x1b, 0xda, 0xa3, 0xd6, 0x15, 0x19, 0xf8, 0xa7, 0x4a, 0x95, 0xd9, 0xcc, 0x31, 0x9b, 0x50, - 0xfe, 0x24, 0xc1, 0x23, 0xb6, 0x1b, 0x57, 0x3f, 0xb4, 0xd6, 0x48, 0x77, 0xe9, 0xe1, 0xba, 0x67, - 0xee, 0xad, 0xbb, 0xee, 0x3b, 0x6f, 0x24, 0x0d, 0x57, 0xfd, 0x4b, 0x98, 0xe5, 0x5e, 0x09, 0x34, - 0x4f, 0xbf, 0x96, 0x21, 0xd5, 0x5d, 0x7a, 0xff, 0x47, 0x82, 0xa5, 0x13, 0x5b, 0x4b, 0x39, 0xd4, - 0x1f, 0xfd, 0xe6, 0xa2, 0x2f, 0x60, 0x9a, 0x41, 0x55, 0xa7, 0x3d, 0xc5, 0x96, 0x53, 0x5d, 0xca, - 0xb6, 0x55, 0x3d, 0x32, 0x76, 0xeb, 0xfa, 0x84, 0x62, 0x8f, 0x65, 0x26, 0xe5, 0xd6, 0xed, 0xf1, - 0x45, 0x35, 0x24, 0x4b, 0xc4, 0x86, 0x97, 0x50, 0x89, 0x2b, 0xcf, 0x0d, 0xbd, 0x2a, 0xea, 0x22, - 0x79, 0x76, 0x8b, 0x68, 0xa2, 0xfc, 0x4d, 0x82, 0xa5, 0x36, 0x31, 0xc9, 0xff, 0x80, 0xe1, 0x12, - 0x6a, 0xfd, 0x04, 0x15, 0x51, 0xb4, 0xf0, 0x38, 0x7f, 0x97, 0xbc, 0x3a, 0x8a, 0x28, 0x5d, 0x9a, - 0x4a, 0x91, 0x7b, 0xc4, 0x02, 0x57, 0x9c, 0x86, 0x47, 0x1c, 0x0c, 0x45, 0x95, 0xb8, 0xc4, 0x79, - 0xef, 0x1d, 0xe1, 0x6e, 0x1b, 0x7d, 0x0d, 0xc0, 0x35, 0x0c, 0x4c, 0x38, 0xde, 0x16, 0x32, 0xa7, - 0xec, 0x6a, 0x68, 0x39, 0xa2, 0xaa, 0x7f, 0x5e, 0x03, 0x45, 0x95, 0x0f, 0x12, 0x3c, 0xdd, 0x26, - 0xf4, 0xc0, 0xe9, 0xdc, 0x50, 0x32, 0xd0, 0x22, 0xdb, 0x05, 0x0a, 0xb6, 0xa0, 0xe4, 0x8c, 0x66, - 0x47, 0xfb, 0xd6, 0x84, 0x7d, 0x05, 0x39, 0xd5, 0x62, 0x84, 0xc3, 0xdf, 0xdf, 0xfa, 0xfd, 0x80, - 0x38, 0xa1, 0x2b, 0xd4, 0xbc, 0x37, 0xee, 0x6a, 0x68, 0x07, 0xd0, 0x25, 0xc1, 0x0e, 0x3d, 0x23, - 0x98, 0xf6, 0x8c, 0x01, 0x65, 0x5c, 0x26, 0x0f, 0x6d, 0xcb, 0x0d, 0x3f, 0x21, 0x68, 0x04, 0x09, - 0x41, 0xa3, 0xcd, 0x13, 0x06, 0x75, 0x21, 0x64, 0xea, 0x72, 0x1e, 0xc5, 0x86, 0x95, 0x74, 0x45, - 0x42, 0x57, 0xed, 0xc3, 0x5c, 0x44, 0xae, 0xc0, 0x5b, 0x9f, 0x09, 0x7a, 0xdc, 0x6a, 0x0b, 0x55, - 0xe0, 0x57, 0xfe, 0x99, 0x81, 0x42, 0x84, 0xe8, 0xff, 0xc5, 0x52, 0xe8, 0x25, 0x00, 0xb9, 0xb1, - 0x0d, 0x87, 0xb8, 0x3d, 0x4c, 0xab, 0xd3, 0x5c, 0xc6, 0x38, 0xc2, 0x71, 0x90, 0x7c, 0xa9, 0x32, - 0xa7, 0x6e, 0x51, 0x21, 0x42, 0xe4, 0x26, 0x8a, 0x10, 0xca, 0x6f, 0xc7, 0xf9, 0x25, 0x8c, 0x0c, - 0xaf, 0xa0, 0x10, 0xb1, 0x02, 0x37, 0x5a, 0x75, 0x9c, 0xd1, 0xd4, 0x28, 0xb1, 0xd2, 0x83, 0xd5, - 0xb1, 0x5e, 0xe7, 0xf0, 0xdf, 0xa6, 0xba, 0x7d, 0x3c, 0xbe, 0xe8, 0xe4, 0x21, 0x2c, 0xab, 0xc4, - 0x24, 0xd8, 0x25, 0x1f, 0xfb, 0x6e, 0x28, 0x97, 0x50, 0x4b, 0x6e, 0x1d, 0x9e, 0xe6, 0xef, 0x53, - 0xd5, 0x7a, 0x11, 0xdb, 0x79, 0x8c, 0xe4, 0x31, 0x25, 0x9f, 0xa4, 0xed, 0x14, 0x86, 0xa1, 0x3f, - 0x4a, 0x90, 0xe7, 0x71, 0x05, 0xbd, 0x80, 0xcc, 0x9d, 0x91, 0x27, 0x63, 0x68, 0xc2, 0x41, 0xc9, - 0x4c, 0x74, 0x50, 0xd0, 0x73, 0x28, 0xda, 0x2c, 0x2a, 0xb2, 0xbd, 0x77, 0xc9, 0xd0, 0xad, 0x66, - 0xeb, 0xd9, 0x35, 0x59, 0x15, 0x27, 0x95, 0x0d, 0x90, 0x0f, 0x83, 0x09, 0x54, 0x86, 0xec, 0x15, - 0x19, 0xf2, 0xb7, 0x84, 0x7d, 0xa2, 0x45, 0x98, 0x79, 0x8f, 0xcd, 0xeb, 0x20, 0xce, 0xf9, 0x03, - 0xe5, 0xcf, 0x12, 0xc8, 0xa1, 0x7c, 0xa8, 0x0a, 0x79, 0xdb, 0xb1, 0x7e, 0x47, 0x78, 0x6e, 0x29, - 0xab, 0xc1, 0x10, 0x21, 0x98, 0x8e, 0x04, 0x49, 0xef, 0x1b, 0x55, 0x20, 0xa7, 0x59, 0x7d, 0x6c, - 0xf8, 0x09, 0x97, 0xac, 0xf2, 0x11, 0x43, 0x79, 0x4f, 0x1c, 0x96, 0xa3, 0x78, 0x57, 0x48, 0x56, - 0x83, 0x21, 0x43, 0x39, 0x39, 0xe9, 0xb6, 0xbd, 0x27, 0x54, 0x56, 0xbd, 0x6f, 0x26, 0xa9, 0xe5, - 0xe8, 0xde, 0x9d, 0x91, 0x55, 0xf6, 0xa9, 0x7c, 0xc8, 0xc0, 0x6c, 0x10, 0xf1, 0x51, 0x29, 0x34, - 0xab, 0xec, 0x99, 0x2f, 0xf2, 0xe2, 0x65, 0x26, 0x7b, 0xf1, 0x82, 0xa7, 0x3e, 0x7b, 0xff, 0xa7, - 0x7e, 0x7a, 0x32, 0xff, 0x7c, 0xc3, 0x32, 0x30, 0x6e, 0x79, 0xb7, 0x3a, 0xe3, 0xed, 0x53, 0x89, - 0x65, 0x60, 0x7c, 0x59, 0x8d, 0x50, 0xa2, 0xe7, 0x30, 0x4d, 0xb1, 0xee, 0x56, 0x73, 0x1e, 0x47, - 0x32, 0xdd, 0xf6, 0x56, 0x59, 0x50, 0x3a, 0xf7, 0xd2, 0x77, 0x8d, 0x05, 0xa5, 0xfc, 0xdd, 0x41, - 0x89, 0x53, 0xb7, 0xa8, 0x72, 0x08, 0x73, 0x51, 0x0d, 0x43, 0x2f, 0x4a, 0x11, 0x2f, 0x7e, 0x1e, - 0x3d, 0x17, 0x4c, 0xee, 0xa0, 0x52, 0x6d, 0xb0, 0x4a, 0xb5, 0xf1, 0xc6, 0xaf, 0x54, 0x83, 0xf3, - 0x62, 0x42, 0xf6, 0x18, 0xeb, 0xa9, 0x40, 0xab, 0x29, 0x99, 0x85, 0x90, 0x57, 0x44, 0x5c, 0x97, - 0x9d, 0xac, 0x5c, 0xfc, 0x83, 0x04, 0xb3, 0x81, 0xbd, 0xd1, 0x2b, 0xc8, 0x5f, 0x91, 0x61, 0xaf, - 0x8f, 0x6d, 0x7e, 0xa3, 0x9f, 0xa5, 0xfa, 0xa5, 0xb1, 0x4b, 0x86, 0x7b, 0xd8, 0xee, 0x0c, 0xa8, - 0x33, 0x54, 0x73, 0x57, 0xde, 0xa0, 0xf6, 0x12, 0x0a, 0x91, 0xe9, 0x49, 0x6f, 0xc7, 0xab, 0xcc, - 0x2f, 0x25, 0xe5, 0x00, 0xca, 0xf1, 0xd4, 0x1b, 0xfd, 0x0a, 0xf2, 0x7e, 0xf2, 0xed, 0xa6, 0x8a, - 0x72, 0x64, 0x0c, 0x74, 0x93, 0x1c, 0x3a, 0x96, 0x4d, 0x1c, 0x3a, 0xf4, 0xb9, 0xd5, 0x80, 0x43, - 0xf9, 0x77, 0x16, 0x16, 0xd3, 0x28, 0xd0, 0x6f, 0x00, 0x58, 0x32, 0x22, 0xd4, 0x00, 0x2b, 0xf1, - 0x43, 0x21, 0xf2, 0xec, 0x4c, 0xa9, 0x32, 0xc5, 0x3a, 0x07, 0xf8, 0x01, 0xca, 0xe1, 0xe9, 0xea, - 0x09, 0x65, 0xd4, 0xf3, 0xf4, 0xd3, 0x98, 0x00, 0x9b, 0x0f, 0xf9, 0x39, 0xe4, 0x3e, 0xcc, 0x87, - 0x4e, 0xe5, 0x88, 0xbe, 0xef, 0x3e, 0x4d, 0xbd, 0x47, 0x09, 0xc0, 0x52, 0xc0, 0xcd, 0xf1, 0x76, - 0xa1, 0x14, 0xe4, 0x69, 0x1c, 0xce, 0xbf, 0x63, 0x4a, 0xda, 0x51, 0x48, 0xa0, 0x15, 0x39, 0x2f, - 0x07, 0x3b, 0x84, 0x59, 0x46, 0x80, 0xa9, 0xe5, 0x54, 0xa1, 0x2e, 0xad, 0x95, 0xd6, 0xbf, 0xba, - 0xd3, 0x0f, 0x8d, 0x2d, 0xab, 0x6f, 0x63, 0xc7, 0x70, 0x59, 0x31, 0xe4, 0xf3, 0xaa, 0x21, 0x8a, - 0x52, 0x07, 0x94, 0x5c, 0x47, 0x00, 0xb9, 0xce, 0x0f, 0x27, 0xad, 0x37, 0x47, 0xe5, 0xa9, 0xcd, - 0x05, 0x98, 0xb7, 0x39, 0x20, 0xd7, 0x40, 0xd9, 0x86, 0x4a, 0xba, 0xfe, 0xf1, 0x64, 0x5b, 0x4a, - 0x26, 0xdb, 0x9b, 0x00, 0xb3, 0x01, 0x9e, 0xf2, 0x2d, 0x2c, 0x24, 0x3c, 0x2c, 0x64, 0xe3, 0x52, - 0x3c, 0x1b, 0x8f, 0x72, 0xbf, 0x85, 0xc7, 0x63, 0x1c, 0x8b, 0xbe, 0xf2, 0xaf, 0x0e, 0x4b, 0x8b, - 0x24, 0x9e, 0x16, 0x45, 0xed, 0xb4, 0x4b, 0x86, 0xa7, 0xec, 0xbc, 0x1f, 0x62, 0x83, 0x59, 0x99, - 0x5d, 0x9a, 0x53, 0x6c, 0x0a, 0xe0, 0xdf, 0xc0, 0x5c, 0x94, 0x6a, 0xe2, 0xf7, 0xe5, 0x1f, 0xac, - 0x74, 0x49, 0xf3, 0x26, 0xaa, 0xc5, 0xde, 0x1a, 0xa6, 0x56, 0xf0, 0xda, 0x2c, 0x46, 0x5f, 0x9b, - 0x9d, 0x29, 0x1e, 0x60, 0xaa, 0xe2, 0x7b, 0xc3, 0x24, 0xe5, 0x2f, 0x4e, 0x2d, 0xf6, 0xe2, 0x30, - 0xac, 0xd1, 0x9b, 0xe3, 0xbd, 0x2f, 0x33, 0x7c, 0x9e, 0x0d, 0x04, 0xcd, 0xfe, 0x92, 0x81, 0x85, - 0x44, 0x81, 0xcc, 0xb4, 0x31, 0x8d, 0xbe, 0xe1, 0xcb, 0x56, 0x54, 0xfd, 0x01, 0x9b, 0x8d, 0xd6, - 0xb6, 0xfe, 0x00, 0x7d, 0x07, 0x79, 0xd7, 0x72, 0xe8, 0x2e, 0x19, 0x7a, 0x82, 0x95, 0x62, 0xa9, - 0x46, 0x02, 0xbc, 0x71, 0xe4, 0x53, 0xab, 0x01, 0x1b, 0x7a, 0x0d, 0x32, 0xfb, 0x3c, 0x70, 0x34, - 0x7e, 0x21, 0x4a, 0xeb, 0x6b, 0x13, 0x60, 0x78, 0xf4, 0xea, 0x88, 0x55, 0xf9, 0x0c, 0xe4, 0x70, - 0x1e, 0x95, 0x00, 0xda, 0x9d, 0xa3, 0xad, 0xce, 0x7e, 0xbb, 0xbb, 0xbf, 0x5d, 0x9e, 0x42, 0x45, - 0x90, 0x5b, 0xe1, 0x50, 0x52, 0x9e, 0x40, 0x9e, 0xcb, 0x81, 0x16, 0xa0, 0xb8, 0xa5, 0x76, 0x5a, - 0xc7, 0xdd, 0x83, 0xfd, 0xde, 0x71, 0x77, 0xaf, 0x53, 0x9e, 0x5a, 0xff, 0x3b, 0x40, 0x81, 0xf9, - 0x6d, 0xcb, 0x17, 0x00, 0x9d, 0x42, 0x51, 0x68, 0x0c, 0x22, 0x31, 0xe2, 0xa5, 0x35, 0x1f, 0x6b, - 0xca, 0x6d, 0x24, 0x3c, 0x05, 0xdd, 0x03, 0x18, 0x35, 0x04, 0xd1, 0x4a, 0xbc, 0xe2, 0x88, 0x21, - 0xae, 0x8e, 0x5d, 0xe7, 0x70, 0x3f, 0x42, 0x49, 0x6c, 0x75, 0xa1, 0x34, 0x21, 0x62, 0x25, 0x67, - 0xed, 0xd3, 0x5b, 0x69, 0x38, 0xf4, 0x21, 0x14, 0x22, 0xbd, 0x3d, 0x94, 0x10, 0x25, 0x0e, 0x5a, - 0x1f, 0x4f, 0xc0, 0x11, 0x5b, 0x90, 0xf3, 0x1b, 0x69, 0x48, 0xcc, 0x8a, 0x85, 0x96, 0x5c, 0xed, - 0x93, 0xd4, 0x35, 0x0e, 0x71, 0x0a, 0x45, 0xa1, 0x6f, 0x15, 0x73, 0x4b, 0x5a, 0x53, 0x2e, 0xe6, - 0x96, 0xf4, 0xb6, 0xd7, 0x11, 0xcc, 0x45, 0x7b, 0x42, 0xa8, 0x9e, 0xe0, 0x89, 0x35, 0xaf, 0x6a, - 0xcf, 0x6e, 0xa1, 0x18, 0x39, 0x47, 0xec, 0x80, 0xc4, 0x9c, 0x93, 0xda, 0x1b, 0x8a, 0x39, 0x67, - 0x4c, 0x0b, 0xe5, 0x47, 0x28, 0x89, 0x9d, 0x02, 0x34, 0x41, 0xab, 0x21, 0x06, 0x9d, 0xde, 0x6a, - 0x40, 0x6f, 0x61, 0x3e, 0xd6, 0xe0, 0x40, 0xb7, 0xf1, 0xb9, 0xf7, 0x02, 0x7f, 0x07, 0x95, 0xf4, - 0x22, 0x0d, 0xdd, 0xa3, 0xf8, 0xae, 0xfd, 0x7c, 0x22, 0x5a, 0xbe, 0x25, 0x85, 0xc7, 0x63, 0xea, - 0x42, 0x34, 0x09, 0x4e, 0xa8, 0xdf, 0xe7, 0x93, 0x11, 0xf3, 0x5d, 0x09, 0xa0, 0x64, 0x1d, 0x85, - 0x26, 0xac, 0xc9, 0x6a, 0x3f, 0xbb, 0x93, 0x8e, 0x6f, 0xa3, 0xc3, 0xa3, 0x94, 0xc2, 0x10, 0xdd, - 0xc5, 0xef, 0xde, 0x77, 0xa3, 0xcd, 0xad, 0x9f, 0x5a, 0xba, 0x41, 0x2f, 0xaf, 0xcf, 0x1a, 0xe7, - 0x56, 0xbf, 0xe9, 0xa5, 0xcc, 0x96, 0xa3, 0xfb, 0x1f, 0xcd, 0xf0, 0xbf, 0x1e, 0x9d, 0x0c, 0x9a, - 0xf6, 0xd9, 0x17, 0xba, 0xd5, 0x4c, 0xfb, 0xcf, 0xe8, 0x2c, 0xe7, 0x65, 0xef, 0x1b, 0xff, 0x0d, - 0x00, 0x00, 0xff, 0xff, 0x84, 0x71, 0xf6, 0x21, 0x52, 0x1a, 0x00, 0x00, + // 1731 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4f, 0x6f, 0xdb, 0xc6, + 0x12, 0x37, 0x25, 0x5b, 0x32, 0x47, 0x96, 0x22, 0x6f, 0x6c, 0x85, 0x56, 0x12, 0x5b, 0x61, 0x02, + 0x3f, 0x23, 0xef, 0x45, 0xca, 0xb3, 0x93, 0xa0, 0x49, 0x8b, 0xb6, 0xb2, 0xa5, 0xd8, 0xaa, 0xe3, + 0x3f, 0xa1, 0xff, 0x00, 0x69, 0x0b, 0x08, 0x6b, 0x73, 0xcd, 0xb0, 0xa6, 0x44, 0x86, 0x5c, 0xa7, + 0xd6, 0xb1, 0xd7, 0xa2, 0x97, 0xa2, 0x40, 0x81, 0x9e, 0x7a, 0xe8, 0x07, 0xe9, 0x31, 0xb7, 0x7e, + 0x87, 0x7e, 0x8e, 0x5e, 0x8a, 0x25, 0x97, 0x14, 0x49, 0x51, 0xb6, 0xe2, 0x43, 0xd0, 0x5e, 0x08, + 0xee, 0xee, 0xcc, 0x6f, 0xe7, 0xcf, 0xce, 0xce, 0xcc, 0xc2, 0xe2, 0x89, 0xd1, 0xa3, 0x44, 0x57, + 0x8d, 0x9a, 0x8a, 0x29, 0x3e, 0xc6, 0x14, 0x1b, 0xa6, 0x16, 0xfe, 0xaf, 0x5a, 0xb6, 0x49, 0x4d, + 0x94, 0x0b, 0x4d, 0x95, 0x6f, 0x05, 0x4c, 0xc7, 0xa6, 0x4d, 0x6a, 0x86, 0x4e, 0x89, 0x8d, 0x0d, + 0xc7, 0x23, 0x2d, 0xcf, 0x6b, 0xa6, 0xa9, 0x19, 0xa4, 0xe6, 0x8e, 0x8e, 0xce, 0x4e, 0x6a, 0xea, + 0x99, 0x8d, 0xa9, 0x6e, 0x76, 0xf9, 0xfa, 0x42, 0x7c, 0x9d, 0xea, 0x1d, 0xe2, 0x50, 0xdc, 0xb1, + 0x3c, 0x02, 0xf9, 0x39, 0xcc, 0xac, 0xd9, 0x04, 0x53, 0xd2, 0xc0, 0x14, 0x3b, 0x84, 0x2a, 0xe4, + 0xcd, 0x19, 0x71, 0x28, 0xaa, 0x42, 0x56, 0xf5, 0x66, 0x24, 0xa1, 0x22, 0x2c, 0xe5, 0x96, 0x67, + 0xaa, 0x61, 0x41, 0x7d, 0x6a, 0x9f, 0x48, 0xbe, 0x01, 0xb3, 0x31, 0x1c, 0xc7, 0x32, 0xbb, 0x0e, + 0x91, 0x9b, 0x30, 0xbd, 0x4e, 0x68, 0x0c, 0xfd, 0x61, 0x1c, 0xbd, 0x94, 0x84, 0xde, 0x6a, 0xf4, + 0xf1, 0x1b, 0x80, 0xc2, 0x30, 0x1e, 0xf8, 0x7b, 0x4b, 0xf9, 0xb3, 0xe0, 0xc2, 0xd4, 0x6d, 0xaa, + 0x9f, 0xe0, 0xe3, 0xab, 0x8b, 0x83, 0xee, 0x40, 0x0e, 0x73, 0x90, 0xb6, 0xae, 0x4a, 0xa9, 0x8a, + 0xb0, 0x24, 0x6e, 0x8c, 0x29, 0xe0, 0x4f, 0xb6, 0x54, 0x74, 0x13, 0x26, 0x29, 0xd6, 0xda, 0x5d, + 0xdc, 0x21, 0x52, 0x9a, 0xaf, 0x67, 0x29, 0xd6, 0xb6, 0x71, 0x87, 0xac, 0x16, 0x60, 0xea, 0xcd, + 0x19, 0xb1, 0x7b, 0xed, 0xd7, 0xb8, 0xab, 0x1a, 0x44, 0xde, 0x80, 0xeb, 0x11, 0xb9, 0xb8, 0x7e, + 0xff, 0x87, 0x49, 0x1f, 0x91, 0x4b, 0x36, 0x1b, 0x91, 0x2c, 0x60, 0x08, 0xc8, 0xe4, 0x2f, 0x7c, + 0x47, 0xc4, 0x95, 0xbc, 0x02, 0x96, 0x04, 0xa5, 0x38, 0x16, 0xf7, 0xea, 0x0a, 0xe4, 0xeb, 0xaa, + 0xba, 0x8f, 0x35, 0x1f, 0x5d, 0x86, 0x34, 0xc5, 0x1a, 0x07, 0x2e, 0x46, 0x80, 0x19, 0x15, 0x5b, + 0x94, 0x8b, 0x50, 0xf0, 0x99, 0x38, 0xcc, 0xef, 0x02, 0xcc, 0xbc, 0xd0, 0x9d, 0x40, 0x71, 0xe7, + 0xea, 0x1e, 0x79, 0x0c, 0x99, 0x13, 0xdd, 0xa0, 0xc4, 0x76, 0x9d, 0x91, 0x5b, 0xbe, 0x1d, 0x61, + 0x78, 0xee, 0x2e, 0x35, 0xcf, 0x2d, 0x9b, 0x38, 0x8e, 0x6e, 0x76, 0x15, 0x4e, 0x8c, 0x3e, 0x05, + 0xb0, 0xb0, 0xa6, 0x77, 0xdd, 0xa0, 0x71, 0xfd, 0x94, 0x5b, 0x9e, 0x8f, 0xb0, 0xee, 0x06, 0xcb, + 0x3b, 0x16, 0xfb, 0x3a, 0x4a, 0x88, 0x43, 0x3e, 0x85, 0xd9, 0x98, 0x02, 0xdc, 0x75, 0x2b, 0x20, + 0xfa, 0x76, 0x74, 0x24, 0xa1, 0x92, 0x1e, 0x6e, 0xef, 0x3e, 0x1d, 0xba, 0x0d, 0xd0, 0x25, 0xe7, + 0xb4, 0x4d, 0xcd, 0x53, 0xd2, 0xf5, 0x4e, 0x95, 0x22, 0xb2, 0x99, 0x7d, 0x36, 0x21, 0xff, 0x20, + 0xc0, 0x75, 0xb6, 0x1b, 0x57, 0x3f, 0xb0, 0x56, 0x5f, 0x77, 0xe1, 0xea, 0xba, 0xa7, 0xde, 0x5b, + 0x77, 0xcd, 0x73, 0x5e, 0x5f, 0x1a, 0xae, 0xfa, 0x43, 0x98, 0xe4, 0x5e, 0xf1, 0x35, 0x4f, 0x0e, + 0xcb, 0x80, 0xea, 0x32, 0xbd, 0xff, 0x12, 0x60, 0xf6, 0xc0, 0x52, 0x13, 0x0e, 0xf5, 0x07, 0x8f, + 0x5c, 0xf4, 0x00, 0xc6, 0x19, 0x94, 0x34, 0xee, 0x2a, 0x36, 0x97, 0xe8, 0x52, 0xb6, 0xad, 0xe2, + 0x92, 0xb1, 0xa8, 0xeb, 0x10, 0x8a, 0x5d, 0x96, 0x89, 0x84, 0xa8, 0xdb, 0xe2, 0x8b, 0x4a, 0x40, + 0x36, 0x70, 0x37, 0x3c, 0x85, 0x52, 0x5c, 0x79, 0x6e, 0xe8, 0x85, 0xa8, 0x2e, 0x82, 0x6b, 0xb7, + 0x90, 0x26, 0xf2, 0x2f, 0x02, 0xcc, 0x36, 0x88, 0x41, 0xfe, 0x01, 0x86, 0x1b, 0x50, 0x4b, 0x82, + 0x52, 0x5c, 0x34, 0x7e, 0x2b, 0x60, 0xc8, 0x2b, 0xc4, 0x21, 0xf6, 0x5b, 0xf7, 0x98, 0xb5, 0x1a, + 0xe8, 0x31, 0x00, 0x97, 0xc2, 0x57, 0x73, 0xb8, 0xbc, 0x22, 0xa7, 0x6c, 0xa9, 0x68, 0x2e, 0x24, + 0x8e, 0x77, 0xa6, 0x7c, 0x61, 0xe4, 0x77, 0x02, 0xdc, 0x5e, 0x27, 0x74, 0xc7, 0x6e, 0x9e, 0x53, + 0xd2, 0x55, 0x43, 0xdb, 0xf9, 0x06, 0xaa, 0x43, 0xc1, 0xee, 0xcf, 0xf6, 0xf7, 0x2d, 0x47, 0xf6, + 0x8d, 0xc8, 0xa9, 0xe4, 0x43, 0x1c, 0xde, 0xfe, 0xe6, 0xb7, 0x5d, 0x62, 0x07, 0xe6, 0x52, 0xb2, + 0xee, 0xb8, 0xa5, 0xa2, 0x0d, 0x40, 0xaf, 0x09, 0xb6, 0xe9, 0x11, 0xc1, 0xb4, 0xad, 0x77, 0x29, + 0xe3, 0x32, 0xf8, 0xf5, 0x33, 0x57, 0xf5, 0x92, 0x76, 0xd5, 0x4f, 0xda, 0xd5, 0x06, 0x4f, 0xea, + 0xca, 0x74, 0xc0, 0xd4, 0xe2, 0x3c, 0xf2, 0x6f, 0x29, 0xc8, 0x85, 0xa4, 0xf8, 0xb7, 0xc8, 0x8d, + 0x9e, 0x02, 0x90, 0x73, 0x4b, 0xb7, 0x89, 0xd3, 0xc6, 0x54, 0x1a, 0xe7, 0x32, 0xc6, 0x11, 0xf6, + 0xfd, 0x72, 0x45, 0x11, 0x39, 0x75, 0x9d, 0x46, 0x62, 0x2a, 0x33, 0x52, 0x4c, 0xc9, 0x5f, 0xc3, + 0xfc, 0x30, 0x77, 0xf3, 0x58, 0x7a, 0x06, 0xb9, 0x90, 0x15, 0xb8, 0xd1, 0xa4, 0x61, 0x46, 0x53, + 0xc2, 0xc4, 0x72, 0x0f, 0xe6, 0x14, 0x62, 0x10, 0xec, 0x90, 0x0f, 0x7d, 0x90, 0xe4, 0x5b, 0x50, + 0x4e, 0xda, 0x9a, 0x47, 0xd2, 0xf7, 0x02, 0x64, 0x79, 0x68, 0xa0, 0x45, 0x48, 0x5d, 0x1a, 0x3c, + 0x29, 0x5d, 0x8d, 0x58, 0x37, 0x35, 0x92, 0x75, 0xd1, 0x3d, 0xc8, 0x5b, 0xec, 0x1a, 0x60, 0x7b, + 0x6f, 0x92, 0x9e, 0x23, 0xa5, 0x2b, 0xe9, 0x25, 0x51, 0x89, 0x4e, 0xca, 0x2b, 0x20, 0xee, 0xfa, + 0x13, 0xa8, 0x08, 0xe9, 0x53, 0xd2, 0xe3, 0x57, 0x16, 0xfb, 0x45, 0x33, 0x30, 0xf1, 0x16, 0x1b, + 0x67, 0x7e, 0xa8, 0x7a, 0x03, 0xf9, 0x47, 0x01, 0xc4, 0x40, 0x3e, 0x24, 0x41, 0xd6, 0xb2, 0xcd, + 0x6f, 0x08, 0x2f, 0x61, 0x44, 0xc5, 0x1f, 0x22, 0x04, 0xe3, 0xa1, 0x38, 0x77, 0xff, 0x51, 0x09, + 0x32, 0xaa, 0xd9, 0xc1, 0xba, 0x97, 0xd7, 0x45, 0x85, 0x8f, 0x18, 0xca, 0x5b, 0x62, 0xb3, 0x54, + 0xe8, 0x9e, 0x3b, 0x51, 0xf1, 0x87, 0x0c, 0xe5, 0xe0, 0xa0, 0xd5, 0x70, 0x6f, 0x6a, 0x51, 0x71, + 0xff, 0x99, 0xa4, 0xa6, 0xad, 0xb9, 0x07, 0x4d, 0x54, 0xd8, 0xaf, 0xfc, 0x2e, 0x05, 0x93, 0xfe, + 0xa5, 0x85, 0x0a, 0x81, 0x59, 0x45, 0xd7, 0x7c, 0xa1, 0x8b, 0x35, 0x35, 0xda, 0xc5, 0xea, 0x67, + 0x94, 0xf4, 0xfb, 0x67, 0x94, 0xf1, 0xd1, 0xfc, 0xf3, 0x84, 0x25, 0x7a, 0x6e, 0x79, 0x47, 0x9a, + 0x70, 0xf7, 0x29, 0xc5, 0x12, 0x3d, 0x5f, 0x56, 0x42, 0x94, 0xe8, 0x1e, 0x8c, 0x53, 0xac, 0x39, + 0x52, 0xc6, 0xe5, 0x18, 0xac, 0xea, 0xdc, 0x55, 0x16, 0xc9, 0xc7, 0x6e, 0x95, 0xa8, 0xb2, 0x48, + 0xce, 0x5e, 0x1e, 0xc9, 0x9c, 0xba, 0x4e, 0xe5, 0x5d, 0x98, 0x0a, 0x6b, 0x18, 0x78, 0x51, 0x08, + 0x79, 0xf1, 0x7f, 0xe1, 0x73, 0xc1, 0xe4, 0xf6, 0x1b, 0xa2, 0x2a, 0x6b, 0x88, 0xaa, 0x2f, 0xbc, + 0x86, 0xc8, 0x3f, 0x2f, 0x06, 0xa4, 0xf7, 0xb1, 0x96, 0x08, 0xb4, 0x90, 0x90, 0xc0, 0x22, 0xe9, + 0x2b, 0xe4, 0xba, 0xf4, 0x68, 0x5d, 0xc9, 0x77, 0x02, 0x4c, 0xfa, 0xf6, 0x46, 0xcf, 0x20, 0x7b, + 0x4a, 0x7a, 0xed, 0x0e, 0xb6, 0x78, 0xd5, 0x73, 0x27, 0xd1, 0x2f, 0xd5, 0x4d, 0xd2, 0xdb, 0xc2, + 0x56, 0xb3, 0x4b, 0xed, 0x9e, 0x92, 0x39, 0x75, 0x07, 0xe5, 0xa7, 0x90, 0x0b, 0x4d, 0x8f, 0x1a, + 0x1d, 0xcf, 0x52, 0x1f, 0x09, 0xf2, 0x0e, 0x14, 0xe3, 0x15, 0x1e, 0xfa, 0x18, 0xb2, 0x5e, 0x8d, + 0xe7, 0x24, 0x8a, 0xb2, 0xa7, 0x77, 0x35, 0x83, 0xec, 0xda, 0xa6, 0x45, 0x6c, 0xda, 0xf3, 0xb8, + 0x15, 0x9f, 0x43, 0xfe, 0x23, 0x0d, 0x33, 0x49, 0x14, 0xe8, 0x33, 0x00, 0x96, 0x4f, 0x23, 0xa5, + 0xe6, 0x7c, 0xfc, 0x50, 0x44, 0x79, 0x36, 0xc6, 0x14, 0x91, 0x62, 0x8d, 0x03, 0xbc, 0x84, 0x62, + 0x70, 0xba, 0xda, 0x91, 0x6a, 0xfd, 0x5e, 0xf2, 0x69, 0x1c, 0x00, 0xbb, 0x16, 0xf0, 0x73, 0xc8, + 0x6d, 0xb8, 0x16, 0x38, 0x95, 0x23, 0x7a, 0xbe, 0xbb, 0x9b, 0x18, 0x47, 0x03, 0x80, 0x05, 0x9f, + 0x9b, 0xe3, 0x6d, 0x42, 0xc1, 0x2f, 0x35, 0x38, 0x9c, 0x17, 0x63, 0x72, 0xd2, 0x51, 0x18, 0x40, + 0xcb, 0x73, 0x5e, 0x0e, 0xb6, 0x0b, 0x93, 0x8c, 0x00, 0x53, 0xd3, 0x96, 0xa0, 0x22, 0x2c, 0x15, + 0x96, 0x1f, 0x5d, 0xea, 0x87, 0xea, 0x9a, 0xd9, 0xb1, 0xb0, 0xad, 0x3b, 0xac, 0xe6, 0xf6, 0x78, + 0x95, 0x00, 0x45, 0xae, 0x00, 0x1a, 0x5c, 0x47, 0x00, 0x99, 0xe6, 0xcb, 0x83, 0xfa, 0x8b, 0xbd, + 0xe2, 0xd8, 0xea, 0x34, 0x5c, 0xb3, 0x38, 0x20, 0xd7, 0x40, 0x5e, 0x87, 0x52, 0xb2, 0xfe, 0xf1, + 0x9a, 0x4e, 0x18, 0xac, 0xe9, 0x56, 0x01, 0x26, 0x7d, 0x3c, 0xf9, 0x13, 0x98, 0x1e, 0xf0, 0x70, + 0xa4, 0xe8, 0x13, 0xe2, 0x45, 0x5f, 0x98, 0xfb, 0x2b, 0xb8, 0x31, 0xc4, 0xb1, 0xe8, 0x91, 0x17, + 0x3a, 0xac, 0x96, 0x10, 0x78, 0x2d, 0x11, 0xb6, 0xd3, 0x26, 0xe9, 0x1d, 0xb2, 0xf3, 0xbe, 0x8b, + 0x75, 0x66, 0x65, 0x16, 0x34, 0x87, 0xd8, 0x88, 0x80, 0x3f, 0x81, 0xa9, 0x30, 0xd5, 0xc8, 0xf9, + 0xe5, 0x57, 0x56, 0x21, 0x27, 0x79, 0x13, 0x95, 0x63, 0xb9, 0x86, 0xa9, 0xe5, 0x67, 0x9b, 0x99, + 0x70, 0xb6, 0xd9, 0x18, 0xe3, 0x17, 0x8c, 0x14, 0xcd, 0x37, 0x4c, 0x52, 0x9e, 0x71, 0xca, 0xb1, + 0x8c, 0xc3, 0xb0, 0xfa, 0x39, 0xc7, 0xcd, 0x2f, 0x13, 0x7c, 0x9e, 0x0d, 0x22, 0x9a, 0xfd, 0x94, + 0x82, 0xe9, 0x81, 0x3e, 0x8c, 0x69, 0x63, 0xe8, 0x1d, 0xdd, 0x93, 0x2d, 0xaf, 0x78, 0x03, 0x36, + 0x1b, 0x6e, 0xa1, 0xbc, 0x01, 0xfa, 0x1c, 0xb2, 0x8e, 0x69, 0xd3, 0x4d, 0xd2, 0x73, 0x05, 0x2b, + 0x2c, 0x2f, 0x5e, 0xdc, 0xe4, 0x55, 0xf7, 0x3c, 0x6a, 0xc5, 0x67, 0x43, 0xcf, 0x41, 0x64, 0xbf, + 0x3b, 0xb6, 0xca, 0x03, 0xa2, 0xb0, 0xbc, 0x34, 0x02, 0x86, 0x4b, 0xaf, 0xf4, 0x59, 0xe5, 0xfb, + 0x20, 0x06, 0xf3, 0xa8, 0x00, 0xd0, 0x68, 0xee, 0xad, 0x35, 0xb7, 0x1b, 0xad, 0xed, 0xf5, 0xe2, + 0x18, 0xca, 0x83, 0x58, 0x0f, 0x86, 0x82, 0x7c, 0x0b, 0xb2, 0x5c, 0x0e, 0x34, 0x0d, 0xf9, 0x35, + 0xa5, 0x59, 0xdf, 0x6f, 0xed, 0x6c, 0xb7, 0xf7, 0x5b, 0x5b, 0xcd, 0xe2, 0xd8, 0xf2, 0x9f, 0x59, + 0xc8, 0x31, 0xbf, 0xad, 0x79, 0x02, 0xa0, 0x43, 0xc8, 0x47, 0xde, 0x9f, 0x50, 0xf4, 0xc6, 0x4b, + 0x7a, 0xe3, 0x2a, 0xcb, 0x17, 0x91, 0xf0, 0xb2, 0x70, 0x0b, 0xa0, 0xff, 0xee, 0x84, 0xa2, 0xb7, + 0xdd, 0xc0, 0xbb, 0x56, 0x79, 0x61, 0xe8, 0x3a, 0x87, 0x7b, 0x05, 0x85, 0xe8, 0x8b, 0x0a, 0x4a, + 0x12, 0x22, 0xd6, 0xac, 0x95, 0xef, 0x5e, 0x48, 0xc3, 0xa1, 0x77, 0x21, 0x17, 0x7a, 0x42, 0x42, + 0x03, 0xa2, 0xc4, 0x41, 0x2b, 0xc3, 0x09, 0x38, 0x62, 0x1d, 0x32, 0xde, 0x7b, 0x0d, 0x8a, 0xd6, + 0xaa, 0x91, 0x97, 0x9f, 0xf2, 0xcd, 0xc4, 0x35, 0x0e, 0x71, 0x08, 0xf9, 0xc8, 0xf3, 0x48, 0xcc, + 0x2d, 0x49, 0x6f, 0x3f, 0x31, 0xb7, 0x24, 0xbf, 0xae, 0xec, 0xc1, 0x54, 0xf8, 0xe9, 0x01, 0x55, + 0x06, 0x78, 0x62, 0x6f, 0x24, 0xe5, 0x3b, 0x17, 0x50, 0xf4, 0x9d, 0x13, 0x6d, 0xb4, 0x63, 0xce, + 0x49, 0x7c, 0x82, 0x88, 0x39, 0x67, 0x48, 0xa7, 0xfe, 0x0a, 0x0a, 0xd1, 0x66, 0x37, 0x06, 0x9d, + 0xd8, 0xa4, 0xc7, 0xa0, 0x93, 0xbb, 0x65, 0xf4, 0x06, 0x4a, 0xc9, 0xad, 0x0d, 0xba, 0x1f, 0xf7, + 0xf0, 0xf0, 0x76, 0xb7, 0xfc, 0xdf, 0x91, 0x68, 0xf9, 0x96, 0x04, 0xd0, 0x60, 0xd3, 0x81, 0x16, + 0x63, 0x0d, 0xcd, 0x90, 0x86, 0xa8, 0xfc, 0x9f, 0x4b, 0xe9, 0xbc, 0x6d, 0x56, 0xd7, 0xbe, 0xac, + 0x6b, 0x3a, 0x7d, 0x7d, 0x76, 0x54, 0x3d, 0x36, 0x3b, 0x35, 0xb7, 0xec, 0x33, 0x6d, 0xcd, 0xfb, + 0xa9, 0x05, 0xcf, 0xe2, 0x1a, 0xe9, 0xd6, 0xac, 0xa3, 0x07, 0x9a, 0x59, 0x4b, 0x7a, 0x5e, 0x3f, + 0xca, 0xb8, 0x15, 0xe8, 0xca, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x11, 0x93, 0x7a, 0x7d, + 0x17, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2730,12 +2556,6 @@ type DataCatalogClient interface { UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) // Deletes an existing artifact, removing the stored artifact data from the underlying blob storage. DeleteArtifact(ctx context.Context, in *DeleteArtifactRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - DeleteArtifacts(ctx context.Context, in *DeleteArtifactsRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -2748,21 +2568,9 @@ type DataCatalogClient interface { // task B may take over the reservation, resulting in two tasks A and B running in parallel. So // a third task C may get the Artifact from A or B, whichever writes last. GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - GetOrExtendReservations(ctx context.Context, in *GetOrExtendReservationsRequest, opts ...grpc.CallOption) (*GetOrExtendReservationsResponse, error) // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - ReleaseReservations(ctx context.Context, in *ReleaseReservationsRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) } type dataCatalogClient struct { @@ -2854,15 +2662,6 @@ func (c *dataCatalogClient) DeleteArtifact(ctx context.Context, in *DeleteArtifa return out, nil } -func (c *dataCatalogClient) DeleteArtifacts(ctx context.Context, in *DeleteArtifactsRequest, opts ...grpc.CallOption) (*DeleteArtifactResponse, error) { - out := new(DeleteArtifactResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/DeleteArtifacts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { out := new(GetOrExtendReservationResponse) err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrExtendReservation", in, out, opts...) @@ -2872,15 +2671,6 @@ func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetO return out, nil } -func (c *dataCatalogClient) GetOrExtendReservations(ctx context.Context, in *GetOrExtendReservationsRequest, opts ...grpc.CallOption) (*GetOrExtendReservationsResponse, error) { - out := new(GetOrExtendReservationsResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrExtendReservations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { out := new(ReleaseReservationResponse) err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ReleaseReservation", in, out, opts...) @@ -2890,15 +2680,6 @@ func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseR return out, nil } -func (c *dataCatalogClient) ReleaseReservations(ctx context.Context, in *ReleaseReservationsRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { - out := new(ReleaseReservationResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ReleaseReservations", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // DataCatalogServer is the server API for DataCatalog service. type DataCatalogServer interface { // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. @@ -2921,12 +2702,6 @@ type DataCatalogServer interface { UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) // Deletes an existing artifact, removing the stored artifact data from the underlying blob storage. DeleteArtifact(context.Context, *DeleteArtifactRequest) (*DeleteArtifactResponse, error) - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - DeleteArtifacts(context.Context, *DeleteArtifactsRequest) (*DeleteArtifactResponse, error) // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -2939,21 +2714,9 @@ type DataCatalogServer interface { // task B may take over the reservation, resulting in two tasks A and B running in parallel. So // a third task C may get the Artifact from A or B, whichever writes last. GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - GetOrExtendReservations(context.Context, *GetOrExtendReservationsRequest) (*GetOrExtendReservationsResponse, error) // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - ReleaseReservations(context.Context, *ReleaseReservationsRequest) (*ReleaseReservationResponse, error) } // UnimplementedDataCatalogServer can be embedded to have forward compatible implementations. @@ -2987,21 +2750,12 @@ func (*UnimplementedDataCatalogServer) UpdateArtifact(ctx context.Context, req * func (*UnimplementedDataCatalogServer) DeleteArtifact(ctx context.Context, req *DeleteArtifactRequest) (*DeleteArtifactResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteArtifact not implemented") } -func (*UnimplementedDataCatalogServer) DeleteArtifacts(ctx context.Context, req *DeleteArtifactsRequest) (*DeleteArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteArtifacts not implemented") -} func (*UnimplementedDataCatalogServer) GetOrExtendReservation(ctx context.Context, req *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") } -func (*UnimplementedDataCatalogServer) GetOrExtendReservations(ctx context.Context, req *GetOrExtendReservationsRequest) (*GetOrExtendReservationsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservations not implemented") -} func (*UnimplementedDataCatalogServer) ReleaseReservation(ctx context.Context, req *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") } -func (*UnimplementedDataCatalogServer) ReleaseReservations(ctx context.Context, req *ReleaseReservationsRequest) (*ReleaseReservationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservations not implemented") -} func RegisterDataCatalogServer(s *grpc.Server, srv DataCatalogServer) { s.RegisterService(&_DataCatalog_serviceDesc, srv) @@ -3169,24 +2923,6 @@ func _DataCatalog_DeleteArtifact_Handler(srv interface{}, ctx context.Context, d return interceptor(ctx, in, info, handler) } -func _DataCatalog_DeleteArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteArtifactsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).DeleteArtifacts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/DeleteArtifacts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).DeleteArtifacts(ctx, req.(*DeleteArtifactsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetOrExtendReservationRequest) if err := dec(in); err != nil { @@ -3205,24 +2941,6 @@ func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } -func _DataCatalog_GetOrExtendReservations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetOrExtendReservationsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetOrExtendReservations(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/GetOrExtendReservations", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetOrExtendReservations(ctx, req.(*GetOrExtendReservationsRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ReleaseReservationRequest) if err := dec(in); err != nil { @@ -3241,24 +2959,6 @@ func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Contex return interceptor(ctx, in, info, handler) } -func _DataCatalog_ReleaseReservations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleaseReservationsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ReleaseReservations(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/ReleaseReservations", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ReleaseReservations(ctx, req.(*ReleaseReservationsRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _DataCatalog_serviceDesc = grpc.ServiceDesc{ ServiceName: "datacatalog.DataCatalog", HandlerType: (*DataCatalogServer)(nil), @@ -3299,26 +2999,14 @@ var _DataCatalog_serviceDesc = grpc.ServiceDesc{ MethodName: "DeleteArtifact", Handler: _DataCatalog_DeleteArtifact_Handler, }, - { - MethodName: "DeleteArtifacts", - Handler: _DataCatalog_DeleteArtifacts_Handler, - }, { MethodName: "GetOrExtendReservation", Handler: _DataCatalog_GetOrExtendReservation_Handler, }, - { - MethodName: "GetOrExtendReservations", - Handler: _DataCatalog_GetOrExtendReservations_Handler, - }, { MethodName: "ReleaseReservation", Handler: _DataCatalog_ReleaseReservation_Handler, }, - { - MethodName: "ReleaseReservations", - Handler: _DataCatalog_ReleaseReservations_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "flyteidl/datacatalog/datacatalog.proto", diff --git a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java index 62eb589fcc..80d13abc6b 100644 --- a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java +++ b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java @@ -13738,72 +13738,27 @@ public datacatalog.Datacatalog.DeleteArtifactRequest getDefaultInstanceForType() } - public interface DeleteArtifactsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.DeleteArtifactsRequest) + public interface DeleteArtifactResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.DeleteArtifactResponse) com.google.protobuf.MessageOrBuilder { - - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - java.util.List - getArtifactsList(); - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - datacatalog.Datacatalog.DeleteArtifactRequest getArtifacts(int index); - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - int getArtifactsCount(); - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - java.util.List - getArtifactsOrBuilderList(); - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder getArtifactsOrBuilder( - int index); } /** *
-   * Request message for deleting multiple Artifacts and their associated ArtifactData.
+   * Response message for deleting an Artifact.
    * 
* - * Protobuf type {@code datacatalog.DeleteArtifactsRequest} + * Protobuf type {@code datacatalog.DeleteArtifactResponse} */ - public static final class DeleteArtifactsRequest extends + public static final class DeleteArtifactResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.DeleteArtifactsRequest) - DeleteArtifactsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:datacatalog.DeleteArtifactResponse) + DeleteArtifactResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use DeleteArtifactsRequest.newBuilder() to construct. - private DeleteArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeleteArtifactResponse.newBuilder() to construct. + private DeleteArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteArtifactsRequest() { - artifacts_ = java.util.Collections.emptyList(); + private DeleteArtifactResponse() { } @java.lang.Override @@ -13811,7 +13766,7 @@ private DeleteArtifactsRequest() { getUnknownFields() { return this.unknownFields; } - private DeleteArtifactsRequest( + private DeleteArtifactResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13819,7 +13774,6 @@ private DeleteArtifactsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -13830,15 +13784,6 @@ private DeleteArtifactsRequest( 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.DeleteArtifactRequest.parser(), extensionRegistry)); - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -13854,79 +13799,21 @@ private DeleteArtifactsRequest( 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_DeleteArtifactsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactsRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DeleteArtifactsRequest.class, datacatalog.Datacatalog.DeleteArtifactsRequest.Builder.class); - } - - public static final int ARTIFACTS_FIELD_NUMBER = 1; - private java.util.List artifacts_; - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public java.util.List getArtifactsList() { - return artifacts_; - } - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - return artifacts_; - } - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public int getArtifactsCount() { - return artifacts_.size(); - } - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequest getArtifacts(int index) { - return artifacts_.get(index); - } - /** - *
-     * List of deletion requests for artifacts to remove
-     * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder getArtifactsOrBuilder( - int index) { - return artifacts_.get(index); + datacatalog.Datacatalog.DeleteArtifactResponse.class, datacatalog.Datacatalog.DeleteArtifactResponse.Builder.class); } private byte memoizedIsInitialized = -1; @@ -13943,9 +13830,6 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < artifacts_.size(); i++) { - output.writeMessage(1, artifacts_.get(i)); - } unknownFields.writeTo(output); } @@ -13955,10 +13839,6 @@ public int getSerializedSize() { 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)); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -13969,13 +13849,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.DeleteArtifactsRequest)) { + if (!(obj instanceof datacatalog.Datacatalog.DeleteArtifactResponse)) { return super.equals(obj); } - datacatalog.Datacatalog.DeleteArtifactsRequest other = (datacatalog.Datacatalog.DeleteArtifactsRequest) obj; + datacatalog.Datacatalog.DeleteArtifactResponse other = (datacatalog.Datacatalog.DeleteArtifactResponse) obj; - if (!getArtifactsList() - .equals(other.getArtifactsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -13987,78 +13865,74 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getArtifactsCount() > 0) { - hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactsList().hashCode(); - } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse 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.DeleteArtifactsRequest parseFrom(byte[] data) + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse 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.DeleteArtifactsRequest parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.DeleteArtifactResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseDelimitedFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse 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.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( + public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -14071,7 +13945,7 @@ public static datacatalog.Datacatalog.DeleteArtifactsRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.DeleteArtifactsRequest prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.DeleteArtifactResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -14088,29 +13962,29 @@ protected Builder newBuilderForType( } /** *
-     * Request message for deleting multiple Artifacts and their associated ArtifactData.
+     * Response message for deleting an Artifact.
      * 
* - * Protobuf type {@code datacatalog.DeleteArtifactsRequest} + * Protobuf type {@code datacatalog.DeleteArtifactResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.DeleteArtifactsRequest) - datacatalog.Datacatalog.DeleteArtifactsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.DeleteArtifactResponse) + datacatalog.Datacatalog.DeleteArtifactResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactsRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DeleteArtifactsRequest.class, datacatalog.Datacatalog.DeleteArtifactsRequest.Builder.class); + datacatalog.Datacatalog.DeleteArtifactResponse.class, datacatalog.Datacatalog.DeleteArtifactResponse.Builder.class); } - // Construct using datacatalog.Datacatalog.DeleteArtifactsRequest.newBuilder() + // Construct using datacatalog.Datacatalog.DeleteArtifactResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -14123,35 +13997,28 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getArtifactsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - artifactsBuilder_.clear(); - } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactsRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.DeleteArtifactsRequest.getDefaultInstance(); + public datacatalog.Datacatalog.DeleteArtifactResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.DeleteArtifactResponse.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactsRequest build() { - datacatalog.Datacatalog.DeleteArtifactsRequest result = buildPartial(); + public datacatalog.Datacatalog.DeleteArtifactResponse build() { + datacatalog.Datacatalog.DeleteArtifactResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14159,18 +14026,8 @@ public datacatalog.Datacatalog.DeleteArtifactsRequest build() { } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactsRequest buildPartial() { - datacatalog.Datacatalog.DeleteArtifactsRequest result = new datacatalog.Datacatalog.DeleteArtifactsRequest(this); - int from_bitField0_ = bitField0_; - if (artifactsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.artifacts_ = artifacts_; - } else { - result.artifacts_ = artifactsBuilder_.build(); - } + public datacatalog.Datacatalog.DeleteArtifactResponse buildPartial() { + datacatalog.Datacatalog.DeleteArtifactResponse result = new datacatalog.Datacatalog.DeleteArtifactResponse(this); onBuilt(); return result; } @@ -14209,42 +14066,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.DeleteArtifactsRequest) { - return mergeFrom((datacatalog.Datacatalog.DeleteArtifactsRequest)other); + if (other instanceof datacatalog.Datacatalog.DeleteArtifactResponse) { + return mergeFrom((datacatalog.Datacatalog.DeleteArtifactResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.DeleteArtifactsRequest other) { - if (other == datacatalog.Datacatalog.DeleteArtifactsRequest.getDefaultInstance()) return this; - if (artifactsBuilder_ == null) { - if (!other.artifacts_.isEmpty()) { - if (artifacts_.isEmpty()) { - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArtifactsIsMutable(); - artifacts_.addAll(other.artifacts_); - } - onChanged(); - } - } else { - if (!other.artifacts_.isEmpty()) { - if (artifactsBuilder_.isEmpty()) { - artifactsBuilder_.dispose(); - artifactsBuilder_ = null; - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - artifactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactsFieldBuilder() : null; - } else { - artifactsBuilder_.addAllMessages(other.artifacts_); - } - } - } + public Builder mergeFrom(datacatalog.Datacatalog.DeleteArtifactResponse other) { + if (other == datacatalog.Datacatalog.DeleteArtifactResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -14260,11 +14091,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datacatalog.Datacatalog.DeleteArtifactsRequest parsedMessage = null; + datacatalog.Datacatalog.DeleteArtifactResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.DeleteArtifactsRequest) e.getUnfinishedMessage(); + parsedMessage = (datacatalog.Datacatalog.DeleteArtifactResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -14273,393 +14104,124 @@ public Builder mergeFrom( } return this; } - private int bitField0_; + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } - private java.util.List artifacts_ = - java.util.Collections.emptyList(); - private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(artifacts_); - bitField0_ |= 0x00000001; - } + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.DeleteArtifactRequest, datacatalog.Datacatalog.DeleteArtifactRequest.Builder, datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder> artifactsBuilder_; - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public java.util.List getArtifactsList() { - if (artifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifacts_); - } else { - return artifactsBuilder_.getMessageList(); - } - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public int getArtifactsCount() { - if (artifactsBuilder_ == null) { - return artifacts_.size(); - } else { - return artifactsBuilder_.getCount(); - } - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequest getArtifacts(int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessage(index); - } - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder setArtifacts( - int index, datacatalog.Datacatalog.DeleteArtifactRequest value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.set(index, value); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder setArtifacts( - int index, datacatalog.Datacatalog.DeleteArtifactRequest.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder addArtifacts(datacatalog.Datacatalog.DeleteArtifactRequest value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(value); - onChanged(); - } else { - artifactsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder addArtifacts( - int index, datacatalog.Datacatalog.DeleteArtifactRequest value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(index, value); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder addArtifacts( - datacatalog.Datacatalog.DeleteArtifactRequest.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder addArtifacts( - int index, datacatalog.Datacatalog.DeleteArtifactRequest.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest 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; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder clearArtifacts() { - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - artifactsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public Builder removeArtifacts(int index) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.remove(index); - onChanged(); - } else { - artifactsBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequest.Builder getArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder getArtifactsOrBuilder( - int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); } else { - return artifactsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - if (artifactsBuilder_ != null) { - return artifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifacts_); - } - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequest.Builder addArtifactsBuilder() { - return getArtifactsFieldBuilder().addBuilder( - datacatalog.Datacatalog.DeleteArtifactRequest.getDefaultInstance()); - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public datacatalog.Datacatalog.DeleteArtifactRequest.Builder addArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.DeleteArtifactRequest.getDefaultInstance()); - } - /** - *
-       * List of deletion requests for artifacts to remove
-       * 
- * - * repeated .datacatalog.DeleteArtifactRequest artifacts = 1; - */ - public java.util.List - getArtifactsBuilderList() { - return getArtifactsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.DeleteArtifactRequest, datacatalog.Datacatalog.DeleteArtifactRequest.Builder, datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder> - getArtifactsFieldBuilder() { - if (artifactsBuilder_ == null) { - artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.DeleteArtifactRequest, datacatalog.Datacatalog.DeleteArtifactRequest.Builder, datacatalog.Datacatalog.DeleteArtifactRequestOrBuilder>( - artifacts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - artifacts_ = null; - } - return artifactsBuilder_; - } - @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.DeleteArtifactsRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.DeleteArtifactsRequest) - private static final datacatalog.Datacatalog.DeleteArtifactsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.DeleteArtifactsRequest(); - } - - public static datacatalog.Datacatalog.DeleteArtifactsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteArtifactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteArtifactsRequest(input, extensionRegistry); + // @@protoc_insertion_point(builder_scope:datacatalog.DeleteArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:datacatalog.DeleteArtifactResponse) + private static final datacatalog.Datacatalog.DeleteArtifactResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.DeleteArtifactResponse(); + } + + public static datacatalog.Datacatalog.DeleteArtifactResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteArtifactResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteArtifactResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactsRequest getDefaultInstanceForType() { + public datacatalog.Datacatalog.DeleteArtifactResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface DeleteArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.DeleteArtifactResponse) + public interface ReservationIDOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReservationID) com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response message for deleting an Artifact.
-   * 
- * - * Protobuf type {@code datacatalog.DeleteArtifactResponse} - */ - public static final class DeleteArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.DeleteArtifactResponse) - DeleteArtifactResponseOrBuilder { + + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + boolean hasDatasetId(); + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetID getDatasetId(); + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + java.lang.String getTagName(); + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + com.google.protobuf.ByteString + getTagNameBytes(); + } + /** + *
+   * ReservationID message that is composed of several string fields.
+   * 
+ * + * Protobuf type {@code datacatalog.ReservationID} + */ + public static final class ReservationID extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.ReservationID) + ReservationIDOrBuilder { private static final long serialVersionUID = 0L; - // Use DeleteArtifactResponse.newBuilder() to construct. - private DeleteArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ReservationID.newBuilder() to construct. + private ReservationID(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteArtifactResponse() { + private ReservationID() { + tagName_ = ""; } @java.lang.Override @@ -14667,7 +14229,7 @@ private DeleteArtifactResponse() { getUnknownFields() { return this.unknownFields; } - private DeleteArtifactResponse( + private ReservationID( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -14675,6 +14237,7 @@ private DeleteArtifactResponse( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -14685,6 +14248,25 @@ private DeleteArtifactResponse( case 0: done = true; break; + case 10: { + datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; + if (datasetId_ != null) { + subBuilder = datasetId_.toBuilder(); + } + datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetId_); + datasetId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + tagName_ = s; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -14706,15 +14288,90 @@ private DeleteArtifactResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DeleteArtifactResponse.class, datacatalog.Datacatalog.DeleteArtifactResponse.Builder.class); + datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.DatasetID datasetId_; + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetId_ != null; + } + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + /** + *
+     * The unique ID for the reserved dataset
+     * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + return getDatasetId(); + } + + public static final int TAG_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object tagName_; + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + 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(); + tagName_ = s; + return s; + } + } + /** + *
+     * The specific artifact tag for the reservation
+     * 
+ * + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -14731,6 +14388,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (datasetId_ != null) { + output.writeMessage(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + } unknownFields.writeTo(output); } @@ -14740,6 +14403,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (datasetId_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDatasetId()); + } + if (!getTagNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -14750,11 +14420,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.DeleteArtifactResponse)) { + if (!(obj instanceof datacatalog.Datacatalog.ReservationID)) { return super.equals(obj); } - datacatalog.Datacatalog.DeleteArtifactResponse other = (datacatalog.Datacatalog.DeleteArtifactResponse) obj; + datacatalog.Datacatalog.ReservationID other = (datacatalog.Datacatalog.ReservationID) obj; + if (hasDatasetId() != other.hasDatasetId()) return false; + if (hasDatasetId()) { + if (!getDatasetId() + .equals(other.getDatasetId())) return false; + } + if (!getTagName() + .equals(other.getTagName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -14766,74 +14443,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasetId()) { + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + } + hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTagName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID 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.DeleteArtifactResponse parseFrom(byte[] data) + public static datacatalog.Datacatalog.ReservationID parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.ReservationID parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID 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.DeleteArtifactResponse parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.ReservationID parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseDelimitedFrom( + public static datacatalog.Datacatalog.ReservationID 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.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( + public static datacatalog.Datacatalog.ReservationID parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -14846,7 +14529,7 @@ public static datacatalog.Datacatalog.DeleteArtifactResponse parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.DeleteArtifactResponse prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.ReservationID prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -14863,29 +14546,29 @@ protected Builder newBuilderForType( } /** *
-     * Response message for deleting an Artifact.
+     * ReservationID message that is composed of several string fields.
      * 
* - * Protobuf type {@code datacatalog.DeleteArtifactResponse} + * Protobuf type {@code datacatalog.ReservationID} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.DeleteArtifactResponse) - datacatalog.Datacatalog.DeleteArtifactResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.ReservationID) + datacatalog.Datacatalog.ReservationIDOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DeleteArtifactResponse.class, datacatalog.Datacatalog.DeleteArtifactResponse.Builder.class); + datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); } - // Construct using datacatalog.Datacatalog.DeleteArtifactResponse.newBuilder() + // Construct using datacatalog.Datacatalog.ReservationID.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -14903,23 +14586,31 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + if (datasetIdBuilder_ == null) { + datasetId_ = null; + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } + tagName_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_DeleteArtifactResponse_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.DeleteArtifactResponse.getDefaultInstance(); + public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReservationID.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactResponse build() { - datacatalog.Datacatalog.DeleteArtifactResponse result = buildPartial(); + public datacatalog.Datacatalog.ReservationID build() { + datacatalog.Datacatalog.ReservationID result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -14927,8 +14618,14 @@ public datacatalog.Datacatalog.DeleteArtifactResponse build() { } @java.lang.Override - public datacatalog.Datacatalog.DeleteArtifactResponse buildPartial() { - datacatalog.Datacatalog.DeleteArtifactResponse result = new datacatalog.Datacatalog.DeleteArtifactResponse(this); + public datacatalog.Datacatalog.ReservationID buildPartial() { + datacatalog.Datacatalog.ReservationID result = new datacatalog.Datacatalog.ReservationID(this); + if (datasetIdBuilder_ == null) { + result.datasetId_ = datasetId_; + } else { + result.datasetId_ = datasetIdBuilder_.build(); + } + result.tagName_ = tagName_; onBuilt(); return result; } @@ -14967,16 +14664,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.DeleteArtifactResponse) { - return mergeFrom((datacatalog.Datacatalog.DeleteArtifactResponse)other); + if (other instanceof datacatalog.Datacatalog.ReservationID) { + return mergeFrom((datacatalog.Datacatalog.ReservationID)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.DeleteArtifactResponse other) { - if (other == datacatalog.Datacatalog.DeleteArtifactResponse.getDefaultInstance()) return this; + public Builder mergeFrom(datacatalog.Datacatalog.ReservationID other) { + if (other == datacatalog.Datacatalog.ReservationID.getDefaultInstance()) return this; + if (other.hasDatasetId()) { + mergeDatasetId(other.getDatasetId()); + } + if (!other.getTagName().isEmpty()) { + tagName_ = other.tagName_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -14992,11 +14696,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datacatalog.Datacatalog.DeleteArtifactResponse parsedMessage = null; + datacatalog.Datacatalog.ReservationID parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.DeleteArtifactResponse) e.getUnfinishedMessage(); + parsedMessage = (datacatalog.Datacatalog.ReservationID) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -15005,276 +14709,589 @@ public Builder mergeFrom( } 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); + private datacatalog.Datacatalog.DatasetID datasetId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public boolean hasDatasetId() { + return datasetIdBuilder_ != null || datasetId_ != null; } - - - // @@protoc_insertion_point(builder_scope:datacatalog.DeleteArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.DeleteArtifactResponse) - private static final datacatalog.Datacatalog.DeleteArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.DeleteArtifactResponse(); - } - - public static datacatalog.Datacatalog.DeleteArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteArtifactResponse(input, extensionRegistry); + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID getDatasetId() { + if (datasetIdBuilder_ == null) { + return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } else { + return datasetIdBuilder_.getMessage(); + } } - }; - - 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.DeleteArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + onChanged(); + } else { + datasetIdBuilder_.setMessage(value); + } - public interface ReservationIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReservationID) - com.google.protobuf.MessageOrBuilder { + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder setDatasetId( + datacatalog.Datacatalog.DatasetID.Builder builderForValue) { + if (datasetIdBuilder_ == null) { + datasetId_ = builderForValue.build(); + onChanged(); + } else { + datasetIdBuilder_.setMessage(builderForValue.build()); + } - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - boolean hasDatasetId(); - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - datacatalog.Datacatalog.DatasetID getDatasetId(); - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { + if (datasetIdBuilder_ == null) { + if (datasetId_ != null) { + datasetId_ = + datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + } else { + datasetId_ = value; + } + onChanged(); + } else { + datasetIdBuilder_.mergeFrom(value); + } - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - java.lang.String getTagName(); - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - com.google.protobuf.ByteString - getTagNameBytes(); - } - /** - *
-   * ReservationID message that is composed of several string fields.
-   * 
- * - * Protobuf type {@code datacatalog.ReservationID} - */ - public static final class ReservationID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReservationID) - ReservationIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservationID.newBuilder() to construct. - private ReservationID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReservationID() { - tagName_ = ""; - } + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public Builder clearDatasetId() { + if (datasetIdBuilder_ == null) { + datasetId_ = null; + onChanged(); + } else { + datasetId_ = null; + datasetIdBuilder_ = null; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReservationID( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + return this; + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + + onChanged(); + return getDatasetIdFieldBuilder().getBuilder(); + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { + if (datasetIdBuilder_ != null) { + return datasetIdBuilder_.getMessageOrBuilder(); + } else { + return datasetId_ == null ? + datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + } + } + /** + *
+       * The unique ID for the reserved dataset
+       * 
+ * + * .datacatalog.DatasetID dataset_id = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> + getDatasetIdFieldBuilder() { + if (datasetIdBuilder_ == null) { + datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( + getDatasetId(), + getParentForChildren(), + isClean()); + datasetId_ = null; + } + return datasetIdBuilder_; } - 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 (datasetId_ != null) { - subBuilder = datasetId_.toBuilder(); - } - datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetId_); - datasetId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - tagName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } + private java.lang.Object tagName_ = ""; + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public java.lang.String getTagName() { + java.lang.Object ref = tagName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagName_ = s; + return s; + } else { + return (java.lang.String) ref; } - } 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(); } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public com.google.protobuf.ByteString + getTagNameBytes() { + java.lang.Object ref = tagName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tagName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder setTagName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tagName_ = value; + onChanged(); + return this; + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder clearTagName() { + + tagName_ = getDefaultInstance().getTagName(); + onChanged(); + return this; + } + /** + *
+       * The specific artifact tag for the reservation
+       * 
+ * + * string tag_name = 2; + */ + public Builder setTagNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tagName_ = 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.ReservationID) } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + + // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) + private static final datacatalog.Datacatalog.ReservationID DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReservationID(); + } + + public static datacatalog.Datacatalog.ReservationID getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationID parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ReservationID(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public static final int DATASET_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID datasetId_; + @java.lang.Override + public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetOrExtendReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationRequest) + com.google.protobuf.MessageOrBuilder { + /** *
-     * The unique ID for the reserved dataset
+     * The unique ID for the reservation
      * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public boolean hasDatasetId() { - return datasetId_ != null; - } + boolean hasReservationId(); /** *
-     * The unique ID for the reserved dataset
+     * The unique ID for the reservation
      * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.DatasetID getDatasetId() { - return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; - } + datacatalog.Datacatalog.ReservationID getReservationId(); /** *
-     * The unique ID for the reserved dataset
+     * The unique ID for the reservation
      * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { - return getDatasetId(); + datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); + + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + java.lang.String getOwnerId(); + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + com.google.protobuf.ByteString + getOwnerIdBytes(); + + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + boolean hasHeartbeatInterval(); + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.Duration getHeartbeatInterval(); + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); + } + /** + *
+   * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
+   * 
+ * + * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} + */ + public static final class GetOrExtendReservationRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationRequest) + GetOrExtendReservationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetOrExtendReservationRequest.newBuilder() to construct. + private GetOrExtendReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrExtendReservationRequest() { + ownerId_ = ""; } - public static final int TAG_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object tagName_; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetOrExtendReservationRequest( + 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.ReservationID.Builder subBuilder = null; + if (reservationId_ != null) { + subBuilder = reservationId_.toBuilder(); + } + reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationId_); + reservationId_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; + break; + } + case 26: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (heartbeatInterval_ != null) { + subBuilder = heartbeatInterval_.toBuilder(); + } + heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(heartbeatInterval_); + heartbeatInterval_ = 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_GetOrExtendReservationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); + } + + public static final int RESERVATION_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.ReservationID reservationId_; /** *
-     * The specific artifact tag for the reservation
+     * The unique ID for the reservation
      * 
* - * string tag_name = 2; + * .datacatalog.ReservationID reservation_id = 1; */ - public java.lang.String getTagName() { - java.lang.Object ref = tagName_; + public boolean hasReservationId() { + return reservationId_ != null; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationID getReservationId() { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + } + /** + *
+     * The unique ID for the reservation
+     * 
+ * + * .datacatalog.ReservationID reservation_id = 1; + */ + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + return getReservationId(); + } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object ownerId_; + /** + *
+     * The unique ID of the owner for the reservation
+     * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; 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(); - tagName_ = s; + ownerId_ = s; return s; } } /** *
-     * The specific artifact tag for the reservation
+     * The unique ID of the owner for the reservation
      * 
* - * string tag_name = 2; + * string owner_id = 2; */ public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = tagName_; + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - tagName_ = b; + ownerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; + private com.google.protobuf.Duration heartbeatInterval_; + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatInterval_ != null; + } + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + /** + *
+     * Requested reservation extension heartbeat interval
+     * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + return getHeartbeatInterval(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -15289,11 +15306,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (datasetId_ != null) { - output.writeMessage(1, getDatasetId()); + if (reservationId_ != null) { + output.writeMessage(1, getReservationId()); } - if (!getTagNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); + } + if (heartbeatInterval_ != null) { + output.writeMessage(3, getHeartbeatInterval()); } unknownFields.writeTo(output); } @@ -15304,12 +15324,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (datasetId_ != null) { + if (reservationId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDatasetId()); + .computeMessageSize(1, getReservationId()); } - if (!getTagNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); + } + if (heartbeatInterval_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHeartbeatInterval()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -15321,18 +15345,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.ReservationID)) { + if (!(obj instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest)) { return super.equals(obj); } - datacatalog.Datacatalog.ReservationID other = (datacatalog.Datacatalog.ReservationID) obj; + datacatalog.Datacatalog.GetOrExtendReservationRequest other = (datacatalog.Datacatalog.GetOrExtendReservationRequest) obj; - if (hasDatasetId() != other.hasDatasetId()) return false; - if (hasDatasetId()) { - if (!getDatasetId() - .equals(other.getDatasetId())) return false; + if (hasReservationId() != other.hasReservationId()) return false; + if (hasReservationId()) { + if (!getReservationId() + .equals(other.getReservationId())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; + if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; + if (hasHeartbeatInterval()) { + if (!getHeartbeatInterval() + .equals(other.getHeartbeatInterval())) return false; } - if (!getTagName() - .equals(other.getTagName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -15344,80 +15373,84 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasDatasetId()) { - hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; - hash = (53 * hash) + getDatasetId().hashCode(); + if (hasReservationId()) { + hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReservationId().hashCode(); + } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); + if (hasHeartbeatInterval()) { + hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getHeartbeatInterval().hashCode(); } - hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTagName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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.ReservationID parseFrom(byte[] data) + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReservationID parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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.ReservationID parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReservationID parseDelimitedFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReservationID parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -15430,7 +15463,7 @@ public static datacatalog.Datacatalog.ReservationID parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.ReservationID prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.GetOrExtendReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -15447,29 +15480,29 @@ protected Builder newBuilderForType( } /** *
-     * ReservationID message that is composed of several string fields.
+     * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
      * 
* - * Protobuf type {@code datacatalog.ReservationID} + * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReservationID) - datacatalog.Datacatalog.ReservationIDOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationRequest) + datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); + datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); } - // Construct using datacatalog.Datacatalog.ReservationID.newBuilder() + // Construct using datacatalog.Datacatalog.GetOrExtendReservationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -15487,31 +15520,37 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (datasetIdBuilder_ == null) { - datasetId_ = null; + if (reservationIdBuilder_ == null) { + reservationId_ = null; } else { - datasetId_ = null; - datasetIdBuilder_ = null; + reservationId_ = null; + reservationIdBuilder_ = null; } - tagName_ = ""; + ownerId_ = ""; + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReservationID.getDefaultInstance(); + public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.ReservationID build() { - datacatalog.Datacatalog.ReservationID result = buildPartial(); + public datacatalog.Datacatalog.GetOrExtendReservationRequest build() { + datacatalog.Datacatalog.GetOrExtendReservationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -15519,14 +15558,19 @@ public datacatalog.Datacatalog.ReservationID build() { } @java.lang.Override - public datacatalog.Datacatalog.ReservationID buildPartial() { - datacatalog.Datacatalog.ReservationID result = new datacatalog.Datacatalog.ReservationID(this); - if (datasetIdBuilder_ == null) { - result.datasetId_ = datasetId_; + public datacatalog.Datacatalog.GetOrExtendReservationRequest buildPartial() { + datacatalog.Datacatalog.GetOrExtendReservationRequest result = new datacatalog.Datacatalog.GetOrExtendReservationRequest(this); + if (reservationIdBuilder_ == null) { + result.reservationId_ = reservationId_; } else { - result.datasetId_ = datasetIdBuilder_.build(); + result.reservationId_ = reservationIdBuilder_.build(); + } + result.ownerId_ = ownerId_; + if (heartbeatIntervalBuilder_ == null) { + result.heartbeatInterval_ = heartbeatInterval_; + } else { + result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); } - result.tagName_ = tagName_; onBuilt(); return result; } @@ -15565,23 +15609,26 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.ReservationID) { - return mergeFrom((datacatalog.Datacatalog.ReservationID)other); + if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.ReservationID other) { - if (other == datacatalog.Datacatalog.ReservationID.getDefaultInstance()) return this; - if (other.hasDatasetId()) { - mergeDatasetId(other.getDatasetId()); + public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationRequest other) { + if (other == datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()) return this; + if (other.hasReservationId()) { + mergeReservationId(other.getReservationId()); } - if (!other.getTagName().isEmpty()) { - tagName_ = other.tagName_; + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; onChanged(); } + if (other.hasHeartbeatInterval()) { + mergeHeartbeatInterval(other.getHeartbeatInterval()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -15597,11 +15644,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datacatalog.Datacatalog.ReservationID parsedMessage = null; + datacatalog.Datacatalog.GetOrExtendReservationRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReservationID) e.getUnfinishedMessage(); + parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -15611,174 +15658,174 @@ public Builder mergeFrom( return this; } - private datacatalog.Datacatalog.DatasetID datasetId_; + private datacatalog.Datacatalog.ReservationID reservationId_; private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public boolean hasDatasetId() { - return datasetIdBuilder_ != null || datasetId_ != null; + public boolean hasReservationId() { + return reservationIdBuilder_ != null || reservationId_ != null; } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.DatasetID getDatasetId() { - if (datasetIdBuilder_ == null) { - return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + public datacatalog.Datacatalog.ReservationID getReservationId() { + if (reservationIdBuilder_ == null) { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; } else { - return datasetIdBuilder_.getMessage(); + return reservationIdBuilder_.getMessage(); } } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { - if (datasetIdBuilder_ == null) { + public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - datasetId_ = value; + reservationId_ = value; onChanged(); } else { - datasetIdBuilder_.setMessage(value); + reservationIdBuilder_.setMessage(value); } return this; } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder setDatasetId( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetIdBuilder_ == null) { - datasetId_ = builderForValue.build(); + public Builder setReservationId( + datacatalog.Datacatalog.ReservationID.Builder builderForValue) { + if (reservationIdBuilder_ == null) { + reservationId_ = builderForValue.build(); onChanged(); } else { - datasetIdBuilder_.setMessage(builderForValue.build()); + reservationIdBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { - if (datasetIdBuilder_ == null) { - if (datasetId_ != null) { - datasetId_ = - datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); + public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (reservationId_ != null) { + reservationId_ = + datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); } else { - datasetId_ = value; + reservationId_ = value; } onChanged(); } else { - datasetIdBuilder_.mergeFrom(value); + reservationIdBuilder_.mergeFrom(value); } return this; } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder clearDatasetId() { - if (datasetIdBuilder_ == null) { - datasetId_ = null; + public Builder clearReservationId() { + if (reservationIdBuilder_ == null) { + reservationId_ = null; onChanged(); } else { - datasetId_ = null; - datasetIdBuilder_ = null; + reservationId_ = null; + reservationIdBuilder_ = null; } return this; } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { + public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { onChanged(); - return getDatasetIdFieldBuilder().getBuilder(); + return getReservationIdFieldBuilder().getBuilder(); } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { - if (datasetIdBuilder_ != null) { - return datasetIdBuilder_.getMessageOrBuilder(); + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + if (reservationIdBuilder_ != null) { + return reservationIdBuilder_.getMessageOrBuilder(); } else { - return datasetId_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; + return reservationId_ == null ? + datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; } } /** *
-       * The unique ID for the reserved dataset
+       * The unique ID for the reservation
        * 
* - * .datacatalog.DatasetID dataset_id = 1; + * .datacatalog.ReservationID reservation_id = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetIdFieldBuilder() { - if (datasetIdBuilder_ == null) { - datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDatasetId(), + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> + getReservationIdFieldBuilder() { + if (reservationIdBuilder_ == null) { + reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), getParentForChildren(), isClean()); - datasetId_ = null; + reservationId_ = null; } - return datasetIdBuilder_; + return reservationIdBuilder_; } - private java.lang.Object tagName_ = ""; + private java.lang.Object ownerId_ = ""; /** *
-       * The specific artifact tag for the reservation
+       * The unique ID of the owner for the reservation
        * 
* - * string tag_name = 2; + * string owner_id = 2; */ - public java.lang.String getTagName() { - java.lang.Object ref = tagName_; + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - tagName_ = s; + ownerId_ = s; return s; } else { return (java.lang.String) ref; @@ -15786,19 +15833,19 @@ public java.lang.String getTagName() { } /** *
-       * The specific artifact tag for the reservation
+       * The unique ID of the owner for the reservation
        * 
* - * string tag_name = 2; + * string owner_id = 2; */ public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = tagName_; + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - tagName_ = b; + ownerId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -15806,52 +15853,205 @@ public java.lang.String getTagName() { } /** *
-       * The specific artifact tag for the reservation
+       * The unique ID of the owner for the reservation
        * 
* - * string tag_name = 2; + * string owner_id = 2; */ - public Builder setTagName( + public Builder setOwnerId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tagName_ = value; + ownerId_ = value; onChanged(); return this; } /** *
-       * The specific artifact tag for the reservation
+       * The unique ID of the owner for the reservation
        * 
* - * string tag_name = 2; + * string owner_id = 2; */ - public Builder clearTagName() { + public Builder clearOwnerId() { - tagName_ = getDefaultInstance().getTagName(); + ownerId_ = getDefaultInstance().getOwnerId(); onChanged(); return this; } /** *
-       * The specific artifact tag for the reservation
+       * The unique ID of the owner for the reservation
        * 
* - * string tag_name = 2; + * string owner_id = 2; */ - public Builder setTagNameBytes( + public Builder setOwnerIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tagName_ = value; + ownerId_ = value; onChanged(); return this; } + + private com.google.protobuf.Duration heartbeatInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } else { + return heartbeatIntervalBuilder_.getMessage(); + } + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + heartbeatInterval_ = value; + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = builderForValue.build(); + onChanged(); + } else { + heartbeatIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (heartbeatInterval_ != null) { + heartbeatInterval_ = + com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); + } else { + heartbeatInterval_ = value; + } + onChanged(); + } else { + heartbeatIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder clearHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + onChanged(); + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; + } + + return this; + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { + + onChanged(); + return getHeartbeatIntervalFieldBuilder().getBuilder(); + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + if (heartbeatIntervalBuilder_ != null) { + return heartbeatIntervalBuilder_.getMessageOrBuilder(); + } else { + return heartbeatInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } + } + /** + *
+       * Requested reservation extension heartbeat interval
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getHeartbeatIntervalFieldBuilder() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getHeartbeatInterval(), + getParentForChildren(), + isClean()); + heartbeatInterval_ = null; + } + return heartbeatIntervalBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -15865,48 +16065,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datacatalog.ReservationID) + // @@protoc_insertion_point(builder_scope:datacatalog.GetOrExtendReservationRequest) } - // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) - private static final datacatalog.Datacatalog.ReservationID DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) + private static final datacatalog.Datacatalog.GetOrExtendReservationRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReservationID(); + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationRequest(); } - public static datacatalog.Datacatalog.ReservationID getDefaultInstance() { + public static datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReservationID parsePartialFrom( + public GetOrExtendReservationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservationID(input, extensionRegistry); + return new GetOrExtendReservationRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { + public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface GetOrExtendReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationRequest) + public interface ReservationOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.Reservation) com.google.protobuf.MessageOrBuilder { /** @@ -15954,7 +16154,7 @@ public interface GetOrExtendReservationRequestOrBuilder extends /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; @@ -15962,7 +16162,7 @@ public interface GetOrExtendReservationRequestOrBuilder extends boolean hasHeartbeatInterval(); /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; @@ -15970,30 +16170,80 @@ public interface GetOrExtendReservationRequestOrBuilder extends com.google.protobuf.Duration getHeartbeatInterval(); /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; */ com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); - } - /** - *
-   * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
+
+    /**
+     * 
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + boolean hasExpiresAt(); + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + com.google.protobuf.Timestamp getExpiresAt(); + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); + + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + boolean hasMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + datacatalog.Datacatalog.Metadata getMetadata(); + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); + } + /** + *
+   * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
    * 
* - * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} + * Protobuf type {@code datacatalog.Reservation} */ - public static final class GetOrExtendReservationRequest extends + public static final class Reservation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationRequest) - GetOrExtendReservationRequestOrBuilder { + // @@protoc_insertion_point(message_implements:datacatalog.Reservation) + ReservationOrBuilder { private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationRequest.newBuilder() to construct. - private GetOrExtendReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Reservation.newBuilder() to construct. + private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrExtendReservationRequest() { + private Reservation() { ownerId_ = ""; } @@ -16002,7 +16252,7 @@ private GetOrExtendReservationRequest() { getUnknownFields() { return this.unknownFields; } - private GetOrExtendReservationRequest( + private Reservation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -16053,6 +16303,32 @@ private GetOrExtendReservationRequest( break; } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expiresAt_ != null) { + subBuilder = expiresAt_.toBuilder(); + } + expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expiresAt_); + expiresAt_ = subBuilder.buildPartial(); + } + + break; + } + case 50: { + 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; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -16074,15 +16350,15 @@ private GetOrExtendReservationRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); + datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); } public static final int RESERVATION_ID_FIELD_NUMBER = 1; @@ -16164,7 +16440,7 @@ public java.lang.String getOwnerId() { private com.google.protobuf.Duration heartbeatInterval_; /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; @@ -16174,7 +16450,7 @@ public boolean hasHeartbeatInterval() { } /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; @@ -16184,7 +16460,7 @@ public com.google.protobuf.Duration getHeartbeatInterval() { } /** *
-     * Requested reservation extension heartbeat interval
+     * Recommended heartbeat interval to extend reservation
      * 
* * .google.protobuf.Duration heartbeat_interval = 3; @@ -16193,6 +16469,72 @@ public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { return getHeartbeatInterval(); } + public static final int EXPIRES_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp expiresAt_; + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public boolean hasExpiresAt() { + return expiresAt_ != null; + } + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.Timestamp getExpiresAt() { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; + } + /** + *
+     * Expiration timestamp of this reservation
+     * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + return getExpiresAt(); + } + + public static final int METADATA_FIELD_NUMBER = 6; + private datacatalog.Datacatalog.Metadata metadata_; + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public boolean hasMetadata() { + return metadata_ != null; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } + /** + *
+     * Free-form metadata associated with the artifact
+     * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -16216,6 +16558,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (heartbeatInterval_ != null) { output.writeMessage(3, getHeartbeatInterval()); } + if (expiresAt_ != null) { + output.writeMessage(4, getExpiresAt()); + } + if (metadata_ != null) { + output.writeMessage(6, getMetadata()); + } unknownFields.writeTo(output); } @@ -16236,6 +16584,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getHeartbeatInterval()); } + if (expiresAt_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getExpiresAt()); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -16246,10 +16602,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest)) { + if (!(obj instanceof datacatalog.Datacatalog.Reservation)) { return super.equals(obj); } - datacatalog.Datacatalog.GetOrExtendReservationRequest other = (datacatalog.Datacatalog.GetOrExtendReservationRequest) obj; + datacatalog.Datacatalog.Reservation other = (datacatalog.Datacatalog.Reservation) obj; if (hasReservationId() != other.hasReservationId()) return false; if (hasReservationId()) { @@ -16263,6 +16619,16 @@ public boolean equals(final java.lang.Object obj) { if (!getHeartbeatInterval() .equals(other.getHeartbeatInterval())) return false; } + if (hasExpiresAt() != other.hasExpiresAt()) return false; + if (hasExpiresAt()) { + if (!getExpiresAt() + .equals(other.getExpiresAt())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata() + .equals(other.getMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -16284,74 +16650,82 @@ public int hashCode() { hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getHeartbeatInterval().hashCode(); } + if (hasExpiresAt()) { + hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getExpiresAt().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation 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.GetOrExtendReservationRequest parseFrom(byte[] data) + public static datacatalog.Datacatalog.Reservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.Reservation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation 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.GetOrExtendReservationRequest parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.Reservation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseDelimitedFrom( + public static datacatalog.Datacatalog.Reservation 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.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( + public static datacatalog.Datacatalog.Reservation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -16364,7 +16738,7 @@ public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.GetOrExtendReservationRequest prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.Reservation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -16381,29 +16755,29 @@ protected Builder newBuilderForType( } /** *
-     * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
+     * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
      * 
* - * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} + * Protobuf type {@code datacatalog.Reservation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationRequest) - datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.Reservation) + datacatalog.Datacatalog.ReservationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); + datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); } - // Construct using datacatalog.Datacatalog.GetOrExtendReservationRequest.newBuilder() + // Construct using datacatalog.Datacatalog.Reservation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -16435,23 +16809,35 @@ public Builder clear() { heartbeatInterval_ = null; heartbeatIntervalBuilder_ = null; } - return this; - } - + if (expiresAtBuilder_ == null) { + expiresAt_ = null; + } else { + expiresAt_ = null; + expiresAtBuilder_ = null; + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance(); + public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { + return datacatalog.Datacatalog.Reservation.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest build() { - datacatalog.Datacatalog.GetOrExtendReservationRequest result = buildPartial(); + public datacatalog.Datacatalog.Reservation build() { + datacatalog.Datacatalog.Reservation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -16459,8 +16845,8 @@ public datacatalog.Datacatalog.GetOrExtendReservationRequest build() { } @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationRequest result = new datacatalog.Datacatalog.GetOrExtendReservationRequest(this); + public datacatalog.Datacatalog.Reservation buildPartial() { + datacatalog.Datacatalog.Reservation result = new datacatalog.Datacatalog.Reservation(this); if (reservationIdBuilder_ == null) { result.reservationId_ = reservationId_; } else { @@ -16472,6 +16858,16 @@ public datacatalog.Datacatalog.GetOrExtendReservationRequest buildPartial() { } else { result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); } + if (expiresAtBuilder_ == null) { + result.expiresAt_ = expiresAt_; + } else { + result.expiresAt_ = expiresAtBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } onBuilt(); return result; } @@ -16510,16 +16906,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationRequest) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationRequest)other); + if (other instanceof datacatalog.Datacatalog.Reservation) { + return mergeFrom((datacatalog.Datacatalog.Reservation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationRequest other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()) return this; + public Builder mergeFrom(datacatalog.Datacatalog.Reservation other) { + if (other == datacatalog.Datacatalog.Reservation.getDefaultInstance()) return this; if (other.hasReservationId()) { mergeReservationId(other.getReservationId()); } @@ -16530,6 +16926,12 @@ public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationRequest o if (other.hasHeartbeatInterval()) { mergeHeartbeatInterval(other.getHeartbeatInterval()); } + if (other.hasExpiresAt()) { + mergeExpiresAt(other.getExpiresAt()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -16545,11 +16947,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datacatalog.Datacatalog.GetOrExtendReservationRequest parsedMessage = null; + datacatalog.Datacatalog.Reservation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationRequest) e.getUnfinishedMessage(); + parsedMessage = (datacatalog.Datacatalog.Reservation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -16703,4340 +17105,561 @@ public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder( getReservationIdFieldBuilder() { if (reservationIdBuilder_ == null) { reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), - getParentForChildren(), - isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration heartbeatInterval_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } else { - return heartbeatIntervalBuilder_.getMessage(); - } - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - heartbeatInterval_ = value; - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval( - com.google.protobuf.Duration.Builder builderForValue) { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = builderForValue.build(); - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (heartbeatInterval_ != null) { - heartbeatInterval_ = - com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); - } else { - heartbeatInterval_ = value; - } - onChanged(); - } else { - heartbeatIntervalBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder clearHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - onChanged(); - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { - - onChanged(); - return getHeartbeatIntervalFieldBuilder().getBuilder(); - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - if (heartbeatIntervalBuilder_ != null) { - return heartbeatIntervalBuilder_.getMessageOrBuilder(); - } else { - return heartbeatInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getHeartbeatIntervalFieldBuilder() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getHeartbeatInterval(), - getParentForChildren(), - isClean()); - heartbeatInterval_ = null; - } - return heartbeatIntervalBuilder_; - } - @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.GetOrExtendReservationRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) - private static final datacatalog.Datacatalog.GetOrExtendReservationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationRequest(); - } - - public static datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrExtendReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationRequest(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.GetOrExtendReservationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetOrExtendReservationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - java.util.List - getReservationsList(); - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - datacatalog.Datacatalog.GetOrExtendReservationRequest getReservations(int index); - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - int getReservationsCount(); - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - java.util.List - getReservationsOrBuilderList(); - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder getReservationsOrBuilder( - int index); - } - /** - *
-   * Request message for acquiring or extending reservations for multiple artifacts in a single operation.
-   * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationsRequest} - */ - public static final class GetOrExtendReservationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationsRequest) - GetOrExtendReservationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationsRequest.newBuilder() to construct. - private GetOrExtendReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOrExtendReservationsRequest() { - reservations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetOrExtendReservationsRequest( - 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)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - reservations_.add( - input.readMessage(datacatalog.Datacatalog.GetOrExtendReservationRequest.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)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationsRequest.class, datacatalog.Datacatalog.GetOrExtendReservationsRequest.Builder.class); - } - - public static final int RESERVATIONS_FIELD_NUMBER = 1; - private java.util.List reservations_; - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public java.util.List getReservationsList() { - return reservations_; - } - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public java.util.List - getReservationsOrBuilderList() { - return reservations_; - } - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public int getReservationsCount() { - return reservations_.size(); - } - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequest getReservations(int index) { - return reservations_.get(index); - } - /** - *
-     * List of reservation requests for artifacts to acquire
-     * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder getReservationsOrBuilder( - int index) { - return reservations_.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 < reservations_.size(); i++) { - output.writeMessage(1, reservations_.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 < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, reservations_.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.GetOrExtendReservationsRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetOrExtendReservationsRequest other = (datacatalog.Datacatalog.GetOrExtendReservationsRequest) obj; - - if (!getReservationsList() - .equals(other.getReservationsList())) 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 (getReservationsCount() > 0) { - hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; - hash = (53 * hash) + getReservationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest 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.GetOrExtendReservationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest 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.GetOrExtendReservationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest 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.GetOrExtendReservationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest 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.GetOrExtendReservationsRequest 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; - } - /** - *
-     * Request message for acquiring or extending reservations for multiple artifacts in a single operation.
-     * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationsRequest) - datacatalog.Datacatalog.GetOrExtendReservationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationsRequest.class, datacatalog.Datacatalog.GetOrExtendReservationsRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetOrExtendReservationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReservationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - reservationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsRequest build() { - datacatalog.Datacatalog.GetOrExtendReservationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsRequest buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationsRequest result = new datacatalog.Datacatalog.GetOrExtendReservationsRequest(this); - int from_bitField0_ = bitField0_; - if (reservationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.reservations_ = reservations_; - } else { - result.reservations_ = reservationsBuilder_.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.GetOrExtendReservationsRequest) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationsRequest other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationsRequest.getDefaultInstance()) return this; - if (reservationsBuilder_ == null) { - if (!other.reservations_.isEmpty()) { - if (reservations_.isEmpty()) { - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReservationsIsMutable(); - reservations_.addAll(other.reservations_); - } - onChanged(); - } - } else { - if (!other.reservations_.isEmpty()) { - if (reservationsBuilder_.isEmpty()) { - reservationsBuilder_.dispose(); - reservationsBuilder_ = null; - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; - } else { - reservationsBuilder_.addAllMessages(other.reservations_); - } - } - } - 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.GetOrExtendReservationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List reservations_ = - java.util.Collections.emptyList(); - private void ensureReservationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.GetOrExtendReservationRequest, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder, datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder> reservationsBuilder_; - - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public java.util.List getReservationsList() { - if (reservationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reservations_); - } else { - return reservationsBuilder_.getMessageList(); - } - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public int getReservationsCount() { - if (reservationsBuilder_ == null) { - return reservations_.size(); - } else { - return reservationsBuilder_.getCount(); - } - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequest getReservations(int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); - } else { - return reservationsBuilder_.getMessage(index); - } - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder setReservations( - int index, datacatalog.Datacatalog.GetOrExtendReservationRequest value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservationsIsMutable(); - reservations_.set(index, value); - onChanged(); - } else { - reservationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder setReservations( - int index, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.set(index, builderForValue.build()); - onChanged(); - } else { - reservationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder addReservations(datacatalog.Datacatalog.GetOrExtendReservationRequest value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservationsIsMutable(); - reservations_.add(value); - onChanged(); - } else { - reservationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder addReservations( - int index, datacatalog.Datacatalog.GetOrExtendReservationRequest value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservationsIsMutable(); - reservations_.add(index, value); - onChanged(); - } else { - reservationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder addReservations( - datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(builderForValue.build()); - onChanged(); - } else { - reservationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder addReservations( - int index, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(index, builderForValue.build()); - onChanged(); - } else { - reservationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder addAllReservations( - java.lang.Iterable values) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); - onChanged(); - } else { - reservationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder clearReservations() { - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - reservationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public Builder removeReservations(int index) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.remove(index); - onChanged(); - } else { - reservationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder getReservationsBuilder( - int index) { - return getReservationsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder getReservationsOrBuilder( - int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { - return reservationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public java.util.List - getReservationsOrBuilderList() { - if (reservationsBuilder_ != null) { - return reservationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reservations_); - } - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()); - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()); - } - /** - *
-       * List of reservation requests for artifacts to acquire
-       * 
- * - * repeated .datacatalog.GetOrExtendReservationRequest reservations = 1; - */ - public java.util.List - getReservationsBuilderList() { - return getReservationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.GetOrExtendReservationRequest, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder, datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder> - getReservationsFieldBuilder() { - if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.GetOrExtendReservationRequest, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder, datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder>( - reservations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - reservations_ = null; - } - return reservationsBuilder_; - } - @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.GetOrExtendReservationsRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationsRequest) - private static final datacatalog.Datacatalog.GetOrExtendReservationsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationsRequest(); - } - - public static datacatalog.Datacatalog.GetOrExtendReservationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrExtendReservationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationsRequest(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.GetOrExtendReservationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReservationOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Reservation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - boolean hasReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationID getReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); - - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - java.lang.String getOwnerId(); - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - com.google.protobuf.ByteString - getOwnerIdBytes(); - - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - boolean hasHeartbeatInterval(); - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.Duration getHeartbeatInterval(); - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); - - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - boolean hasExpiresAt(); - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - boolean hasMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - datacatalog.Datacatalog.Metadata getMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
-   * 
- * - * Protobuf type {@code datacatalog.Reservation} - */ - public static final class Reservation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Reservation) - ReservationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reservation.newBuilder() to construct. - private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Reservation() { - ownerId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reservation( - 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.ReservationID.Builder subBuilder = null; - if (reservationId_ != null) { - subBuilder = reservationId_.toBuilder(); - } - reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationId_); - reservationId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerId_ = s; - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (heartbeatInterval_ != null) { - subBuilder = heartbeatInterval_.toBuilder(); - } - heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(heartbeatInterval_); - heartbeatInterval_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - 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; - } - 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_Reservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); - } - - public static final int RESERVATION_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.ReservationID reservationId_; - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationId_ != null; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - return getReservationId(); - } - - public static final int OWNER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object ownerId_; - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - 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(); - ownerId_ = s; - return s; - } - } - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; - private com.google.protobuf.Duration heartbeatInterval_; - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatInterval_ != null; - } - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - return getHeartbeatInterval(); - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private datacatalog.Datacatalog.Metadata metadata_; - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (reservationId_ != null) { - output.writeMessage(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); - } - if (heartbeatInterval_ != null) { - output.writeMessage(3, getHeartbeatInterval()); - } - if (expiresAt_ != null) { - output.writeMessage(4, getExpiresAt()); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservationId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); - } - if (heartbeatInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeartbeatInterval()); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpiresAt()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetadata()); - } - 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.Reservation)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Reservation other = (datacatalog.Datacatalog.Reservation) obj; - - if (hasReservationId() != other.hasReservationId()) return false; - if (hasReservationId()) { - if (!getReservationId() - .equals(other.getReservationId())) return false; - } - if (!getOwnerId() - .equals(other.getOwnerId())) return false; - if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; - if (hasHeartbeatInterval()) { - if (!getHeartbeatInterval() - .equals(other.getHeartbeatInterval())) return false; - } - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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 (hasReservationId()) { - hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getReservationId().hashCode(); - } - hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerId().hashCode(); - if (hasHeartbeatInterval()) { - hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + getHeartbeatInterval().hashCode(); - } - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Reservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation 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.Reservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Reservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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.Reservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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.Reservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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.Reservation 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 reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
-     * 
- * - * Protobuf type {@code datacatalog.Reservation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Reservation) - datacatalog.Datacatalog.ReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Reservation.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 (reservationIdBuilder_ == null) { - reservationId_ = null; - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - ownerId_ = ""; - - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { - return datacatalog.Datacatalog.Reservation.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation build() { - datacatalog.Datacatalog.Reservation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation buildPartial() { - datacatalog.Datacatalog.Reservation result = new datacatalog.Datacatalog.Reservation(this); - if (reservationIdBuilder_ == null) { - result.reservationId_ = reservationId_; - } else { - result.reservationId_ = reservationIdBuilder_.build(); - } - result.ownerId_ = ownerId_; - if (heartbeatIntervalBuilder_ == null) { - result.heartbeatInterval_ = heartbeatInterval_; - } else { - result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); - } - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.Reservation) { - return mergeFrom((datacatalog.Datacatalog.Reservation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Reservation other) { - if (other == datacatalog.Datacatalog.Reservation.getDefaultInstance()) return this; - if (other.hasReservationId()) { - mergeReservationId(other.getReservationId()); - } - if (!other.getOwnerId().isEmpty()) { - ownerId_ = other.ownerId_; - onChanged(); - } - if (other.hasHeartbeatInterval()) { - mergeHeartbeatInterval(other.getHeartbeatInterval()); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.Reservation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Reservation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.ReservationID reservationId_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationIdBuilder_ != null || reservationId_ != null; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - if (reservationIdBuilder_ == null) { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } else { - return reservationIdBuilder_.getMessage(); - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationId_ = value; - onChanged(); - } else { - reservationIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId( - datacatalog.Datacatalog.ReservationID.Builder builderForValue) { - if (reservationIdBuilder_ == null) { - reservationId_ = builderForValue.build(); - onChanged(); - } else { - reservationIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (reservationId_ != null) { - reservationId_ = - datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); - } else { - reservationId_ = value; - } - onChanged(); - } else { - reservationIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder clearReservationId() { - if (reservationIdBuilder_ == null) { - reservationId_ = null; - onChanged(); - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { - - onChanged(); - return getReservationIdFieldBuilder().getBuilder(); - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - if (reservationIdBuilder_ != null) { - return reservationIdBuilder_.getMessageOrBuilder(); - } else { - return reservationId_ == null ? - datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> - getReservationIdFieldBuilder() { - if (reservationIdBuilder_ == null) { - reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), - getParentForChildren(), - isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration heartbeatInterval_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } else { - return heartbeatIntervalBuilder_.getMessage(); - } - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - heartbeatInterval_ = value; - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval( - com.google.protobuf.Duration.Builder builderForValue) { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = builderForValue.build(); - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (heartbeatInterval_ != null) { - heartbeatInterval_ = - com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); - } else { - heartbeatInterval_ = value; - } - onChanged(); - } else { - heartbeatIntervalBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder clearHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - onChanged(); - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { - - onChanged(); - return getHeartbeatIntervalFieldBuilder().getBuilder(); - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - if (heartbeatIntervalBuilder_ != null) { - return heartbeatIntervalBuilder_.getMessageOrBuilder(); - } else { - return heartbeatInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getHeartbeatIntervalFieldBuilder() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getHeartbeatInterval(), - getParentForChildren(), - isClean()); - heartbeatInterval_ = null; - } - return heartbeatIntervalBuilder_; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - - private datacatalog.Datacatalog.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - 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; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder setMetadata( - datacatalog.Datacatalog.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - 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; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - 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_; - } - @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.Reservation) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Reservation) - private static final datacatalog.Datacatalog.Reservation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Reservation(); - } - - public static datacatalog.Datacatalog.Reservation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reservation(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.Reservation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetOrExtendReservationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - boolean hasReservation(); - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - datacatalog.Datacatalog.Reservation getReservation(); - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder(); - } - /** - *
-   * Response including either a newly minted reservation or the existing reservation
-   * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} - */ - public static final class GetOrExtendReservationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationResponse) - GetOrExtendReservationResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationResponse.newBuilder() to construct. - private GetOrExtendReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOrExtendReservationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetOrExtendReservationResponse( - 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.Reservation.Builder subBuilder = null; - if (reservation_ != null) { - subBuilder = reservation_.toBuilder(); - } - reservation_ = input.readMessage(datacatalog.Datacatalog.Reservation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservation_); - reservation_ = 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_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); - } - - public static final int RESERVATION_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Reservation reservation_; - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public boolean hasReservation() { - return reservation_ != null; - } - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation getReservation() { - return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { - return getReservation(); - } - - 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 (reservation_ != null) { - output.writeMessage(1, getReservation()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservation()); - } - 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.GetOrExtendReservationResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetOrExtendReservationResponse other = (datacatalog.Datacatalog.GetOrExtendReservationResponse) obj; - - if (hasReservation() != other.hasReservation()) return false; - if (hasReservation()) { - if (!getReservation() - .equals(other.getReservation())) 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 (hasReservation()) { - hash = (37 * hash) + RESERVATION_FIELD_NUMBER; - hash = (53 * hash) + getReservation().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.GetOrExtendReservationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.GetOrExtendReservationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.GetOrExtendReservationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.GetOrExtendReservationResponse 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 including either a newly minted reservation or the existing reservation
-     * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationResponse) - datacatalog.Datacatalog.GetOrExtendReservationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetOrExtendReservationResponse.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 (reservationBuilder_ == null) { - reservation_ = null; - } else { - reservation_ = null; - reservationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse build() { - datacatalog.Datacatalog.GetOrExtendReservationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationResponse result = new datacatalog.Datacatalog.GetOrExtendReservationResponse(this); - if (reservationBuilder_ == null) { - result.reservation_ = reservation_; - } else { - result.reservation_ = reservationBuilder_.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.GetOrExtendReservationResponse) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationResponse other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance()) return this; - if (other.hasReservation()) { - mergeReservation(other.getReservation()); - } - 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.GetOrExtendReservationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Reservation reservation_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> reservationBuilder_; - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public boolean hasReservation() { - return reservationBuilder_ != null || reservation_ != null; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation getReservation() { - if (reservationBuilder_ == null) { - return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } else { - return reservationBuilder_.getMessage(); - } - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder setReservation(datacatalog.Datacatalog.Reservation value) { - if (reservationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservation_ = value; - onChanged(); - } else { - reservationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder setReservation( - datacatalog.Datacatalog.Reservation.Builder builderForValue) { - if (reservationBuilder_ == null) { - reservation_ = builderForValue.build(); - onChanged(); - } else { - reservationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder mergeReservation(datacatalog.Datacatalog.Reservation value) { - if (reservationBuilder_ == null) { - if (reservation_ != null) { - reservation_ = - datacatalog.Datacatalog.Reservation.newBuilder(reservation_).mergeFrom(value).buildPartial(); - } else { - reservation_ = value; - } - onChanged(); - } else { - reservationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder clearReservation() { - if (reservationBuilder_ == null) { - reservation_ = null; - onChanged(); - } else { - reservation_ = null; - reservationBuilder_ = null; - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation.Builder getReservationBuilder() { - - onChanged(); - return getReservationFieldBuilder().getBuilder(); - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { - if (reservationBuilder_ != null) { - return reservationBuilder_.getMessageOrBuilder(); - } else { - return reservation_ == null ? - datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> - getReservationFieldBuilder() { - if (reservationBuilder_ == null) { - reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder>( - getReservation(), - getParentForChildren(), - isClean()); - reservation_ = null; - } - return reservationBuilder_; - } - @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.GetOrExtendReservationResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) - private static final datacatalog.Datacatalog.GetOrExtendReservationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationResponse(); - } - - public static datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrExtendReservationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationResponse(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.GetOrExtendReservationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetOrExtendReservationsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - java.util.List - getReservationsList(); - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - datacatalog.Datacatalog.Reservation getReservations(int index); - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - int getReservationsCount(); - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - java.util.List - getReservationsOrBuilderList(); - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - datacatalog.Datacatalog.ReservationOrBuilder getReservationsOrBuilder( - int index); - } - /** - *
-   * List of reservations acquired for multiple artifacts in a single operation.
-   * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationsResponse} - */ - public static final class GetOrExtendReservationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationsResponse) - GetOrExtendReservationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationsResponse.newBuilder() to construct. - private GetOrExtendReservationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOrExtendReservationsResponse() { - reservations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetOrExtendReservationsResponse( - 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)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - reservations_.add( - input.readMessage(datacatalog.Datacatalog.Reservation.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)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationsResponse.class, datacatalog.Datacatalog.GetOrExtendReservationsResponse.Builder.class); - } - - public static final int RESERVATIONS_FIELD_NUMBER = 1; - private java.util.List reservations_; - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - public java.util.List getReservationsList() { - return reservations_; - } - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - public java.util.List - getReservationsOrBuilderList() { - return reservations_; - } - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - public int getReservationsCount() { - return reservations_.size(); - } - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - public datacatalog.Datacatalog.Reservation getReservations(int index) { - return reservations_.get(index); - } - /** - *
-     * List of (newly created or existing) reservations for artifacts requested
-     * 
- * - * repeated .datacatalog.Reservation reservations = 1; - */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationsOrBuilder( - int index) { - return reservations_.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 < reservations_.size(); i++) { - output.writeMessage(1, reservations_.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 < reservations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, reservations_.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.GetOrExtendReservationsResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetOrExtendReservationsResponse other = (datacatalog.Datacatalog.GetOrExtendReservationsResponse) obj; - - if (!getReservationsList() - .equals(other.getReservationsList())) 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 (getReservationsCount() > 0) { - hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; - hash = (53 * hash) + getReservationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse 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.GetOrExtendReservationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse 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.GetOrExtendReservationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse 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.GetOrExtendReservationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse 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.GetOrExtendReservationsResponse 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 of reservations acquired for multiple artifacts in a single operation.
-     * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationsResponse) - datacatalog.Datacatalog.GetOrExtendReservationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationsResponse.class, datacatalog.Datacatalog.GetOrExtendReservationsResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetOrExtendReservationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), + getParentForChildren(), + isClean()); + reservationId_ = null; + } + return reservationIdBuilder_; } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReservationsFieldBuilder(); + private java.lang.Object ownerId_ = ""; + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; } } - @java.lang.Override - public Builder clear() { - super.clear(); - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; } else { - reservationsBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } + } + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor; + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationsResponse.getDefaultInstance(); + /** + *
+       * The unique ID of the owner for the reservation
+       * 
+ * + * string owner_id = 2; + */ + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; } - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsResponse build() { - datacatalog.Datacatalog.GetOrExtendReservationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private com.google.protobuf.Duration heartbeatInterval_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public boolean hasHeartbeatInterval() { + return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration getHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; + } else { + return heartbeatIntervalBuilder_.getMessage(); } - return result; } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsResponse buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationsResponse result = new datacatalog.Datacatalog.GetOrExtendReservationsResponse(this); - int from_bitField0_ = bitField0_; - if (reservationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - bitField0_ = (bitField0_ & ~0x00000001); + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - result.reservations_ = reservations_; + heartbeatInterval_ = value; + onChanged(); } else { - result.reservations_ = reservationsBuilder_.build(); + heartbeatIntervalBuilder_.setMessage(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); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationsResponse) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationsResponse)other); + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder setHeartbeatInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = builderForValue.build(); + onChanged(); } else { - super.mergeFrom(other); - return this; + heartbeatIntervalBuilder_.setMessage(builderForValue.build()); } - } - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationsResponse other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationsResponse.getDefaultInstance()) return this; - if (reservationsBuilder_ == null) { - if (!other.reservations_.isEmpty()) { - if (reservations_.isEmpty()) { - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReservationsIsMutable(); - reservations_.addAll(other.reservations_); - } - onChanged(); + return this; + } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { + if (heartbeatIntervalBuilder_ == null) { + if (heartbeatInterval_ != null) { + heartbeatInterval_ = + com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); + } else { + heartbeatInterval_ = value; } + onChanged(); } else { - if (!other.reservations_.isEmpty()) { - if (reservationsBuilder_.isEmpty()) { - reservationsBuilder_.dispose(); - reservationsBuilder_ = null; - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; - } else { - reservationsBuilder_.addAllMessages(other.reservations_); - } - } + heartbeatIntervalBuilder_.mergeFrom(value); } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; + return this; } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - datacatalog.Datacatalog.GetOrExtendReservationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public Builder clearHeartbeatInterval() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatInterval_ = null; + onChanged(); + } else { + heartbeatInterval_ = null; + heartbeatIntervalBuilder_ = null; } + return this; } - private int bitField0_; - - private java.util.List reservations_ = - java.util.Collections.emptyList(); - private void ensureReservationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); - bitField0_ |= 0x00000001; - } + /** + *
+       * Recommended heartbeat interval to extend reservation
+       * 
+ * + * .google.protobuf.Duration heartbeat_interval = 3; + */ + public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { + + onChanged(); + return getHeartbeatIntervalFieldBuilder().getBuilder(); } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> reservationsBuilder_; - /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Recommended heartbeat interval to extend reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Duration heartbeat_interval = 3; */ - public java.util.List getReservationsList() { - if (reservationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reservations_); + public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { + if (heartbeatIntervalBuilder_ != null) { + return heartbeatIntervalBuilder_.getMessageOrBuilder(); } else { - return reservationsBuilder_.getMessageList(); + return heartbeatInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; } } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Recommended heartbeat interval to extend reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Duration heartbeat_interval = 3; */ - public int getReservationsCount() { - if (reservationsBuilder_ == null) { - return reservations_.size(); - } else { - return reservationsBuilder_.getCount(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + getHeartbeatIntervalFieldBuilder() { + if (heartbeatIntervalBuilder_ == null) { + heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getHeartbeatInterval(), + getParentForChildren(), + isClean()); + heartbeatInterval_ = null; } + return heartbeatIntervalBuilder_; + } + + private com.google.protobuf.Timestamp expiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; + /** + *
+       * Expiration timestamp of this reservation
+       * 
+ * + * .google.protobuf.Timestamp expires_at = 4; + */ + public boolean hasExpiresAt() { + return expiresAtBuilder_ != null || expiresAt_ != null; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public datacatalog.Datacatalog.Reservation getReservations(int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); + public com.google.protobuf.Timestamp getExpiresAt() { + if (expiresAtBuilder_ == null) { + return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } else { - return reservationsBuilder_.getMessage(index); + return expiresAtBuilder_.getMessage(); } } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder setReservations( - int index, datacatalog.Datacatalog.Reservation value) { - if (reservationsBuilder_ == null) { + public Builder setExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureReservationsIsMutable(); - reservations_.set(index, value); + expiresAt_ = value; onChanged(); } else { - reservationsBuilder_.setMessage(index, value); + expiresAtBuilder_.setMessage(value); } + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder setReservations( - int index, datacatalog.Datacatalog.Reservation.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.set(index, builderForValue.build()); + public Builder setExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (expiresAtBuilder_ == null) { + expiresAt_ = builderForValue.build(); onChanged(); } else { - reservationsBuilder_.setMessage(index, builderForValue.build()); + expiresAtBuilder_.setMessage(builderForValue.build()); } + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder addReservations(datacatalog.Datacatalog.Reservation value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { + if (expiresAtBuilder_ == null) { + if (expiresAt_ != null) { + expiresAt_ = + com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); + } else { + expiresAt_ = value; } - ensureReservationsIsMutable(); - reservations_.add(value); onChanged(); } else { - reservationsBuilder_.addMessage(value); + expiresAtBuilder_.mergeFrom(value); } + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder addReservations( - int index, datacatalog.Datacatalog.Reservation value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservationsIsMutable(); - reservations_.add(index, value); + public Builder clearExpiresAt() { + if (expiresAtBuilder_ == null) { + expiresAt_ = null; onChanged(); } else { - reservationsBuilder_.addMessage(index, value); + expiresAt_ = null; + expiresAtBuilder_ = null; } + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder addReservations( - datacatalog.Datacatalog.Reservation.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(builderForValue.build()); - onChanged(); - } else { - reservationsBuilder_.addMessage(builderForValue.build()); - } - return this; + public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { + + onChanged(); + return getExpiresAtFieldBuilder().getBuilder(); } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder addReservations( - int index, datacatalog.Datacatalog.Reservation.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(index, builderForValue.build()); - onChanged(); + public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { + if (expiresAtBuilder_ != null) { + return expiresAtBuilder_.getMessageOrBuilder(); } else { - reservationsBuilder_.addMessage(index, builderForValue.build()); + return expiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; } - return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Expiration timestamp of this reservation
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .google.protobuf.Timestamp expires_at = 4; */ - public Builder addAllReservations( - java.lang.Iterable values) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); - onChanged(); - } else { - reservationsBuilder_.addAllMessages(values); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getExpiresAtFieldBuilder() { + if (expiresAtBuilder_ == null) { + expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getExpiresAt(), + getParentForChildren(), + isClean()); + expiresAt_ = null; } - return this; + return expiresAtBuilder_; } + + private datacatalog.Datacatalog.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public Builder clearReservations() { - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + *
+       * Free-form metadata associated with the artifact
+       * 
+ * + * .datacatalog.Metadata metadata = 6; + */ + public datacatalog.Datacatalog.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; } else { - reservationsBuilder_.clear(); + return metadataBuilder_.getMessage(); } - return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public Builder removeReservations(int index) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.remove(index); + public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; onChanged(); } else { - reservationsBuilder_.remove(index); + metadataBuilder_.setMessage(value); } + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public datacatalog.Datacatalog.Reservation.Builder getReservationsBuilder( - int index) { - return getReservationsFieldBuilder().getBuilder(index); + public Builder setMetadata( + datacatalog.Datacatalog.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationsOrBuilder( - int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { - return reservationsBuilder_.getMessageOrBuilder(index); + 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; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public java.util.List - getReservationsOrBuilderList() { - if (reservationsBuilder_ != null) { - return reservationsBuilder_.getMessageOrBuilderList(); + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(reservations_); + metadata_ = null; + metadataBuilder_ = null; } + + return this; } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public datacatalog.Datacatalog.Reservation.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - datacatalog.Datacatalog.Reservation.getDefaultInstance()); + public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public datacatalog.Datacatalog.Reservation.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.Reservation.getDefaultInstance()); + public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; + } } /** *
-       * List of (newly created or existing) reservations for artifacts requested
+       * Free-form metadata associated with the artifact
        * 
* - * repeated .datacatalog.Reservation reservations = 1; + * .datacatalog.Metadata metadata = 6; */ - public java.util.List - getReservationsBuilderList() { - return getReservationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> - getReservationsFieldBuilder() { - if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder>( - reservations_, - ((bitField0_ & 0x00000001) != 0), + 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()); - reservations_ = null; + metadata_ = null; } - return reservationsBuilder_; + return metadataBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -21051,111 +17674,92 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datacatalog.GetOrExtendReservationsResponse) + // @@protoc_insertion_point(builder_scope:datacatalog.Reservation) } - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationsResponse) - private static final datacatalog.Datacatalog.GetOrExtendReservationsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datacatalog.Reservation) + private static final datacatalog.Datacatalog.Reservation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationsResponse(); + DEFAULT_INSTANCE = new datacatalog.Datacatalog.Reservation(); } - public static datacatalog.Datacatalog.GetOrExtendReservationsResponse getDefaultInstance() { + public static datacatalog.Datacatalog.Reservation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetOrExtendReservationsResponse parsePartialFrom( + public Reservation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationsResponse(input, extensionRegistry); + return new Reservation(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationsResponse getDefaultInstanceForType() { + public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ReleaseReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationRequest) + public interface GetOrExtendReservationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationResponse) com.google.protobuf.MessageOrBuilder { /** *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - boolean hasReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationID getReservationId(); - /** - *
-     * The unique ID for the reservation
+     * The reservation to be acquired or extended
      * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); - + boolean hasReservation(); /** *
-     * The unique ID of the owner for the reservation
+     * The reservation to be acquired or extended
      * 
* - * string owner_id = 2; + * .datacatalog.Reservation reservation = 1; */ - java.lang.String getOwnerId(); + datacatalog.Datacatalog.Reservation getReservation(); /** *
-     * The unique ID of the owner for the reservation
+     * The reservation to be acquired or extended
      * 
* - * string owner_id = 2; + * .datacatalog.Reservation reservation = 1; */ - com.google.protobuf.ByteString - getOwnerIdBytes(); + datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder(); } /** *
-   * Request to release reservation
+   * Response including either a newly minted reservation or the existing reservation
    * 
* - * Protobuf type {@code datacatalog.ReleaseReservationRequest} + * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} */ - public static final class ReleaseReservationRequest extends + public static final class GetOrExtendReservationResponse extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationRequest) - ReleaseReservationRequestOrBuilder { + // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationResponse) + GetOrExtendReservationResponseOrBuilder { private static final long serialVersionUID = 0L; - // Use ReleaseReservationRequest.newBuilder() to construct. - private ReleaseReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetOrExtendReservationResponse.newBuilder() to construct. + private GetOrExtendReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReleaseReservationRequest() { - ownerId_ = ""; + private GetOrExtendReservationResponse() { } @java.lang.Override @@ -21163,7 +17767,7 @@ private ReleaseReservationRequest() { getUnknownFields() { return this.unknownFields; } - private ReleaseReservationRequest( + private GetOrExtendReservationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21183,24 +17787,18 @@ private ReleaseReservationRequest( done = true; break; case 10: { - datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; - if (reservationId_ != null) { - subBuilder = reservationId_.toBuilder(); + datacatalog.Datacatalog.Reservation.Builder subBuilder = null; + if (reservation_ != null) { + subBuilder = reservation_.toBuilder(); } - reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + reservation_ = input.readMessage(datacatalog.Datacatalog.Reservation.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(reservationId_); - reservationId_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(reservation_); + reservation_ = subBuilder.buildPartial(); } break; } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerId_ = s; - break; - } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -21222,90 +17820,48 @@ private ReleaseReservationRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); } - public static final int RESERVATION_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.ReservationID reservationId_; - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationId_ != null; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } + public static final int RESERVATION_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.Reservation reservation_; /** *
-     * The unique ID for the reservation
+     * The reservation to be acquired or extended
      * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - return getReservationId(); + public boolean hasReservation() { + return reservation_ != null; } - - public static final int OWNER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object ownerId_; /** *
-     * The unique ID of the owner for the reservation
+     * The reservation to be acquired or extended
      * 
* - * string owner_id = 2; + * .datacatalog.Reservation reservation = 1; */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - 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(); - ownerId_ = s; - return s; - } + public datacatalog.Datacatalog.Reservation getReservation() { + return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; } /** *
-     * The unique ID of the owner for the reservation
+     * The reservation to be acquired or extended
      * 
* - * string owner_id = 2; + * .datacatalog.Reservation reservation = 1; */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { + return getReservation(); } private byte memoizedIsInitialized = -1; @@ -21322,11 +17878,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (reservationId_ != null) { - output.writeMessage(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); + if (reservation_ != null) { + output.writeMessage(1, getReservation()); } unknownFields.writeTo(output); } @@ -21337,12 +17890,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (reservationId_ != null) { + if (reservation_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); + .computeMessageSize(1, getReservation()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -21354,18 +17904,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.ReleaseReservationRequest)) { + if (!(obj instanceof datacatalog.Datacatalog.GetOrExtendReservationResponse)) { return super.equals(obj); } - datacatalog.Datacatalog.ReleaseReservationRequest other = (datacatalog.Datacatalog.ReleaseReservationRequest) obj; + datacatalog.Datacatalog.GetOrExtendReservationResponse other = (datacatalog.Datacatalog.GetOrExtendReservationResponse) obj; - if (hasReservationId() != other.hasReservationId()) return false; - if (hasReservationId()) { - if (!getReservationId() - .equals(other.getReservationId())) return false; + if (hasReservation() != other.hasReservation()) return false; + if (hasReservation()) { + if (!getReservation() + .equals(other.getReservation())) return false; } - if (!getOwnerId() - .equals(other.getOwnerId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -21377,80 +17925,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasReservationId()) { - hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getReservationId().hashCode(); + if (hasReservation()) { + hash = (37 * hash) + RESERVATION_FIELD_NUMBER; + hash = (53 * hash) + getReservation().hashCode(); } - hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.ReleaseReservationRequest parseFrom(byte[] data) + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.ReleaseReservationRequest parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseDelimitedFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( + public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -21463,7 +18009,7 @@ public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.ReleaseReservationRequest prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.GetOrExtendReservationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -21480,29 +18026,29 @@ protected Builder newBuilderForType( } /** *
-     * Request to release reservation
+     * Response including either a newly minted reservation or the existing reservation
      * 
* - * Protobuf type {@code datacatalog.ReleaseReservationRequest} + * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationRequest) - datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationResponse) + datacatalog.Datacatalog.GetOrExtendReservationResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); + datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); } - // Construct using datacatalog.Datacatalog.ReleaseReservationRequest.newBuilder() + // Construct using datacatalog.Datacatalog.GetOrExtendReservationResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -21520,31 +18066,29 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (reservationIdBuilder_ == null) { - reservationId_ = null; + if (reservationBuilder_ == null) { + reservation_ = null; } else { - reservationId_ = null; - reservationIdBuilder_ = null; + reservation_ = null; + reservationBuilder_ = null; } - ownerId_ = ""; - return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance(); + public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { + return datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest build() { - datacatalog.Datacatalog.ReleaseReservationRequest result = buildPartial(); + public datacatalog.Datacatalog.GetOrExtendReservationResponse build() { + datacatalog.Datacatalog.GetOrExtendReservationResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -21552,14 +18096,13 @@ public datacatalog.Datacatalog.ReleaseReservationRequest build() { } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest buildPartial() { - datacatalog.Datacatalog.ReleaseReservationRequest result = new datacatalog.Datacatalog.ReleaseReservationRequest(this); - if (reservationIdBuilder_ == null) { - result.reservationId_ = reservationId_; + public datacatalog.Datacatalog.GetOrExtendReservationResponse buildPartial() { + datacatalog.Datacatalog.GetOrExtendReservationResponse result = new datacatalog.Datacatalog.GetOrExtendReservationResponse(this); + if (reservationBuilder_ == null) { + result.reservation_ = reservation_; } else { - result.reservationId_ = reservationIdBuilder_.build(); + result.reservation_ = reservationBuilder_.build(); } - result.ownerId_ = ownerId_; onBuilt(); return result; } @@ -21598,22 +18141,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.ReleaseReservationRequest) { - return mergeFrom((datacatalog.Datacatalog.ReleaseReservationRequest)other); + if (other instanceof datacatalog.Datacatalog.GetOrExtendReservationResponse) { + return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationRequest other) { - if (other == datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()) return this; - if (other.hasReservationId()) { - mergeReservationId(other.getReservationId()); - } - if (!other.getOwnerId().isEmpty()) { - ownerId_ = other.ownerId_; - onChanged(); + public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationResponse other) { + if (other == datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance()) return this; + if (other.hasReservation()) { + mergeReservation(other.getReservation()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -21630,11 +18169,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - datacatalog.Datacatalog.ReleaseReservationRequest parsedMessage = null; + datacatalog.Datacatalog.GetOrExtendReservationResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReleaseReservationRequest) e.getUnfinishedMessage(); + parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -21644,246 +18183,157 @@ public Builder mergeFrom( return this; } - private datacatalog.Datacatalog.ReservationID reservationId_; + private datacatalog.Datacatalog.Reservation reservation_; private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> reservationBuilder_; /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public boolean hasReservationId() { - return reservationIdBuilder_ != null || reservationId_ != null; + public boolean hasReservation() { + return reservationBuilder_ != null || reservation_ != null; } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - if (reservationIdBuilder_ == null) { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + public datacatalog.Datacatalog.Reservation getReservation() { + if (reservationBuilder_ == null) { + return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; } else { - return reservationIdBuilder_.getMessage(); + return reservationBuilder_.getMessage(); } } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { + public Builder setReservation(datacatalog.Datacatalog.Reservation value) { + if (reservationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - reservationId_ = value; + reservation_ = value; onChanged(); } else { - reservationIdBuilder_.setMessage(value); + reservationBuilder_.setMessage(value); } return this; } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public Builder setReservationId( - datacatalog.Datacatalog.ReservationID.Builder builderForValue) { - if (reservationIdBuilder_ == null) { - reservationId_ = builderForValue.build(); + public Builder setReservation( + datacatalog.Datacatalog.Reservation.Builder builderForValue) { + if (reservationBuilder_ == null) { + reservation_ = builderForValue.build(); onChanged(); } else { - reservationIdBuilder_.setMessage(builderForValue.build()); + reservationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (reservationId_ != null) { - reservationId_ = - datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); + public Builder mergeReservation(datacatalog.Datacatalog.Reservation value) { + if (reservationBuilder_ == null) { + if (reservation_ != null) { + reservation_ = + datacatalog.Datacatalog.Reservation.newBuilder(reservation_).mergeFrom(value).buildPartial(); } else { - reservationId_ = value; + reservation_ = value; } onChanged(); } else { - reservationIdBuilder_.mergeFrom(value); + reservationBuilder_.mergeFrom(value); } return this; } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public Builder clearReservationId() { - if (reservationIdBuilder_ == null) { - reservationId_ = null; + public Builder clearReservation() { + if (reservationBuilder_ == null) { + reservation_ = null; onChanged(); } else { - reservationId_ = null; - reservationIdBuilder_ = null; + reservation_ = null; + reservationBuilder_ = null; } return this; } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { + public datacatalog.Datacatalog.Reservation.Builder getReservationBuilder() { onChanged(); - return getReservationIdFieldBuilder().getBuilder(); + return getReservationFieldBuilder().getBuilder(); } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - if (reservationIdBuilder_ != null) { - return reservationIdBuilder_.getMessageOrBuilder(); + public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { + if (reservationBuilder_ != null) { + return reservationBuilder_.getMessageOrBuilder(); } else { - return reservationId_ == null ? - datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; + return reservation_ == null ? + datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; } } /** *
-       * The unique ID for the reservation
+       * The reservation to be acquired or extended
        * 
* - * .datacatalog.ReservationID reservation_id = 1; + * .datacatalog.Reservation reservation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> - getReservationIdFieldBuilder() { - if (reservationIdBuilder_ == null) { - reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> + getReservationFieldBuilder() { + if (reservationBuilder_ == null) { + reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder>( + getReservation(), getParentForChildren(), isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + reservation_ = null; } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; + return reservationBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -21898,112 +18348,111 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationRequest) + // @@protoc_insertion_point(builder_scope:datacatalog.GetOrExtendReservationResponse) } - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) - private static final datacatalog.Datacatalog.ReleaseReservationRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) + private static final datacatalog.Datacatalog.GetOrExtendReservationResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationRequest(); + DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationResponse(); } - public static datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstance() { + public static datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReleaseReservationRequest parsePartialFrom( + public GetOrExtendReservationResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseReservationRequest(input, extensionRegistry); + return new GetOrExtendReservationResponse(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { + public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ReleaseReservationsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationsRequest) + public interface ReleaseReservationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationRequest) com.google.protobuf.MessageOrBuilder { /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - java.util.List - getReservationsList(); + boolean hasReservationId(); /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - datacatalog.Datacatalog.ReleaseReservationRequest getReservations(int index); + datacatalog.Datacatalog.ReservationID getReservationId(); /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - int getReservationsCount(); + datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); + /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID of the owner for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - java.util.List - getReservationsOrBuilderList(); + java.lang.String getOwnerId(); /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID of the owner for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder getReservationsOrBuilder( - int index); + com.google.protobuf.ByteString + getOwnerIdBytes(); } /** *
-   * Request message for releasing reservations for multiple artifacts in a single operation.
+   * Request to release reservation
    * 
* - * Protobuf type {@code datacatalog.ReleaseReservationsRequest} + * Protobuf type {@code datacatalog.ReleaseReservationRequest} */ - public static final class ReleaseReservationsRequest extends + public static final class ReleaseReservationRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationsRequest) - ReleaseReservationsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationRequest) + ReleaseReservationRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use ReleaseReservationsRequest.newBuilder() to construct. - private ReleaseReservationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ReleaseReservationRequest.newBuilder() to construct. + private ReleaseReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ReleaseReservationsRequest() { - reservations_ = java.util.Collections.emptyList(); + private ReleaseReservationRequest() { + ownerId_ = ""; } @java.lang.Override @@ -22011,7 +18460,7 @@ private ReleaseReservationsRequest() { getUnknownFields() { return this.unknownFields; } - private ReleaseReservationsRequest( + private ReleaseReservationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -22031,12 +18480,22 @@ private ReleaseReservationsRequest( done = true; break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - reservations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; + if (reservationId_ != null) { + subBuilder = reservationId_.toBuilder(); + } + reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(reservationId_); + reservationId_ = subBuilder.buildPartial(); } - reservations_.add( - input.readMessage(datacatalog.Datacatalog.ReleaseReservationRequest.parser(), extensionRegistry)); + + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + ownerId_ = s; break; } default: { @@ -22054,79 +18513,96 @@ private ReleaseReservationsRequest( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationsRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationsRequest.class, datacatalog.Datacatalog.ReleaseReservationsRequest.Builder.class); + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); } - public static final int RESERVATIONS_FIELD_NUMBER = 1; - private java.util.List reservations_; + public static final int RESERVATION_ID_FIELD_NUMBER = 1; + private datacatalog.Datacatalog.ReservationID reservationId_; /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public java.util.List getReservationsList() { - return reservations_; + public boolean hasReservationId() { + return reservationId_ != null; } /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public java.util.List - getReservationsOrBuilderList() { - return reservations_; + public datacatalog.Datacatalog.ReservationID getReservationId() { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; } /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public int getReservationsCount() { - return reservations_.size(); + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + return getReservationId(); } + + public static final int OWNER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object ownerId_; /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID of the owner for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public datacatalog.Datacatalog.ReleaseReservationRequest getReservations(int index) { - return reservations_.get(index); + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + 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(); + ownerId_ = s; + return s; + } } /** *
-     * List of reservation requests for artifacts to release
+     * The unique ID of the owner for the reservation
      * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder getReservationsOrBuilder( - int index) { - return reservations_.get(index); + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -22143,8 +18619,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < reservations_.size(); i++) { - output.writeMessage(1, reservations_.get(i)); + if (reservationId_ != null) { + output.writeMessage(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); } unknownFields.writeTo(output); } @@ -22155,9 +18634,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < reservations_.size(); i++) { + if (reservationId_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, reservations_.get(i)); + .computeMessageSize(1, getReservationId()); + } + if (!getOwnerIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -22169,13 +18651,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof datacatalog.Datacatalog.ReleaseReservationsRequest)) { + if (!(obj instanceof datacatalog.Datacatalog.ReleaseReservationRequest)) { return super.equals(obj); } - datacatalog.Datacatalog.ReleaseReservationsRequest other = (datacatalog.Datacatalog.ReleaseReservationsRequest) obj; + datacatalog.Datacatalog.ReleaseReservationRequest other = (datacatalog.Datacatalog.ReleaseReservationRequest) obj; - if (!getReservationsList() - .equals(other.getReservationsList())) return false; + if (hasReservationId() != other.hasReservationId()) return false; + if (hasReservationId()) { + if (!getReservationId() + .equals(other.getReservationId())) return false; + } + if (!getOwnerId() + .equals(other.getOwnerId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -22187,78 +18674,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getReservationsCount() > 0) { - hash = (37 * hash) + RESERVATIONS_FIELD_NUMBER; - hash = (53 * hash) + getReservationsList().hashCode(); + if (hasReservationId()) { + hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getReservationId().hashCode(); } + hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; + hash = (53 * hash) + getOwnerId().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationsRequest parseFrom(byte[] data) + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationsRequest parseDelimitedFrom(java.io.InputStream input) + public static datacatalog.Datacatalog.ReleaseReservationRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseDelimitedFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest 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.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( + public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -22271,7 +18760,7 @@ public static datacatalog.Datacatalog.ReleaseReservationsRequest parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(datacatalog.Datacatalog.ReleaseReservationsRequest prototype) { + public static Builder newBuilder(datacatalog.Datacatalog.ReleaseReservationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -22288,29 +18777,29 @@ protected Builder newBuilderForType( } /** *
-     * Request message for releasing reservations for multiple artifacts in a single operation.
+     * Request to release reservation
      * 
* - * Protobuf type {@code datacatalog.ReleaseReservationsRequest} + * Protobuf type {@code datacatalog.ReleaseReservationRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationsRequest) - datacatalog.Datacatalog.ReleaseReservationsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationRequest) + datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationsRequest_fieldAccessorTable + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationsRequest.class, datacatalog.Datacatalog.ReleaseReservationsRequest.Builder.class); + datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); } - // Construct using datacatalog.Datacatalog.ReleaseReservationsRequest.newBuilder() + // Construct using datacatalog.Datacatalog.ReleaseReservationRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -22323,35 +18812,36 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getReservationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + if (reservationIdBuilder_ == null) { + reservationId_ = null; } else { - reservationsBuilder_.clear(); + reservationId_ = null; + reservationIdBuilder_ = null; } + ownerId_ = ""; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationsRequest_descriptor; + return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationsRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReleaseReservationsRequest.getDefaultInstance(); + public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { + return datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance(); } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationsRequest build() { - datacatalog.Datacatalog.ReleaseReservationsRequest result = buildPartial(); + public datacatalog.Datacatalog.ReleaseReservationRequest build() { + datacatalog.Datacatalog.ReleaseReservationRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -22359,18 +18849,14 @@ public datacatalog.Datacatalog.ReleaseReservationsRequest build() { } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationsRequest buildPartial() { - datacatalog.Datacatalog.ReleaseReservationsRequest result = new datacatalog.Datacatalog.ReleaseReservationsRequest(this); - int from_bitField0_ = bitField0_; - if (reservationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - reservations_ = java.util.Collections.unmodifiableList(reservations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.reservations_ = reservations_; + public datacatalog.Datacatalog.ReleaseReservationRequest buildPartial() { + datacatalog.Datacatalog.ReleaseReservationRequest result = new datacatalog.Datacatalog.ReleaseReservationRequest(this); + if (reservationIdBuilder_ == null) { + result.reservationId_ = reservationId_; } else { - result.reservations_ = reservationsBuilder_.build(); + result.reservationId_ = reservationIdBuilder_.build(); } + result.ownerId_ = ownerId_; onBuilt(); return result; } @@ -22409,41 +18895,22 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof datacatalog.Datacatalog.ReleaseReservationsRequest) { - return mergeFrom((datacatalog.Datacatalog.ReleaseReservationsRequest)other); + if (other instanceof datacatalog.Datacatalog.ReleaseReservationRequest) { + return mergeFrom((datacatalog.Datacatalog.ReleaseReservationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationsRequest other) { - if (other == datacatalog.Datacatalog.ReleaseReservationsRequest.getDefaultInstance()) return this; - if (reservationsBuilder_ == null) { - if (!other.reservations_.isEmpty()) { - if (reservations_.isEmpty()) { - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReservationsIsMutable(); - reservations_.addAll(other.reservations_); - } - onChanged(); - } - } else { - if (!other.reservations_.isEmpty()) { - if (reservationsBuilder_.isEmpty()) { - reservationsBuilder_.dispose(); - reservationsBuilder_ = null; - reservations_ = other.reservations_; - bitField0_ = (bitField0_ & ~0x00000001); - reservationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReservationsFieldBuilder() : null; - } else { - reservationsBuilder_.addAllMessages(other.reservations_); - } - } + public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationRequest other) { + if (other == datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()) return this; + if (other.hasReservationId()) { + mergeReservationId(other.getReservationId()); + } + if (!other.getOwnerId().isEmpty()) { + ownerId_ = other.ownerId_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -22451,340 +18918,269 @@ public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationsRequest othe } @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.ReleaseReservationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReleaseReservationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List reservations_ = - java.util.Collections.emptyList(); - private void ensureReservationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - reservations_ = new java.util.ArrayList(reservations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ReleaseReservationRequest, datacatalog.Datacatalog.ReleaseReservationRequest.Builder, datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder> reservationsBuilder_; - - /** - *
-       * List of reservation requests for artifacts to release
-       * 
- * - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; - */ - public java.util.List getReservationsList() { - if (reservationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reservations_); - } else { - return reservationsBuilder_.getMessageList(); - } - } - /** - *
-       * List of reservation requests for artifacts to release
-       * 
- * - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; - */ - public int getReservationsCount() { - if (reservationsBuilder_ == null) { - return reservations_.size(); - } else { - return reservationsBuilder_.getCount(); - } - } - /** - *
-       * List of reservation requests for artifacts to release
-       * 
- * - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; - */ - public datacatalog.Datacatalog.ReleaseReservationRequest getReservations(int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); - } else { - return reservationsBuilder_.getMessage(index); - } + public final boolean isInitialized() { + return true; } - /** - *
-       * List of reservation requests for artifacts to release
-       * 
- * - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; - */ - public Builder setReservations( - int index, datacatalog.Datacatalog.ReleaseReservationRequest value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + datacatalog.Datacatalog.ReleaseReservationRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (datacatalog.Datacatalog.ReleaseReservationRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); } - ensureReservationsIsMutable(); - reservations_.set(index, value); - onChanged(); - } else { - reservationsBuilder_.setMessage(index, value); } return this; } + + private datacatalog.Datacatalog.ReservationID reservationId_; + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder setReservations( - int index, datacatalog.Datacatalog.ReleaseReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.set(index, builderForValue.build()); - onChanged(); - } else { - reservationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public boolean hasReservationId() { + return reservationIdBuilder_ != null || reservationId_ != null; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder addReservations(datacatalog.Datacatalog.ReleaseReservationRequest value) { - if (reservationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReservationsIsMutable(); - reservations_.add(value); - onChanged(); + public datacatalog.Datacatalog.ReservationID getReservationId() { + if (reservationIdBuilder_ == null) { + return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; } else { - reservationsBuilder_.addMessage(value); + return reservationIdBuilder_.getMessage(); } - return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder addReservations( - int index, datacatalog.Datacatalog.ReleaseReservationRequest value) { - if (reservationsBuilder_ == null) { + public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureReservationsIsMutable(); - reservations_.add(index, value); + reservationId_ = value; onChanged(); } else { - reservationsBuilder_.addMessage(index, value); + reservationIdBuilder_.setMessage(value); } + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder addReservations( - datacatalog.Datacatalog.ReleaseReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(builderForValue.build()); + public Builder setReservationId( + datacatalog.Datacatalog.ReservationID.Builder builderForValue) { + if (reservationIdBuilder_ == null) { + reservationId_ = builderForValue.build(); onChanged(); } else { - reservationsBuilder_.addMessage(builderForValue.build()); + reservationIdBuilder_.setMessage(builderForValue.build()); } + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder addReservations( - int index, datacatalog.Datacatalog.ReleaseReservationRequest.Builder builderForValue) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.add(index, builderForValue.build()); + public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { + if (reservationIdBuilder_ == null) { + if (reservationId_ != null) { + reservationId_ = + datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); + } else { + reservationId_ = value; + } onChanged(); } else { - reservationsBuilder_.addMessage(index, builderForValue.build()); + reservationIdBuilder_.mergeFrom(value); } + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder addAllReservations( - java.lang.Iterable values) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reservations_); + public Builder clearReservationId() { + if (reservationIdBuilder_ == null) { + reservationId_ = null; onChanged(); } else { - reservationsBuilder_.addAllMessages(values); + reservationId_ = null; + reservationIdBuilder_ = null; } + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder clearReservations() { - if (reservationsBuilder_ == null) { - reservations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - reservationsBuilder_.clear(); - } - return this; + public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { + + onChanged(); + return getReservationIdFieldBuilder().getBuilder(); } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public Builder removeReservations(int index) { - if (reservationsBuilder_ == null) { - ensureReservationsIsMutable(); - reservations_.remove(index); - onChanged(); + public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { + if (reservationIdBuilder_ != null) { + return reservationIdBuilder_.getMessageOrBuilder(); } else { - reservationsBuilder_.remove(index); + return reservationId_ == null ? + datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; } - return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * .datacatalog.ReservationID reservation_id = 1; */ - public datacatalog.Datacatalog.ReleaseReservationRequest.Builder getReservationsBuilder( - int index) { - return getReservationsFieldBuilder().getBuilder(index); + private com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> + getReservationIdFieldBuilder() { + if (reservationIdBuilder_ == null) { + reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( + getReservationId(), + getParentForChildren(), + isClean()); + reservationId_ = null; + } + return reservationIdBuilder_; } + + private java.lang.Object ownerId_ = ""; /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID of the owner for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder getReservationsOrBuilder( - int index) { - if (reservationsBuilder_ == null) { - return reservations_.get(index); } else { - return reservationsBuilder_.getMessageOrBuilder(index); + public java.lang.String getOwnerId() { + java.lang.Object ref = ownerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ownerId_ = s; + return s; + } else { + return (java.lang.String) ref; } } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID of the owner for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public java.util.List - getReservationsOrBuilderList() { - if (reservationsBuilder_ != null) { - return reservationsBuilder_.getMessageOrBuilderList(); + public com.google.protobuf.ByteString + getOwnerIdBytes() { + java.lang.Object ref = ownerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ownerId_ = b; + return b; } else { - return java.util.Collections.unmodifiableList(reservations_); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID of the owner for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public datacatalog.Datacatalog.ReleaseReservationRequest.Builder addReservationsBuilder() { - return getReservationsFieldBuilder().addBuilder( - datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()); + public Builder setOwnerId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ownerId_ = value; + onChanged(); + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID of the owner for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public datacatalog.Datacatalog.ReleaseReservationRequest.Builder addReservationsBuilder( - int index) { - return getReservationsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()); + public Builder clearOwnerId() { + + ownerId_ = getDefaultInstance().getOwnerId(); + onChanged(); + return this; } /** *
-       * List of reservation requests for artifacts to release
+       * The unique ID of the owner for the reservation
        * 
* - * repeated .datacatalog.ReleaseReservationRequest reservations = 1; + * string owner_id = 2; */ - public java.util.List - getReservationsBuilderList() { - return getReservationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ReleaseReservationRequest, datacatalog.Datacatalog.ReleaseReservationRequest.Builder, datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder> - getReservationsFieldBuilder() { - if (reservationsBuilder_ == null) { - reservationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ReleaseReservationRequest, datacatalog.Datacatalog.ReleaseReservationRequest.Builder, datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder>( - reservations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - reservations_ = null; - } - return reservationsBuilder_; + public Builder setOwnerIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ownerId_ = value; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -22799,41 +19195,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationsRequest) + // @@protoc_insertion_point(builder_scope:datacatalog.ReleaseReservationRequest) } - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationsRequest) - private static final datacatalog.Datacatalog.ReleaseReservationsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) + private static final datacatalog.Datacatalog.ReleaseReservationRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationsRequest(); + DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationRequest(); } - public static datacatalog.Datacatalog.ReleaseReservationsRequest getDefaultInstance() { + public static datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ReleaseReservationsRequest parsePartialFrom( + public ReleaseReservationRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseReservationsRequest(input, extensionRegistry); + return new ReleaseReservationRequest(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationsRequest getDefaultInstanceForType() { + public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -39165,11 +35561,6 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datacatalog_DeleteArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_DeleteArtifactsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_DeleteArtifactsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_DeleteArtifactResponse_descriptor; private static final @@ -39185,11 +35576,6 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetOrExtendReservationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_Reservation_descriptor; private static final @@ -39200,21 +35586,11 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetOrExtendReservationsResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_ReleaseReservationRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ReleaseReservationsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ReleaseReservationsRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_datacatalog_ReleaseReservationResponse_descriptor; private static final @@ -39347,115 +35723,98 @@ public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { "rtifact_id\030\001 \001(\t\"{\n\025DeleteArtifactReques" + "t\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog.Dataset" + "ID\022\025\n\013artifact_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 " + - "\001(\tH\000B\016\n\014query_handle\"O\n\026DeleteArtifacts" + - "Request\0225\n\tartifacts\030\001 \003(\0132\".datacatalog" + - ".DeleteArtifactRequest\"\030\n\026DeleteArtifact" + - "Response\"M\n\rReservationID\022*\n\ndataset_id\030" + - "\001 \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag_nam" + - "e\030\002 \001(\t\"\234\001\n\035GetOrExtendReservationReques" + - "t\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog." + - "ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heart" + - "beat_interval\030\003 \001(\0132\031.google.protobuf.Du" + - "ration\"b\n\036GetOrExtendReservationsRequest" + - "\022@\n\014reservations\030\001 \003(\0132*.datacatalog.Get" + - "OrExtendReservationRequest\"\343\001\n\013Reservati" + - "on\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog" + - ".ReservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022hear" + - "tbeat_interval\030\003 \001(\0132\031.google.protobuf.D" + - "uration\022.\n\nexpires_at\030\004 \001(\0132\032.google.pro" + - "tobuf.Timestamp\022\'\n\010metadata\030\006 \001(\0132\025.data" + - "catalog.Metadata\"O\n\036GetOrExtendReservati" + - "onResponse\022-\n\013reservation\030\001 \001(\0132\030.dataca" + - "talog.Reservation\"Q\n\037GetOrExtendReservat" + - "ionsResponse\022.\n\014reservations\030\001 \003(\0132\030.dat" + - "acatalog.Reservation\"a\n\031ReleaseReservati" + - "onRequest\0222\n\016reservation_id\030\001 \001(\0132\032.data" + - "catalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\"" + - "Z\n\032ReleaseReservationsRequest\022<\n\014reserva" + - "tions\030\001 \003(\0132&.datacatalog.ReleaseReserva" + - "tionRequest\"\034\n\032ReleaseReservationRespons" + - "e\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatalog.D" + - "atasetID\022\'\n\010metadata\030\002 \001(\0132\025.datacatalog" + - ".Metadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\tPart" + - "ition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"f\n\tDat" + - "asetID\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\022\013\n\003org\030\006 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001" + - "(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Datase" + - "tID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Artifact" + - "Data\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Met" + - "adata\022*\n\npartitions\030\005 \003(\0132\026.datacatalog." + - "Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Ta" + - "g\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf." + - "Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022" + - "%\n\005value\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\007dataset\030\003 \001(\0132\026.datacatalog.DatasetI" + - "D\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacat" + - "alog.Metadata.KeyMapEntry\032-\n\013KeyMapEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filt" + - "erExpression\0222\n\007filters\030\001 \003(\0132!.datacata" + - "log.SinglePropertyFilter\"\211\003\n\024SinglePrope" + - "rtyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacata" + - "log.TagPropertyFilterH\000\022@\n\020partition_fil" + - "ter\030\002 \001(\0132$.datacatalog.PartitionPropert" + - "yFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.dat" + - "acatalog.ArtifactPropertyFilterH\000\022<\n\016dat" + - "aset_filter\030\004 \001(\0132\".datacatalog.DatasetP" + - "ropertyFilterH\000\022F\n\010operator\030\n \001(\01624.data" + - "catalog.SinglePropertyFilter.ComparisonO" + - "perator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020" + - "\000B\021\n\017property_filter\";\n\026ArtifactProperty" + - "Filter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010propert" + - "y\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\t" + - "H\000B\n\n\010property\"S\n\027PartitionPropertyFilte" + - "r\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValu" + - "ePairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"z\n\025DatasetProper" + - "tyFilter\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\000" + - "\022\r\n\003org\030\005 \001(\tH\000B\n\n\010property\"\361\001\n\021Paginati" + - "onOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\022" + - "7\n\007sortKey\030\003 \001(\0162&.datacatalog.Paginatio" + - "nOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162(.da" + - "tacatalog.PaginationOptions.SortOrder\"*\n" + - "\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCENDING\020" + - "\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\235\n\n\013Data" + - "Catalog\022V\n\rCreateDataset\022!.datacatalog.C" + - "reateDatasetRequest\032\".datacatalog.Create" + - "DatasetResponse\022M\n\nGetDataset\022\036.datacata" + - "log.GetDatasetRequest\032\037.datacatalog.GetD" + - "atasetResponse\022Y\n\016CreateArtifact\022\".datac" + - "atalog.CreateArtifactRequest\032#.datacatal" + - "og.CreateArtifactResponse\022P\n\013GetArtifact" + - "\022\037.datacatalog.GetArtifactRequest\032 .data" + - "catalog.GetArtifactResponse\022A\n\006AddTag\022\032." + - "datacatalog.AddTagRequest\032\033.datacatalog." + - "AddTagResponse\022V\n\rListArtifacts\022!.dataca" + - "talog.ListArtifactsRequest\032\".datacatalog" + - ".ListArtifactsResponse\022S\n\014ListDatasets\022 " + - ".datacatalog.ListDatasetsRequest\032!.datac" + - "atalog.ListDatasetsResponse\022Y\n\016UpdateArt" + - "ifact\022\".datacatalog.UpdateArtifactReques" + - "t\032#.datacatalog.UpdateArtifactResponse\022Y" + - "\n\016DeleteArtifact\022\".datacatalog.DeleteArt" + - "ifactRequest\032#.datacatalog.DeleteArtifac" + - "tResponse\022[\n\017DeleteArtifacts\022#.datacatal" + - "og.DeleteArtifactsRequest\032#.datacatalog." + - "DeleteArtifactResponse\022q\n\026GetOrExtendRes" + - "ervation\022*.datacatalog.GetOrExtendReserv" + - "ationRequest\032+.datacatalog.GetOrExtendRe" + - "servationResponse\022t\n\027GetOrExtendReservat" + - "ions\022+.datacatalog.GetOrExtendReservatio" + - "nsRequest\032,.datacatalog.GetOrExtendReser" + - "vationsResponse\022e\n\022ReleaseReservation\022&." + - "datacatalog.ReleaseReservationRequest\032\'." + - "datacatalog.ReleaseReservationResponse\022g" + - "\n\023ReleaseReservations\022\'.datacatalog.Rele" + - "aseReservationsRequest\032\'.datacatalog.Rel" + - "easeReservationResponseBCZAgithub.com/fl" + - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" + - "/datacatalogb\006proto3" + "\001(\tH\000B\016\n\014query_handle\"\030\n\026DeleteArtifactR" + + "esponse\"M\n\rReservationID\022*\n\ndataset_id\030\001" + + " \001(\0132\026.datacatalog.DatasetID\022\020\n\010tag_name" + + "\030\002 \001(\t\"\234\001\n\035GetOrExtendReservationRequest" + + "\0222\n\016reservation_id\030\001 \001(\0132\032.datacatalog.R" + + "eservationID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartb" + + "eat_interval\030\003 \001(\0132\031.google.protobuf.Dur" + + "ation\"\343\001\n\013Reservation\0222\n\016reservation_id\030" + + "\001 \001(\0132\032.datacatalog.ReservationID\022\020\n\010own" + + "er_id\030\002 \001(\t\0225\n\022heartbeat_interval\030\003 \001(\0132" + + "\031.google.protobuf.Duration\022.\n\nexpires_at" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022\'\n\010me" + + "tadata\030\006 \001(\0132\025.datacatalog.Metadata\"O\n\036G" + + "etOrExtendReservationResponse\022-\n\013reserva" + + "tion\030\001 \001(\0132\030.datacatalog.Reservation\"a\n\031" + + "ReleaseReservationRequest\0222\n\016reservation" + + "_id\030\001 \001(\0132\032.datacatalog.ReservationID\022\020\n" + + "\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReservationRes" + + "ponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026.datacatal" + + "og.DatasetID\022\'\n\010metadata\030\002 \001(\0132\025.datacat" + + "alog.Metadata\022\025\n\rpartitionKeys\030\003 \003(\t\"\'\n\t" + + "Partition\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"f\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\004UU" + + "ID\030\005 \001(\t\022\013\n\003org\030\006 \001(\t\"\215\002\n\010Artifact\022\n\n\002id" + + "\030\001 \001(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Da" + + "tasetID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Arti" + + "factData\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog" + + ".Metadata\022*\n\npartitions\030\005 \003(\0132\026.datacata" + + "log.Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalo" + + "g.Tag\022.\n\ncreated_at\030\007 \001(\0132\032.google.proto" + + "buf.Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 " + + "\001(\t\022%\n\005value\030\002 \001(\0132\026.flyteidl.core.Liter" + + "al\"Q\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002" + + " \001(\t\022\'\n\007dataset\030\003 \001(\0132\026.datacatalog.Data" + + "setID\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.dat" + + "acatalog.Metadata.KeyMapEntry\032-\n\013KeyMapE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020" + + "FilterExpression\0222\n\007filters\030\001 \003(\0132!.data" + + "catalog.SinglePropertyFilter\"\211\003\n\024SingleP" + + "ropertyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.data" + + "catalog.TagPropertyFilterH\000\022@\n\020partition" + + "_filter\030\002 \001(\0132$.datacatalog.PartitionPro" + + "pertyFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#" + + ".datacatalog.ArtifactPropertyFilterH\000\022<\n" + + "\016dataset_filter\030\004 \001(\0132\".datacatalog.Data" + + "setPropertyFilterH\000\022F\n\010operator\030\n \001(\01624." + + "datacatalog.SinglePropertyFilter.Compari" + + "sonOperator\" \n\022ComparisonOperator\022\n\n\006EQU" + + "ALS\020\000B\021\n\017property_filter\";\n\026ArtifactProp" + + "ertyFilter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010pro" + + "perty\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001" + + " \001(\tH\000B\n\n\010property\"S\n\027PartitionPropertyF" + + "ilter\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.Key" + + "ValuePairH\000B\n\n\010property\"*\n\014KeyValuePair\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"z\n\025DatasetPr" + + "opertyFilter\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\000\022\r\n\003org\030\005 \001(\tH\000B\n\n\010property\"\361\001\n\021Pagi" + + "nationOptions\022\r\n\005limit\030\001 \001(\r\022\r\n\005token\030\002 " + + "\001(\t\0227\n\007sortKey\030\003 \001(\0162&.datacatalog.Pagin" + + "ationOptions.SortKey\022;\n\tsortOrder\030\004 \001(\0162" + + "(.datacatalog.PaginationOptions.SortOrde" + + "r\"*\n\tSortOrder\022\016\n\nDESCENDING\020\000\022\r\n\tASCEND" + + "ING\020\001\"\034\n\007SortKey\022\021\n\rCREATION_TIME\020\0002\341\007\n\013" + + "DataCatalog\022V\n\rCreateDataset\022!.datacatal" + + "og.CreateDatasetRequest\032\".datacatalog.Cr" + + "eateDatasetResponse\022M\n\nGetDataset\022\036.data" + + "catalog.GetDatasetRequest\032\037.datacatalog." + + "GetDatasetResponse\022Y\n\016CreateArtifact\022\".d" + + "atacatalog.CreateArtifactRequest\032#.datac" + + "atalog.CreateArtifactResponse\022P\n\013GetArti" + + "fact\022\037.datacatalog.GetArtifactRequest\032 ." + + "datacatalog.GetArtifactResponse\022A\n\006AddTa" + + "g\022\032.datacatalog.AddTagRequest\032\033.datacata" + + "log.AddTagResponse\022V\n\rListArtifacts\022!.da" + + "tacatalog.ListArtifactsRequest\032\".datacat" + + "alog.ListArtifactsResponse\022S\n\014ListDatase" + + "ts\022 .datacatalog.ListDatasetsRequest\032!.d" + + "atacatalog.ListDatasetsResponse\022Y\n\016Updat" + + "eArtifact\022\".datacatalog.UpdateArtifactRe" + + "quest\032#.datacatalog.UpdateArtifactRespon" + + "se\022Y\n\016DeleteArtifact\022\".datacatalog.Delet" + + "eArtifactRequest\032#.datacatalog.DeleteArt" + + "ifactResponse\022q\n\026GetOrExtendReservation\022" + + "*.datacatalog.GetOrExtendReservationRequ" + + "est\032+.datacatalog.GetOrExtendReservation" + + "Response\022e\n\022ReleaseReservation\022&.datacat" + + "alog.ReleaseReservationRequest\032\'.datacat" + + "alog.ReleaseReservationResponseBCZAgithu" + + "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" + + "flyteidl/datacatalogb\006proto3" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -39574,110 +35933,86 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_DeleteArtifactRequest_descriptor, new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "QueryHandle", }); - internal_static_datacatalog_DeleteArtifactsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_datacatalog_DeleteArtifactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_DeleteArtifactsRequest_descriptor, - new java.lang.String[] { "Artifacts", }); internal_static_datacatalog_DeleteArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(17); internal_static_datacatalog_DeleteArtifactResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_DeleteArtifactResponse_descriptor, new java.lang.String[] { }); internal_static_datacatalog_ReservationID_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(18); internal_static_datacatalog_ReservationID_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReservationID_descriptor, new java.lang.String[] { "DatasetId", "TagName", }); internal_static_datacatalog_GetOrExtendReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(19); internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_GetOrExtendReservationRequest_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", }); - internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_datacatalog_GetOrExtendReservationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetOrExtendReservationsRequest_descriptor, - new java.lang.String[] { "Reservations", }); internal_static_datacatalog_Reservation_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(20); internal_static_datacatalog_Reservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Reservation_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", "ExpiresAt", "Metadata", }); internal_static_datacatalog_GetOrExtendReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(21); internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_GetOrExtendReservationResponse_descriptor, new java.lang.String[] { "Reservation", }); - internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_datacatalog_GetOrExtendReservationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetOrExtendReservationsResponse_descriptor, - new java.lang.String[] { "Reservations", }); internal_static_datacatalog_ReleaseReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(22); internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReleaseReservationRequest_descriptor, new java.lang.String[] { "ReservationId", "OwnerId", }); - internal_static_datacatalog_ReleaseReservationsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_datacatalog_ReleaseReservationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ReleaseReservationsRequest_descriptor, - new java.lang.String[] { "Reservations", }); internal_static_datacatalog_ReleaseReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(23); internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_ReleaseReservationResponse_descriptor, new java.lang.String[] { }); internal_static_datacatalog_Dataset_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(24); 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(29); + getDescriptor().getMessageTypes().get(25); 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(30); + getDescriptor().getMessageTypes().get(26); 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", "Org", }); internal_static_datacatalog_Artifact_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(27); 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(32); + getDescriptor().getMessageTypes().get(28); 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(33); + getDescriptor().getMessageTypes().get(29); 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(34); + getDescriptor().getMessageTypes().get(30); internal_static_datacatalog_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_Metadata_descriptor, @@ -39689,49 +36024,49 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_datacatalog_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(31); 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(36); + getDescriptor().getMessageTypes().get(32); 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(37); + getDescriptor().getMessageTypes().get(33); 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(38); + getDescriptor().getMessageTypes().get(34); 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(39); + getDescriptor().getMessageTypes().get(35); 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(40); + getDescriptor().getMessageTypes().get(36); 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(41); + getDescriptor().getMessageTypes().get(37); internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_DatasetPropertyFilter_descriptor, new java.lang.String[] { "Project", "Name", "Domain", "Version", "Org", "Property", }); internal_static_datacatalog_PaginationOptions_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(38); internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_datacatalog_PaginationOptions_descriptor, diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py index 76b050a6b4..c381d0dbe3 100644 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py @@ -16,7 +16,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xfb\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x05 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadataB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"\x99\x01\n\x15\x44\x65leteArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"Z\n\x16\x44\x65leteArtifactsRequest\x12@\n\tartifacts\x18\x01 \x03(\x0b\x32\".datacatalog.DeleteArtifactRequestR\tartifacts\"\x18\n\x16\x44\x65leteArtifactResponse\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"p\n\x1eGetOrExtendReservationsRequest\x12N\n\x0creservations\x18\x01 \x03(\x0b\x32*.datacatalog.GetOrExtendReservationRequestR\x0creservations\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"_\n\x1fGetOrExtendReservationsResponse\x12<\n\x0creservations\x18\x01 \x03(\x0b\x32\x18.datacatalog.ReservationR\x0creservations\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"h\n\x1aReleaseReservationsRequest\x12J\n\x0creservations\x18\x01 \x03(\x0b\x32&.datacatalog.ReleaseReservationRequestR\x0creservations\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x91\x01\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x9f\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07version\x12\x12\n\x03org\x18\x05 \x01(\tH\x00R\x03orgB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\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\x9d\n\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.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12Y\n\x0e\x44\x65leteArtifact\x12\".datacatalog.DeleteArtifactRequest\x1a#.datacatalog.DeleteArtifactResponse\x12[\n\x0f\x44\x65leteArtifacts\x12#.datacatalog.DeleteArtifactsRequest\x1a#.datacatalog.DeleteArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12t\n\x17GetOrExtendReservations\x12+.datacatalog.GetOrExtendReservationsRequest\x1a,.datacatalog.GetOrExtendReservationsResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponse\x12g\n\x13ReleaseReservations\x12\'.datacatalog.ReleaseReservationsRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xb2\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xfb\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x05 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadataB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"\x99\x01\n\x15\x44\x65leteArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"\x18\n\x16\x44\x65leteArtifactResponse\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x91\x01\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\x12\x10\n\x03org\x18\x06 \x01(\tR\x03org\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x9f\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07version\x12\x12\n\x03org\x18\x05 \x01(\tH\x00R\x03orgB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\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\xe1\x07\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.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12Y\n\x0e\x44\x65leteArtifact\x12\".datacatalog.DeleteArtifactRequest\x1a#.datacatalog.DeleteArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xb2\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -61,66 +61,58 @@ _globals['_UPDATEARTIFACTRESPONSE']._serialized_end=1650 _globals['_DELETEARTIFACTREQUEST']._serialized_start=1653 _globals['_DELETEARTIFACTREQUEST']._serialized_end=1806 - _globals['_DELETEARTIFACTSREQUEST']._serialized_start=1808 - _globals['_DELETEARTIFACTSREQUEST']._serialized_end=1898 - _globals['_DELETEARTIFACTRESPONSE']._serialized_start=1900 - _globals['_DELETEARTIFACTRESPONSE']._serialized_end=1924 - _globals['_RESERVATIONID']._serialized_start=1926 - _globals['_RESERVATIONID']._serialized_end=2023 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=2026 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=2225 - _globals['_GETOREXTENDRESERVATIONSREQUEST']._serialized_start=2227 - _globals['_GETOREXTENDRESERVATIONSREQUEST']._serialized_end=2339 - _globals['_RESERVATION']._serialized_start=2342 - _globals['_RESERVATION']._serialized_end=2633 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2635 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2727 - _globals['_GETOREXTENDRESERVATIONSRESPONSE']._serialized_start=2729 - _globals['_GETOREXTENDRESERVATIONSRESPONSE']._serialized_end=2824 - _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2826 - _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2947 - _globals['_RELEASERESERVATIONSREQUEST']._serialized_start=2949 - _globals['_RELEASERESERVATIONSREQUEST']._serialized_end=3053 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=3055 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=3083 - _globals['_DATASET']._serialized_start=3086 - _globals['_DATASET']._serialized_end=3224 - _globals['_PARTITION']._serialized_start=3226 - _globals['_PARTITION']._serialized_end=3277 - _globals['_DATASETID']._serialized_start=3280 - _globals['_DATASETID']._serialized_end=3425 - _globals['_ARTIFACT']._serialized_start=3428 - _globals['_ARTIFACT']._serialized_end=3755 - _globals['_ARTIFACTDATA']._serialized_start=3757 - _globals['_ARTIFACTDATA']._serialized_end=3837 - _globals['_TAG']._serialized_start=3839 - _globals['_TAG']._serialized_end=3947 - _globals['_METADATA']._serialized_start=3950 - _globals['_METADATA']._serialized_end=4079 - _globals['_METADATA_KEYMAPENTRY']._serialized_start=4022 - _globals['_METADATA_KEYMAPENTRY']._serialized_end=4079 - _globals['_FILTEREXPRESSION']._serialized_start=4081 - _globals['_FILTEREXPRESSION']._serialized_end=4160 - _globals['_SINGLEPROPERTYFILTER']._serialized_start=4163 - _globals['_SINGLEPROPERTYFILTER']._serialized_end=4625 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=4574 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=4606 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=4627 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4698 - _globals['_TAGPROPERTYFILTER']._serialized_start=4700 - _globals['_TAGPROPERTYFILTER']._serialized_end=4760 - _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4762 - _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4853 - _globals['_KEYVALUEPAIR']._serialized_start=4855 - _globals['_KEYVALUEPAIR']._serialized_end=4909 - _globals['_DATASETPROPERTYFILTER']._serialized_start=4912 - _globals['_DATASETPROPERTYFILTER']._serialized_end=5071 - _globals['_PAGINATIONOPTIONS']._serialized_start=5074 - _globals['_PAGINATIONOPTIONS']._serialized_end=5349 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=5277 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=5319 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=5321 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=5349 - _globals['_DATACATALOG']._serialized_start=5352 - _globals['_DATACATALOG']._serialized_end=6661 + _globals['_DELETEARTIFACTRESPONSE']._serialized_start=1808 + _globals['_DELETEARTIFACTRESPONSE']._serialized_end=1832 + _globals['_RESERVATIONID']._serialized_start=1834 + _globals['_RESERVATIONID']._serialized_end=1931 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=1934 + _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=2133 + _globals['_RESERVATION']._serialized_start=2136 + _globals['_RESERVATION']._serialized_end=2427 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2429 + _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2521 + _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2523 + _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2644 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=2646 + _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=2674 + _globals['_DATASET']._serialized_start=2677 + _globals['_DATASET']._serialized_end=2815 + _globals['_PARTITION']._serialized_start=2817 + _globals['_PARTITION']._serialized_end=2868 + _globals['_DATASETID']._serialized_start=2871 + _globals['_DATASETID']._serialized_end=3016 + _globals['_ARTIFACT']._serialized_start=3019 + _globals['_ARTIFACT']._serialized_end=3346 + _globals['_ARTIFACTDATA']._serialized_start=3348 + _globals['_ARTIFACTDATA']._serialized_end=3428 + _globals['_TAG']._serialized_start=3430 + _globals['_TAG']._serialized_end=3538 + _globals['_METADATA']._serialized_start=3541 + _globals['_METADATA']._serialized_end=3670 + _globals['_METADATA_KEYMAPENTRY']._serialized_start=3613 + _globals['_METADATA_KEYMAPENTRY']._serialized_end=3670 + _globals['_FILTEREXPRESSION']._serialized_start=3672 + _globals['_FILTEREXPRESSION']._serialized_end=3751 + _globals['_SINGLEPROPERTYFILTER']._serialized_start=3754 + _globals['_SINGLEPROPERTYFILTER']._serialized_end=4216 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=4165 + _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=4197 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=4218 + _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4289 + _globals['_TAGPROPERTYFILTER']._serialized_start=4291 + _globals['_TAGPROPERTYFILTER']._serialized_end=4351 + _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4353 + _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4444 + _globals['_KEYVALUEPAIR']._serialized_start=4446 + _globals['_KEYVALUEPAIR']._serialized_end=4500 + _globals['_DATASETPROPERTYFILTER']._serialized_start=4503 + _globals['_DATASETPROPERTYFILTER']._serialized_end=4662 + _globals['_PAGINATIONOPTIONS']._serialized_start=4665 + _globals['_PAGINATIONOPTIONS']._serialized_end=4940 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=4868 + _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=4910 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=4912 + _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=4940 + _globals['_DATACATALOG']._serialized_start=4943 + _globals['_DATACATALOG']._serialized_end=5936 # @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi index 31ab4934bc..7c6ea81921 100644 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi @@ -131,12 +131,6 @@ class DeleteArtifactRequest(_message.Message): tag_name: str def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ...) -> None: ... -class DeleteArtifactsRequest(_message.Message): - __slots__ = ["artifacts"] - ARTIFACTS_FIELD_NUMBER: _ClassVar[int] - artifacts: _containers.RepeatedCompositeFieldContainer[DeleteArtifactRequest] - def __init__(self, artifacts: _Optional[_Iterable[_Union[DeleteArtifactRequest, _Mapping]]] = ...) -> None: ... - class DeleteArtifactResponse(_message.Message): __slots__ = [] def __init__(self) -> None: ... @@ -159,12 +153,6 @@ class GetOrExtendReservationRequest(_message.Message): heartbeat_interval: _duration_pb2.Duration def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... -class GetOrExtendReservationsRequest(_message.Message): - __slots__ = ["reservations"] - RESERVATIONS_FIELD_NUMBER: _ClassVar[int] - reservations: _containers.RepeatedCompositeFieldContainer[GetOrExtendReservationRequest] - def __init__(self, reservations: _Optional[_Iterable[_Union[GetOrExtendReservationRequest, _Mapping]]] = ...) -> None: ... - class Reservation(_message.Message): __slots__ = ["reservation_id", "owner_id", "heartbeat_interval", "expires_at", "metadata"] RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] @@ -185,12 +173,6 @@ class GetOrExtendReservationResponse(_message.Message): reservation: Reservation def __init__(self, reservation: _Optional[_Union[Reservation, _Mapping]] = ...) -> None: ... -class GetOrExtendReservationsResponse(_message.Message): - __slots__ = ["reservations"] - RESERVATIONS_FIELD_NUMBER: _ClassVar[int] - reservations: _containers.RepeatedCompositeFieldContainer[Reservation] - def __init__(self, reservations: _Optional[_Iterable[_Union[Reservation, _Mapping]]] = ...) -> None: ... - class ReleaseReservationRequest(_message.Message): __slots__ = ["reservation_id", "owner_id"] RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] @@ -199,12 +181,6 @@ class ReleaseReservationRequest(_message.Message): owner_id: str def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ...) -> None: ... -class ReleaseReservationsRequest(_message.Message): - __slots__ = ["reservations"] - RESERVATIONS_FIELD_NUMBER: _ClassVar[int] - reservations: _containers.RepeatedCompositeFieldContainer[ReleaseReservationRequest] - def __init__(self, reservations: _Optional[_Iterable[_Union[ReleaseReservationRequest, _Mapping]]] = ...) -> None: ... - class ReleaseReservationResponse(_message.Message): __slots__ = [] def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py index 1f4ea13f32..fe4158c7bb 100644 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py @@ -63,31 +63,16 @@ def __init__(self, channel): request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactRequest.SerializeToString, response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactResponse.FromString, ) - self.DeleteArtifacts = channel.unary_unary( - '/datacatalog.DataCatalog/DeleteArtifacts', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactResponse.FromString, - ) self.GetOrExtendReservation = channel.unary_unary( '/datacatalog.DataCatalog/GetOrExtendReservation', request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, ) - self.GetOrExtendReservations = channel.unary_unary( - '/datacatalog.DataCatalog/GetOrExtendReservations', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsResponse.FromString, - ) self.ReleaseReservation = channel.unary_unary( '/datacatalog.DataCatalog/ReleaseReservation', request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, ) - self.ReleaseReservations = channel.unary_unary( - '/datacatalog.DataCatalog/ReleaseReservations', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - ) class DataCatalogServicer(object): @@ -162,17 +147,6 @@ def DeleteArtifact(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def DeleteArtifacts(self, request, context): - """Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - will not result in an error. - The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - artifacts deleted, however the operation can simply be retried to remove the remaining entries. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def GetOrExtendReservation(self, request, context): """Attempts to get or extend a reservation for the corresponding artifact. If one already exists (ie. another entity owns the reservation) then that reservation is retrieved. @@ -190,16 +164,6 @@ def GetOrExtendReservation(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def GetOrExtendReservations(self, request, context): - """Attempts to get or extend reservations for multiple artifacts in a single operation. - The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def ReleaseReservation(self, request, context): """Release the reservation when the task holding the spot fails so that the other tasks can grab the spot. @@ -208,18 +172,6 @@ def ReleaseReservation(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def ReleaseReservations(self, request, context): - """Releases reservations for multiple artifacts in a single operation. - This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - times will not result in error. - The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - reservations. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_DataCatalogServicer_to_server(servicer, server): rpc_method_handlers = { @@ -268,31 +220,16 @@ def add_DataCatalogServicer_to_server(servicer, server): request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactRequest.FromString, response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactResponse.SerializeToString, ), - 'DeleteArtifacts': grpc.unary_unary_rpc_method_handler( - servicer.DeleteArtifacts, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactResponse.SerializeToString, - ), 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( servicer.GetOrExtendReservation, request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.SerializeToString, ), - 'GetOrExtendReservations': grpc.unary_unary_rpc_method_handler( - servicer.GetOrExtendReservations, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsResponse.SerializeToString, - ), 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( servicer.ReleaseReservation, request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, ), - 'ReleaseReservations': grpc.unary_unary_rpc_method_handler( - servicer.ReleaseReservations, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'datacatalog.DataCatalog', rpc_method_handlers) @@ -460,23 +397,6 @@ def DeleteArtifact(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - @staticmethod - def DeleteArtifacts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/DeleteArtifacts', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.DeleteArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - @staticmethod def GetOrExtendReservation(request, target, @@ -494,23 +414,6 @@ def GetOrExtendReservation(request, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - @staticmethod - def GetOrExtendReservations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetOrExtendReservations', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - @staticmethod def ReleaseReservation(request, target, @@ -527,20 +430,3 @@ def ReleaseReservation(request, flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReleaseReservations(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ReleaseReservations', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_rust/datacatalog.rs b/flyteidl/gen/pb_rust/datacatalog.rs index ba3a2b8920..cf56271fd6 100644 --- a/flyteidl/gen/pb_rust/datacatalog.rs +++ b/flyteidl/gen/pb_rust/datacatalog.rs @@ -202,14 +202,6 @@ pub mod delete_artifact_request { TagName(::prost::alloc::string::String), } } -/// Request message for deleting multiple Artifacts and their associated ArtifactData. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteArtifactsRequest { - /// List of deletion requests for artifacts to remove - #[prost(message, repeated, tag="1")] - pub artifacts: ::prost::alloc::vec::Vec, -} /// /// Response message for deleting an Artifact. #[allow(clippy::derive_partial_eq_without_eq)] @@ -242,14 +234,6 @@ pub struct GetOrExtendReservationRequest { #[prost(message, optional, tag="3")] pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, } -/// Request message for acquiring or extending reservations for multiple artifacts in a single operation. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationsRequest { - /// List of reservation requests for artifacts to acquire - #[prost(message, repeated, tag="1")] - pub reservations: ::prost::alloc::vec::Vec, -} /// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -278,14 +262,6 @@ pub struct GetOrExtendReservationResponse { #[prost(message, optional, tag="1")] pub reservation: ::core::option::Option, } -/// List of reservations acquired for multiple artifacts in a single operation. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationsResponse { - /// List of (newly created or existing) reservations for artifacts requested - #[prost(message, repeated, tag="1")] - pub reservations: ::prost::alloc::vec::Vec, -} /// Request to release reservation #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -297,14 +273,6 @@ pub struct ReleaseReservationRequest { #[prost(string, tag="2")] pub owner_id: ::prost::alloc::string::String, } -/// Request message for releasing reservations for multiple artifacts in a single operation. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReleaseReservationsRequest { - /// List of reservation requests for artifacts to release - #[prost(message, repeated, tag="1")] - pub reservations: ::prost::alloc::vec::Vec, -} /// Response to release reservation #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto index 89897b6aee..595cce1783 100644 --- a/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto +++ b/flyteidl/protos/flyteidl/datacatalog/datacatalog.proto @@ -43,13 +43,6 @@ service DataCatalog { // Deletes an existing artifact, removing the stored artifact data from the underlying blob storage. rpc DeleteArtifact (DeleteArtifactRequest) returns (DeleteArtifactResponse); - // Deletes multiple existing artifacts, removing the stored artifact data from the underlying blob storage. - // This endpoint is idempotent, trying to delete an unknown artifact or deleting existing artifact multiple times - // will not result in an error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts deleted, however the operation can simply be retried to remove the remaining entries. - rpc DeleteArtifacts (DeleteArtifactsRequest) returns (DeleteArtifactResponse); - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists // (ie. another entity owns the reservation) then that reservation is retrieved. // Once you acquire a reservation, you need to periodically extend the reservation with an @@ -63,23 +56,9 @@ service DataCatalog { // a third task C may get the Artifact from A or B, whichever writes last. rpc GetOrExtendReservation (GetOrExtendReservationRequest) returns (GetOrExtendReservationResponse); - // Attempts to get or extend reservations for multiple artifacts in a single operation. - // The first non-recoverable error encountered will be returned. Note that this might leave some artifacts in a - // reserved state if one acquisition fails - retry the operation or release all attempted artifacts (as the release - // endpoint is idempotent) to ensure no resources are locked accidentally in case of an error. - rpc GetOrExtendReservations (GetOrExtendReservationsRequest) returns (GetOrExtendReservationsResponse); - // Release the reservation when the task holding the spot fails so that the other tasks // can grab the spot. rpc ReleaseReservation (ReleaseReservationRequest) returns (ReleaseReservationResponse); - - // Releases reservations for multiple artifacts in a single operation. - // This endpoint is idempotent, trying to release an unknown reservation or releasing existing reservations multiple - // times will not result in error. - // The first non-recoverable error encountered will be returned. Note that this might leave some of the requested - // artifacts in their previous reserved state, however the operation can simply be retried to remove the remaining - // reservations. - rpc ReleaseReservations (ReleaseReservationsRequest) returns (ReleaseReservationResponse); } /* @@ -240,12 +219,6 @@ message DeleteArtifactRequest { } } -// Request message for deleting multiple Artifacts and their associated ArtifactData. -message DeleteArtifactsRequest { - // List of deletion requests for artifacts to remove - repeated DeleteArtifactRequest artifacts = 1; -} - /* * Response message for deleting an Artifact. */ @@ -276,12 +249,6 @@ message GetOrExtendReservationRequest { google.protobuf.Duration heartbeat_interval = 3; } -// Request message for acquiring or extending reservations for multiple artifacts in a single operation. -message GetOrExtendReservationsRequest { - // List of reservation requests for artifacts to acquire - repeated GetOrExtendReservationRequest reservations = 1; -} - // A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. message Reservation { // The unique ID for the reservation @@ -306,12 +273,6 @@ message GetOrExtendReservationResponse { Reservation reservation = 1; } -// List of reservations acquired for multiple artifacts in a single operation. -message GetOrExtendReservationsResponse { - // List of (newly created or existing) reservations for artifacts requested - repeated Reservation reservations = 1; -} - // Request to release reservation message ReleaseReservationRequest { // The unique ID for the reservation @@ -321,12 +282,6 @@ message ReleaseReservationRequest { string owner_id = 2; } -// Request message for releasing reservations for multiple artifacts in a single operation. -message ReleaseReservationsRequest { - // List of reservation requests for artifacts to release - repeated ReleaseReservationRequest reservations = 1; -} - // Response to release reservation message ReleaseReservationResponse {