cloud.google.com/go/aiplatform@v1.106.0/apiv1/auxiliary.go (about)

     1  // Copyright 2025 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     https://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go_gapic. DO NOT EDIT.
    16  
    17  package aiplatform
    18  
    19  import (
    20  	"context"
    21  	"time"
    22  
    23  	aiplatformpb "cloud.google.com/go/aiplatform/apiv1/aiplatformpb"
    24  	"cloud.google.com/go/longrunning"
    25  	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    26  	gax "github.com/googleapis/gax-go/v2"
    27  	"google.golang.org/api/iterator"
    28  	locationpb "google.golang.org/genproto/googleapis/cloud/location"
    29  )
    30  
    31  // AssignNotebookRuntimeOperation manages a long-running operation from AssignNotebookRuntime.
    32  type AssignNotebookRuntimeOperation struct {
    33  	lro *longrunning.Operation
    34  }
    35  
    36  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
    37  //
    38  // See documentation of Poll for error-handling information.
    39  func (op *AssignNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntime, error) {
    40  	var resp aiplatformpb.NotebookRuntime
    41  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
    42  		return nil, err
    43  	}
    44  	return &resp, nil
    45  }
    46  
    47  // Poll fetches the latest state of the long-running operation.
    48  //
    49  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
    50  //
    51  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
    52  // the operation has completed with failure, the error is returned and op.Done will return true.
    53  // If Poll succeeds and the operation has completed successfully,
    54  // op.Done will return true, and the response of the operation is returned.
    55  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
    56  func (op *AssignNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntime, error) {
    57  	var resp aiplatformpb.NotebookRuntime
    58  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
    59  		return nil, err
    60  	}
    61  	if !op.Done() {
    62  		return nil, nil
    63  	}
    64  	return &resp, nil
    65  }
    66  
    67  // Metadata returns metadata associated with the long-running operation.
    68  // Metadata itself does not contact the server, but Poll does.
    69  // To get the latest metadata, call this method after a successful call to Poll.
    70  // If the metadata is not available, the returned metadata and error are both nil.
    71  func (op *AssignNotebookRuntimeOperation) Metadata() (*aiplatformpb.AssignNotebookRuntimeOperationMetadata, error) {
    72  	var meta aiplatformpb.AssignNotebookRuntimeOperationMetadata
    73  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
    74  		return nil, nil
    75  	} else if err != nil {
    76  		return nil, err
    77  	}
    78  	return &meta, nil
    79  }
    80  
    81  // Done reports whether the long-running operation has completed.
    82  func (op *AssignNotebookRuntimeOperation) Done() bool {
    83  	return op.lro.Done()
    84  }
    85  
    86  // Name returns the name of the long-running operation.
    87  // The name is assigned by the server and is unique within the service from which the operation is created.
    88  func (op *AssignNotebookRuntimeOperation) Name() string {
    89  	return op.lro.Name()
    90  }
    91  
    92  // BatchCancelPipelineJobsOperation manages a long-running operation from BatchCancelPipelineJobs.
    93  type BatchCancelPipelineJobsOperation struct {
    94  	lro *longrunning.Operation
    95  }
    96  
    97  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
    98  //
    99  // See documentation of Poll for error-handling information.
   100  func (op *BatchCancelPipelineJobsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCancelPipelineJobsResponse, error) {
   101  	var resp aiplatformpb.BatchCancelPipelineJobsResponse
   102  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   103  		return nil, err
   104  	}
   105  	return &resp, nil
   106  }
   107  
   108  // Poll fetches the latest state of the long-running operation.
   109  //
   110  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   111  //
   112  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   113  // the operation has completed with failure, the error is returned and op.Done will return true.
   114  // If Poll succeeds and the operation has completed successfully,
   115  // op.Done will return true, and the response of the operation is returned.
   116  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   117  func (op *BatchCancelPipelineJobsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCancelPipelineJobsResponse, error) {
   118  	var resp aiplatformpb.BatchCancelPipelineJobsResponse
   119  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   120  		return nil, err
   121  	}
   122  	if !op.Done() {
   123  		return nil, nil
   124  	}
   125  	return &resp, nil
   126  }
   127  
   128  // Metadata returns metadata associated with the long-running operation.
   129  // Metadata itself does not contact the server, but Poll does.
   130  // To get the latest metadata, call this method after a successful call to Poll.
   131  // If the metadata is not available, the returned metadata and error are both nil.
   132  func (op *BatchCancelPipelineJobsOperation) Metadata() (*aiplatformpb.BatchCancelPipelineJobsOperationMetadata, error) {
   133  	var meta aiplatformpb.BatchCancelPipelineJobsOperationMetadata
   134  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   135  		return nil, nil
   136  	} else if err != nil {
   137  		return nil, err
   138  	}
   139  	return &meta, nil
   140  }
   141  
   142  // Done reports whether the long-running operation has completed.
   143  func (op *BatchCancelPipelineJobsOperation) Done() bool {
   144  	return op.lro.Done()
   145  }
   146  
   147  // Name returns the name of the long-running operation.
   148  // The name is assigned by the server and is unique within the service from which the operation is created.
   149  func (op *BatchCancelPipelineJobsOperation) Name() string {
   150  	return op.lro.Name()
   151  }
   152  
   153  // BatchCreateFeaturesOperation manages a long-running operation from BatchCreateFeatures.
   154  type BatchCreateFeaturesOperation struct {
   155  	lro *longrunning.Operation
   156  }
   157  
   158  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   159  //
   160  // See documentation of Poll for error-handling information.
   161  func (op *BatchCreateFeaturesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCreateFeaturesResponse, error) {
   162  	var resp aiplatformpb.BatchCreateFeaturesResponse
   163  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   164  		return nil, err
   165  	}
   166  	return &resp, nil
   167  }
   168  
   169  // Poll fetches the latest state of the long-running operation.
   170  //
   171  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   172  //
   173  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   174  // the operation has completed with failure, the error is returned and op.Done will return true.
   175  // If Poll succeeds and the operation has completed successfully,
   176  // op.Done will return true, and the response of the operation is returned.
   177  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   178  func (op *BatchCreateFeaturesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCreateFeaturesResponse, error) {
   179  	var resp aiplatformpb.BatchCreateFeaturesResponse
   180  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   181  		return nil, err
   182  	}
   183  	if !op.Done() {
   184  		return nil, nil
   185  	}
   186  	return &resp, nil
   187  }
   188  
   189  // Metadata returns metadata associated with the long-running operation.
   190  // Metadata itself does not contact the server, but Poll does.
   191  // To get the latest metadata, call this method after a successful call to Poll.
   192  // If the metadata is not available, the returned metadata and error are both nil.
   193  func (op *BatchCreateFeaturesOperation) Metadata() (*aiplatformpb.BatchCreateFeaturesOperationMetadata, error) {
   194  	var meta aiplatformpb.BatchCreateFeaturesOperationMetadata
   195  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   196  		return nil, nil
   197  	} else if err != nil {
   198  		return nil, err
   199  	}
   200  	return &meta, nil
   201  }
   202  
   203  // Done reports whether the long-running operation has completed.
   204  func (op *BatchCreateFeaturesOperation) Done() bool {
   205  	return op.lro.Done()
   206  }
   207  
   208  // Name returns the name of the long-running operation.
   209  // The name is assigned by the server and is unique within the service from which the operation is created.
   210  func (op *BatchCreateFeaturesOperation) Name() string {
   211  	return op.lro.Name()
   212  }
   213  
   214  // BatchDeletePipelineJobsOperation manages a long-running operation from BatchDeletePipelineJobs.
   215  type BatchDeletePipelineJobsOperation struct {
   216  	lro *longrunning.Operation
   217  }
   218  
   219  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   220  //
   221  // See documentation of Poll for error-handling information.
   222  func (op *BatchDeletePipelineJobsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchDeletePipelineJobsResponse, error) {
   223  	var resp aiplatformpb.BatchDeletePipelineJobsResponse
   224  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   225  		return nil, err
   226  	}
   227  	return &resp, nil
   228  }
   229  
   230  // Poll fetches the latest state of the long-running operation.
   231  //
   232  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   233  //
   234  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   235  // the operation has completed with failure, the error is returned and op.Done will return true.
   236  // If Poll succeeds and the operation has completed successfully,
   237  // op.Done will return true, and the response of the operation is returned.
   238  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   239  func (op *BatchDeletePipelineJobsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchDeletePipelineJobsResponse, error) {
   240  	var resp aiplatformpb.BatchDeletePipelineJobsResponse
   241  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   242  		return nil, err
   243  	}
   244  	if !op.Done() {
   245  		return nil, nil
   246  	}
   247  	return &resp, nil
   248  }
   249  
   250  // Metadata returns metadata associated with the long-running operation.
   251  // Metadata itself does not contact the server, but Poll does.
   252  // To get the latest metadata, call this method after a successful call to Poll.
   253  // If the metadata is not available, the returned metadata and error are both nil.
   254  func (op *BatchDeletePipelineJobsOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
   255  	var meta aiplatformpb.DeleteOperationMetadata
   256  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   257  		return nil, nil
   258  	} else if err != nil {
   259  		return nil, err
   260  	}
   261  	return &meta, nil
   262  }
   263  
   264  // Done reports whether the long-running operation has completed.
   265  func (op *BatchDeletePipelineJobsOperation) Done() bool {
   266  	return op.lro.Done()
   267  }
   268  
   269  // Name returns the name of the long-running operation.
   270  // The name is assigned by the server and is unique within the service from which the operation is created.
   271  func (op *BatchDeletePipelineJobsOperation) Name() string {
   272  	return op.lro.Name()
   273  }
   274  
   275  // BatchMigrateResourcesOperation manages a long-running operation from BatchMigrateResources.
   276  type BatchMigrateResourcesOperation struct {
   277  	lro *longrunning.Operation
   278  }
   279  
   280  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   281  //
   282  // See documentation of Poll for error-handling information.
   283  func (op *BatchMigrateResourcesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchMigrateResourcesResponse, error) {
   284  	var resp aiplatformpb.BatchMigrateResourcesResponse
   285  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   286  		return nil, err
   287  	}
   288  	return &resp, nil
   289  }
   290  
   291  // Poll fetches the latest state of the long-running operation.
   292  //
   293  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   294  //
   295  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   296  // the operation has completed with failure, the error is returned and op.Done will return true.
   297  // If Poll succeeds and the operation has completed successfully,
   298  // op.Done will return true, and the response of the operation is returned.
   299  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   300  func (op *BatchMigrateResourcesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchMigrateResourcesResponse, error) {
   301  	var resp aiplatformpb.BatchMigrateResourcesResponse
   302  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   303  		return nil, err
   304  	}
   305  	if !op.Done() {
   306  		return nil, nil
   307  	}
   308  	return &resp, nil
   309  }
   310  
   311  // Metadata returns metadata associated with the long-running operation.
   312  // Metadata itself does not contact the server, but Poll does.
   313  // To get the latest metadata, call this method after a successful call to Poll.
   314  // If the metadata is not available, the returned metadata and error are both nil.
   315  func (op *BatchMigrateResourcesOperation) Metadata() (*aiplatformpb.BatchMigrateResourcesOperationMetadata, error) {
   316  	var meta aiplatformpb.BatchMigrateResourcesOperationMetadata
   317  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   318  		return nil, nil
   319  	} else if err != nil {
   320  		return nil, err
   321  	}
   322  	return &meta, nil
   323  }
   324  
   325  // Done reports whether the long-running operation has completed.
   326  func (op *BatchMigrateResourcesOperation) Done() bool {
   327  	return op.lro.Done()
   328  }
   329  
   330  // Name returns the name of the long-running operation.
   331  // The name is assigned by the server and is unique within the service from which the operation is created.
   332  func (op *BatchMigrateResourcesOperation) Name() string {
   333  	return op.lro.Name()
   334  }
   335  
   336  // BatchReadFeatureValuesOperation manages a long-running operation from BatchReadFeatureValues.
   337  type BatchReadFeatureValuesOperation struct {
   338  	lro *longrunning.Operation
   339  }
   340  
   341  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   342  //
   343  // See documentation of Poll for error-handling information.
   344  func (op *BatchReadFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchReadFeatureValuesResponse, error) {
   345  	var resp aiplatformpb.BatchReadFeatureValuesResponse
   346  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   347  		return nil, err
   348  	}
   349  	return &resp, nil
   350  }
   351  
   352  // Poll fetches the latest state of the long-running operation.
   353  //
   354  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   355  //
   356  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   357  // the operation has completed with failure, the error is returned and op.Done will return true.
   358  // If Poll succeeds and the operation has completed successfully,
   359  // op.Done will return true, and the response of the operation is returned.
   360  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   361  func (op *BatchReadFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchReadFeatureValuesResponse, error) {
   362  	var resp aiplatformpb.BatchReadFeatureValuesResponse
   363  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   364  		return nil, err
   365  	}
   366  	if !op.Done() {
   367  		return nil, nil
   368  	}
   369  	return &resp, nil
   370  }
   371  
   372  // Metadata returns metadata associated with the long-running operation.
   373  // Metadata itself does not contact the server, but Poll does.
   374  // To get the latest metadata, call this method after a successful call to Poll.
   375  // If the metadata is not available, the returned metadata and error are both nil.
   376  func (op *BatchReadFeatureValuesOperation) Metadata() (*aiplatformpb.BatchReadFeatureValuesOperationMetadata, error) {
   377  	var meta aiplatformpb.BatchReadFeatureValuesOperationMetadata
   378  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   379  		return nil, nil
   380  	} else if err != nil {
   381  		return nil, err
   382  	}
   383  	return &meta, nil
   384  }
   385  
   386  // Done reports whether the long-running operation has completed.
   387  func (op *BatchReadFeatureValuesOperation) Done() bool {
   388  	return op.lro.Done()
   389  }
   390  
   391  // Name returns the name of the long-running operation.
   392  // The name is assigned by the server and is unique within the service from which the operation is created.
   393  func (op *BatchReadFeatureValuesOperation) Name() string {
   394  	return op.lro.Name()
   395  }
   396  
   397  // CheckTrialEarlyStoppingStateOperation manages a long-running operation from CheckTrialEarlyStoppingState.
   398  type CheckTrialEarlyStoppingStateOperation struct {
   399  	lro *longrunning.Operation
   400  }
   401  
   402  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   403  //
   404  // See documentation of Poll for error-handling information.
   405  func (op *CheckTrialEarlyStoppingStateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CheckTrialEarlyStoppingStateResponse, error) {
   406  	var resp aiplatformpb.CheckTrialEarlyStoppingStateResponse
   407  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   408  		return nil, err
   409  	}
   410  	return &resp, nil
   411  }
   412  
   413  // Poll fetches the latest state of the long-running operation.
   414  //
   415  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   416  //
   417  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   418  // the operation has completed with failure, the error is returned and op.Done will return true.
   419  // If Poll succeeds and the operation has completed successfully,
   420  // op.Done will return true, and the response of the operation is returned.
   421  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   422  func (op *CheckTrialEarlyStoppingStateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CheckTrialEarlyStoppingStateResponse, error) {
   423  	var resp aiplatformpb.CheckTrialEarlyStoppingStateResponse
   424  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   425  		return nil, err
   426  	}
   427  	if !op.Done() {
   428  		return nil, nil
   429  	}
   430  	return &resp, nil
   431  }
   432  
   433  // Metadata returns metadata associated with the long-running operation.
   434  // Metadata itself does not contact the server, but Poll does.
   435  // To get the latest metadata, call this method after a successful call to Poll.
   436  // If the metadata is not available, the returned metadata and error are both nil.
   437  func (op *CheckTrialEarlyStoppingStateOperation) Metadata() (*aiplatformpb.CheckTrialEarlyStoppingStateMetatdata, error) {
   438  	var meta aiplatformpb.CheckTrialEarlyStoppingStateMetatdata
   439  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   440  		return nil, nil
   441  	} else if err != nil {
   442  		return nil, err
   443  	}
   444  	return &meta, nil
   445  }
   446  
   447  // Done reports whether the long-running operation has completed.
   448  func (op *CheckTrialEarlyStoppingStateOperation) Done() bool {
   449  	return op.lro.Done()
   450  }
   451  
   452  // Name returns the name of the long-running operation.
   453  // The name is assigned by the server and is unique within the service from which the operation is created.
   454  func (op *CheckTrialEarlyStoppingStateOperation) Name() string {
   455  	return op.lro.Name()
   456  }
   457  
   458  // CopyModelOperation manages a long-running operation from CopyModel.
   459  type CopyModelOperation struct {
   460  	lro *longrunning.Operation
   461  }
   462  
   463  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   464  //
   465  // See documentation of Poll for error-handling information.
   466  func (op *CopyModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CopyModelResponse, error) {
   467  	var resp aiplatformpb.CopyModelResponse
   468  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   469  		return nil, err
   470  	}
   471  	return &resp, nil
   472  }
   473  
   474  // Poll fetches the latest state of the long-running operation.
   475  //
   476  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   477  //
   478  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   479  // the operation has completed with failure, the error is returned and op.Done will return true.
   480  // If Poll succeeds and the operation has completed successfully,
   481  // op.Done will return true, and the response of the operation is returned.
   482  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   483  func (op *CopyModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CopyModelResponse, error) {
   484  	var resp aiplatformpb.CopyModelResponse
   485  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   486  		return nil, err
   487  	}
   488  	if !op.Done() {
   489  		return nil, nil
   490  	}
   491  	return &resp, nil
   492  }
   493  
   494  // Metadata returns metadata associated with the long-running operation.
   495  // Metadata itself does not contact the server, but Poll does.
   496  // To get the latest metadata, call this method after a successful call to Poll.
   497  // If the metadata is not available, the returned metadata and error are both nil.
   498  func (op *CopyModelOperation) Metadata() (*aiplatformpb.CopyModelOperationMetadata, error) {
   499  	var meta aiplatformpb.CopyModelOperationMetadata
   500  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   501  		return nil, nil
   502  	} else if err != nil {
   503  		return nil, err
   504  	}
   505  	return &meta, nil
   506  }
   507  
   508  // Done reports whether the long-running operation has completed.
   509  func (op *CopyModelOperation) Done() bool {
   510  	return op.lro.Done()
   511  }
   512  
   513  // Name returns the name of the long-running operation.
   514  // The name is assigned by the server and is unique within the service from which the operation is created.
   515  func (op *CopyModelOperation) Name() string {
   516  	return op.lro.Name()
   517  }
   518  
   519  // CreateDatasetOperation manages a long-running operation from CreateDataset.
   520  type CreateDatasetOperation struct {
   521  	lro *longrunning.Operation
   522  }
   523  
   524  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   525  //
   526  // See documentation of Poll for error-handling information.
   527  func (op *CreateDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Dataset, error) {
   528  	var resp aiplatformpb.Dataset
   529  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   530  		return nil, err
   531  	}
   532  	return &resp, nil
   533  }
   534  
   535  // Poll fetches the latest state of the long-running operation.
   536  //
   537  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   538  //
   539  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   540  // the operation has completed with failure, the error is returned and op.Done will return true.
   541  // If Poll succeeds and the operation has completed successfully,
   542  // op.Done will return true, and the response of the operation is returned.
   543  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   544  func (op *CreateDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Dataset, error) {
   545  	var resp aiplatformpb.Dataset
   546  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   547  		return nil, err
   548  	}
   549  	if !op.Done() {
   550  		return nil, nil
   551  	}
   552  	return &resp, nil
   553  }
   554  
   555  // Metadata returns metadata associated with the long-running operation.
   556  // Metadata itself does not contact the server, but Poll does.
   557  // To get the latest metadata, call this method after a successful call to Poll.
   558  // If the metadata is not available, the returned metadata and error are both nil.
   559  func (op *CreateDatasetOperation) Metadata() (*aiplatformpb.CreateDatasetOperationMetadata, error) {
   560  	var meta aiplatformpb.CreateDatasetOperationMetadata
   561  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   562  		return nil, nil
   563  	} else if err != nil {
   564  		return nil, err
   565  	}
   566  	return &meta, nil
   567  }
   568  
   569  // Done reports whether the long-running operation has completed.
   570  func (op *CreateDatasetOperation) Done() bool {
   571  	return op.lro.Done()
   572  }
   573  
   574  // Name returns the name of the long-running operation.
   575  // The name is assigned by the server and is unique within the service from which the operation is created.
   576  func (op *CreateDatasetOperation) Name() string {
   577  	return op.lro.Name()
   578  }
   579  
   580  // CreateDatasetVersionOperation manages a long-running operation from CreateDatasetVersion.
   581  type CreateDatasetVersionOperation struct {
   582  	lro *longrunning.Operation
   583  }
   584  
   585  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   586  //
   587  // See documentation of Poll for error-handling information.
   588  func (op *CreateDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
   589  	var resp aiplatformpb.DatasetVersion
   590  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   591  		return nil, err
   592  	}
   593  	return &resp, nil
   594  }
   595  
   596  // Poll fetches the latest state of the long-running operation.
   597  //
   598  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   599  //
   600  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   601  // the operation has completed with failure, the error is returned and op.Done will return true.
   602  // If Poll succeeds and the operation has completed successfully,
   603  // op.Done will return true, and the response of the operation is returned.
   604  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   605  func (op *CreateDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
   606  	var resp aiplatformpb.DatasetVersion
   607  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   608  		return nil, err
   609  	}
   610  	if !op.Done() {
   611  		return nil, nil
   612  	}
   613  	return &resp, nil
   614  }
   615  
   616  // Metadata returns metadata associated with the long-running operation.
   617  // Metadata itself does not contact the server, but Poll does.
   618  // To get the latest metadata, call this method after a successful call to Poll.
   619  // If the metadata is not available, the returned metadata and error are both nil.
   620  func (op *CreateDatasetVersionOperation) Metadata() (*aiplatformpb.CreateDatasetVersionOperationMetadata, error) {
   621  	var meta aiplatformpb.CreateDatasetVersionOperationMetadata
   622  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   623  		return nil, nil
   624  	} else if err != nil {
   625  		return nil, err
   626  	}
   627  	return &meta, nil
   628  }
   629  
   630  // Done reports whether the long-running operation has completed.
   631  func (op *CreateDatasetVersionOperation) Done() bool {
   632  	return op.lro.Done()
   633  }
   634  
   635  // Name returns the name of the long-running operation.
   636  // The name is assigned by the server and is unique within the service from which the operation is created.
   637  func (op *CreateDatasetVersionOperation) Name() string {
   638  	return op.lro.Name()
   639  }
   640  
   641  // CreateDeploymentResourcePoolOperation manages a long-running operation from CreateDeploymentResourcePool.
   642  type CreateDeploymentResourcePoolOperation struct {
   643  	lro *longrunning.Operation
   644  }
   645  
   646  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   647  //
   648  // See documentation of Poll for error-handling information.
   649  func (op *CreateDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
   650  	var resp aiplatformpb.DeploymentResourcePool
   651  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   652  		return nil, err
   653  	}
   654  	return &resp, nil
   655  }
   656  
   657  // Poll fetches the latest state of the long-running operation.
   658  //
   659  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   660  //
   661  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   662  // the operation has completed with failure, the error is returned and op.Done will return true.
   663  // If Poll succeeds and the operation has completed successfully,
   664  // op.Done will return true, and the response of the operation is returned.
   665  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   666  func (op *CreateDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
   667  	var resp aiplatformpb.DeploymentResourcePool
   668  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   669  		return nil, err
   670  	}
   671  	if !op.Done() {
   672  		return nil, nil
   673  	}
   674  	return &resp, nil
   675  }
   676  
   677  // Metadata returns metadata associated with the long-running operation.
   678  // Metadata itself does not contact the server, but Poll does.
   679  // To get the latest metadata, call this method after a successful call to Poll.
   680  // If the metadata is not available, the returned metadata and error are both nil.
   681  func (op *CreateDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.CreateDeploymentResourcePoolOperationMetadata, error) {
   682  	var meta aiplatformpb.CreateDeploymentResourcePoolOperationMetadata
   683  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   684  		return nil, nil
   685  	} else if err != nil {
   686  		return nil, err
   687  	}
   688  	return &meta, nil
   689  }
   690  
   691  // Done reports whether the long-running operation has completed.
   692  func (op *CreateDeploymentResourcePoolOperation) Done() bool {
   693  	return op.lro.Done()
   694  }
   695  
   696  // Name returns the name of the long-running operation.
   697  // The name is assigned by the server and is unique within the service from which the operation is created.
   698  func (op *CreateDeploymentResourcePoolOperation) Name() string {
   699  	return op.lro.Name()
   700  }
   701  
   702  // CreateEndpointOperation manages a long-running operation from CreateEndpoint.
   703  type CreateEndpointOperation struct {
   704  	lro *longrunning.Operation
   705  }
   706  
   707  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   708  //
   709  // See documentation of Poll for error-handling information.
   710  func (op *CreateEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
   711  	var resp aiplatformpb.Endpoint
   712  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   713  		return nil, err
   714  	}
   715  	return &resp, nil
   716  }
   717  
   718  // Poll fetches the latest state of the long-running operation.
   719  //
   720  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   721  //
   722  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   723  // the operation has completed with failure, the error is returned and op.Done will return true.
   724  // If Poll succeeds and the operation has completed successfully,
   725  // op.Done will return true, and the response of the operation is returned.
   726  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   727  func (op *CreateEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
   728  	var resp aiplatformpb.Endpoint
   729  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   730  		return nil, err
   731  	}
   732  	if !op.Done() {
   733  		return nil, nil
   734  	}
   735  	return &resp, nil
   736  }
   737  
   738  // Metadata returns metadata associated with the long-running operation.
   739  // Metadata itself does not contact the server, but Poll does.
   740  // To get the latest metadata, call this method after a successful call to Poll.
   741  // If the metadata is not available, the returned metadata and error are both nil.
   742  func (op *CreateEndpointOperation) Metadata() (*aiplatformpb.CreateEndpointOperationMetadata, error) {
   743  	var meta aiplatformpb.CreateEndpointOperationMetadata
   744  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   745  		return nil, nil
   746  	} else if err != nil {
   747  		return nil, err
   748  	}
   749  	return &meta, nil
   750  }
   751  
   752  // Done reports whether the long-running operation has completed.
   753  func (op *CreateEndpointOperation) Done() bool {
   754  	return op.lro.Done()
   755  }
   756  
   757  // Name returns the name of the long-running operation.
   758  // The name is assigned by the server and is unique within the service from which the operation is created.
   759  func (op *CreateEndpointOperation) Name() string {
   760  	return op.lro.Name()
   761  }
   762  
   763  // CreateEntityTypeOperation manages a long-running operation from CreateEntityType.
   764  type CreateEntityTypeOperation struct {
   765  	lro *longrunning.Operation
   766  }
   767  
   768  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   769  //
   770  // See documentation of Poll for error-handling information.
   771  func (op *CreateEntityTypeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EntityType, error) {
   772  	var resp aiplatformpb.EntityType
   773  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   774  		return nil, err
   775  	}
   776  	return &resp, nil
   777  }
   778  
   779  // Poll fetches the latest state of the long-running operation.
   780  //
   781  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   782  //
   783  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   784  // the operation has completed with failure, the error is returned and op.Done will return true.
   785  // If Poll succeeds and the operation has completed successfully,
   786  // op.Done will return true, and the response of the operation is returned.
   787  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   788  func (op *CreateEntityTypeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EntityType, error) {
   789  	var resp aiplatformpb.EntityType
   790  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   791  		return nil, err
   792  	}
   793  	if !op.Done() {
   794  		return nil, nil
   795  	}
   796  	return &resp, nil
   797  }
   798  
   799  // Metadata returns metadata associated with the long-running operation.
   800  // Metadata itself does not contact the server, but Poll does.
   801  // To get the latest metadata, call this method after a successful call to Poll.
   802  // If the metadata is not available, the returned metadata and error are both nil.
   803  func (op *CreateEntityTypeOperation) Metadata() (*aiplatformpb.CreateEntityTypeOperationMetadata, error) {
   804  	var meta aiplatformpb.CreateEntityTypeOperationMetadata
   805  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   806  		return nil, nil
   807  	} else if err != nil {
   808  		return nil, err
   809  	}
   810  	return &meta, nil
   811  }
   812  
   813  // Done reports whether the long-running operation has completed.
   814  func (op *CreateEntityTypeOperation) Done() bool {
   815  	return op.lro.Done()
   816  }
   817  
   818  // Name returns the name of the long-running operation.
   819  // The name is assigned by the server and is unique within the service from which the operation is created.
   820  func (op *CreateEntityTypeOperation) Name() string {
   821  	return op.lro.Name()
   822  }
   823  
   824  // CreateFeatureGroupOperation manages a long-running operation from CreateFeatureGroup.
   825  type CreateFeatureGroupOperation struct {
   826  	lro *longrunning.Operation
   827  }
   828  
   829  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   830  //
   831  // See documentation of Poll for error-handling information.
   832  func (op *CreateFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
   833  	var resp aiplatformpb.FeatureGroup
   834  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   835  		return nil, err
   836  	}
   837  	return &resp, nil
   838  }
   839  
   840  // Poll fetches the latest state of the long-running operation.
   841  //
   842  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   843  //
   844  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   845  // the operation has completed with failure, the error is returned and op.Done will return true.
   846  // If Poll succeeds and the operation has completed successfully,
   847  // op.Done will return true, and the response of the operation is returned.
   848  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   849  func (op *CreateFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
   850  	var resp aiplatformpb.FeatureGroup
   851  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   852  		return nil, err
   853  	}
   854  	if !op.Done() {
   855  		return nil, nil
   856  	}
   857  	return &resp, nil
   858  }
   859  
   860  // Metadata returns metadata associated with the long-running operation.
   861  // Metadata itself does not contact the server, but Poll does.
   862  // To get the latest metadata, call this method after a successful call to Poll.
   863  // If the metadata is not available, the returned metadata and error are both nil.
   864  func (op *CreateFeatureGroupOperation) Metadata() (*aiplatformpb.CreateFeatureGroupOperationMetadata, error) {
   865  	var meta aiplatformpb.CreateFeatureGroupOperationMetadata
   866  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   867  		return nil, nil
   868  	} else if err != nil {
   869  		return nil, err
   870  	}
   871  	return &meta, nil
   872  }
   873  
   874  // Done reports whether the long-running operation has completed.
   875  func (op *CreateFeatureGroupOperation) Done() bool {
   876  	return op.lro.Done()
   877  }
   878  
   879  // Name returns the name of the long-running operation.
   880  // The name is assigned by the server and is unique within the service from which the operation is created.
   881  func (op *CreateFeatureGroupOperation) Name() string {
   882  	return op.lro.Name()
   883  }
   884  
   885  // CreateFeatureOnlineStoreOperation manages a long-running operation from CreateFeatureOnlineStore.
   886  type CreateFeatureOnlineStoreOperation struct {
   887  	lro *longrunning.Operation
   888  }
   889  
   890  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   891  //
   892  // See documentation of Poll for error-handling information.
   893  func (op *CreateFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
   894  	var resp aiplatformpb.FeatureOnlineStore
   895  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   896  		return nil, err
   897  	}
   898  	return &resp, nil
   899  }
   900  
   901  // Poll fetches the latest state of the long-running operation.
   902  //
   903  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   904  //
   905  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   906  // the operation has completed with failure, the error is returned and op.Done will return true.
   907  // If Poll succeeds and the operation has completed successfully,
   908  // op.Done will return true, and the response of the operation is returned.
   909  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   910  func (op *CreateFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
   911  	var resp aiplatformpb.FeatureOnlineStore
   912  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   913  		return nil, err
   914  	}
   915  	if !op.Done() {
   916  		return nil, nil
   917  	}
   918  	return &resp, nil
   919  }
   920  
   921  // Metadata returns metadata associated with the long-running operation.
   922  // Metadata itself does not contact the server, but Poll does.
   923  // To get the latest metadata, call this method after a successful call to Poll.
   924  // If the metadata is not available, the returned metadata and error are both nil.
   925  func (op *CreateFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.CreateFeatureOnlineStoreOperationMetadata, error) {
   926  	var meta aiplatformpb.CreateFeatureOnlineStoreOperationMetadata
   927  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   928  		return nil, nil
   929  	} else if err != nil {
   930  		return nil, err
   931  	}
   932  	return &meta, nil
   933  }
   934  
   935  // Done reports whether the long-running operation has completed.
   936  func (op *CreateFeatureOnlineStoreOperation) Done() bool {
   937  	return op.lro.Done()
   938  }
   939  
   940  // Name returns the name of the long-running operation.
   941  // The name is assigned by the server and is unique within the service from which the operation is created.
   942  func (op *CreateFeatureOnlineStoreOperation) Name() string {
   943  	return op.lro.Name()
   944  }
   945  
   946  // CreateFeatureOperation manages a long-running operation from CreateFeature.
   947  type CreateFeatureOperation struct {
   948  	lro *longrunning.Operation
   949  }
   950  
   951  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   952  //
   953  // See documentation of Poll for error-handling information.
   954  func (op *CreateFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
   955  	var resp aiplatformpb.Feature
   956  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   957  		return nil, err
   958  	}
   959  	return &resp, nil
   960  }
   961  
   962  // Poll fetches the latest state of the long-running operation.
   963  //
   964  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   965  //
   966  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   967  // the operation has completed with failure, the error is returned and op.Done will return true.
   968  // If Poll succeeds and the operation has completed successfully,
   969  // op.Done will return true, and the response of the operation is returned.
   970  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   971  func (op *CreateFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
   972  	var resp aiplatformpb.Feature
   973  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   974  		return nil, err
   975  	}
   976  	if !op.Done() {
   977  		return nil, nil
   978  	}
   979  	return &resp, nil
   980  }
   981  
   982  // Metadata returns metadata associated with the long-running operation.
   983  // Metadata itself does not contact the server, but Poll does.
   984  // To get the latest metadata, call this method after a successful call to Poll.
   985  // If the metadata is not available, the returned metadata and error are both nil.
   986  func (op *CreateFeatureOperation) Metadata() (*aiplatformpb.CreateFeatureOperationMetadata, error) {
   987  	var meta aiplatformpb.CreateFeatureOperationMetadata
   988  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   989  		return nil, nil
   990  	} else if err != nil {
   991  		return nil, err
   992  	}
   993  	return &meta, nil
   994  }
   995  
   996  // Done reports whether the long-running operation has completed.
   997  func (op *CreateFeatureOperation) Done() bool {
   998  	return op.lro.Done()
   999  }
  1000  
  1001  // Name returns the name of the long-running operation.
  1002  // The name is assigned by the server and is unique within the service from which the operation is created.
  1003  func (op *CreateFeatureOperation) Name() string {
  1004  	return op.lro.Name()
  1005  }
  1006  
  1007  // CreateFeatureViewOperation manages a long-running operation from CreateFeatureView.
  1008  type CreateFeatureViewOperation struct {
  1009  	lro *longrunning.Operation
  1010  }
  1011  
  1012  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1013  //
  1014  // See documentation of Poll for error-handling information.
  1015  func (op *CreateFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  1016  	var resp aiplatformpb.FeatureView
  1017  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1018  		return nil, err
  1019  	}
  1020  	return &resp, nil
  1021  }
  1022  
  1023  // Poll fetches the latest state of the long-running operation.
  1024  //
  1025  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1026  //
  1027  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1028  // the operation has completed with failure, the error is returned and op.Done will return true.
  1029  // If Poll succeeds and the operation has completed successfully,
  1030  // op.Done will return true, and the response of the operation is returned.
  1031  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1032  func (op *CreateFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  1033  	var resp aiplatformpb.FeatureView
  1034  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1035  		return nil, err
  1036  	}
  1037  	if !op.Done() {
  1038  		return nil, nil
  1039  	}
  1040  	return &resp, nil
  1041  }
  1042  
  1043  // Metadata returns metadata associated with the long-running operation.
  1044  // Metadata itself does not contact the server, but Poll does.
  1045  // To get the latest metadata, call this method after a successful call to Poll.
  1046  // If the metadata is not available, the returned metadata and error are both nil.
  1047  func (op *CreateFeatureViewOperation) Metadata() (*aiplatformpb.CreateFeatureViewOperationMetadata, error) {
  1048  	var meta aiplatformpb.CreateFeatureViewOperationMetadata
  1049  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1050  		return nil, nil
  1051  	} else if err != nil {
  1052  		return nil, err
  1053  	}
  1054  	return &meta, nil
  1055  }
  1056  
  1057  // Done reports whether the long-running operation has completed.
  1058  func (op *CreateFeatureViewOperation) Done() bool {
  1059  	return op.lro.Done()
  1060  }
  1061  
  1062  // Name returns the name of the long-running operation.
  1063  // The name is assigned by the server and is unique within the service from which the operation is created.
  1064  func (op *CreateFeatureViewOperation) Name() string {
  1065  	return op.lro.Name()
  1066  }
  1067  
  1068  // CreateFeaturestoreOperation manages a long-running operation from CreateFeaturestore.
  1069  type CreateFeaturestoreOperation struct {
  1070  	lro *longrunning.Operation
  1071  }
  1072  
  1073  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1074  //
  1075  // See documentation of Poll for error-handling information.
  1076  func (op *CreateFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  1077  	var resp aiplatformpb.Featurestore
  1078  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1079  		return nil, err
  1080  	}
  1081  	return &resp, nil
  1082  }
  1083  
  1084  // Poll fetches the latest state of the long-running operation.
  1085  //
  1086  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1087  //
  1088  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1089  // the operation has completed with failure, the error is returned and op.Done will return true.
  1090  // If Poll succeeds and the operation has completed successfully,
  1091  // op.Done will return true, and the response of the operation is returned.
  1092  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1093  func (op *CreateFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  1094  	var resp aiplatformpb.Featurestore
  1095  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1096  		return nil, err
  1097  	}
  1098  	if !op.Done() {
  1099  		return nil, nil
  1100  	}
  1101  	return &resp, nil
  1102  }
  1103  
  1104  // Metadata returns metadata associated with the long-running operation.
  1105  // Metadata itself does not contact the server, but Poll does.
  1106  // To get the latest metadata, call this method after a successful call to Poll.
  1107  // If the metadata is not available, the returned metadata and error are both nil.
  1108  func (op *CreateFeaturestoreOperation) Metadata() (*aiplatformpb.CreateFeaturestoreOperationMetadata, error) {
  1109  	var meta aiplatformpb.CreateFeaturestoreOperationMetadata
  1110  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1111  		return nil, nil
  1112  	} else if err != nil {
  1113  		return nil, err
  1114  	}
  1115  	return &meta, nil
  1116  }
  1117  
  1118  // Done reports whether the long-running operation has completed.
  1119  func (op *CreateFeaturestoreOperation) Done() bool {
  1120  	return op.lro.Done()
  1121  }
  1122  
  1123  // Name returns the name of the long-running operation.
  1124  // The name is assigned by the server and is unique within the service from which the operation is created.
  1125  func (op *CreateFeaturestoreOperation) Name() string {
  1126  	return op.lro.Name()
  1127  }
  1128  
  1129  // CreateIndexEndpointOperation manages a long-running operation from CreateIndexEndpoint.
  1130  type CreateIndexEndpointOperation struct {
  1131  	lro *longrunning.Operation
  1132  }
  1133  
  1134  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1135  //
  1136  // See documentation of Poll for error-handling information.
  1137  func (op *CreateIndexEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.IndexEndpoint, error) {
  1138  	var resp aiplatformpb.IndexEndpoint
  1139  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1140  		return nil, err
  1141  	}
  1142  	return &resp, nil
  1143  }
  1144  
  1145  // Poll fetches the latest state of the long-running operation.
  1146  //
  1147  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1148  //
  1149  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1150  // the operation has completed with failure, the error is returned and op.Done will return true.
  1151  // If Poll succeeds and the operation has completed successfully,
  1152  // op.Done will return true, and the response of the operation is returned.
  1153  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1154  func (op *CreateIndexEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.IndexEndpoint, error) {
  1155  	var resp aiplatformpb.IndexEndpoint
  1156  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1157  		return nil, err
  1158  	}
  1159  	if !op.Done() {
  1160  		return nil, nil
  1161  	}
  1162  	return &resp, nil
  1163  }
  1164  
  1165  // Metadata returns metadata associated with the long-running operation.
  1166  // Metadata itself does not contact the server, but Poll does.
  1167  // To get the latest metadata, call this method after a successful call to Poll.
  1168  // If the metadata is not available, the returned metadata and error are both nil.
  1169  func (op *CreateIndexEndpointOperation) Metadata() (*aiplatformpb.CreateIndexEndpointOperationMetadata, error) {
  1170  	var meta aiplatformpb.CreateIndexEndpointOperationMetadata
  1171  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1172  		return nil, nil
  1173  	} else if err != nil {
  1174  		return nil, err
  1175  	}
  1176  	return &meta, nil
  1177  }
  1178  
  1179  // Done reports whether the long-running operation has completed.
  1180  func (op *CreateIndexEndpointOperation) Done() bool {
  1181  	return op.lro.Done()
  1182  }
  1183  
  1184  // Name returns the name of the long-running operation.
  1185  // The name is assigned by the server and is unique within the service from which the operation is created.
  1186  func (op *CreateIndexEndpointOperation) Name() string {
  1187  	return op.lro.Name()
  1188  }
  1189  
  1190  // CreateIndexOperation manages a long-running operation from CreateIndex.
  1191  type CreateIndexOperation struct {
  1192  	lro *longrunning.Operation
  1193  }
  1194  
  1195  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1196  //
  1197  // See documentation of Poll for error-handling information.
  1198  func (op *CreateIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  1199  	var resp aiplatformpb.Index
  1200  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1201  		return nil, err
  1202  	}
  1203  	return &resp, nil
  1204  }
  1205  
  1206  // Poll fetches the latest state of the long-running operation.
  1207  //
  1208  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1209  //
  1210  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1211  // the operation has completed with failure, the error is returned and op.Done will return true.
  1212  // If Poll succeeds and the operation has completed successfully,
  1213  // op.Done will return true, and the response of the operation is returned.
  1214  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1215  func (op *CreateIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  1216  	var resp aiplatformpb.Index
  1217  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1218  		return nil, err
  1219  	}
  1220  	if !op.Done() {
  1221  		return nil, nil
  1222  	}
  1223  	return &resp, nil
  1224  }
  1225  
  1226  // Metadata returns metadata associated with the long-running operation.
  1227  // Metadata itself does not contact the server, but Poll does.
  1228  // To get the latest metadata, call this method after a successful call to Poll.
  1229  // If the metadata is not available, the returned metadata and error are both nil.
  1230  func (op *CreateIndexOperation) Metadata() (*aiplatformpb.CreateIndexOperationMetadata, error) {
  1231  	var meta aiplatformpb.CreateIndexOperationMetadata
  1232  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1233  		return nil, nil
  1234  	} else if err != nil {
  1235  		return nil, err
  1236  	}
  1237  	return &meta, nil
  1238  }
  1239  
  1240  // Done reports whether the long-running operation has completed.
  1241  func (op *CreateIndexOperation) Done() bool {
  1242  	return op.lro.Done()
  1243  }
  1244  
  1245  // Name returns the name of the long-running operation.
  1246  // The name is assigned by the server and is unique within the service from which the operation is created.
  1247  func (op *CreateIndexOperation) Name() string {
  1248  	return op.lro.Name()
  1249  }
  1250  
  1251  // CreateMetadataStoreOperation manages a long-running operation from CreateMetadataStore.
  1252  type CreateMetadataStoreOperation struct {
  1253  	lro *longrunning.Operation
  1254  }
  1255  
  1256  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1257  //
  1258  // See documentation of Poll for error-handling information.
  1259  func (op *CreateMetadataStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MetadataStore, error) {
  1260  	var resp aiplatformpb.MetadataStore
  1261  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1262  		return nil, err
  1263  	}
  1264  	return &resp, nil
  1265  }
  1266  
  1267  // Poll fetches the latest state of the long-running operation.
  1268  //
  1269  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1270  //
  1271  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1272  // the operation has completed with failure, the error is returned and op.Done will return true.
  1273  // If Poll succeeds and the operation has completed successfully,
  1274  // op.Done will return true, and the response of the operation is returned.
  1275  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1276  func (op *CreateMetadataStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MetadataStore, error) {
  1277  	var resp aiplatformpb.MetadataStore
  1278  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1279  		return nil, err
  1280  	}
  1281  	if !op.Done() {
  1282  		return nil, nil
  1283  	}
  1284  	return &resp, nil
  1285  }
  1286  
  1287  // Metadata returns metadata associated with the long-running operation.
  1288  // Metadata itself does not contact the server, but Poll does.
  1289  // To get the latest metadata, call this method after a successful call to Poll.
  1290  // If the metadata is not available, the returned metadata and error are both nil.
  1291  func (op *CreateMetadataStoreOperation) Metadata() (*aiplatformpb.CreateMetadataStoreOperationMetadata, error) {
  1292  	var meta aiplatformpb.CreateMetadataStoreOperationMetadata
  1293  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1294  		return nil, nil
  1295  	} else if err != nil {
  1296  		return nil, err
  1297  	}
  1298  	return &meta, nil
  1299  }
  1300  
  1301  // Done reports whether the long-running operation has completed.
  1302  func (op *CreateMetadataStoreOperation) Done() bool {
  1303  	return op.lro.Done()
  1304  }
  1305  
  1306  // Name returns the name of the long-running operation.
  1307  // The name is assigned by the server and is unique within the service from which the operation is created.
  1308  func (op *CreateMetadataStoreOperation) Name() string {
  1309  	return op.lro.Name()
  1310  }
  1311  
  1312  // CreateNotebookExecutionJobOperation manages a long-running operation from CreateNotebookExecutionJob.
  1313  type CreateNotebookExecutionJobOperation struct {
  1314  	lro *longrunning.Operation
  1315  }
  1316  
  1317  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1318  //
  1319  // See documentation of Poll for error-handling information.
  1320  func (op *CreateNotebookExecutionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookExecutionJob, error) {
  1321  	var resp aiplatformpb.NotebookExecutionJob
  1322  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1323  		return nil, err
  1324  	}
  1325  	return &resp, nil
  1326  }
  1327  
  1328  // Poll fetches the latest state of the long-running operation.
  1329  //
  1330  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1331  //
  1332  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1333  // the operation has completed with failure, the error is returned and op.Done will return true.
  1334  // If Poll succeeds and the operation has completed successfully,
  1335  // op.Done will return true, and the response of the operation is returned.
  1336  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1337  func (op *CreateNotebookExecutionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookExecutionJob, error) {
  1338  	var resp aiplatformpb.NotebookExecutionJob
  1339  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1340  		return nil, err
  1341  	}
  1342  	if !op.Done() {
  1343  		return nil, nil
  1344  	}
  1345  	return &resp, nil
  1346  }
  1347  
  1348  // Metadata returns metadata associated with the long-running operation.
  1349  // Metadata itself does not contact the server, but Poll does.
  1350  // To get the latest metadata, call this method after a successful call to Poll.
  1351  // If the metadata is not available, the returned metadata and error are both nil.
  1352  func (op *CreateNotebookExecutionJobOperation) Metadata() (*aiplatformpb.CreateNotebookExecutionJobOperationMetadata, error) {
  1353  	var meta aiplatformpb.CreateNotebookExecutionJobOperationMetadata
  1354  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1355  		return nil, nil
  1356  	} else if err != nil {
  1357  		return nil, err
  1358  	}
  1359  	return &meta, nil
  1360  }
  1361  
  1362  // Done reports whether the long-running operation has completed.
  1363  func (op *CreateNotebookExecutionJobOperation) Done() bool {
  1364  	return op.lro.Done()
  1365  }
  1366  
  1367  // Name returns the name of the long-running operation.
  1368  // The name is assigned by the server and is unique within the service from which the operation is created.
  1369  func (op *CreateNotebookExecutionJobOperation) Name() string {
  1370  	return op.lro.Name()
  1371  }
  1372  
  1373  // CreateNotebookRuntimeTemplateOperation manages a long-running operation from CreateNotebookRuntimeTemplate.
  1374  type CreateNotebookRuntimeTemplateOperation struct {
  1375  	lro *longrunning.Operation
  1376  }
  1377  
  1378  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1379  //
  1380  // See documentation of Poll for error-handling information.
  1381  func (op *CreateNotebookRuntimeTemplateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntimeTemplate, error) {
  1382  	var resp aiplatformpb.NotebookRuntimeTemplate
  1383  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1384  		return nil, err
  1385  	}
  1386  	return &resp, nil
  1387  }
  1388  
  1389  // Poll fetches the latest state of the long-running operation.
  1390  //
  1391  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1392  //
  1393  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1394  // the operation has completed with failure, the error is returned and op.Done will return true.
  1395  // If Poll succeeds and the operation has completed successfully,
  1396  // op.Done will return true, and the response of the operation is returned.
  1397  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1398  func (op *CreateNotebookRuntimeTemplateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntimeTemplate, error) {
  1399  	var resp aiplatformpb.NotebookRuntimeTemplate
  1400  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1401  		return nil, err
  1402  	}
  1403  	if !op.Done() {
  1404  		return nil, nil
  1405  	}
  1406  	return &resp, nil
  1407  }
  1408  
  1409  // Metadata returns metadata associated with the long-running operation.
  1410  // Metadata itself does not contact the server, but Poll does.
  1411  // To get the latest metadata, call this method after a successful call to Poll.
  1412  // If the metadata is not available, the returned metadata and error are both nil.
  1413  func (op *CreateNotebookRuntimeTemplateOperation) Metadata() (*aiplatformpb.CreateNotebookRuntimeTemplateOperationMetadata, error) {
  1414  	var meta aiplatformpb.CreateNotebookRuntimeTemplateOperationMetadata
  1415  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1416  		return nil, nil
  1417  	} else if err != nil {
  1418  		return nil, err
  1419  	}
  1420  	return &meta, nil
  1421  }
  1422  
  1423  // Done reports whether the long-running operation has completed.
  1424  func (op *CreateNotebookRuntimeTemplateOperation) Done() bool {
  1425  	return op.lro.Done()
  1426  }
  1427  
  1428  // Name returns the name of the long-running operation.
  1429  // The name is assigned by the server and is unique within the service from which the operation is created.
  1430  func (op *CreateNotebookRuntimeTemplateOperation) Name() string {
  1431  	return op.lro.Name()
  1432  }
  1433  
  1434  // CreatePersistentResourceOperation manages a long-running operation from CreatePersistentResource.
  1435  type CreatePersistentResourceOperation struct {
  1436  	lro *longrunning.Operation
  1437  }
  1438  
  1439  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1440  //
  1441  // See documentation of Poll for error-handling information.
  1442  func (op *CreatePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  1443  	var resp aiplatformpb.PersistentResource
  1444  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1445  		return nil, err
  1446  	}
  1447  	return &resp, nil
  1448  }
  1449  
  1450  // Poll fetches the latest state of the long-running operation.
  1451  //
  1452  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1453  //
  1454  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1455  // the operation has completed with failure, the error is returned and op.Done will return true.
  1456  // If Poll succeeds and the operation has completed successfully,
  1457  // op.Done will return true, and the response of the operation is returned.
  1458  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1459  func (op *CreatePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  1460  	var resp aiplatformpb.PersistentResource
  1461  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1462  		return nil, err
  1463  	}
  1464  	if !op.Done() {
  1465  		return nil, nil
  1466  	}
  1467  	return &resp, nil
  1468  }
  1469  
  1470  // Metadata returns metadata associated with the long-running operation.
  1471  // Metadata itself does not contact the server, but Poll does.
  1472  // To get the latest metadata, call this method after a successful call to Poll.
  1473  // If the metadata is not available, the returned metadata and error are both nil.
  1474  func (op *CreatePersistentResourceOperation) Metadata() (*aiplatformpb.CreatePersistentResourceOperationMetadata, error) {
  1475  	var meta aiplatformpb.CreatePersistentResourceOperationMetadata
  1476  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1477  		return nil, nil
  1478  	} else if err != nil {
  1479  		return nil, err
  1480  	}
  1481  	return &meta, nil
  1482  }
  1483  
  1484  // Done reports whether the long-running operation has completed.
  1485  func (op *CreatePersistentResourceOperation) Done() bool {
  1486  	return op.lro.Done()
  1487  }
  1488  
  1489  // Name returns the name of the long-running operation.
  1490  // The name is assigned by the server and is unique within the service from which the operation is created.
  1491  func (op *CreatePersistentResourceOperation) Name() string {
  1492  	return op.lro.Name()
  1493  }
  1494  
  1495  // CreateRagCorpusOperation manages a long-running operation from CreateRagCorpus.
  1496  type CreateRagCorpusOperation struct {
  1497  	lro *longrunning.Operation
  1498  }
  1499  
  1500  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1501  //
  1502  // See documentation of Poll for error-handling information.
  1503  func (op *CreateRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  1504  	var resp aiplatformpb.RagCorpus
  1505  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1506  		return nil, err
  1507  	}
  1508  	return &resp, nil
  1509  }
  1510  
  1511  // Poll fetches the latest state of the long-running operation.
  1512  //
  1513  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1514  //
  1515  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1516  // the operation has completed with failure, the error is returned and op.Done will return true.
  1517  // If Poll succeeds and the operation has completed successfully,
  1518  // op.Done will return true, and the response of the operation is returned.
  1519  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1520  func (op *CreateRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  1521  	var resp aiplatformpb.RagCorpus
  1522  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1523  		return nil, err
  1524  	}
  1525  	if !op.Done() {
  1526  		return nil, nil
  1527  	}
  1528  	return &resp, nil
  1529  }
  1530  
  1531  // Metadata returns metadata associated with the long-running operation.
  1532  // Metadata itself does not contact the server, but Poll does.
  1533  // To get the latest metadata, call this method after a successful call to Poll.
  1534  // If the metadata is not available, the returned metadata and error are both nil.
  1535  func (op *CreateRagCorpusOperation) Metadata() (*aiplatformpb.CreateRagCorpusOperationMetadata, error) {
  1536  	var meta aiplatformpb.CreateRagCorpusOperationMetadata
  1537  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1538  		return nil, nil
  1539  	} else if err != nil {
  1540  		return nil, err
  1541  	}
  1542  	return &meta, nil
  1543  }
  1544  
  1545  // Done reports whether the long-running operation has completed.
  1546  func (op *CreateRagCorpusOperation) Done() bool {
  1547  	return op.lro.Done()
  1548  }
  1549  
  1550  // Name returns the name of the long-running operation.
  1551  // The name is assigned by the server and is unique within the service from which the operation is created.
  1552  func (op *CreateRagCorpusOperation) Name() string {
  1553  	return op.lro.Name()
  1554  }
  1555  
  1556  // CreateReasoningEngineOperation manages a long-running operation from CreateReasoningEngine.
  1557  type CreateReasoningEngineOperation struct {
  1558  	lro *longrunning.Operation
  1559  }
  1560  
  1561  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1562  //
  1563  // See documentation of Poll for error-handling information.
  1564  func (op *CreateReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  1565  	var resp aiplatformpb.ReasoningEngine
  1566  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1567  		return nil, err
  1568  	}
  1569  	return &resp, nil
  1570  }
  1571  
  1572  // Poll fetches the latest state of the long-running operation.
  1573  //
  1574  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1575  //
  1576  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1577  // the operation has completed with failure, the error is returned and op.Done will return true.
  1578  // If Poll succeeds and the operation has completed successfully,
  1579  // op.Done will return true, and the response of the operation is returned.
  1580  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1581  func (op *CreateReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  1582  	var resp aiplatformpb.ReasoningEngine
  1583  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1584  		return nil, err
  1585  	}
  1586  	if !op.Done() {
  1587  		return nil, nil
  1588  	}
  1589  	return &resp, nil
  1590  }
  1591  
  1592  // Metadata returns metadata associated with the long-running operation.
  1593  // Metadata itself does not contact the server, but Poll does.
  1594  // To get the latest metadata, call this method after a successful call to Poll.
  1595  // If the metadata is not available, the returned metadata and error are both nil.
  1596  func (op *CreateReasoningEngineOperation) Metadata() (*aiplatformpb.CreateReasoningEngineOperationMetadata, error) {
  1597  	var meta aiplatformpb.CreateReasoningEngineOperationMetadata
  1598  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1599  		return nil, nil
  1600  	} else if err != nil {
  1601  		return nil, err
  1602  	}
  1603  	return &meta, nil
  1604  }
  1605  
  1606  // Done reports whether the long-running operation has completed.
  1607  func (op *CreateReasoningEngineOperation) Done() bool {
  1608  	return op.lro.Done()
  1609  }
  1610  
  1611  // Name returns the name of the long-running operation.
  1612  // The name is assigned by the server and is unique within the service from which the operation is created.
  1613  func (op *CreateReasoningEngineOperation) Name() string {
  1614  	return op.lro.Name()
  1615  }
  1616  
  1617  // CreateSpecialistPoolOperation manages a long-running operation from CreateSpecialistPool.
  1618  type CreateSpecialistPoolOperation struct {
  1619  	lro *longrunning.Operation
  1620  }
  1621  
  1622  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1623  //
  1624  // See documentation of Poll for error-handling information.
  1625  func (op *CreateSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  1626  	var resp aiplatformpb.SpecialistPool
  1627  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1628  		return nil, err
  1629  	}
  1630  	return &resp, nil
  1631  }
  1632  
  1633  // Poll fetches the latest state of the long-running operation.
  1634  //
  1635  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1636  //
  1637  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1638  // the operation has completed with failure, the error is returned and op.Done will return true.
  1639  // If Poll succeeds and the operation has completed successfully,
  1640  // op.Done will return true, and the response of the operation is returned.
  1641  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1642  func (op *CreateSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  1643  	var resp aiplatformpb.SpecialistPool
  1644  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1645  		return nil, err
  1646  	}
  1647  	if !op.Done() {
  1648  		return nil, nil
  1649  	}
  1650  	return &resp, nil
  1651  }
  1652  
  1653  // Metadata returns metadata associated with the long-running operation.
  1654  // Metadata itself does not contact the server, but Poll does.
  1655  // To get the latest metadata, call this method after a successful call to Poll.
  1656  // If the metadata is not available, the returned metadata and error are both nil.
  1657  func (op *CreateSpecialistPoolOperation) Metadata() (*aiplatformpb.CreateSpecialistPoolOperationMetadata, error) {
  1658  	var meta aiplatformpb.CreateSpecialistPoolOperationMetadata
  1659  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1660  		return nil, nil
  1661  	} else if err != nil {
  1662  		return nil, err
  1663  	}
  1664  	return &meta, nil
  1665  }
  1666  
  1667  // Done reports whether the long-running operation has completed.
  1668  func (op *CreateSpecialistPoolOperation) Done() bool {
  1669  	return op.lro.Done()
  1670  }
  1671  
  1672  // Name returns the name of the long-running operation.
  1673  // The name is assigned by the server and is unique within the service from which the operation is created.
  1674  func (op *CreateSpecialistPoolOperation) Name() string {
  1675  	return op.lro.Name()
  1676  }
  1677  
  1678  // CreateTensorboardOperation manages a long-running operation from CreateTensorboard.
  1679  type CreateTensorboardOperation struct {
  1680  	lro *longrunning.Operation
  1681  }
  1682  
  1683  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1684  //
  1685  // See documentation of Poll for error-handling information.
  1686  func (op *CreateTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  1687  	var resp aiplatformpb.Tensorboard
  1688  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1689  		return nil, err
  1690  	}
  1691  	return &resp, nil
  1692  }
  1693  
  1694  // Poll fetches the latest state of the long-running operation.
  1695  //
  1696  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1697  //
  1698  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1699  // the operation has completed with failure, the error is returned and op.Done will return true.
  1700  // If Poll succeeds and the operation has completed successfully,
  1701  // op.Done will return true, and the response of the operation is returned.
  1702  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1703  func (op *CreateTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  1704  	var resp aiplatformpb.Tensorboard
  1705  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1706  		return nil, err
  1707  	}
  1708  	if !op.Done() {
  1709  		return nil, nil
  1710  	}
  1711  	return &resp, nil
  1712  }
  1713  
  1714  // Metadata returns metadata associated with the long-running operation.
  1715  // Metadata itself does not contact the server, but Poll does.
  1716  // To get the latest metadata, call this method after a successful call to Poll.
  1717  // If the metadata is not available, the returned metadata and error are both nil.
  1718  func (op *CreateTensorboardOperation) Metadata() (*aiplatformpb.CreateTensorboardOperationMetadata, error) {
  1719  	var meta aiplatformpb.CreateTensorboardOperationMetadata
  1720  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1721  		return nil, nil
  1722  	} else if err != nil {
  1723  		return nil, err
  1724  	}
  1725  	return &meta, nil
  1726  }
  1727  
  1728  // Done reports whether the long-running operation has completed.
  1729  func (op *CreateTensorboardOperation) Done() bool {
  1730  	return op.lro.Done()
  1731  }
  1732  
  1733  // Name returns the name of the long-running operation.
  1734  // The name is assigned by the server and is unique within the service from which the operation is created.
  1735  func (op *CreateTensorboardOperation) Name() string {
  1736  	return op.lro.Name()
  1737  }
  1738  
  1739  // DeleteArtifactOperation manages a long-running operation from DeleteArtifact.
  1740  type DeleteArtifactOperation struct {
  1741  	lro *longrunning.Operation
  1742  }
  1743  
  1744  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1745  //
  1746  // See documentation of Poll for error-handling information.
  1747  func (op *DeleteArtifactOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1748  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1749  }
  1750  
  1751  // Poll fetches the latest state of the long-running operation.
  1752  //
  1753  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1754  //
  1755  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1756  // the operation has completed with failure, the error is returned and op.Done will return true.
  1757  // If Poll succeeds and the operation has completed successfully,
  1758  // op.Done will return true, and the response of the operation is returned.
  1759  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1760  func (op *DeleteArtifactOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  1761  	return op.lro.Poll(ctx, nil, opts...)
  1762  }
  1763  
  1764  // Metadata returns metadata associated with the long-running operation.
  1765  // Metadata itself does not contact the server, but Poll does.
  1766  // To get the latest metadata, call this method after a successful call to Poll.
  1767  // If the metadata is not available, the returned metadata and error are both nil.
  1768  func (op *DeleteArtifactOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  1769  	var meta aiplatformpb.DeleteOperationMetadata
  1770  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1771  		return nil, nil
  1772  	} else if err != nil {
  1773  		return nil, err
  1774  	}
  1775  	return &meta, nil
  1776  }
  1777  
  1778  // Done reports whether the long-running operation has completed.
  1779  func (op *DeleteArtifactOperation) Done() bool {
  1780  	return op.lro.Done()
  1781  }
  1782  
  1783  // Name returns the name of the long-running operation.
  1784  // The name is assigned by the server and is unique within the service from which the operation is created.
  1785  func (op *DeleteArtifactOperation) Name() string {
  1786  	return op.lro.Name()
  1787  }
  1788  
  1789  // DeleteBatchPredictionJobOperation manages a long-running operation from DeleteBatchPredictionJob.
  1790  type DeleteBatchPredictionJobOperation struct {
  1791  	lro *longrunning.Operation
  1792  }
  1793  
  1794  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1795  //
  1796  // See documentation of Poll for error-handling information.
  1797  func (op *DeleteBatchPredictionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1798  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1799  }
  1800  
  1801  // Poll fetches the latest state of the long-running operation.
  1802  //
  1803  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1804  //
  1805  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1806  // the operation has completed with failure, the error is returned and op.Done will return true.
  1807  // If Poll succeeds and the operation has completed successfully,
  1808  // op.Done will return true, and the response of the operation is returned.
  1809  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1810  func (op *DeleteBatchPredictionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  1811  	return op.lro.Poll(ctx, nil, opts...)
  1812  }
  1813  
  1814  // Metadata returns metadata associated with the long-running operation.
  1815  // Metadata itself does not contact the server, but Poll does.
  1816  // To get the latest metadata, call this method after a successful call to Poll.
  1817  // If the metadata is not available, the returned metadata and error are both nil.
  1818  func (op *DeleteBatchPredictionJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  1819  	var meta aiplatformpb.DeleteOperationMetadata
  1820  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1821  		return nil, nil
  1822  	} else if err != nil {
  1823  		return nil, err
  1824  	}
  1825  	return &meta, nil
  1826  }
  1827  
  1828  // Done reports whether the long-running operation has completed.
  1829  func (op *DeleteBatchPredictionJobOperation) Done() bool {
  1830  	return op.lro.Done()
  1831  }
  1832  
  1833  // Name returns the name of the long-running operation.
  1834  // The name is assigned by the server and is unique within the service from which the operation is created.
  1835  func (op *DeleteBatchPredictionJobOperation) Name() string {
  1836  	return op.lro.Name()
  1837  }
  1838  
  1839  // DeleteContextOperation manages a long-running operation from DeleteContext.
  1840  type DeleteContextOperation struct {
  1841  	lro *longrunning.Operation
  1842  }
  1843  
  1844  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1845  //
  1846  // See documentation of Poll for error-handling information.
  1847  func (op *DeleteContextOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1848  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1849  }
  1850  
  1851  // Poll fetches the latest state of the long-running operation.
  1852  //
  1853  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1854  //
  1855  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1856  // the operation has completed with failure, the error is returned and op.Done will return true.
  1857  // If Poll succeeds and the operation has completed successfully,
  1858  // op.Done will return true, and the response of the operation is returned.
  1859  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1860  func (op *DeleteContextOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  1861  	return op.lro.Poll(ctx, nil, opts...)
  1862  }
  1863  
  1864  // Metadata returns metadata associated with the long-running operation.
  1865  // Metadata itself does not contact the server, but Poll does.
  1866  // To get the latest metadata, call this method after a successful call to Poll.
  1867  // If the metadata is not available, the returned metadata and error are both nil.
  1868  func (op *DeleteContextOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  1869  	var meta aiplatformpb.DeleteOperationMetadata
  1870  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1871  		return nil, nil
  1872  	} else if err != nil {
  1873  		return nil, err
  1874  	}
  1875  	return &meta, nil
  1876  }
  1877  
  1878  // Done reports whether the long-running operation has completed.
  1879  func (op *DeleteContextOperation) Done() bool {
  1880  	return op.lro.Done()
  1881  }
  1882  
  1883  // Name returns the name of the long-running operation.
  1884  // The name is assigned by the server and is unique within the service from which the operation is created.
  1885  func (op *DeleteContextOperation) Name() string {
  1886  	return op.lro.Name()
  1887  }
  1888  
  1889  // DeleteCustomJobOperation manages a long-running operation from DeleteCustomJob.
  1890  type DeleteCustomJobOperation struct {
  1891  	lro *longrunning.Operation
  1892  }
  1893  
  1894  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1895  //
  1896  // See documentation of Poll for error-handling information.
  1897  func (op *DeleteCustomJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1898  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1899  }
  1900  
  1901  // Poll fetches the latest state of the long-running operation.
  1902  //
  1903  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1904  //
  1905  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1906  // the operation has completed with failure, the error is returned and op.Done will return true.
  1907  // If Poll succeeds and the operation has completed successfully,
  1908  // op.Done will return true, and the response of the operation is returned.
  1909  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1910  func (op *DeleteCustomJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  1911  	return op.lro.Poll(ctx, nil, opts...)
  1912  }
  1913  
  1914  // Metadata returns metadata associated with the long-running operation.
  1915  // Metadata itself does not contact the server, but Poll does.
  1916  // To get the latest metadata, call this method after a successful call to Poll.
  1917  // If the metadata is not available, the returned metadata and error are both nil.
  1918  func (op *DeleteCustomJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  1919  	var meta aiplatformpb.DeleteOperationMetadata
  1920  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1921  		return nil, nil
  1922  	} else if err != nil {
  1923  		return nil, err
  1924  	}
  1925  	return &meta, nil
  1926  }
  1927  
  1928  // Done reports whether the long-running operation has completed.
  1929  func (op *DeleteCustomJobOperation) Done() bool {
  1930  	return op.lro.Done()
  1931  }
  1932  
  1933  // Name returns the name of the long-running operation.
  1934  // The name is assigned by the server and is unique within the service from which the operation is created.
  1935  func (op *DeleteCustomJobOperation) Name() string {
  1936  	return op.lro.Name()
  1937  }
  1938  
  1939  // DeleteDataLabelingJobOperation manages a long-running operation from DeleteDataLabelingJob.
  1940  type DeleteDataLabelingJobOperation struct {
  1941  	lro *longrunning.Operation
  1942  }
  1943  
  1944  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1945  //
  1946  // See documentation of Poll for error-handling information.
  1947  func (op *DeleteDataLabelingJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1948  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1949  }
  1950  
  1951  // Poll fetches the latest state of the long-running operation.
  1952  //
  1953  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1954  //
  1955  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1956  // the operation has completed with failure, the error is returned and op.Done will return true.
  1957  // If Poll succeeds and the operation has completed successfully,
  1958  // op.Done will return true, and the response of the operation is returned.
  1959  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1960  func (op *DeleteDataLabelingJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  1961  	return op.lro.Poll(ctx, nil, opts...)
  1962  }
  1963  
  1964  // Metadata returns metadata associated with the long-running operation.
  1965  // Metadata itself does not contact the server, but Poll does.
  1966  // To get the latest metadata, call this method after a successful call to Poll.
  1967  // If the metadata is not available, the returned metadata and error are both nil.
  1968  func (op *DeleteDataLabelingJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  1969  	var meta aiplatformpb.DeleteOperationMetadata
  1970  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1971  		return nil, nil
  1972  	} else if err != nil {
  1973  		return nil, err
  1974  	}
  1975  	return &meta, nil
  1976  }
  1977  
  1978  // Done reports whether the long-running operation has completed.
  1979  func (op *DeleteDataLabelingJobOperation) Done() bool {
  1980  	return op.lro.Done()
  1981  }
  1982  
  1983  // Name returns the name of the long-running operation.
  1984  // The name is assigned by the server and is unique within the service from which the operation is created.
  1985  func (op *DeleteDataLabelingJobOperation) Name() string {
  1986  	return op.lro.Name()
  1987  }
  1988  
  1989  // DeleteDatasetOperation manages a long-running operation from DeleteDataset.
  1990  type DeleteDatasetOperation struct {
  1991  	lro *longrunning.Operation
  1992  }
  1993  
  1994  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1995  //
  1996  // See documentation of Poll for error-handling information.
  1997  func (op *DeleteDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  1998  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  1999  }
  2000  
  2001  // Poll fetches the latest state of the long-running operation.
  2002  //
  2003  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2004  //
  2005  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2006  // the operation has completed with failure, the error is returned and op.Done will return true.
  2007  // If Poll succeeds and the operation has completed successfully,
  2008  // op.Done will return true, and the response of the operation is returned.
  2009  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2010  func (op *DeleteDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2011  	return op.lro.Poll(ctx, nil, opts...)
  2012  }
  2013  
  2014  // Metadata returns metadata associated with the long-running operation.
  2015  // Metadata itself does not contact the server, but Poll does.
  2016  // To get the latest metadata, call this method after a successful call to Poll.
  2017  // If the metadata is not available, the returned metadata and error are both nil.
  2018  func (op *DeleteDatasetOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2019  	var meta aiplatformpb.DeleteOperationMetadata
  2020  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2021  		return nil, nil
  2022  	} else if err != nil {
  2023  		return nil, err
  2024  	}
  2025  	return &meta, nil
  2026  }
  2027  
  2028  // Done reports whether the long-running operation has completed.
  2029  func (op *DeleteDatasetOperation) Done() bool {
  2030  	return op.lro.Done()
  2031  }
  2032  
  2033  // Name returns the name of the long-running operation.
  2034  // The name is assigned by the server and is unique within the service from which the operation is created.
  2035  func (op *DeleteDatasetOperation) Name() string {
  2036  	return op.lro.Name()
  2037  }
  2038  
  2039  // DeleteDatasetVersionOperation manages a long-running operation from DeleteDatasetVersion.
  2040  type DeleteDatasetVersionOperation struct {
  2041  	lro *longrunning.Operation
  2042  }
  2043  
  2044  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2045  //
  2046  // See documentation of Poll for error-handling information.
  2047  func (op *DeleteDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2048  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2049  }
  2050  
  2051  // Poll fetches the latest state of the long-running operation.
  2052  //
  2053  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2054  //
  2055  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2056  // the operation has completed with failure, the error is returned and op.Done will return true.
  2057  // If Poll succeeds and the operation has completed successfully,
  2058  // op.Done will return true, and the response of the operation is returned.
  2059  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2060  func (op *DeleteDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2061  	return op.lro.Poll(ctx, nil, opts...)
  2062  }
  2063  
  2064  // Metadata returns metadata associated with the long-running operation.
  2065  // Metadata itself does not contact the server, but Poll does.
  2066  // To get the latest metadata, call this method after a successful call to Poll.
  2067  // If the metadata is not available, the returned metadata and error are both nil.
  2068  func (op *DeleteDatasetVersionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2069  	var meta aiplatformpb.DeleteOperationMetadata
  2070  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2071  		return nil, nil
  2072  	} else if err != nil {
  2073  		return nil, err
  2074  	}
  2075  	return &meta, nil
  2076  }
  2077  
  2078  // Done reports whether the long-running operation has completed.
  2079  func (op *DeleteDatasetVersionOperation) Done() bool {
  2080  	return op.lro.Done()
  2081  }
  2082  
  2083  // Name returns the name of the long-running operation.
  2084  // The name is assigned by the server and is unique within the service from which the operation is created.
  2085  func (op *DeleteDatasetVersionOperation) Name() string {
  2086  	return op.lro.Name()
  2087  }
  2088  
  2089  // DeleteDeploymentResourcePoolOperation manages a long-running operation from DeleteDeploymentResourcePool.
  2090  type DeleteDeploymentResourcePoolOperation struct {
  2091  	lro *longrunning.Operation
  2092  }
  2093  
  2094  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2095  //
  2096  // See documentation of Poll for error-handling information.
  2097  func (op *DeleteDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2098  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2099  }
  2100  
  2101  // Poll fetches the latest state of the long-running operation.
  2102  //
  2103  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2104  //
  2105  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2106  // the operation has completed with failure, the error is returned and op.Done will return true.
  2107  // If Poll succeeds and the operation has completed successfully,
  2108  // op.Done will return true, and the response of the operation is returned.
  2109  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2110  func (op *DeleteDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2111  	return op.lro.Poll(ctx, nil, opts...)
  2112  }
  2113  
  2114  // Metadata returns metadata associated with the long-running operation.
  2115  // Metadata itself does not contact the server, but Poll does.
  2116  // To get the latest metadata, call this method after a successful call to Poll.
  2117  // If the metadata is not available, the returned metadata and error are both nil.
  2118  func (op *DeleteDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2119  	var meta aiplatformpb.DeleteOperationMetadata
  2120  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2121  		return nil, nil
  2122  	} else if err != nil {
  2123  		return nil, err
  2124  	}
  2125  	return &meta, nil
  2126  }
  2127  
  2128  // Done reports whether the long-running operation has completed.
  2129  func (op *DeleteDeploymentResourcePoolOperation) Done() bool {
  2130  	return op.lro.Done()
  2131  }
  2132  
  2133  // Name returns the name of the long-running operation.
  2134  // The name is assigned by the server and is unique within the service from which the operation is created.
  2135  func (op *DeleteDeploymentResourcePoolOperation) Name() string {
  2136  	return op.lro.Name()
  2137  }
  2138  
  2139  // DeleteEndpointOperation manages a long-running operation from DeleteEndpoint.
  2140  type DeleteEndpointOperation struct {
  2141  	lro *longrunning.Operation
  2142  }
  2143  
  2144  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2145  //
  2146  // See documentation of Poll for error-handling information.
  2147  func (op *DeleteEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2148  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2149  }
  2150  
  2151  // Poll fetches the latest state of the long-running operation.
  2152  //
  2153  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2154  //
  2155  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2156  // the operation has completed with failure, the error is returned and op.Done will return true.
  2157  // If Poll succeeds and the operation has completed successfully,
  2158  // op.Done will return true, and the response of the operation is returned.
  2159  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2160  func (op *DeleteEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2161  	return op.lro.Poll(ctx, nil, opts...)
  2162  }
  2163  
  2164  // Metadata returns metadata associated with the long-running operation.
  2165  // Metadata itself does not contact the server, but Poll does.
  2166  // To get the latest metadata, call this method after a successful call to Poll.
  2167  // If the metadata is not available, the returned metadata and error are both nil.
  2168  func (op *DeleteEndpointOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2169  	var meta aiplatformpb.DeleteOperationMetadata
  2170  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2171  		return nil, nil
  2172  	} else if err != nil {
  2173  		return nil, err
  2174  	}
  2175  	return &meta, nil
  2176  }
  2177  
  2178  // Done reports whether the long-running operation has completed.
  2179  func (op *DeleteEndpointOperation) Done() bool {
  2180  	return op.lro.Done()
  2181  }
  2182  
  2183  // Name returns the name of the long-running operation.
  2184  // The name is assigned by the server and is unique within the service from which the operation is created.
  2185  func (op *DeleteEndpointOperation) Name() string {
  2186  	return op.lro.Name()
  2187  }
  2188  
  2189  // DeleteEntityTypeOperation manages a long-running operation from DeleteEntityType.
  2190  type DeleteEntityTypeOperation struct {
  2191  	lro *longrunning.Operation
  2192  }
  2193  
  2194  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2195  //
  2196  // See documentation of Poll for error-handling information.
  2197  func (op *DeleteEntityTypeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2198  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2199  }
  2200  
  2201  // Poll fetches the latest state of the long-running operation.
  2202  //
  2203  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2204  //
  2205  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2206  // the operation has completed with failure, the error is returned and op.Done will return true.
  2207  // If Poll succeeds and the operation has completed successfully,
  2208  // op.Done will return true, and the response of the operation is returned.
  2209  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2210  func (op *DeleteEntityTypeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2211  	return op.lro.Poll(ctx, nil, opts...)
  2212  }
  2213  
  2214  // Metadata returns metadata associated with the long-running operation.
  2215  // Metadata itself does not contact the server, but Poll does.
  2216  // To get the latest metadata, call this method after a successful call to Poll.
  2217  // If the metadata is not available, the returned metadata and error are both nil.
  2218  func (op *DeleteEntityTypeOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2219  	var meta aiplatformpb.DeleteOperationMetadata
  2220  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2221  		return nil, nil
  2222  	} else if err != nil {
  2223  		return nil, err
  2224  	}
  2225  	return &meta, nil
  2226  }
  2227  
  2228  // Done reports whether the long-running operation has completed.
  2229  func (op *DeleteEntityTypeOperation) Done() bool {
  2230  	return op.lro.Done()
  2231  }
  2232  
  2233  // Name returns the name of the long-running operation.
  2234  // The name is assigned by the server and is unique within the service from which the operation is created.
  2235  func (op *DeleteEntityTypeOperation) Name() string {
  2236  	return op.lro.Name()
  2237  }
  2238  
  2239  // DeleteExecutionOperation manages a long-running operation from DeleteExecution.
  2240  type DeleteExecutionOperation struct {
  2241  	lro *longrunning.Operation
  2242  }
  2243  
  2244  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2245  //
  2246  // See documentation of Poll for error-handling information.
  2247  func (op *DeleteExecutionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2248  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2249  }
  2250  
  2251  // Poll fetches the latest state of the long-running operation.
  2252  //
  2253  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2254  //
  2255  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2256  // the operation has completed with failure, the error is returned and op.Done will return true.
  2257  // If Poll succeeds and the operation has completed successfully,
  2258  // op.Done will return true, and the response of the operation is returned.
  2259  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2260  func (op *DeleteExecutionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2261  	return op.lro.Poll(ctx, nil, opts...)
  2262  }
  2263  
  2264  // Metadata returns metadata associated with the long-running operation.
  2265  // Metadata itself does not contact the server, but Poll does.
  2266  // To get the latest metadata, call this method after a successful call to Poll.
  2267  // If the metadata is not available, the returned metadata and error are both nil.
  2268  func (op *DeleteExecutionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2269  	var meta aiplatformpb.DeleteOperationMetadata
  2270  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2271  		return nil, nil
  2272  	} else if err != nil {
  2273  		return nil, err
  2274  	}
  2275  	return &meta, nil
  2276  }
  2277  
  2278  // Done reports whether the long-running operation has completed.
  2279  func (op *DeleteExecutionOperation) Done() bool {
  2280  	return op.lro.Done()
  2281  }
  2282  
  2283  // Name returns the name of the long-running operation.
  2284  // The name is assigned by the server and is unique within the service from which the operation is created.
  2285  func (op *DeleteExecutionOperation) Name() string {
  2286  	return op.lro.Name()
  2287  }
  2288  
  2289  // DeleteFeatureGroupOperation manages a long-running operation from DeleteFeatureGroup.
  2290  type DeleteFeatureGroupOperation struct {
  2291  	lro *longrunning.Operation
  2292  }
  2293  
  2294  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2295  //
  2296  // See documentation of Poll for error-handling information.
  2297  func (op *DeleteFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2298  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2299  }
  2300  
  2301  // Poll fetches the latest state of the long-running operation.
  2302  //
  2303  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2304  //
  2305  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2306  // the operation has completed with failure, the error is returned and op.Done will return true.
  2307  // If Poll succeeds and the operation has completed successfully,
  2308  // op.Done will return true, and the response of the operation is returned.
  2309  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2310  func (op *DeleteFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2311  	return op.lro.Poll(ctx, nil, opts...)
  2312  }
  2313  
  2314  // Metadata returns metadata associated with the long-running operation.
  2315  // Metadata itself does not contact the server, but Poll does.
  2316  // To get the latest metadata, call this method after a successful call to Poll.
  2317  // If the metadata is not available, the returned metadata and error are both nil.
  2318  func (op *DeleteFeatureGroupOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2319  	var meta aiplatformpb.DeleteOperationMetadata
  2320  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2321  		return nil, nil
  2322  	} else if err != nil {
  2323  		return nil, err
  2324  	}
  2325  	return &meta, nil
  2326  }
  2327  
  2328  // Done reports whether the long-running operation has completed.
  2329  func (op *DeleteFeatureGroupOperation) Done() bool {
  2330  	return op.lro.Done()
  2331  }
  2332  
  2333  // Name returns the name of the long-running operation.
  2334  // The name is assigned by the server and is unique within the service from which the operation is created.
  2335  func (op *DeleteFeatureGroupOperation) Name() string {
  2336  	return op.lro.Name()
  2337  }
  2338  
  2339  // DeleteFeatureOnlineStoreOperation manages a long-running operation from DeleteFeatureOnlineStore.
  2340  type DeleteFeatureOnlineStoreOperation struct {
  2341  	lro *longrunning.Operation
  2342  }
  2343  
  2344  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2345  //
  2346  // See documentation of Poll for error-handling information.
  2347  func (op *DeleteFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2348  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2349  }
  2350  
  2351  // Poll fetches the latest state of the long-running operation.
  2352  //
  2353  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2354  //
  2355  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2356  // the operation has completed with failure, the error is returned and op.Done will return true.
  2357  // If Poll succeeds and the operation has completed successfully,
  2358  // op.Done will return true, and the response of the operation is returned.
  2359  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2360  func (op *DeleteFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2361  	return op.lro.Poll(ctx, nil, opts...)
  2362  }
  2363  
  2364  // Metadata returns metadata associated with the long-running operation.
  2365  // Metadata itself does not contact the server, but Poll does.
  2366  // To get the latest metadata, call this method after a successful call to Poll.
  2367  // If the metadata is not available, the returned metadata and error are both nil.
  2368  func (op *DeleteFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2369  	var meta aiplatformpb.DeleteOperationMetadata
  2370  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2371  		return nil, nil
  2372  	} else if err != nil {
  2373  		return nil, err
  2374  	}
  2375  	return &meta, nil
  2376  }
  2377  
  2378  // Done reports whether the long-running operation has completed.
  2379  func (op *DeleteFeatureOnlineStoreOperation) Done() bool {
  2380  	return op.lro.Done()
  2381  }
  2382  
  2383  // Name returns the name of the long-running operation.
  2384  // The name is assigned by the server and is unique within the service from which the operation is created.
  2385  func (op *DeleteFeatureOnlineStoreOperation) Name() string {
  2386  	return op.lro.Name()
  2387  }
  2388  
  2389  // DeleteFeatureOperation manages a long-running operation from DeleteFeature.
  2390  type DeleteFeatureOperation struct {
  2391  	lro *longrunning.Operation
  2392  }
  2393  
  2394  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2395  //
  2396  // See documentation of Poll for error-handling information.
  2397  func (op *DeleteFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2398  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2399  }
  2400  
  2401  // Poll fetches the latest state of the long-running operation.
  2402  //
  2403  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2404  //
  2405  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2406  // the operation has completed with failure, the error is returned and op.Done will return true.
  2407  // If Poll succeeds and the operation has completed successfully,
  2408  // op.Done will return true, and the response of the operation is returned.
  2409  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2410  func (op *DeleteFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2411  	return op.lro.Poll(ctx, nil, opts...)
  2412  }
  2413  
  2414  // Metadata returns metadata associated with the long-running operation.
  2415  // Metadata itself does not contact the server, but Poll does.
  2416  // To get the latest metadata, call this method after a successful call to Poll.
  2417  // If the metadata is not available, the returned metadata and error are both nil.
  2418  func (op *DeleteFeatureOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2419  	var meta aiplatformpb.DeleteOperationMetadata
  2420  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2421  		return nil, nil
  2422  	} else if err != nil {
  2423  		return nil, err
  2424  	}
  2425  	return &meta, nil
  2426  }
  2427  
  2428  // Done reports whether the long-running operation has completed.
  2429  func (op *DeleteFeatureOperation) Done() bool {
  2430  	return op.lro.Done()
  2431  }
  2432  
  2433  // Name returns the name of the long-running operation.
  2434  // The name is assigned by the server and is unique within the service from which the operation is created.
  2435  func (op *DeleteFeatureOperation) Name() string {
  2436  	return op.lro.Name()
  2437  }
  2438  
  2439  // DeleteFeatureValuesOperation manages a long-running operation from DeleteFeatureValues.
  2440  type DeleteFeatureValuesOperation struct {
  2441  	lro *longrunning.Operation
  2442  }
  2443  
  2444  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2445  //
  2446  // See documentation of Poll for error-handling information.
  2447  func (op *DeleteFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeleteFeatureValuesResponse, error) {
  2448  	var resp aiplatformpb.DeleteFeatureValuesResponse
  2449  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  2450  		return nil, err
  2451  	}
  2452  	return &resp, nil
  2453  }
  2454  
  2455  // Poll fetches the latest state of the long-running operation.
  2456  //
  2457  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2458  //
  2459  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2460  // the operation has completed with failure, the error is returned and op.Done will return true.
  2461  // If Poll succeeds and the operation has completed successfully,
  2462  // op.Done will return true, and the response of the operation is returned.
  2463  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2464  func (op *DeleteFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeleteFeatureValuesResponse, error) {
  2465  	var resp aiplatformpb.DeleteFeatureValuesResponse
  2466  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  2467  		return nil, err
  2468  	}
  2469  	if !op.Done() {
  2470  		return nil, nil
  2471  	}
  2472  	return &resp, nil
  2473  }
  2474  
  2475  // Metadata returns metadata associated with the long-running operation.
  2476  // Metadata itself does not contact the server, but Poll does.
  2477  // To get the latest metadata, call this method after a successful call to Poll.
  2478  // If the metadata is not available, the returned metadata and error are both nil.
  2479  func (op *DeleteFeatureValuesOperation) Metadata() (*aiplatformpb.DeleteFeatureValuesOperationMetadata, error) {
  2480  	var meta aiplatformpb.DeleteFeatureValuesOperationMetadata
  2481  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2482  		return nil, nil
  2483  	} else if err != nil {
  2484  		return nil, err
  2485  	}
  2486  	return &meta, nil
  2487  }
  2488  
  2489  // Done reports whether the long-running operation has completed.
  2490  func (op *DeleteFeatureValuesOperation) Done() bool {
  2491  	return op.lro.Done()
  2492  }
  2493  
  2494  // Name returns the name of the long-running operation.
  2495  // The name is assigned by the server and is unique within the service from which the operation is created.
  2496  func (op *DeleteFeatureValuesOperation) Name() string {
  2497  	return op.lro.Name()
  2498  }
  2499  
  2500  // DeleteFeatureViewOperation manages a long-running operation from DeleteFeatureView.
  2501  type DeleteFeatureViewOperation struct {
  2502  	lro *longrunning.Operation
  2503  }
  2504  
  2505  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2506  //
  2507  // See documentation of Poll for error-handling information.
  2508  func (op *DeleteFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2509  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2510  }
  2511  
  2512  // Poll fetches the latest state of the long-running operation.
  2513  //
  2514  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2515  //
  2516  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2517  // the operation has completed with failure, the error is returned and op.Done will return true.
  2518  // If Poll succeeds and the operation has completed successfully,
  2519  // op.Done will return true, and the response of the operation is returned.
  2520  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2521  func (op *DeleteFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2522  	return op.lro.Poll(ctx, nil, opts...)
  2523  }
  2524  
  2525  // Metadata returns metadata associated with the long-running operation.
  2526  // Metadata itself does not contact the server, but Poll does.
  2527  // To get the latest metadata, call this method after a successful call to Poll.
  2528  // If the metadata is not available, the returned metadata and error are both nil.
  2529  func (op *DeleteFeatureViewOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2530  	var meta aiplatformpb.DeleteOperationMetadata
  2531  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2532  		return nil, nil
  2533  	} else if err != nil {
  2534  		return nil, err
  2535  	}
  2536  	return &meta, nil
  2537  }
  2538  
  2539  // Done reports whether the long-running operation has completed.
  2540  func (op *DeleteFeatureViewOperation) Done() bool {
  2541  	return op.lro.Done()
  2542  }
  2543  
  2544  // Name returns the name of the long-running operation.
  2545  // The name is assigned by the server and is unique within the service from which the operation is created.
  2546  func (op *DeleteFeatureViewOperation) Name() string {
  2547  	return op.lro.Name()
  2548  }
  2549  
  2550  // DeleteFeaturestoreOperation manages a long-running operation from DeleteFeaturestore.
  2551  type DeleteFeaturestoreOperation struct {
  2552  	lro *longrunning.Operation
  2553  }
  2554  
  2555  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2556  //
  2557  // See documentation of Poll for error-handling information.
  2558  func (op *DeleteFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2559  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2560  }
  2561  
  2562  // Poll fetches the latest state of the long-running operation.
  2563  //
  2564  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2565  //
  2566  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2567  // the operation has completed with failure, the error is returned and op.Done will return true.
  2568  // If Poll succeeds and the operation has completed successfully,
  2569  // op.Done will return true, and the response of the operation is returned.
  2570  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2571  func (op *DeleteFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2572  	return op.lro.Poll(ctx, nil, opts...)
  2573  }
  2574  
  2575  // Metadata returns metadata associated with the long-running operation.
  2576  // Metadata itself does not contact the server, but Poll does.
  2577  // To get the latest metadata, call this method after a successful call to Poll.
  2578  // If the metadata is not available, the returned metadata and error are both nil.
  2579  func (op *DeleteFeaturestoreOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2580  	var meta aiplatformpb.DeleteOperationMetadata
  2581  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2582  		return nil, nil
  2583  	} else if err != nil {
  2584  		return nil, err
  2585  	}
  2586  	return &meta, nil
  2587  }
  2588  
  2589  // Done reports whether the long-running operation has completed.
  2590  func (op *DeleteFeaturestoreOperation) Done() bool {
  2591  	return op.lro.Done()
  2592  }
  2593  
  2594  // Name returns the name of the long-running operation.
  2595  // The name is assigned by the server and is unique within the service from which the operation is created.
  2596  func (op *DeleteFeaturestoreOperation) Name() string {
  2597  	return op.lro.Name()
  2598  }
  2599  
  2600  // DeleteHyperparameterTuningJobOperation manages a long-running operation from DeleteHyperparameterTuningJob.
  2601  type DeleteHyperparameterTuningJobOperation struct {
  2602  	lro *longrunning.Operation
  2603  }
  2604  
  2605  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2606  //
  2607  // See documentation of Poll for error-handling information.
  2608  func (op *DeleteHyperparameterTuningJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2609  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2610  }
  2611  
  2612  // Poll fetches the latest state of the long-running operation.
  2613  //
  2614  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2615  //
  2616  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2617  // the operation has completed with failure, the error is returned and op.Done will return true.
  2618  // If Poll succeeds and the operation has completed successfully,
  2619  // op.Done will return true, and the response of the operation is returned.
  2620  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2621  func (op *DeleteHyperparameterTuningJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2622  	return op.lro.Poll(ctx, nil, opts...)
  2623  }
  2624  
  2625  // Metadata returns metadata associated with the long-running operation.
  2626  // Metadata itself does not contact the server, but Poll does.
  2627  // To get the latest metadata, call this method after a successful call to Poll.
  2628  // If the metadata is not available, the returned metadata and error are both nil.
  2629  func (op *DeleteHyperparameterTuningJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2630  	var meta aiplatformpb.DeleteOperationMetadata
  2631  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2632  		return nil, nil
  2633  	} else if err != nil {
  2634  		return nil, err
  2635  	}
  2636  	return &meta, nil
  2637  }
  2638  
  2639  // Done reports whether the long-running operation has completed.
  2640  func (op *DeleteHyperparameterTuningJobOperation) Done() bool {
  2641  	return op.lro.Done()
  2642  }
  2643  
  2644  // Name returns the name of the long-running operation.
  2645  // The name is assigned by the server and is unique within the service from which the operation is created.
  2646  func (op *DeleteHyperparameterTuningJobOperation) Name() string {
  2647  	return op.lro.Name()
  2648  }
  2649  
  2650  // DeleteIndexEndpointOperation manages a long-running operation from DeleteIndexEndpoint.
  2651  type DeleteIndexEndpointOperation struct {
  2652  	lro *longrunning.Operation
  2653  }
  2654  
  2655  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2656  //
  2657  // See documentation of Poll for error-handling information.
  2658  func (op *DeleteIndexEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2659  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2660  }
  2661  
  2662  // Poll fetches the latest state of the long-running operation.
  2663  //
  2664  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2665  //
  2666  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2667  // the operation has completed with failure, the error is returned and op.Done will return true.
  2668  // If Poll succeeds and the operation has completed successfully,
  2669  // op.Done will return true, and the response of the operation is returned.
  2670  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2671  func (op *DeleteIndexEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2672  	return op.lro.Poll(ctx, nil, opts...)
  2673  }
  2674  
  2675  // Metadata returns metadata associated with the long-running operation.
  2676  // Metadata itself does not contact the server, but Poll does.
  2677  // To get the latest metadata, call this method after a successful call to Poll.
  2678  // If the metadata is not available, the returned metadata and error are both nil.
  2679  func (op *DeleteIndexEndpointOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2680  	var meta aiplatformpb.DeleteOperationMetadata
  2681  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2682  		return nil, nil
  2683  	} else if err != nil {
  2684  		return nil, err
  2685  	}
  2686  	return &meta, nil
  2687  }
  2688  
  2689  // Done reports whether the long-running operation has completed.
  2690  func (op *DeleteIndexEndpointOperation) Done() bool {
  2691  	return op.lro.Done()
  2692  }
  2693  
  2694  // Name returns the name of the long-running operation.
  2695  // The name is assigned by the server and is unique within the service from which the operation is created.
  2696  func (op *DeleteIndexEndpointOperation) Name() string {
  2697  	return op.lro.Name()
  2698  }
  2699  
  2700  // DeleteIndexOperation manages a long-running operation from DeleteIndex.
  2701  type DeleteIndexOperation struct {
  2702  	lro *longrunning.Operation
  2703  }
  2704  
  2705  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2706  //
  2707  // See documentation of Poll for error-handling information.
  2708  func (op *DeleteIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2709  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2710  }
  2711  
  2712  // Poll fetches the latest state of the long-running operation.
  2713  //
  2714  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2715  //
  2716  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2717  // the operation has completed with failure, the error is returned and op.Done will return true.
  2718  // If Poll succeeds and the operation has completed successfully,
  2719  // op.Done will return true, and the response of the operation is returned.
  2720  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2721  func (op *DeleteIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2722  	return op.lro.Poll(ctx, nil, opts...)
  2723  }
  2724  
  2725  // Metadata returns metadata associated with the long-running operation.
  2726  // Metadata itself does not contact the server, but Poll does.
  2727  // To get the latest metadata, call this method after a successful call to Poll.
  2728  // If the metadata is not available, the returned metadata and error are both nil.
  2729  func (op *DeleteIndexOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2730  	var meta aiplatformpb.DeleteOperationMetadata
  2731  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2732  		return nil, nil
  2733  	} else if err != nil {
  2734  		return nil, err
  2735  	}
  2736  	return &meta, nil
  2737  }
  2738  
  2739  // Done reports whether the long-running operation has completed.
  2740  func (op *DeleteIndexOperation) Done() bool {
  2741  	return op.lro.Done()
  2742  }
  2743  
  2744  // Name returns the name of the long-running operation.
  2745  // The name is assigned by the server and is unique within the service from which the operation is created.
  2746  func (op *DeleteIndexOperation) Name() string {
  2747  	return op.lro.Name()
  2748  }
  2749  
  2750  // DeleteMetadataStoreOperation manages a long-running operation from DeleteMetadataStore.
  2751  type DeleteMetadataStoreOperation struct {
  2752  	lro *longrunning.Operation
  2753  }
  2754  
  2755  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2756  //
  2757  // See documentation of Poll for error-handling information.
  2758  func (op *DeleteMetadataStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2759  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2760  }
  2761  
  2762  // Poll fetches the latest state of the long-running operation.
  2763  //
  2764  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2765  //
  2766  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2767  // the operation has completed with failure, the error is returned and op.Done will return true.
  2768  // If Poll succeeds and the operation has completed successfully,
  2769  // op.Done will return true, and the response of the operation is returned.
  2770  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2771  func (op *DeleteMetadataStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2772  	return op.lro.Poll(ctx, nil, opts...)
  2773  }
  2774  
  2775  // Metadata returns metadata associated with the long-running operation.
  2776  // Metadata itself does not contact the server, but Poll does.
  2777  // To get the latest metadata, call this method after a successful call to Poll.
  2778  // If the metadata is not available, the returned metadata and error are both nil.
  2779  func (op *DeleteMetadataStoreOperation) Metadata() (*aiplatformpb.DeleteMetadataStoreOperationMetadata, error) {
  2780  	var meta aiplatformpb.DeleteMetadataStoreOperationMetadata
  2781  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2782  		return nil, nil
  2783  	} else if err != nil {
  2784  		return nil, err
  2785  	}
  2786  	return &meta, nil
  2787  }
  2788  
  2789  // Done reports whether the long-running operation has completed.
  2790  func (op *DeleteMetadataStoreOperation) Done() bool {
  2791  	return op.lro.Done()
  2792  }
  2793  
  2794  // Name returns the name of the long-running operation.
  2795  // The name is assigned by the server and is unique within the service from which the operation is created.
  2796  func (op *DeleteMetadataStoreOperation) Name() string {
  2797  	return op.lro.Name()
  2798  }
  2799  
  2800  // DeleteModelDeploymentMonitoringJobOperation manages a long-running operation from DeleteModelDeploymentMonitoringJob.
  2801  type DeleteModelDeploymentMonitoringJobOperation struct {
  2802  	lro *longrunning.Operation
  2803  }
  2804  
  2805  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2806  //
  2807  // See documentation of Poll for error-handling information.
  2808  func (op *DeleteModelDeploymentMonitoringJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2809  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2810  }
  2811  
  2812  // Poll fetches the latest state of the long-running operation.
  2813  //
  2814  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2815  //
  2816  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2817  // the operation has completed with failure, the error is returned and op.Done will return true.
  2818  // If Poll succeeds and the operation has completed successfully,
  2819  // op.Done will return true, and the response of the operation is returned.
  2820  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2821  func (op *DeleteModelDeploymentMonitoringJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2822  	return op.lro.Poll(ctx, nil, opts...)
  2823  }
  2824  
  2825  // Metadata returns metadata associated with the long-running operation.
  2826  // Metadata itself does not contact the server, but Poll does.
  2827  // To get the latest metadata, call this method after a successful call to Poll.
  2828  // If the metadata is not available, the returned metadata and error are both nil.
  2829  func (op *DeleteModelDeploymentMonitoringJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2830  	var meta aiplatformpb.DeleteOperationMetadata
  2831  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2832  		return nil, nil
  2833  	} else if err != nil {
  2834  		return nil, err
  2835  	}
  2836  	return &meta, nil
  2837  }
  2838  
  2839  // Done reports whether the long-running operation has completed.
  2840  func (op *DeleteModelDeploymentMonitoringJobOperation) Done() bool {
  2841  	return op.lro.Done()
  2842  }
  2843  
  2844  // Name returns the name of the long-running operation.
  2845  // The name is assigned by the server and is unique within the service from which the operation is created.
  2846  func (op *DeleteModelDeploymentMonitoringJobOperation) Name() string {
  2847  	return op.lro.Name()
  2848  }
  2849  
  2850  // DeleteModelOperation manages a long-running operation from DeleteModel.
  2851  type DeleteModelOperation struct {
  2852  	lro *longrunning.Operation
  2853  }
  2854  
  2855  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2856  //
  2857  // See documentation of Poll for error-handling information.
  2858  func (op *DeleteModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2859  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2860  }
  2861  
  2862  // Poll fetches the latest state of the long-running operation.
  2863  //
  2864  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2865  //
  2866  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2867  // the operation has completed with failure, the error is returned and op.Done will return true.
  2868  // If Poll succeeds and the operation has completed successfully,
  2869  // op.Done will return true, and the response of the operation is returned.
  2870  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2871  func (op *DeleteModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2872  	return op.lro.Poll(ctx, nil, opts...)
  2873  }
  2874  
  2875  // Metadata returns metadata associated with the long-running operation.
  2876  // Metadata itself does not contact the server, but Poll does.
  2877  // To get the latest metadata, call this method after a successful call to Poll.
  2878  // If the metadata is not available, the returned metadata and error are both nil.
  2879  func (op *DeleteModelOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2880  	var meta aiplatformpb.DeleteOperationMetadata
  2881  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2882  		return nil, nil
  2883  	} else if err != nil {
  2884  		return nil, err
  2885  	}
  2886  	return &meta, nil
  2887  }
  2888  
  2889  // Done reports whether the long-running operation has completed.
  2890  func (op *DeleteModelOperation) Done() bool {
  2891  	return op.lro.Done()
  2892  }
  2893  
  2894  // Name returns the name of the long-running operation.
  2895  // The name is assigned by the server and is unique within the service from which the operation is created.
  2896  func (op *DeleteModelOperation) Name() string {
  2897  	return op.lro.Name()
  2898  }
  2899  
  2900  // DeleteModelVersionOperation manages a long-running operation from DeleteModelVersion.
  2901  type DeleteModelVersionOperation struct {
  2902  	lro *longrunning.Operation
  2903  }
  2904  
  2905  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2906  //
  2907  // See documentation of Poll for error-handling information.
  2908  func (op *DeleteModelVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2909  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2910  }
  2911  
  2912  // Poll fetches the latest state of the long-running operation.
  2913  //
  2914  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2915  //
  2916  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2917  // the operation has completed with failure, the error is returned and op.Done will return true.
  2918  // If Poll succeeds and the operation has completed successfully,
  2919  // op.Done will return true, and the response of the operation is returned.
  2920  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2921  func (op *DeleteModelVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2922  	return op.lro.Poll(ctx, nil, opts...)
  2923  }
  2924  
  2925  // Metadata returns metadata associated with the long-running operation.
  2926  // Metadata itself does not contact the server, but Poll does.
  2927  // To get the latest metadata, call this method after a successful call to Poll.
  2928  // If the metadata is not available, the returned metadata and error are both nil.
  2929  func (op *DeleteModelVersionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2930  	var meta aiplatformpb.DeleteOperationMetadata
  2931  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2932  		return nil, nil
  2933  	} else if err != nil {
  2934  		return nil, err
  2935  	}
  2936  	return &meta, nil
  2937  }
  2938  
  2939  // Done reports whether the long-running operation has completed.
  2940  func (op *DeleteModelVersionOperation) Done() bool {
  2941  	return op.lro.Done()
  2942  }
  2943  
  2944  // Name returns the name of the long-running operation.
  2945  // The name is assigned by the server and is unique within the service from which the operation is created.
  2946  func (op *DeleteModelVersionOperation) Name() string {
  2947  	return op.lro.Name()
  2948  }
  2949  
  2950  // DeleteNasJobOperation manages a long-running operation from DeleteNasJob.
  2951  type DeleteNasJobOperation struct {
  2952  	lro *longrunning.Operation
  2953  }
  2954  
  2955  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2956  //
  2957  // See documentation of Poll for error-handling information.
  2958  func (op *DeleteNasJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2959  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2960  }
  2961  
  2962  // Poll fetches the latest state of the long-running operation.
  2963  //
  2964  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2965  //
  2966  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2967  // the operation has completed with failure, the error is returned and op.Done will return true.
  2968  // If Poll succeeds and the operation has completed successfully,
  2969  // op.Done will return true, and the response of the operation is returned.
  2970  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2971  func (op *DeleteNasJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2972  	return op.lro.Poll(ctx, nil, opts...)
  2973  }
  2974  
  2975  // Metadata returns metadata associated with the long-running operation.
  2976  // Metadata itself does not contact the server, but Poll does.
  2977  // To get the latest metadata, call this method after a successful call to Poll.
  2978  // If the metadata is not available, the returned metadata and error are both nil.
  2979  func (op *DeleteNasJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2980  	var meta aiplatformpb.DeleteOperationMetadata
  2981  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2982  		return nil, nil
  2983  	} else if err != nil {
  2984  		return nil, err
  2985  	}
  2986  	return &meta, nil
  2987  }
  2988  
  2989  // Done reports whether the long-running operation has completed.
  2990  func (op *DeleteNasJobOperation) Done() bool {
  2991  	return op.lro.Done()
  2992  }
  2993  
  2994  // Name returns the name of the long-running operation.
  2995  // The name is assigned by the server and is unique within the service from which the operation is created.
  2996  func (op *DeleteNasJobOperation) Name() string {
  2997  	return op.lro.Name()
  2998  }
  2999  
  3000  // DeleteNotebookExecutionJobOperation manages a long-running operation from DeleteNotebookExecutionJob.
  3001  type DeleteNotebookExecutionJobOperation struct {
  3002  	lro *longrunning.Operation
  3003  }
  3004  
  3005  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3006  //
  3007  // See documentation of Poll for error-handling information.
  3008  func (op *DeleteNotebookExecutionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3009  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3010  }
  3011  
  3012  // Poll fetches the latest state of the long-running operation.
  3013  //
  3014  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3015  //
  3016  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3017  // the operation has completed with failure, the error is returned and op.Done will return true.
  3018  // If Poll succeeds and the operation has completed successfully,
  3019  // op.Done will return true, and the response of the operation is returned.
  3020  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3021  func (op *DeleteNotebookExecutionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3022  	return op.lro.Poll(ctx, nil, opts...)
  3023  }
  3024  
  3025  // Metadata returns metadata associated with the long-running operation.
  3026  // Metadata itself does not contact the server, but Poll does.
  3027  // To get the latest metadata, call this method after a successful call to Poll.
  3028  // If the metadata is not available, the returned metadata and error are both nil.
  3029  func (op *DeleteNotebookExecutionJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3030  	var meta aiplatformpb.DeleteOperationMetadata
  3031  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3032  		return nil, nil
  3033  	} else if err != nil {
  3034  		return nil, err
  3035  	}
  3036  	return &meta, nil
  3037  }
  3038  
  3039  // Done reports whether the long-running operation has completed.
  3040  func (op *DeleteNotebookExecutionJobOperation) Done() bool {
  3041  	return op.lro.Done()
  3042  }
  3043  
  3044  // Name returns the name of the long-running operation.
  3045  // The name is assigned by the server and is unique within the service from which the operation is created.
  3046  func (op *DeleteNotebookExecutionJobOperation) Name() string {
  3047  	return op.lro.Name()
  3048  }
  3049  
  3050  // DeleteNotebookRuntimeOperation manages a long-running operation from DeleteNotebookRuntime.
  3051  type DeleteNotebookRuntimeOperation struct {
  3052  	lro *longrunning.Operation
  3053  }
  3054  
  3055  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3056  //
  3057  // See documentation of Poll for error-handling information.
  3058  func (op *DeleteNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3059  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3060  }
  3061  
  3062  // Poll fetches the latest state of the long-running operation.
  3063  //
  3064  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3065  //
  3066  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3067  // the operation has completed with failure, the error is returned and op.Done will return true.
  3068  // If Poll succeeds and the operation has completed successfully,
  3069  // op.Done will return true, and the response of the operation is returned.
  3070  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3071  func (op *DeleteNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3072  	return op.lro.Poll(ctx, nil, opts...)
  3073  }
  3074  
  3075  // Metadata returns metadata associated with the long-running operation.
  3076  // Metadata itself does not contact the server, but Poll does.
  3077  // To get the latest metadata, call this method after a successful call to Poll.
  3078  // If the metadata is not available, the returned metadata and error are both nil.
  3079  func (op *DeleteNotebookRuntimeOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3080  	var meta aiplatformpb.DeleteOperationMetadata
  3081  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3082  		return nil, nil
  3083  	} else if err != nil {
  3084  		return nil, err
  3085  	}
  3086  	return &meta, nil
  3087  }
  3088  
  3089  // Done reports whether the long-running operation has completed.
  3090  func (op *DeleteNotebookRuntimeOperation) Done() bool {
  3091  	return op.lro.Done()
  3092  }
  3093  
  3094  // Name returns the name of the long-running operation.
  3095  // The name is assigned by the server and is unique within the service from which the operation is created.
  3096  func (op *DeleteNotebookRuntimeOperation) Name() string {
  3097  	return op.lro.Name()
  3098  }
  3099  
  3100  // DeleteNotebookRuntimeTemplateOperation manages a long-running operation from DeleteNotebookRuntimeTemplate.
  3101  type DeleteNotebookRuntimeTemplateOperation struct {
  3102  	lro *longrunning.Operation
  3103  }
  3104  
  3105  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3106  //
  3107  // See documentation of Poll for error-handling information.
  3108  func (op *DeleteNotebookRuntimeTemplateOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3109  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3110  }
  3111  
  3112  // Poll fetches the latest state of the long-running operation.
  3113  //
  3114  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3115  //
  3116  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3117  // the operation has completed with failure, the error is returned and op.Done will return true.
  3118  // If Poll succeeds and the operation has completed successfully,
  3119  // op.Done will return true, and the response of the operation is returned.
  3120  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3121  func (op *DeleteNotebookRuntimeTemplateOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3122  	return op.lro.Poll(ctx, nil, opts...)
  3123  }
  3124  
  3125  // Metadata returns metadata associated with the long-running operation.
  3126  // Metadata itself does not contact the server, but Poll does.
  3127  // To get the latest metadata, call this method after a successful call to Poll.
  3128  // If the metadata is not available, the returned metadata and error are both nil.
  3129  func (op *DeleteNotebookRuntimeTemplateOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3130  	var meta aiplatformpb.DeleteOperationMetadata
  3131  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3132  		return nil, nil
  3133  	} else if err != nil {
  3134  		return nil, err
  3135  	}
  3136  	return &meta, nil
  3137  }
  3138  
  3139  // Done reports whether the long-running operation has completed.
  3140  func (op *DeleteNotebookRuntimeTemplateOperation) Done() bool {
  3141  	return op.lro.Done()
  3142  }
  3143  
  3144  // Name returns the name of the long-running operation.
  3145  // The name is assigned by the server and is unique within the service from which the operation is created.
  3146  func (op *DeleteNotebookRuntimeTemplateOperation) Name() string {
  3147  	return op.lro.Name()
  3148  }
  3149  
  3150  // DeletePersistentResourceOperation manages a long-running operation from DeletePersistentResource.
  3151  type DeletePersistentResourceOperation struct {
  3152  	lro *longrunning.Operation
  3153  }
  3154  
  3155  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3156  //
  3157  // See documentation of Poll for error-handling information.
  3158  func (op *DeletePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3159  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3160  }
  3161  
  3162  // Poll fetches the latest state of the long-running operation.
  3163  //
  3164  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3165  //
  3166  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3167  // the operation has completed with failure, the error is returned and op.Done will return true.
  3168  // If Poll succeeds and the operation has completed successfully,
  3169  // op.Done will return true, and the response of the operation is returned.
  3170  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3171  func (op *DeletePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3172  	return op.lro.Poll(ctx, nil, opts...)
  3173  }
  3174  
  3175  // Metadata returns metadata associated with the long-running operation.
  3176  // Metadata itself does not contact the server, but Poll does.
  3177  // To get the latest metadata, call this method after a successful call to Poll.
  3178  // If the metadata is not available, the returned metadata and error are both nil.
  3179  func (op *DeletePersistentResourceOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3180  	var meta aiplatformpb.DeleteOperationMetadata
  3181  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3182  		return nil, nil
  3183  	} else if err != nil {
  3184  		return nil, err
  3185  	}
  3186  	return &meta, nil
  3187  }
  3188  
  3189  // Done reports whether the long-running operation has completed.
  3190  func (op *DeletePersistentResourceOperation) Done() bool {
  3191  	return op.lro.Done()
  3192  }
  3193  
  3194  // Name returns the name of the long-running operation.
  3195  // The name is assigned by the server and is unique within the service from which the operation is created.
  3196  func (op *DeletePersistentResourceOperation) Name() string {
  3197  	return op.lro.Name()
  3198  }
  3199  
  3200  // DeletePipelineJobOperation manages a long-running operation from DeletePipelineJob.
  3201  type DeletePipelineJobOperation struct {
  3202  	lro *longrunning.Operation
  3203  }
  3204  
  3205  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3206  //
  3207  // See documentation of Poll for error-handling information.
  3208  func (op *DeletePipelineJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3209  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3210  }
  3211  
  3212  // Poll fetches the latest state of the long-running operation.
  3213  //
  3214  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3215  //
  3216  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3217  // the operation has completed with failure, the error is returned and op.Done will return true.
  3218  // If Poll succeeds and the operation has completed successfully,
  3219  // op.Done will return true, and the response of the operation is returned.
  3220  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3221  func (op *DeletePipelineJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3222  	return op.lro.Poll(ctx, nil, opts...)
  3223  }
  3224  
  3225  // Metadata returns metadata associated with the long-running operation.
  3226  // Metadata itself does not contact the server, but Poll does.
  3227  // To get the latest metadata, call this method after a successful call to Poll.
  3228  // If the metadata is not available, the returned metadata and error are both nil.
  3229  func (op *DeletePipelineJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3230  	var meta aiplatformpb.DeleteOperationMetadata
  3231  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3232  		return nil, nil
  3233  	} else if err != nil {
  3234  		return nil, err
  3235  	}
  3236  	return &meta, nil
  3237  }
  3238  
  3239  // Done reports whether the long-running operation has completed.
  3240  func (op *DeletePipelineJobOperation) Done() bool {
  3241  	return op.lro.Done()
  3242  }
  3243  
  3244  // Name returns the name of the long-running operation.
  3245  // The name is assigned by the server and is unique within the service from which the operation is created.
  3246  func (op *DeletePipelineJobOperation) Name() string {
  3247  	return op.lro.Name()
  3248  }
  3249  
  3250  // DeleteRagCorpusOperation manages a long-running operation from DeleteRagCorpus.
  3251  type DeleteRagCorpusOperation struct {
  3252  	lro *longrunning.Operation
  3253  }
  3254  
  3255  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3256  //
  3257  // See documentation of Poll for error-handling information.
  3258  func (op *DeleteRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3259  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3260  }
  3261  
  3262  // Poll fetches the latest state of the long-running operation.
  3263  //
  3264  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3265  //
  3266  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3267  // the operation has completed with failure, the error is returned and op.Done will return true.
  3268  // If Poll succeeds and the operation has completed successfully,
  3269  // op.Done will return true, and the response of the operation is returned.
  3270  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3271  func (op *DeleteRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3272  	return op.lro.Poll(ctx, nil, opts...)
  3273  }
  3274  
  3275  // Metadata returns metadata associated with the long-running operation.
  3276  // Metadata itself does not contact the server, but Poll does.
  3277  // To get the latest metadata, call this method after a successful call to Poll.
  3278  // If the metadata is not available, the returned metadata and error are both nil.
  3279  func (op *DeleteRagCorpusOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3280  	var meta aiplatformpb.DeleteOperationMetadata
  3281  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3282  		return nil, nil
  3283  	} else if err != nil {
  3284  		return nil, err
  3285  	}
  3286  	return &meta, nil
  3287  }
  3288  
  3289  // Done reports whether the long-running operation has completed.
  3290  func (op *DeleteRagCorpusOperation) Done() bool {
  3291  	return op.lro.Done()
  3292  }
  3293  
  3294  // Name returns the name of the long-running operation.
  3295  // The name is assigned by the server and is unique within the service from which the operation is created.
  3296  func (op *DeleteRagCorpusOperation) Name() string {
  3297  	return op.lro.Name()
  3298  }
  3299  
  3300  // DeleteRagFileOperation manages a long-running operation from DeleteRagFile.
  3301  type DeleteRagFileOperation struct {
  3302  	lro *longrunning.Operation
  3303  }
  3304  
  3305  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3306  //
  3307  // See documentation of Poll for error-handling information.
  3308  func (op *DeleteRagFileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3309  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3310  }
  3311  
  3312  // Poll fetches the latest state of the long-running operation.
  3313  //
  3314  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3315  //
  3316  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3317  // the operation has completed with failure, the error is returned and op.Done will return true.
  3318  // If Poll succeeds and the operation has completed successfully,
  3319  // op.Done will return true, and the response of the operation is returned.
  3320  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3321  func (op *DeleteRagFileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3322  	return op.lro.Poll(ctx, nil, opts...)
  3323  }
  3324  
  3325  // Metadata returns metadata associated with the long-running operation.
  3326  // Metadata itself does not contact the server, but Poll does.
  3327  // To get the latest metadata, call this method after a successful call to Poll.
  3328  // If the metadata is not available, the returned metadata and error are both nil.
  3329  func (op *DeleteRagFileOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3330  	var meta aiplatformpb.DeleteOperationMetadata
  3331  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3332  		return nil, nil
  3333  	} else if err != nil {
  3334  		return nil, err
  3335  	}
  3336  	return &meta, nil
  3337  }
  3338  
  3339  // Done reports whether the long-running operation has completed.
  3340  func (op *DeleteRagFileOperation) Done() bool {
  3341  	return op.lro.Done()
  3342  }
  3343  
  3344  // Name returns the name of the long-running operation.
  3345  // The name is assigned by the server and is unique within the service from which the operation is created.
  3346  func (op *DeleteRagFileOperation) Name() string {
  3347  	return op.lro.Name()
  3348  }
  3349  
  3350  // DeleteReasoningEngineOperation manages a long-running operation from DeleteReasoningEngine.
  3351  type DeleteReasoningEngineOperation struct {
  3352  	lro *longrunning.Operation
  3353  }
  3354  
  3355  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3356  //
  3357  // See documentation of Poll for error-handling information.
  3358  func (op *DeleteReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3359  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3360  }
  3361  
  3362  // Poll fetches the latest state of the long-running operation.
  3363  //
  3364  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3365  //
  3366  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3367  // the operation has completed with failure, the error is returned and op.Done will return true.
  3368  // If Poll succeeds and the operation has completed successfully,
  3369  // op.Done will return true, and the response of the operation is returned.
  3370  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3371  func (op *DeleteReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3372  	return op.lro.Poll(ctx, nil, opts...)
  3373  }
  3374  
  3375  // Metadata returns metadata associated with the long-running operation.
  3376  // Metadata itself does not contact the server, but Poll does.
  3377  // To get the latest metadata, call this method after a successful call to Poll.
  3378  // If the metadata is not available, the returned metadata and error are both nil.
  3379  func (op *DeleteReasoningEngineOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3380  	var meta aiplatformpb.DeleteOperationMetadata
  3381  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3382  		return nil, nil
  3383  	} else if err != nil {
  3384  		return nil, err
  3385  	}
  3386  	return &meta, nil
  3387  }
  3388  
  3389  // Done reports whether the long-running operation has completed.
  3390  func (op *DeleteReasoningEngineOperation) Done() bool {
  3391  	return op.lro.Done()
  3392  }
  3393  
  3394  // Name returns the name of the long-running operation.
  3395  // The name is assigned by the server and is unique within the service from which the operation is created.
  3396  func (op *DeleteReasoningEngineOperation) Name() string {
  3397  	return op.lro.Name()
  3398  }
  3399  
  3400  // DeleteSavedQueryOperation manages a long-running operation from DeleteSavedQuery.
  3401  type DeleteSavedQueryOperation struct {
  3402  	lro *longrunning.Operation
  3403  }
  3404  
  3405  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3406  //
  3407  // See documentation of Poll for error-handling information.
  3408  func (op *DeleteSavedQueryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3409  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3410  }
  3411  
  3412  // Poll fetches the latest state of the long-running operation.
  3413  //
  3414  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3415  //
  3416  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3417  // the operation has completed with failure, the error is returned and op.Done will return true.
  3418  // If Poll succeeds and the operation has completed successfully,
  3419  // op.Done will return true, and the response of the operation is returned.
  3420  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3421  func (op *DeleteSavedQueryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3422  	return op.lro.Poll(ctx, nil, opts...)
  3423  }
  3424  
  3425  // Metadata returns metadata associated with the long-running operation.
  3426  // Metadata itself does not contact the server, but Poll does.
  3427  // To get the latest metadata, call this method after a successful call to Poll.
  3428  // If the metadata is not available, the returned metadata and error are both nil.
  3429  func (op *DeleteSavedQueryOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3430  	var meta aiplatformpb.DeleteOperationMetadata
  3431  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3432  		return nil, nil
  3433  	} else if err != nil {
  3434  		return nil, err
  3435  	}
  3436  	return &meta, nil
  3437  }
  3438  
  3439  // Done reports whether the long-running operation has completed.
  3440  func (op *DeleteSavedQueryOperation) Done() bool {
  3441  	return op.lro.Done()
  3442  }
  3443  
  3444  // Name returns the name of the long-running operation.
  3445  // The name is assigned by the server and is unique within the service from which the operation is created.
  3446  func (op *DeleteSavedQueryOperation) Name() string {
  3447  	return op.lro.Name()
  3448  }
  3449  
  3450  // DeleteScheduleOperation manages a long-running operation from DeleteSchedule.
  3451  type DeleteScheduleOperation struct {
  3452  	lro *longrunning.Operation
  3453  }
  3454  
  3455  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3456  //
  3457  // See documentation of Poll for error-handling information.
  3458  func (op *DeleteScheduleOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3459  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3460  }
  3461  
  3462  // Poll fetches the latest state of the long-running operation.
  3463  //
  3464  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3465  //
  3466  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3467  // the operation has completed with failure, the error is returned and op.Done will return true.
  3468  // If Poll succeeds and the operation has completed successfully,
  3469  // op.Done will return true, and the response of the operation is returned.
  3470  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3471  func (op *DeleteScheduleOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3472  	return op.lro.Poll(ctx, nil, opts...)
  3473  }
  3474  
  3475  // Metadata returns metadata associated with the long-running operation.
  3476  // Metadata itself does not contact the server, but Poll does.
  3477  // To get the latest metadata, call this method after a successful call to Poll.
  3478  // If the metadata is not available, the returned metadata and error are both nil.
  3479  func (op *DeleteScheduleOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3480  	var meta aiplatformpb.DeleteOperationMetadata
  3481  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3482  		return nil, nil
  3483  	} else if err != nil {
  3484  		return nil, err
  3485  	}
  3486  	return &meta, nil
  3487  }
  3488  
  3489  // Done reports whether the long-running operation has completed.
  3490  func (op *DeleteScheduleOperation) Done() bool {
  3491  	return op.lro.Done()
  3492  }
  3493  
  3494  // Name returns the name of the long-running operation.
  3495  // The name is assigned by the server and is unique within the service from which the operation is created.
  3496  func (op *DeleteScheduleOperation) Name() string {
  3497  	return op.lro.Name()
  3498  }
  3499  
  3500  // DeleteSpecialistPoolOperation manages a long-running operation from DeleteSpecialistPool.
  3501  type DeleteSpecialistPoolOperation struct {
  3502  	lro *longrunning.Operation
  3503  }
  3504  
  3505  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3506  //
  3507  // See documentation of Poll for error-handling information.
  3508  func (op *DeleteSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3509  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3510  }
  3511  
  3512  // Poll fetches the latest state of the long-running operation.
  3513  //
  3514  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3515  //
  3516  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3517  // the operation has completed with failure, the error is returned and op.Done will return true.
  3518  // If Poll succeeds and the operation has completed successfully,
  3519  // op.Done will return true, and the response of the operation is returned.
  3520  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3521  func (op *DeleteSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3522  	return op.lro.Poll(ctx, nil, opts...)
  3523  }
  3524  
  3525  // Metadata returns metadata associated with the long-running operation.
  3526  // Metadata itself does not contact the server, but Poll does.
  3527  // To get the latest metadata, call this method after a successful call to Poll.
  3528  // If the metadata is not available, the returned metadata and error are both nil.
  3529  func (op *DeleteSpecialistPoolOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3530  	var meta aiplatformpb.DeleteOperationMetadata
  3531  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3532  		return nil, nil
  3533  	} else if err != nil {
  3534  		return nil, err
  3535  	}
  3536  	return &meta, nil
  3537  }
  3538  
  3539  // Done reports whether the long-running operation has completed.
  3540  func (op *DeleteSpecialistPoolOperation) Done() bool {
  3541  	return op.lro.Done()
  3542  }
  3543  
  3544  // Name returns the name of the long-running operation.
  3545  // The name is assigned by the server and is unique within the service from which the operation is created.
  3546  func (op *DeleteSpecialistPoolOperation) Name() string {
  3547  	return op.lro.Name()
  3548  }
  3549  
  3550  // DeleteTensorboardExperimentOperation manages a long-running operation from DeleteTensorboardExperiment.
  3551  type DeleteTensorboardExperimentOperation struct {
  3552  	lro *longrunning.Operation
  3553  }
  3554  
  3555  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3556  //
  3557  // See documentation of Poll for error-handling information.
  3558  func (op *DeleteTensorboardExperimentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3559  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3560  }
  3561  
  3562  // Poll fetches the latest state of the long-running operation.
  3563  //
  3564  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3565  //
  3566  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3567  // the operation has completed with failure, the error is returned and op.Done will return true.
  3568  // If Poll succeeds and the operation has completed successfully,
  3569  // op.Done will return true, and the response of the operation is returned.
  3570  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3571  func (op *DeleteTensorboardExperimentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3572  	return op.lro.Poll(ctx, nil, opts...)
  3573  }
  3574  
  3575  // Metadata returns metadata associated with the long-running operation.
  3576  // Metadata itself does not contact the server, but Poll does.
  3577  // To get the latest metadata, call this method after a successful call to Poll.
  3578  // If the metadata is not available, the returned metadata and error are both nil.
  3579  func (op *DeleteTensorboardExperimentOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3580  	var meta aiplatformpb.DeleteOperationMetadata
  3581  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3582  		return nil, nil
  3583  	} else if err != nil {
  3584  		return nil, err
  3585  	}
  3586  	return &meta, nil
  3587  }
  3588  
  3589  // Done reports whether the long-running operation has completed.
  3590  func (op *DeleteTensorboardExperimentOperation) Done() bool {
  3591  	return op.lro.Done()
  3592  }
  3593  
  3594  // Name returns the name of the long-running operation.
  3595  // The name is assigned by the server and is unique within the service from which the operation is created.
  3596  func (op *DeleteTensorboardExperimentOperation) Name() string {
  3597  	return op.lro.Name()
  3598  }
  3599  
  3600  // DeleteTensorboardOperation manages a long-running operation from DeleteTensorboard.
  3601  type DeleteTensorboardOperation struct {
  3602  	lro *longrunning.Operation
  3603  }
  3604  
  3605  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3606  //
  3607  // See documentation of Poll for error-handling information.
  3608  func (op *DeleteTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3609  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3610  }
  3611  
  3612  // Poll fetches the latest state of the long-running operation.
  3613  //
  3614  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3615  //
  3616  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3617  // the operation has completed with failure, the error is returned and op.Done will return true.
  3618  // If Poll succeeds and the operation has completed successfully,
  3619  // op.Done will return true, and the response of the operation is returned.
  3620  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3621  func (op *DeleteTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3622  	return op.lro.Poll(ctx, nil, opts...)
  3623  }
  3624  
  3625  // Metadata returns metadata associated with the long-running operation.
  3626  // Metadata itself does not contact the server, but Poll does.
  3627  // To get the latest metadata, call this method after a successful call to Poll.
  3628  // If the metadata is not available, the returned metadata and error are both nil.
  3629  func (op *DeleteTensorboardOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3630  	var meta aiplatformpb.DeleteOperationMetadata
  3631  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3632  		return nil, nil
  3633  	} else if err != nil {
  3634  		return nil, err
  3635  	}
  3636  	return &meta, nil
  3637  }
  3638  
  3639  // Done reports whether the long-running operation has completed.
  3640  func (op *DeleteTensorboardOperation) Done() bool {
  3641  	return op.lro.Done()
  3642  }
  3643  
  3644  // Name returns the name of the long-running operation.
  3645  // The name is assigned by the server and is unique within the service from which the operation is created.
  3646  func (op *DeleteTensorboardOperation) Name() string {
  3647  	return op.lro.Name()
  3648  }
  3649  
  3650  // DeleteTensorboardRunOperation manages a long-running operation from DeleteTensorboardRun.
  3651  type DeleteTensorboardRunOperation struct {
  3652  	lro *longrunning.Operation
  3653  }
  3654  
  3655  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3656  //
  3657  // See documentation of Poll for error-handling information.
  3658  func (op *DeleteTensorboardRunOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3659  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3660  }
  3661  
  3662  // Poll fetches the latest state of the long-running operation.
  3663  //
  3664  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3665  //
  3666  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3667  // the operation has completed with failure, the error is returned and op.Done will return true.
  3668  // If Poll succeeds and the operation has completed successfully,
  3669  // op.Done will return true, and the response of the operation is returned.
  3670  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3671  func (op *DeleteTensorboardRunOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3672  	return op.lro.Poll(ctx, nil, opts...)
  3673  }
  3674  
  3675  // Metadata returns metadata associated with the long-running operation.
  3676  // Metadata itself does not contact the server, but Poll does.
  3677  // To get the latest metadata, call this method after a successful call to Poll.
  3678  // If the metadata is not available, the returned metadata and error are both nil.
  3679  func (op *DeleteTensorboardRunOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3680  	var meta aiplatformpb.DeleteOperationMetadata
  3681  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3682  		return nil, nil
  3683  	} else if err != nil {
  3684  		return nil, err
  3685  	}
  3686  	return &meta, nil
  3687  }
  3688  
  3689  // Done reports whether the long-running operation has completed.
  3690  func (op *DeleteTensorboardRunOperation) Done() bool {
  3691  	return op.lro.Done()
  3692  }
  3693  
  3694  // Name returns the name of the long-running operation.
  3695  // The name is assigned by the server and is unique within the service from which the operation is created.
  3696  func (op *DeleteTensorboardRunOperation) Name() string {
  3697  	return op.lro.Name()
  3698  }
  3699  
  3700  // DeleteTensorboardTimeSeriesOperation manages a long-running operation from DeleteTensorboardTimeSeries.
  3701  type DeleteTensorboardTimeSeriesOperation struct {
  3702  	lro *longrunning.Operation
  3703  }
  3704  
  3705  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3706  //
  3707  // See documentation of Poll for error-handling information.
  3708  func (op *DeleteTensorboardTimeSeriesOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3709  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3710  }
  3711  
  3712  // Poll fetches the latest state of the long-running operation.
  3713  //
  3714  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3715  //
  3716  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3717  // the operation has completed with failure, the error is returned and op.Done will return true.
  3718  // If Poll succeeds and the operation has completed successfully,
  3719  // op.Done will return true, and the response of the operation is returned.
  3720  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3721  func (op *DeleteTensorboardTimeSeriesOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3722  	return op.lro.Poll(ctx, nil, opts...)
  3723  }
  3724  
  3725  // Metadata returns metadata associated with the long-running operation.
  3726  // Metadata itself does not contact the server, but Poll does.
  3727  // To get the latest metadata, call this method after a successful call to Poll.
  3728  // If the metadata is not available, the returned metadata and error are both nil.
  3729  func (op *DeleteTensorboardTimeSeriesOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3730  	var meta aiplatformpb.DeleteOperationMetadata
  3731  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3732  		return nil, nil
  3733  	} else if err != nil {
  3734  		return nil, err
  3735  	}
  3736  	return &meta, nil
  3737  }
  3738  
  3739  // Done reports whether the long-running operation has completed.
  3740  func (op *DeleteTensorboardTimeSeriesOperation) Done() bool {
  3741  	return op.lro.Done()
  3742  }
  3743  
  3744  // Name returns the name of the long-running operation.
  3745  // The name is assigned by the server and is unique within the service from which the operation is created.
  3746  func (op *DeleteTensorboardTimeSeriesOperation) Name() string {
  3747  	return op.lro.Name()
  3748  }
  3749  
  3750  // DeleteTrainingPipelineOperation manages a long-running operation from DeleteTrainingPipeline.
  3751  type DeleteTrainingPipelineOperation struct {
  3752  	lro *longrunning.Operation
  3753  }
  3754  
  3755  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3756  //
  3757  // See documentation of Poll for error-handling information.
  3758  func (op *DeleteTrainingPipelineOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3759  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3760  }
  3761  
  3762  // Poll fetches the latest state of the long-running operation.
  3763  //
  3764  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3765  //
  3766  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3767  // the operation has completed with failure, the error is returned and op.Done will return true.
  3768  // If Poll succeeds and the operation has completed successfully,
  3769  // op.Done will return true, and the response of the operation is returned.
  3770  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3771  func (op *DeleteTrainingPipelineOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3772  	return op.lro.Poll(ctx, nil, opts...)
  3773  }
  3774  
  3775  // Metadata returns metadata associated with the long-running operation.
  3776  // Metadata itself does not contact the server, but Poll does.
  3777  // To get the latest metadata, call this method after a successful call to Poll.
  3778  // If the metadata is not available, the returned metadata and error are both nil.
  3779  func (op *DeleteTrainingPipelineOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3780  	var meta aiplatformpb.DeleteOperationMetadata
  3781  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3782  		return nil, nil
  3783  	} else if err != nil {
  3784  		return nil, err
  3785  	}
  3786  	return &meta, nil
  3787  }
  3788  
  3789  // Done reports whether the long-running operation has completed.
  3790  func (op *DeleteTrainingPipelineOperation) Done() bool {
  3791  	return op.lro.Done()
  3792  }
  3793  
  3794  // Name returns the name of the long-running operation.
  3795  // The name is assigned by the server and is unique within the service from which the operation is created.
  3796  func (op *DeleteTrainingPipelineOperation) Name() string {
  3797  	return op.lro.Name()
  3798  }
  3799  
  3800  // DeployIndexOperation manages a long-running operation from DeployIndex.
  3801  type DeployIndexOperation struct {
  3802  	lro *longrunning.Operation
  3803  }
  3804  
  3805  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3806  //
  3807  // See documentation of Poll for error-handling information.
  3808  func (op *DeployIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployIndexResponse, error) {
  3809  	var resp aiplatformpb.DeployIndexResponse
  3810  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  3811  		return nil, err
  3812  	}
  3813  	return &resp, nil
  3814  }
  3815  
  3816  // Poll fetches the latest state of the long-running operation.
  3817  //
  3818  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3819  //
  3820  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3821  // the operation has completed with failure, the error is returned and op.Done will return true.
  3822  // If Poll succeeds and the operation has completed successfully,
  3823  // op.Done will return true, and the response of the operation is returned.
  3824  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3825  func (op *DeployIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployIndexResponse, error) {
  3826  	var resp aiplatformpb.DeployIndexResponse
  3827  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  3828  		return nil, err
  3829  	}
  3830  	if !op.Done() {
  3831  		return nil, nil
  3832  	}
  3833  	return &resp, nil
  3834  }
  3835  
  3836  // Metadata returns metadata associated with the long-running operation.
  3837  // Metadata itself does not contact the server, but Poll does.
  3838  // To get the latest metadata, call this method after a successful call to Poll.
  3839  // If the metadata is not available, the returned metadata and error are both nil.
  3840  func (op *DeployIndexOperation) Metadata() (*aiplatformpb.DeployIndexOperationMetadata, error) {
  3841  	var meta aiplatformpb.DeployIndexOperationMetadata
  3842  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3843  		return nil, nil
  3844  	} else if err != nil {
  3845  		return nil, err
  3846  	}
  3847  	return &meta, nil
  3848  }
  3849  
  3850  // Done reports whether the long-running operation has completed.
  3851  func (op *DeployIndexOperation) Done() bool {
  3852  	return op.lro.Done()
  3853  }
  3854  
  3855  // Name returns the name of the long-running operation.
  3856  // The name is assigned by the server and is unique within the service from which the operation is created.
  3857  func (op *DeployIndexOperation) Name() string {
  3858  	return op.lro.Name()
  3859  }
  3860  
  3861  // DeployModelOperation manages a long-running operation from DeployModel.
  3862  type DeployModelOperation struct {
  3863  	lro *longrunning.Operation
  3864  }
  3865  
  3866  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3867  //
  3868  // See documentation of Poll for error-handling information.
  3869  func (op *DeployModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployModelResponse, error) {
  3870  	var resp aiplatformpb.DeployModelResponse
  3871  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  3872  		return nil, err
  3873  	}
  3874  	return &resp, nil
  3875  }
  3876  
  3877  // Poll fetches the latest state of the long-running operation.
  3878  //
  3879  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3880  //
  3881  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3882  // the operation has completed with failure, the error is returned and op.Done will return true.
  3883  // If Poll succeeds and the operation has completed successfully,
  3884  // op.Done will return true, and the response of the operation is returned.
  3885  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3886  func (op *DeployModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployModelResponse, error) {
  3887  	var resp aiplatformpb.DeployModelResponse
  3888  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  3889  		return nil, err
  3890  	}
  3891  	if !op.Done() {
  3892  		return nil, nil
  3893  	}
  3894  	return &resp, nil
  3895  }
  3896  
  3897  // Metadata returns metadata associated with the long-running operation.
  3898  // Metadata itself does not contact the server, but Poll does.
  3899  // To get the latest metadata, call this method after a successful call to Poll.
  3900  // If the metadata is not available, the returned metadata and error are both nil.
  3901  func (op *DeployModelOperation) Metadata() (*aiplatformpb.DeployModelOperationMetadata, error) {
  3902  	var meta aiplatformpb.DeployModelOperationMetadata
  3903  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3904  		return nil, nil
  3905  	} else if err != nil {
  3906  		return nil, err
  3907  	}
  3908  	return &meta, nil
  3909  }
  3910  
  3911  // Done reports whether the long-running operation has completed.
  3912  func (op *DeployModelOperation) Done() bool {
  3913  	return op.lro.Done()
  3914  }
  3915  
  3916  // Name returns the name of the long-running operation.
  3917  // The name is assigned by the server and is unique within the service from which the operation is created.
  3918  func (op *DeployModelOperation) Name() string {
  3919  	return op.lro.Name()
  3920  }
  3921  
  3922  // DeployOperation manages a long-running operation from Deploy.
  3923  type DeployOperation struct {
  3924  	lro *longrunning.Operation
  3925  }
  3926  
  3927  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3928  //
  3929  // See documentation of Poll for error-handling information.
  3930  func (op *DeployOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployResponse, error) {
  3931  	var resp aiplatformpb.DeployResponse
  3932  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  3933  		return nil, err
  3934  	}
  3935  	return &resp, nil
  3936  }
  3937  
  3938  // Poll fetches the latest state of the long-running operation.
  3939  //
  3940  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3941  //
  3942  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3943  // the operation has completed with failure, the error is returned and op.Done will return true.
  3944  // If Poll succeeds and the operation has completed successfully,
  3945  // op.Done will return true, and the response of the operation is returned.
  3946  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3947  func (op *DeployOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployResponse, error) {
  3948  	var resp aiplatformpb.DeployResponse
  3949  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  3950  		return nil, err
  3951  	}
  3952  	if !op.Done() {
  3953  		return nil, nil
  3954  	}
  3955  	return &resp, nil
  3956  }
  3957  
  3958  // Metadata returns metadata associated with the long-running operation.
  3959  // Metadata itself does not contact the server, but Poll does.
  3960  // To get the latest metadata, call this method after a successful call to Poll.
  3961  // If the metadata is not available, the returned metadata and error are both nil.
  3962  func (op *DeployOperation) Metadata() (*aiplatformpb.DeployOperationMetadata, error) {
  3963  	var meta aiplatformpb.DeployOperationMetadata
  3964  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3965  		return nil, nil
  3966  	} else if err != nil {
  3967  		return nil, err
  3968  	}
  3969  	return &meta, nil
  3970  }
  3971  
  3972  // Done reports whether the long-running operation has completed.
  3973  func (op *DeployOperation) Done() bool {
  3974  	return op.lro.Done()
  3975  }
  3976  
  3977  // Name returns the name of the long-running operation.
  3978  // The name is assigned by the server and is unique within the service from which the operation is created.
  3979  func (op *DeployOperation) Name() string {
  3980  	return op.lro.Name()
  3981  }
  3982  
  3983  // ExportDataOperation manages a long-running operation from ExportData.
  3984  type ExportDataOperation struct {
  3985  	lro *longrunning.Operation
  3986  }
  3987  
  3988  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3989  //
  3990  // See documentation of Poll for error-handling information.
  3991  func (op *ExportDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportDataResponse, error) {
  3992  	var resp aiplatformpb.ExportDataResponse
  3993  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  3994  		return nil, err
  3995  	}
  3996  	return &resp, nil
  3997  }
  3998  
  3999  // Poll fetches the latest state of the long-running operation.
  4000  //
  4001  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4002  //
  4003  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4004  // the operation has completed with failure, the error is returned and op.Done will return true.
  4005  // If Poll succeeds and the operation has completed successfully,
  4006  // op.Done will return true, and the response of the operation is returned.
  4007  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4008  func (op *ExportDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportDataResponse, error) {
  4009  	var resp aiplatformpb.ExportDataResponse
  4010  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4011  		return nil, err
  4012  	}
  4013  	if !op.Done() {
  4014  		return nil, nil
  4015  	}
  4016  	return &resp, nil
  4017  }
  4018  
  4019  // Metadata returns metadata associated with the long-running operation.
  4020  // Metadata itself does not contact the server, but Poll does.
  4021  // To get the latest metadata, call this method after a successful call to Poll.
  4022  // If the metadata is not available, the returned metadata and error are both nil.
  4023  func (op *ExportDataOperation) Metadata() (*aiplatformpb.ExportDataOperationMetadata, error) {
  4024  	var meta aiplatformpb.ExportDataOperationMetadata
  4025  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4026  		return nil, nil
  4027  	} else if err != nil {
  4028  		return nil, err
  4029  	}
  4030  	return &meta, nil
  4031  }
  4032  
  4033  // Done reports whether the long-running operation has completed.
  4034  func (op *ExportDataOperation) Done() bool {
  4035  	return op.lro.Done()
  4036  }
  4037  
  4038  // Name returns the name of the long-running operation.
  4039  // The name is assigned by the server and is unique within the service from which the operation is created.
  4040  func (op *ExportDataOperation) Name() string {
  4041  	return op.lro.Name()
  4042  }
  4043  
  4044  // ExportFeatureValuesOperation manages a long-running operation from ExportFeatureValues.
  4045  type ExportFeatureValuesOperation struct {
  4046  	lro *longrunning.Operation
  4047  }
  4048  
  4049  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4050  //
  4051  // See documentation of Poll for error-handling information.
  4052  func (op *ExportFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportFeatureValuesResponse, error) {
  4053  	var resp aiplatformpb.ExportFeatureValuesResponse
  4054  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4055  		return nil, err
  4056  	}
  4057  	return &resp, nil
  4058  }
  4059  
  4060  // Poll fetches the latest state of the long-running operation.
  4061  //
  4062  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4063  //
  4064  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4065  // the operation has completed with failure, the error is returned and op.Done will return true.
  4066  // If Poll succeeds and the operation has completed successfully,
  4067  // op.Done will return true, and the response of the operation is returned.
  4068  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4069  func (op *ExportFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportFeatureValuesResponse, error) {
  4070  	var resp aiplatformpb.ExportFeatureValuesResponse
  4071  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4072  		return nil, err
  4073  	}
  4074  	if !op.Done() {
  4075  		return nil, nil
  4076  	}
  4077  	return &resp, nil
  4078  }
  4079  
  4080  // Metadata returns metadata associated with the long-running operation.
  4081  // Metadata itself does not contact the server, but Poll does.
  4082  // To get the latest metadata, call this method after a successful call to Poll.
  4083  // If the metadata is not available, the returned metadata and error are both nil.
  4084  func (op *ExportFeatureValuesOperation) Metadata() (*aiplatformpb.ExportFeatureValuesOperationMetadata, error) {
  4085  	var meta aiplatformpb.ExportFeatureValuesOperationMetadata
  4086  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4087  		return nil, nil
  4088  	} else if err != nil {
  4089  		return nil, err
  4090  	}
  4091  	return &meta, nil
  4092  }
  4093  
  4094  // Done reports whether the long-running operation has completed.
  4095  func (op *ExportFeatureValuesOperation) Done() bool {
  4096  	return op.lro.Done()
  4097  }
  4098  
  4099  // Name returns the name of the long-running operation.
  4100  // The name is assigned by the server and is unique within the service from which the operation is created.
  4101  func (op *ExportFeatureValuesOperation) Name() string {
  4102  	return op.lro.Name()
  4103  }
  4104  
  4105  // ExportModelOperation manages a long-running operation from ExportModel.
  4106  type ExportModelOperation struct {
  4107  	lro *longrunning.Operation
  4108  }
  4109  
  4110  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4111  //
  4112  // See documentation of Poll for error-handling information.
  4113  func (op *ExportModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportModelResponse, error) {
  4114  	var resp aiplatformpb.ExportModelResponse
  4115  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4116  		return nil, err
  4117  	}
  4118  	return &resp, nil
  4119  }
  4120  
  4121  // Poll fetches the latest state of the long-running operation.
  4122  //
  4123  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4124  //
  4125  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4126  // the operation has completed with failure, the error is returned and op.Done will return true.
  4127  // If Poll succeeds and the operation has completed successfully,
  4128  // op.Done will return true, and the response of the operation is returned.
  4129  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4130  func (op *ExportModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportModelResponse, error) {
  4131  	var resp aiplatformpb.ExportModelResponse
  4132  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4133  		return nil, err
  4134  	}
  4135  	if !op.Done() {
  4136  		return nil, nil
  4137  	}
  4138  	return &resp, nil
  4139  }
  4140  
  4141  // Metadata returns metadata associated with the long-running operation.
  4142  // Metadata itself does not contact the server, but Poll does.
  4143  // To get the latest metadata, call this method after a successful call to Poll.
  4144  // If the metadata is not available, the returned metadata and error are both nil.
  4145  func (op *ExportModelOperation) Metadata() (*aiplatformpb.ExportModelOperationMetadata, error) {
  4146  	var meta aiplatformpb.ExportModelOperationMetadata
  4147  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4148  		return nil, nil
  4149  	} else if err != nil {
  4150  		return nil, err
  4151  	}
  4152  	return &meta, nil
  4153  }
  4154  
  4155  // Done reports whether the long-running operation has completed.
  4156  func (op *ExportModelOperation) Done() bool {
  4157  	return op.lro.Done()
  4158  }
  4159  
  4160  // Name returns the name of the long-running operation.
  4161  // The name is assigned by the server and is unique within the service from which the operation is created.
  4162  func (op *ExportModelOperation) Name() string {
  4163  	return op.lro.Name()
  4164  }
  4165  
  4166  // ImportDataOperation manages a long-running operation from ImportData.
  4167  type ImportDataOperation struct {
  4168  	lro *longrunning.Operation
  4169  }
  4170  
  4171  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4172  //
  4173  // See documentation of Poll for error-handling information.
  4174  func (op *ImportDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportDataResponse, error) {
  4175  	var resp aiplatformpb.ImportDataResponse
  4176  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4177  		return nil, err
  4178  	}
  4179  	return &resp, nil
  4180  }
  4181  
  4182  // Poll fetches the latest state of the long-running operation.
  4183  //
  4184  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4185  //
  4186  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4187  // the operation has completed with failure, the error is returned and op.Done will return true.
  4188  // If Poll succeeds and the operation has completed successfully,
  4189  // op.Done will return true, and the response of the operation is returned.
  4190  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4191  func (op *ImportDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportDataResponse, error) {
  4192  	var resp aiplatformpb.ImportDataResponse
  4193  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4194  		return nil, err
  4195  	}
  4196  	if !op.Done() {
  4197  		return nil, nil
  4198  	}
  4199  	return &resp, nil
  4200  }
  4201  
  4202  // Metadata returns metadata associated with the long-running operation.
  4203  // Metadata itself does not contact the server, but Poll does.
  4204  // To get the latest metadata, call this method after a successful call to Poll.
  4205  // If the metadata is not available, the returned metadata and error are both nil.
  4206  func (op *ImportDataOperation) Metadata() (*aiplatformpb.ImportDataOperationMetadata, error) {
  4207  	var meta aiplatformpb.ImportDataOperationMetadata
  4208  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4209  		return nil, nil
  4210  	} else if err != nil {
  4211  		return nil, err
  4212  	}
  4213  	return &meta, nil
  4214  }
  4215  
  4216  // Done reports whether the long-running operation has completed.
  4217  func (op *ImportDataOperation) Done() bool {
  4218  	return op.lro.Done()
  4219  }
  4220  
  4221  // Name returns the name of the long-running operation.
  4222  // The name is assigned by the server and is unique within the service from which the operation is created.
  4223  func (op *ImportDataOperation) Name() string {
  4224  	return op.lro.Name()
  4225  }
  4226  
  4227  // ImportFeatureValuesOperation manages a long-running operation from ImportFeatureValues.
  4228  type ImportFeatureValuesOperation struct {
  4229  	lro *longrunning.Operation
  4230  }
  4231  
  4232  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4233  //
  4234  // See documentation of Poll for error-handling information.
  4235  func (op *ImportFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportFeatureValuesResponse, error) {
  4236  	var resp aiplatformpb.ImportFeatureValuesResponse
  4237  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4238  		return nil, err
  4239  	}
  4240  	return &resp, nil
  4241  }
  4242  
  4243  // Poll fetches the latest state of the long-running operation.
  4244  //
  4245  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4246  //
  4247  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4248  // the operation has completed with failure, the error is returned and op.Done will return true.
  4249  // If Poll succeeds and the operation has completed successfully,
  4250  // op.Done will return true, and the response of the operation is returned.
  4251  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4252  func (op *ImportFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportFeatureValuesResponse, error) {
  4253  	var resp aiplatformpb.ImportFeatureValuesResponse
  4254  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4255  		return nil, err
  4256  	}
  4257  	if !op.Done() {
  4258  		return nil, nil
  4259  	}
  4260  	return &resp, nil
  4261  }
  4262  
  4263  // Metadata returns metadata associated with the long-running operation.
  4264  // Metadata itself does not contact the server, but Poll does.
  4265  // To get the latest metadata, call this method after a successful call to Poll.
  4266  // If the metadata is not available, the returned metadata and error are both nil.
  4267  func (op *ImportFeatureValuesOperation) Metadata() (*aiplatformpb.ImportFeatureValuesOperationMetadata, error) {
  4268  	var meta aiplatformpb.ImportFeatureValuesOperationMetadata
  4269  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4270  		return nil, nil
  4271  	} else if err != nil {
  4272  		return nil, err
  4273  	}
  4274  	return &meta, nil
  4275  }
  4276  
  4277  // Done reports whether the long-running operation has completed.
  4278  func (op *ImportFeatureValuesOperation) Done() bool {
  4279  	return op.lro.Done()
  4280  }
  4281  
  4282  // Name returns the name of the long-running operation.
  4283  // The name is assigned by the server and is unique within the service from which the operation is created.
  4284  func (op *ImportFeatureValuesOperation) Name() string {
  4285  	return op.lro.Name()
  4286  }
  4287  
  4288  // ImportRagFilesOperation manages a long-running operation from ImportRagFiles.
  4289  type ImportRagFilesOperation struct {
  4290  	lro *longrunning.Operation
  4291  }
  4292  
  4293  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4294  //
  4295  // See documentation of Poll for error-handling information.
  4296  func (op *ImportRagFilesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportRagFilesResponse, error) {
  4297  	var resp aiplatformpb.ImportRagFilesResponse
  4298  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4299  		return nil, err
  4300  	}
  4301  	return &resp, nil
  4302  }
  4303  
  4304  // Poll fetches the latest state of the long-running operation.
  4305  //
  4306  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4307  //
  4308  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4309  // the operation has completed with failure, the error is returned and op.Done will return true.
  4310  // If Poll succeeds and the operation has completed successfully,
  4311  // op.Done will return true, and the response of the operation is returned.
  4312  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4313  func (op *ImportRagFilesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportRagFilesResponse, error) {
  4314  	var resp aiplatformpb.ImportRagFilesResponse
  4315  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4316  		return nil, err
  4317  	}
  4318  	if !op.Done() {
  4319  		return nil, nil
  4320  	}
  4321  	return &resp, nil
  4322  }
  4323  
  4324  // Metadata returns metadata associated with the long-running operation.
  4325  // Metadata itself does not contact the server, but Poll does.
  4326  // To get the latest metadata, call this method after a successful call to Poll.
  4327  // If the metadata is not available, the returned metadata and error are both nil.
  4328  func (op *ImportRagFilesOperation) Metadata() (*aiplatformpb.ImportRagFilesOperationMetadata, error) {
  4329  	var meta aiplatformpb.ImportRagFilesOperationMetadata
  4330  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4331  		return nil, nil
  4332  	} else if err != nil {
  4333  		return nil, err
  4334  	}
  4335  	return &meta, nil
  4336  }
  4337  
  4338  // Done reports whether the long-running operation has completed.
  4339  func (op *ImportRagFilesOperation) Done() bool {
  4340  	return op.lro.Done()
  4341  }
  4342  
  4343  // Name returns the name of the long-running operation.
  4344  // The name is assigned by the server and is unique within the service from which the operation is created.
  4345  func (op *ImportRagFilesOperation) Name() string {
  4346  	return op.lro.Name()
  4347  }
  4348  
  4349  // MutateDeployedIndexOperation manages a long-running operation from MutateDeployedIndex.
  4350  type MutateDeployedIndexOperation struct {
  4351  	lro *longrunning.Operation
  4352  }
  4353  
  4354  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4355  //
  4356  // See documentation of Poll for error-handling information.
  4357  func (op *MutateDeployedIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedIndexResponse, error) {
  4358  	var resp aiplatformpb.MutateDeployedIndexResponse
  4359  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4360  		return nil, err
  4361  	}
  4362  	return &resp, nil
  4363  }
  4364  
  4365  // Poll fetches the latest state of the long-running operation.
  4366  //
  4367  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4368  //
  4369  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4370  // the operation has completed with failure, the error is returned and op.Done will return true.
  4371  // If Poll succeeds and the operation has completed successfully,
  4372  // op.Done will return true, and the response of the operation is returned.
  4373  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4374  func (op *MutateDeployedIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedIndexResponse, error) {
  4375  	var resp aiplatformpb.MutateDeployedIndexResponse
  4376  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4377  		return nil, err
  4378  	}
  4379  	if !op.Done() {
  4380  		return nil, nil
  4381  	}
  4382  	return &resp, nil
  4383  }
  4384  
  4385  // Metadata returns metadata associated with the long-running operation.
  4386  // Metadata itself does not contact the server, but Poll does.
  4387  // To get the latest metadata, call this method after a successful call to Poll.
  4388  // If the metadata is not available, the returned metadata and error are both nil.
  4389  func (op *MutateDeployedIndexOperation) Metadata() (*aiplatformpb.MutateDeployedIndexOperationMetadata, error) {
  4390  	var meta aiplatformpb.MutateDeployedIndexOperationMetadata
  4391  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4392  		return nil, nil
  4393  	} else if err != nil {
  4394  		return nil, err
  4395  	}
  4396  	return &meta, nil
  4397  }
  4398  
  4399  // Done reports whether the long-running operation has completed.
  4400  func (op *MutateDeployedIndexOperation) Done() bool {
  4401  	return op.lro.Done()
  4402  }
  4403  
  4404  // Name returns the name of the long-running operation.
  4405  // The name is assigned by the server and is unique within the service from which the operation is created.
  4406  func (op *MutateDeployedIndexOperation) Name() string {
  4407  	return op.lro.Name()
  4408  }
  4409  
  4410  // MutateDeployedModelOperation manages a long-running operation from MutateDeployedModel.
  4411  type MutateDeployedModelOperation struct {
  4412  	lro *longrunning.Operation
  4413  }
  4414  
  4415  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4416  //
  4417  // See documentation of Poll for error-handling information.
  4418  func (op *MutateDeployedModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedModelResponse, error) {
  4419  	var resp aiplatformpb.MutateDeployedModelResponse
  4420  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4421  		return nil, err
  4422  	}
  4423  	return &resp, nil
  4424  }
  4425  
  4426  // Poll fetches the latest state of the long-running operation.
  4427  //
  4428  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4429  //
  4430  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4431  // the operation has completed with failure, the error is returned and op.Done will return true.
  4432  // If Poll succeeds and the operation has completed successfully,
  4433  // op.Done will return true, and the response of the operation is returned.
  4434  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4435  func (op *MutateDeployedModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedModelResponse, error) {
  4436  	var resp aiplatformpb.MutateDeployedModelResponse
  4437  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4438  		return nil, err
  4439  	}
  4440  	if !op.Done() {
  4441  		return nil, nil
  4442  	}
  4443  	return &resp, nil
  4444  }
  4445  
  4446  // Metadata returns metadata associated with the long-running operation.
  4447  // Metadata itself does not contact the server, but Poll does.
  4448  // To get the latest metadata, call this method after a successful call to Poll.
  4449  // If the metadata is not available, the returned metadata and error are both nil.
  4450  func (op *MutateDeployedModelOperation) Metadata() (*aiplatformpb.MutateDeployedModelOperationMetadata, error) {
  4451  	var meta aiplatformpb.MutateDeployedModelOperationMetadata
  4452  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4453  		return nil, nil
  4454  	} else if err != nil {
  4455  		return nil, err
  4456  	}
  4457  	return &meta, nil
  4458  }
  4459  
  4460  // Done reports whether the long-running operation has completed.
  4461  func (op *MutateDeployedModelOperation) Done() bool {
  4462  	return op.lro.Done()
  4463  }
  4464  
  4465  // Name returns the name of the long-running operation.
  4466  // The name is assigned by the server and is unique within the service from which the operation is created.
  4467  func (op *MutateDeployedModelOperation) Name() string {
  4468  	return op.lro.Name()
  4469  }
  4470  
  4471  // PurgeArtifactsOperation manages a long-running operation from PurgeArtifacts.
  4472  type PurgeArtifactsOperation struct {
  4473  	lro *longrunning.Operation
  4474  }
  4475  
  4476  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4477  //
  4478  // See documentation of Poll for error-handling information.
  4479  func (op *PurgeArtifactsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeArtifactsResponse, error) {
  4480  	var resp aiplatformpb.PurgeArtifactsResponse
  4481  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4482  		return nil, err
  4483  	}
  4484  	return &resp, nil
  4485  }
  4486  
  4487  // Poll fetches the latest state of the long-running operation.
  4488  //
  4489  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4490  //
  4491  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4492  // the operation has completed with failure, the error is returned and op.Done will return true.
  4493  // If Poll succeeds and the operation has completed successfully,
  4494  // op.Done will return true, and the response of the operation is returned.
  4495  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4496  func (op *PurgeArtifactsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeArtifactsResponse, error) {
  4497  	var resp aiplatformpb.PurgeArtifactsResponse
  4498  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4499  		return nil, err
  4500  	}
  4501  	if !op.Done() {
  4502  		return nil, nil
  4503  	}
  4504  	return &resp, nil
  4505  }
  4506  
  4507  // Metadata returns metadata associated with the long-running operation.
  4508  // Metadata itself does not contact the server, but Poll does.
  4509  // To get the latest metadata, call this method after a successful call to Poll.
  4510  // If the metadata is not available, the returned metadata and error are both nil.
  4511  func (op *PurgeArtifactsOperation) Metadata() (*aiplatformpb.PurgeArtifactsMetadata, error) {
  4512  	var meta aiplatformpb.PurgeArtifactsMetadata
  4513  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4514  		return nil, nil
  4515  	} else if err != nil {
  4516  		return nil, err
  4517  	}
  4518  	return &meta, nil
  4519  }
  4520  
  4521  // Done reports whether the long-running operation has completed.
  4522  func (op *PurgeArtifactsOperation) Done() bool {
  4523  	return op.lro.Done()
  4524  }
  4525  
  4526  // Name returns the name of the long-running operation.
  4527  // The name is assigned by the server and is unique within the service from which the operation is created.
  4528  func (op *PurgeArtifactsOperation) Name() string {
  4529  	return op.lro.Name()
  4530  }
  4531  
  4532  // PurgeContextsOperation manages a long-running operation from PurgeContexts.
  4533  type PurgeContextsOperation struct {
  4534  	lro *longrunning.Operation
  4535  }
  4536  
  4537  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4538  //
  4539  // See documentation of Poll for error-handling information.
  4540  func (op *PurgeContextsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeContextsResponse, error) {
  4541  	var resp aiplatformpb.PurgeContextsResponse
  4542  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4543  		return nil, err
  4544  	}
  4545  	return &resp, nil
  4546  }
  4547  
  4548  // Poll fetches the latest state of the long-running operation.
  4549  //
  4550  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4551  //
  4552  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4553  // the operation has completed with failure, the error is returned and op.Done will return true.
  4554  // If Poll succeeds and the operation has completed successfully,
  4555  // op.Done will return true, and the response of the operation is returned.
  4556  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4557  func (op *PurgeContextsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeContextsResponse, error) {
  4558  	var resp aiplatformpb.PurgeContextsResponse
  4559  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4560  		return nil, err
  4561  	}
  4562  	if !op.Done() {
  4563  		return nil, nil
  4564  	}
  4565  	return &resp, nil
  4566  }
  4567  
  4568  // Metadata returns metadata associated with the long-running operation.
  4569  // Metadata itself does not contact the server, but Poll does.
  4570  // To get the latest metadata, call this method after a successful call to Poll.
  4571  // If the metadata is not available, the returned metadata and error are both nil.
  4572  func (op *PurgeContextsOperation) Metadata() (*aiplatformpb.PurgeContextsMetadata, error) {
  4573  	var meta aiplatformpb.PurgeContextsMetadata
  4574  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4575  		return nil, nil
  4576  	} else if err != nil {
  4577  		return nil, err
  4578  	}
  4579  	return &meta, nil
  4580  }
  4581  
  4582  // Done reports whether the long-running operation has completed.
  4583  func (op *PurgeContextsOperation) Done() bool {
  4584  	return op.lro.Done()
  4585  }
  4586  
  4587  // Name returns the name of the long-running operation.
  4588  // The name is assigned by the server and is unique within the service from which the operation is created.
  4589  func (op *PurgeContextsOperation) Name() string {
  4590  	return op.lro.Name()
  4591  }
  4592  
  4593  // PurgeExecutionsOperation manages a long-running operation from PurgeExecutions.
  4594  type PurgeExecutionsOperation struct {
  4595  	lro *longrunning.Operation
  4596  }
  4597  
  4598  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4599  //
  4600  // See documentation of Poll for error-handling information.
  4601  func (op *PurgeExecutionsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeExecutionsResponse, error) {
  4602  	var resp aiplatformpb.PurgeExecutionsResponse
  4603  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4604  		return nil, err
  4605  	}
  4606  	return &resp, nil
  4607  }
  4608  
  4609  // Poll fetches the latest state of the long-running operation.
  4610  //
  4611  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4612  //
  4613  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4614  // the operation has completed with failure, the error is returned and op.Done will return true.
  4615  // If Poll succeeds and the operation has completed successfully,
  4616  // op.Done will return true, and the response of the operation is returned.
  4617  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4618  func (op *PurgeExecutionsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeExecutionsResponse, error) {
  4619  	var resp aiplatformpb.PurgeExecutionsResponse
  4620  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4621  		return nil, err
  4622  	}
  4623  	if !op.Done() {
  4624  		return nil, nil
  4625  	}
  4626  	return &resp, nil
  4627  }
  4628  
  4629  // Metadata returns metadata associated with the long-running operation.
  4630  // Metadata itself does not contact the server, but Poll does.
  4631  // To get the latest metadata, call this method after a successful call to Poll.
  4632  // If the metadata is not available, the returned metadata and error are both nil.
  4633  func (op *PurgeExecutionsOperation) Metadata() (*aiplatformpb.PurgeExecutionsMetadata, error) {
  4634  	var meta aiplatformpb.PurgeExecutionsMetadata
  4635  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4636  		return nil, nil
  4637  	} else if err != nil {
  4638  		return nil, err
  4639  	}
  4640  	return &meta, nil
  4641  }
  4642  
  4643  // Done reports whether the long-running operation has completed.
  4644  func (op *PurgeExecutionsOperation) Done() bool {
  4645  	return op.lro.Done()
  4646  }
  4647  
  4648  // Name returns the name of the long-running operation.
  4649  // The name is assigned by the server and is unique within the service from which the operation is created.
  4650  func (op *PurgeExecutionsOperation) Name() string {
  4651  	return op.lro.Name()
  4652  }
  4653  
  4654  // RebaseTunedModelOperation manages a long-running operation from RebaseTunedModel.
  4655  type RebaseTunedModelOperation struct {
  4656  	lro *longrunning.Operation
  4657  }
  4658  
  4659  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4660  //
  4661  // See documentation of Poll for error-handling information.
  4662  func (op *RebaseTunedModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.TuningJob, error) {
  4663  	var resp aiplatformpb.TuningJob
  4664  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4665  		return nil, err
  4666  	}
  4667  	return &resp, nil
  4668  }
  4669  
  4670  // Poll fetches the latest state of the long-running operation.
  4671  //
  4672  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4673  //
  4674  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4675  // the operation has completed with failure, the error is returned and op.Done will return true.
  4676  // If Poll succeeds and the operation has completed successfully,
  4677  // op.Done will return true, and the response of the operation is returned.
  4678  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4679  func (op *RebaseTunedModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.TuningJob, error) {
  4680  	var resp aiplatformpb.TuningJob
  4681  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4682  		return nil, err
  4683  	}
  4684  	if !op.Done() {
  4685  		return nil, nil
  4686  	}
  4687  	return &resp, nil
  4688  }
  4689  
  4690  // Metadata returns metadata associated with the long-running operation.
  4691  // Metadata itself does not contact the server, but Poll does.
  4692  // To get the latest metadata, call this method after a successful call to Poll.
  4693  // If the metadata is not available, the returned metadata and error are both nil.
  4694  func (op *RebaseTunedModelOperation) Metadata() (*aiplatformpb.RebaseTunedModelOperationMetadata, error) {
  4695  	var meta aiplatformpb.RebaseTunedModelOperationMetadata
  4696  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4697  		return nil, nil
  4698  	} else if err != nil {
  4699  		return nil, err
  4700  	}
  4701  	return &meta, nil
  4702  }
  4703  
  4704  // Done reports whether the long-running operation has completed.
  4705  func (op *RebaseTunedModelOperation) Done() bool {
  4706  	return op.lro.Done()
  4707  }
  4708  
  4709  // Name returns the name of the long-running operation.
  4710  // The name is assigned by the server and is unique within the service from which the operation is created.
  4711  func (op *RebaseTunedModelOperation) Name() string {
  4712  	return op.lro.Name()
  4713  }
  4714  
  4715  // RebootPersistentResourceOperation manages a long-running operation from RebootPersistentResource.
  4716  type RebootPersistentResourceOperation struct {
  4717  	lro *longrunning.Operation
  4718  }
  4719  
  4720  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4721  //
  4722  // See documentation of Poll for error-handling information.
  4723  func (op *RebootPersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  4724  	var resp aiplatformpb.PersistentResource
  4725  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4726  		return nil, err
  4727  	}
  4728  	return &resp, nil
  4729  }
  4730  
  4731  // Poll fetches the latest state of the long-running operation.
  4732  //
  4733  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4734  //
  4735  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4736  // the operation has completed with failure, the error is returned and op.Done will return true.
  4737  // If Poll succeeds and the operation has completed successfully,
  4738  // op.Done will return true, and the response of the operation is returned.
  4739  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4740  func (op *RebootPersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  4741  	var resp aiplatformpb.PersistentResource
  4742  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4743  		return nil, err
  4744  	}
  4745  	if !op.Done() {
  4746  		return nil, nil
  4747  	}
  4748  	return &resp, nil
  4749  }
  4750  
  4751  // Metadata returns metadata associated with the long-running operation.
  4752  // Metadata itself does not contact the server, but Poll does.
  4753  // To get the latest metadata, call this method after a successful call to Poll.
  4754  // If the metadata is not available, the returned metadata and error are both nil.
  4755  func (op *RebootPersistentResourceOperation) Metadata() (*aiplatformpb.RebootPersistentResourceOperationMetadata, error) {
  4756  	var meta aiplatformpb.RebootPersistentResourceOperationMetadata
  4757  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4758  		return nil, nil
  4759  	} else if err != nil {
  4760  		return nil, err
  4761  	}
  4762  	return &meta, nil
  4763  }
  4764  
  4765  // Done reports whether the long-running operation has completed.
  4766  func (op *RebootPersistentResourceOperation) Done() bool {
  4767  	return op.lro.Done()
  4768  }
  4769  
  4770  // Name returns the name of the long-running operation.
  4771  // The name is assigned by the server and is unique within the service from which the operation is created.
  4772  func (op *RebootPersistentResourceOperation) Name() string {
  4773  	return op.lro.Name()
  4774  }
  4775  
  4776  // RestoreDatasetVersionOperation manages a long-running operation from RestoreDatasetVersion.
  4777  type RestoreDatasetVersionOperation struct {
  4778  	lro *longrunning.Operation
  4779  }
  4780  
  4781  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4782  //
  4783  // See documentation of Poll for error-handling information.
  4784  func (op *RestoreDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
  4785  	var resp aiplatformpb.DatasetVersion
  4786  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4787  		return nil, err
  4788  	}
  4789  	return &resp, nil
  4790  }
  4791  
  4792  // Poll fetches the latest state of the long-running operation.
  4793  //
  4794  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4795  //
  4796  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4797  // the operation has completed with failure, the error is returned and op.Done will return true.
  4798  // If Poll succeeds and the operation has completed successfully,
  4799  // op.Done will return true, and the response of the operation is returned.
  4800  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4801  func (op *RestoreDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
  4802  	var resp aiplatformpb.DatasetVersion
  4803  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4804  		return nil, err
  4805  	}
  4806  	if !op.Done() {
  4807  		return nil, nil
  4808  	}
  4809  	return &resp, nil
  4810  }
  4811  
  4812  // Metadata returns metadata associated with the long-running operation.
  4813  // Metadata itself does not contact the server, but Poll does.
  4814  // To get the latest metadata, call this method after a successful call to Poll.
  4815  // If the metadata is not available, the returned metadata and error are both nil.
  4816  func (op *RestoreDatasetVersionOperation) Metadata() (*aiplatformpb.RestoreDatasetVersionOperationMetadata, error) {
  4817  	var meta aiplatformpb.RestoreDatasetVersionOperationMetadata
  4818  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4819  		return nil, nil
  4820  	} else if err != nil {
  4821  		return nil, err
  4822  	}
  4823  	return &meta, nil
  4824  }
  4825  
  4826  // Done reports whether the long-running operation has completed.
  4827  func (op *RestoreDatasetVersionOperation) Done() bool {
  4828  	return op.lro.Done()
  4829  }
  4830  
  4831  // Name returns the name of the long-running operation.
  4832  // The name is assigned by the server and is unique within the service from which the operation is created.
  4833  func (op *RestoreDatasetVersionOperation) Name() string {
  4834  	return op.lro.Name()
  4835  }
  4836  
  4837  // StartNotebookRuntimeOperation manages a long-running operation from StartNotebookRuntime.
  4838  type StartNotebookRuntimeOperation struct {
  4839  	lro *longrunning.Operation
  4840  }
  4841  
  4842  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4843  //
  4844  // See documentation of Poll for error-handling information.
  4845  func (op *StartNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StartNotebookRuntimeResponse, error) {
  4846  	var resp aiplatformpb.StartNotebookRuntimeResponse
  4847  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4848  		return nil, err
  4849  	}
  4850  	return &resp, nil
  4851  }
  4852  
  4853  // Poll fetches the latest state of the long-running operation.
  4854  //
  4855  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4856  //
  4857  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4858  // the operation has completed with failure, the error is returned and op.Done will return true.
  4859  // If Poll succeeds and the operation has completed successfully,
  4860  // op.Done will return true, and the response of the operation is returned.
  4861  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4862  func (op *StartNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StartNotebookRuntimeResponse, error) {
  4863  	var resp aiplatformpb.StartNotebookRuntimeResponse
  4864  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4865  		return nil, err
  4866  	}
  4867  	if !op.Done() {
  4868  		return nil, nil
  4869  	}
  4870  	return &resp, nil
  4871  }
  4872  
  4873  // Metadata returns metadata associated with the long-running operation.
  4874  // Metadata itself does not contact the server, but Poll does.
  4875  // To get the latest metadata, call this method after a successful call to Poll.
  4876  // If the metadata is not available, the returned metadata and error are both nil.
  4877  func (op *StartNotebookRuntimeOperation) Metadata() (*aiplatformpb.StartNotebookRuntimeOperationMetadata, error) {
  4878  	var meta aiplatformpb.StartNotebookRuntimeOperationMetadata
  4879  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4880  		return nil, nil
  4881  	} else if err != nil {
  4882  		return nil, err
  4883  	}
  4884  	return &meta, nil
  4885  }
  4886  
  4887  // Done reports whether the long-running operation has completed.
  4888  func (op *StartNotebookRuntimeOperation) Done() bool {
  4889  	return op.lro.Done()
  4890  }
  4891  
  4892  // Name returns the name of the long-running operation.
  4893  // The name is assigned by the server and is unique within the service from which the operation is created.
  4894  func (op *StartNotebookRuntimeOperation) Name() string {
  4895  	return op.lro.Name()
  4896  }
  4897  
  4898  // StopNotebookRuntimeOperation manages a long-running operation from StopNotebookRuntime.
  4899  type StopNotebookRuntimeOperation struct {
  4900  	lro *longrunning.Operation
  4901  }
  4902  
  4903  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4904  //
  4905  // See documentation of Poll for error-handling information.
  4906  func (op *StopNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StopNotebookRuntimeResponse, error) {
  4907  	var resp aiplatformpb.StopNotebookRuntimeResponse
  4908  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4909  		return nil, err
  4910  	}
  4911  	return &resp, nil
  4912  }
  4913  
  4914  // Poll fetches the latest state of the long-running operation.
  4915  //
  4916  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4917  //
  4918  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4919  // the operation has completed with failure, the error is returned and op.Done will return true.
  4920  // If Poll succeeds and the operation has completed successfully,
  4921  // op.Done will return true, and the response of the operation is returned.
  4922  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4923  func (op *StopNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StopNotebookRuntimeResponse, error) {
  4924  	var resp aiplatformpb.StopNotebookRuntimeResponse
  4925  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4926  		return nil, err
  4927  	}
  4928  	if !op.Done() {
  4929  		return nil, nil
  4930  	}
  4931  	return &resp, nil
  4932  }
  4933  
  4934  // Metadata returns metadata associated with the long-running operation.
  4935  // Metadata itself does not contact the server, but Poll does.
  4936  // To get the latest metadata, call this method after a successful call to Poll.
  4937  // If the metadata is not available, the returned metadata and error are both nil.
  4938  func (op *StopNotebookRuntimeOperation) Metadata() (*aiplatformpb.StopNotebookRuntimeOperationMetadata, error) {
  4939  	var meta aiplatformpb.StopNotebookRuntimeOperationMetadata
  4940  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4941  		return nil, nil
  4942  	} else if err != nil {
  4943  		return nil, err
  4944  	}
  4945  	return &meta, nil
  4946  }
  4947  
  4948  // Done reports whether the long-running operation has completed.
  4949  func (op *StopNotebookRuntimeOperation) Done() bool {
  4950  	return op.lro.Done()
  4951  }
  4952  
  4953  // Name returns the name of the long-running operation.
  4954  // The name is assigned by the server and is unique within the service from which the operation is created.
  4955  func (op *StopNotebookRuntimeOperation) Name() string {
  4956  	return op.lro.Name()
  4957  }
  4958  
  4959  // SuggestTrialsOperation manages a long-running operation from SuggestTrials.
  4960  type SuggestTrialsOperation struct {
  4961  	lro *longrunning.Operation
  4962  }
  4963  
  4964  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4965  //
  4966  // See documentation of Poll for error-handling information.
  4967  func (op *SuggestTrialsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SuggestTrialsResponse, error) {
  4968  	var resp aiplatformpb.SuggestTrialsResponse
  4969  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4970  		return nil, err
  4971  	}
  4972  	return &resp, nil
  4973  }
  4974  
  4975  // Poll fetches the latest state of the long-running operation.
  4976  //
  4977  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4978  //
  4979  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4980  // the operation has completed with failure, the error is returned and op.Done will return true.
  4981  // If Poll succeeds and the operation has completed successfully,
  4982  // op.Done will return true, and the response of the operation is returned.
  4983  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4984  func (op *SuggestTrialsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SuggestTrialsResponse, error) {
  4985  	var resp aiplatformpb.SuggestTrialsResponse
  4986  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4987  		return nil, err
  4988  	}
  4989  	if !op.Done() {
  4990  		return nil, nil
  4991  	}
  4992  	return &resp, nil
  4993  }
  4994  
  4995  // Metadata returns metadata associated with the long-running operation.
  4996  // Metadata itself does not contact the server, but Poll does.
  4997  // To get the latest metadata, call this method after a successful call to Poll.
  4998  // If the metadata is not available, the returned metadata and error are both nil.
  4999  func (op *SuggestTrialsOperation) Metadata() (*aiplatformpb.SuggestTrialsMetadata, error) {
  5000  	var meta aiplatformpb.SuggestTrialsMetadata
  5001  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5002  		return nil, nil
  5003  	} else if err != nil {
  5004  		return nil, err
  5005  	}
  5006  	return &meta, nil
  5007  }
  5008  
  5009  // Done reports whether the long-running operation has completed.
  5010  func (op *SuggestTrialsOperation) Done() bool {
  5011  	return op.lro.Done()
  5012  }
  5013  
  5014  // Name returns the name of the long-running operation.
  5015  // The name is assigned by the server and is unique within the service from which the operation is created.
  5016  func (op *SuggestTrialsOperation) Name() string {
  5017  	return op.lro.Name()
  5018  }
  5019  
  5020  // UndeployIndexOperation manages a long-running operation from UndeployIndex.
  5021  type UndeployIndexOperation struct {
  5022  	lro *longrunning.Operation
  5023  }
  5024  
  5025  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5026  //
  5027  // See documentation of Poll for error-handling information.
  5028  func (op *UndeployIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployIndexResponse, error) {
  5029  	var resp aiplatformpb.UndeployIndexResponse
  5030  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5031  		return nil, err
  5032  	}
  5033  	return &resp, nil
  5034  }
  5035  
  5036  // Poll fetches the latest state of the long-running operation.
  5037  //
  5038  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5039  //
  5040  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5041  // the operation has completed with failure, the error is returned and op.Done will return true.
  5042  // If Poll succeeds and the operation has completed successfully,
  5043  // op.Done will return true, and the response of the operation is returned.
  5044  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5045  func (op *UndeployIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployIndexResponse, error) {
  5046  	var resp aiplatformpb.UndeployIndexResponse
  5047  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5048  		return nil, err
  5049  	}
  5050  	if !op.Done() {
  5051  		return nil, nil
  5052  	}
  5053  	return &resp, nil
  5054  }
  5055  
  5056  // Metadata returns metadata associated with the long-running operation.
  5057  // Metadata itself does not contact the server, but Poll does.
  5058  // To get the latest metadata, call this method after a successful call to Poll.
  5059  // If the metadata is not available, the returned metadata and error are both nil.
  5060  func (op *UndeployIndexOperation) Metadata() (*aiplatformpb.UndeployIndexOperationMetadata, error) {
  5061  	var meta aiplatformpb.UndeployIndexOperationMetadata
  5062  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5063  		return nil, nil
  5064  	} else if err != nil {
  5065  		return nil, err
  5066  	}
  5067  	return &meta, nil
  5068  }
  5069  
  5070  // Done reports whether the long-running operation has completed.
  5071  func (op *UndeployIndexOperation) Done() bool {
  5072  	return op.lro.Done()
  5073  }
  5074  
  5075  // Name returns the name of the long-running operation.
  5076  // The name is assigned by the server and is unique within the service from which the operation is created.
  5077  func (op *UndeployIndexOperation) Name() string {
  5078  	return op.lro.Name()
  5079  }
  5080  
  5081  // UndeployModelOperation manages a long-running operation from UndeployModel.
  5082  type UndeployModelOperation struct {
  5083  	lro *longrunning.Operation
  5084  }
  5085  
  5086  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5087  //
  5088  // See documentation of Poll for error-handling information.
  5089  func (op *UndeployModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployModelResponse, error) {
  5090  	var resp aiplatformpb.UndeployModelResponse
  5091  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5092  		return nil, err
  5093  	}
  5094  	return &resp, nil
  5095  }
  5096  
  5097  // Poll fetches the latest state of the long-running operation.
  5098  //
  5099  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5100  //
  5101  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5102  // the operation has completed with failure, the error is returned and op.Done will return true.
  5103  // If Poll succeeds and the operation has completed successfully,
  5104  // op.Done will return true, and the response of the operation is returned.
  5105  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5106  func (op *UndeployModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployModelResponse, error) {
  5107  	var resp aiplatformpb.UndeployModelResponse
  5108  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5109  		return nil, err
  5110  	}
  5111  	if !op.Done() {
  5112  		return nil, nil
  5113  	}
  5114  	return &resp, nil
  5115  }
  5116  
  5117  // Metadata returns metadata associated with the long-running operation.
  5118  // Metadata itself does not contact the server, but Poll does.
  5119  // To get the latest metadata, call this method after a successful call to Poll.
  5120  // If the metadata is not available, the returned metadata and error are both nil.
  5121  func (op *UndeployModelOperation) Metadata() (*aiplatformpb.UndeployModelOperationMetadata, error) {
  5122  	var meta aiplatformpb.UndeployModelOperationMetadata
  5123  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5124  		return nil, nil
  5125  	} else if err != nil {
  5126  		return nil, err
  5127  	}
  5128  	return &meta, nil
  5129  }
  5130  
  5131  // Done reports whether the long-running operation has completed.
  5132  func (op *UndeployModelOperation) Done() bool {
  5133  	return op.lro.Done()
  5134  }
  5135  
  5136  // Name returns the name of the long-running operation.
  5137  // The name is assigned by the server and is unique within the service from which the operation is created.
  5138  func (op *UndeployModelOperation) Name() string {
  5139  	return op.lro.Name()
  5140  }
  5141  
  5142  // UpdateDeploymentResourcePoolOperation manages a long-running operation from UpdateDeploymentResourcePool.
  5143  type UpdateDeploymentResourcePoolOperation struct {
  5144  	lro *longrunning.Operation
  5145  }
  5146  
  5147  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5148  //
  5149  // See documentation of Poll for error-handling information.
  5150  func (op *UpdateDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
  5151  	var resp aiplatformpb.DeploymentResourcePool
  5152  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5153  		return nil, err
  5154  	}
  5155  	return &resp, nil
  5156  }
  5157  
  5158  // Poll fetches the latest state of the long-running operation.
  5159  //
  5160  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5161  //
  5162  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5163  // the operation has completed with failure, the error is returned and op.Done will return true.
  5164  // If Poll succeeds and the operation has completed successfully,
  5165  // op.Done will return true, and the response of the operation is returned.
  5166  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5167  func (op *UpdateDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
  5168  	var resp aiplatformpb.DeploymentResourcePool
  5169  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5170  		return nil, err
  5171  	}
  5172  	if !op.Done() {
  5173  		return nil, nil
  5174  	}
  5175  	return &resp, nil
  5176  }
  5177  
  5178  // Metadata returns metadata associated with the long-running operation.
  5179  // Metadata itself does not contact the server, but Poll does.
  5180  // To get the latest metadata, call this method after a successful call to Poll.
  5181  // If the metadata is not available, the returned metadata and error are both nil.
  5182  func (op *UpdateDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.UpdateDeploymentResourcePoolOperationMetadata, error) {
  5183  	var meta aiplatformpb.UpdateDeploymentResourcePoolOperationMetadata
  5184  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5185  		return nil, nil
  5186  	} else if err != nil {
  5187  		return nil, err
  5188  	}
  5189  	return &meta, nil
  5190  }
  5191  
  5192  // Done reports whether the long-running operation has completed.
  5193  func (op *UpdateDeploymentResourcePoolOperation) Done() bool {
  5194  	return op.lro.Done()
  5195  }
  5196  
  5197  // Name returns the name of the long-running operation.
  5198  // The name is assigned by the server and is unique within the service from which the operation is created.
  5199  func (op *UpdateDeploymentResourcePoolOperation) Name() string {
  5200  	return op.lro.Name()
  5201  }
  5202  
  5203  // UpdateEndpointLongRunningOperation manages a long-running operation from UpdateEndpointLongRunning.
  5204  type UpdateEndpointLongRunningOperation struct {
  5205  	lro *longrunning.Operation
  5206  }
  5207  
  5208  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5209  //
  5210  // See documentation of Poll for error-handling information.
  5211  func (op *UpdateEndpointLongRunningOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
  5212  	var resp aiplatformpb.Endpoint
  5213  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5214  		return nil, err
  5215  	}
  5216  	return &resp, nil
  5217  }
  5218  
  5219  // Poll fetches the latest state of the long-running operation.
  5220  //
  5221  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5222  //
  5223  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5224  // the operation has completed with failure, the error is returned and op.Done will return true.
  5225  // If Poll succeeds and the operation has completed successfully,
  5226  // op.Done will return true, and the response of the operation is returned.
  5227  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5228  func (op *UpdateEndpointLongRunningOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
  5229  	var resp aiplatformpb.Endpoint
  5230  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5231  		return nil, err
  5232  	}
  5233  	if !op.Done() {
  5234  		return nil, nil
  5235  	}
  5236  	return &resp, nil
  5237  }
  5238  
  5239  // Metadata returns metadata associated with the long-running operation.
  5240  // Metadata itself does not contact the server, but Poll does.
  5241  // To get the latest metadata, call this method after a successful call to Poll.
  5242  // If the metadata is not available, the returned metadata and error are both nil.
  5243  func (op *UpdateEndpointLongRunningOperation) Metadata() (*aiplatformpb.UpdateEndpointOperationMetadata, error) {
  5244  	var meta aiplatformpb.UpdateEndpointOperationMetadata
  5245  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5246  		return nil, nil
  5247  	} else if err != nil {
  5248  		return nil, err
  5249  	}
  5250  	return &meta, nil
  5251  }
  5252  
  5253  // Done reports whether the long-running operation has completed.
  5254  func (op *UpdateEndpointLongRunningOperation) Done() bool {
  5255  	return op.lro.Done()
  5256  }
  5257  
  5258  // Name returns the name of the long-running operation.
  5259  // The name is assigned by the server and is unique within the service from which the operation is created.
  5260  func (op *UpdateEndpointLongRunningOperation) Name() string {
  5261  	return op.lro.Name()
  5262  }
  5263  
  5264  // UpdateExplanationDatasetOperation manages a long-running operation from UpdateExplanationDataset.
  5265  type UpdateExplanationDatasetOperation struct {
  5266  	lro *longrunning.Operation
  5267  }
  5268  
  5269  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5270  //
  5271  // See documentation of Poll for error-handling information.
  5272  func (op *UpdateExplanationDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpdateExplanationDatasetResponse, error) {
  5273  	var resp aiplatformpb.UpdateExplanationDatasetResponse
  5274  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5275  		return nil, err
  5276  	}
  5277  	return &resp, nil
  5278  }
  5279  
  5280  // Poll fetches the latest state of the long-running operation.
  5281  //
  5282  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5283  //
  5284  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5285  // the operation has completed with failure, the error is returned and op.Done will return true.
  5286  // If Poll succeeds and the operation has completed successfully,
  5287  // op.Done will return true, and the response of the operation is returned.
  5288  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5289  func (op *UpdateExplanationDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpdateExplanationDatasetResponse, error) {
  5290  	var resp aiplatformpb.UpdateExplanationDatasetResponse
  5291  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5292  		return nil, err
  5293  	}
  5294  	if !op.Done() {
  5295  		return nil, nil
  5296  	}
  5297  	return &resp, nil
  5298  }
  5299  
  5300  // Metadata returns metadata associated with the long-running operation.
  5301  // Metadata itself does not contact the server, but Poll does.
  5302  // To get the latest metadata, call this method after a successful call to Poll.
  5303  // If the metadata is not available, the returned metadata and error are both nil.
  5304  func (op *UpdateExplanationDatasetOperation) Metadata() (*aiplatformpb.UpdateExplanationDatasetOperationMetadata, error) {
  5305  	var meta aiplatformpb.UpdateExplanationDatasetOperationMetadata
  5306  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5307  		return nil, nil
  5308  	} else if err != nil {
  5309  		return nil, err
  5310  	}
  5311  	return &meta, nil
  5312  }
  5313  
  5314  // Done reports whether the long-running operation has completed.
  5315  func (op *UpdateExplanationDatasetOperation) Done() bool {
  5316  	return op.lro.Done()
  5317  }
  5318  
  5319  // Name returns the name of the long-running operation.
  5320  // The name is assigned by the server and is unique within the service from which the operation is created.
  5321  func (op *UpdateExplanationDatasetOperation) Name() string {
  5322  	return op.lro.Name()
  5323  }
  5324  
  5325  // UpdateFeatureGroupOperation manages a long-running operation from UpdateFeatureGroup.
  5326  type UpdateFeatureGroupOperation struct {
  5327  	lro *longrunning.Operation
  5328  }
  5329  
  5330  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5331  //
  5332  // See documentation of Poll for error-handling information.
  5333  func (op *UpdateFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  5334  	var resp aiplatformpb.FeatureGroup
  5335  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5336  		return nil, err
  5337  	}
  5338  	return &resp, nil
  5339  }
  5340  
  5341  // Poll fetches the latest state of the long-running operation.
  5342  //
  5343  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5344  //
  5345  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5346  // the operation has completed with failure, the error is returned and op.Done will return true.
  5347  // If Poll succeeds and the operation has completed successfully,
  5348  // op.Done will return true, and the response of the operation is returned.
  5349  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5350  func (op *UpdateFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  5351  	var resp aiplatformpb.FeatureGroup
  5352  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5353  		return nil, err
  5354  	}
  5355  	if !op.Done() {
  5356  		return nil, nil
  5357  	}
  5358  	return &resp, nil
  5359  }
  5360  
  5361  // Metadata returns metadata associated with the long-running operation.
  5362  // Metadata itself does not contact the server, but Poll does.
  5363  // To get the latest metadata, call this method after a successful call to Poll.
  5364  // If the metadata is not available, the returned metadata and error are both nil.
  5365  func (op *UpdateFeatureGroupOperation) Metadata() (*aiplatformpb.UpdateFeatureGroupOperationMetadata, error) {
  5366  	var meta aiplatformpb.UpdateFeatureGroupOperationMetadata
  5367  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5368  		return nil, nil
  5369  	} else if err != nil {
  5370  		return nil, err
  5371  	}
  5372  	return &meta, nil
  5373  }
  5374  
  5375  // Done reports whether the long-running operation has completed.
  5376  func (op *UpdateFeatureGroupOperation) Done() bool {
  5377  	return op.lro.Done()
  5378  }
  5379  
  5380  // Name returns the name of the long-running operation.
  5381  // The name is assigned by the server and is unique within the service from which the operation is created.
  5382  func (op *UpdateFeatureGroupOperation) Name() string {
  5383  	return op.lro.Name()
  5384  }
  5385  
  5386  // UpdateFeatureOnlineStoreOperation manages a long-running operation from UpdateFeatureOnlineStore.
  5387  type UpdateFeatureOnlineStoreOperation struct {
  5388  	lro *longrunning.Operation
  5389  }
  5390  
  5391  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5392  //
  5393  // See documentation of Poll for error-handling information.
  5394  func (op *UpdateFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  5395  	var resp aiplatformpb.FeatureOnlineStore
  5396  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5397  		return nil, err
  5398  	}
  5399  	return &resp, nil
  5400  }
  5401  
  5402  // Poll fetches the latest state of the long-running operation.
  5403  //
  5404  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5405  //
  5406  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5407  // the operation has completed with failure, the error is returned and op.Done will return true.
  5408  // If Poll succeeds and the operation has completed successfully,
  5409  // op.Done will return true, and the response of the operation is returned.
  5410  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5411  func (op *UpdateFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  5412  	var resp aiplatformpb.FeatureOnlineStore
  5413  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5414  		return nil, err
  5415  	}
  5416  	if !op.Done() {
  5417  		return nil, nil
  5418  	}
  5419  	return &resp, nil
  5420  }
  5421  
  5422  // Metadata returns metadata associated with the long-running operation.
  5423  // Metadata itself does not contact the server, but Poll does.
  5424  // To get the latest metadata, call this method after a successful call to Poll.
  5425  // If the metadata is not available, the returned metadata and error are both nil.
  5426  func (op *UpdateFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.UpdateFeatureOnlineStoreOperationMetadata, error) {
  5427  	var meta aiplatformpb.UpdateFeatureOnlineStoreOperationMetadata
  5428  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5429  		return nil, nil
  5430  	} else if err != nil {
  5431  		return nil, err
  5432  	}
  5433  	return &meta, nil
  5434  }
  5435  
  5436  // Done reports whether the long-running operation has completed.
  5437  func (op *UpdateFeatureOnlineStoreOperation) Done() bool {
  5438  	return op.lro.Done()
  5439  }
  5440  
  5441  // Name returns the name of the long-running operation.
  5442  // The name is assigned by the server and is unique within the service from which the operation is created.
  5443  func (op *UpdateFeatureOnlineStoreOperation) Name() string {
  5444  	return op.lro.Name()
  5445  }
  5446  
  5447  // UpdateFeatureOperation manages a long-running operation from UpdateFeature.
  5448  type UpdateFeatureOperation struct {
  5449  	lro *longrunning.Operation
  5450  }
  5451  
  5452  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5453  //
  5454  // See documentation of Poll for error-handling information.
  5455  func (op *UpdateFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  5456  	var resp aiplatformpb.Feature
  5457  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5458  		return nil, err
  5459  	}
  5460  	return &resp, nil
  5461  }
  5462  
  5463  // Poll fetches the latest state of the long-running operation.
  5464  //
  5465  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5466  //
  5467  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5468  // the operation has completed with failure, the error is returned and op.Done will return true.
  5469  // If Poll succeeds and the operation has completed successfully,
  5470  // op.Done will return true, and the response of the operation is returned.
  5471  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5472  func (op *UpdateFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  5473  	var resp aiplatformpb.Feature
  5474  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5475  		return nil, err
  5476  	}
  5477  	if !op.Done() {
  5478  		return nil, nil
  5479  	}
  5480  	return &resp, nil
  5481  }
  5482  
  5483  // Metadata returns metadata associated with the long-running operation.
  5484  // Metadata itself does not contact the server, but Poll does.
  5485  // To get the latest metadata, call this method after a successful call to Poll.
  5486  // If the metadata is not available, the returned metadata and error are both nil.
  5487  func (op *UpdateFeatureOperation) Metadata() (*aiplatformpb.UpdateFeatureOperationMetadata, error) {
  5488  	var meta aiplatformpb.UpdateFeatureOperationMetadata
  5489  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5490  		return nil, nil
  5491  	} else if err != nil {
  5492  		return nil, err
  5493  	}
  5494  	return &meta, nil
  5495  }
  5496  
  5497  // Done reports whether the long-running operation has completed.
  5498  func (op *UpdateFeatureOperation) Done() bool {
  5499  	return op.lro.Done()
  5500  }
  5501  
  5502  // Name returns the name of the long-running operation.
  5503  // The name is assigned by the server and is unique within the service from which the operation is created.
  5504  func (op *UpdateFeatureOperation) Name() string {
  5505  	return op.lro.Name()
  5506  }
  5507  
  5508  // UpdateFeatureViewOperation manages a long-running operation from UpdateFeatureView.
  5509  type UpdateFeatureViewOperation struct {
  5510  	lro *longrunning.Operation
  5511  }
  5512  
  5513  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5514  //
  5515  // See documentation of Poll for error-handling information.
  5516  func (op *UpdateFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  5517  	var resp aiplatformpb.FeatureView
  5518  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5519  		return nil, err
  5520  	}
  5521  	return &resp, nil
  5522  }
  5523  
  5524  // Poll fetches the latest state of the long-running operation.
  5525  //
  5526  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5527  //
  5528  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5529  // the operation has completed with failure, the error is returned and op.Done will return true.
  5530  // If Poll succeeds and the operation has completed successfully,
  5531  // op.Done will return true, and the response of the operation is returned.
  5532  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5533  func (op *UpdateFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  5534  	var resp aiplatformpb.FeatureView
  5535  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5536  		return nil, err
  5537  	}
  5538  	if !op.Done() {
  5539  		return nil, nil
  5540  	}
  5541  	return &resp, nil
  5542  }
  5543  
  5544  // Metadata returns metadata associated with the long-running operation.
  5545  // Metadata itself does not contact the server, but Poll does.
  5546  // To get the latest metadata, call this method after a successful call to Poll.
  5547  // If the metadata is not available, the returned metadata and error are both nil.
  5548  func (op *UpdateFeatureViewOperation) Metadata() (*aiplatformpb.UpdateFeatureViewOperationMetadata, error) {
  5549  	var meta aiplatformpb.UpdateFeatureViewOperationMetadata
  5550  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5551  		return nil, nil
  5552  	} else if err != nil {
  5553  		return nil, err
  5554  	}
  5555  	return &meta, nil
  5556  }
  5557  
  5558  // Done reports whether the long-running operation has completed.
  5559  func (op *UpdateFeatureViewOperation) Done() bool {
  5560  	return op.lro.Done()
  5561  }
  5562  
  5563  // Name returns the name of the long-running operation.
  5564  // The name is assigned by the server and is unique within the service from which the operation is created.
  5565  func (op *UpdateFeatureViewOperation) Name() string {
  5566  	return op.lro.Name()
  5567  }
  5568  
  5569  // UpdateFeaturestoreOperation manages a long-running operation from UpdateFeaturestore.
  5570  type UpdateFeaturestoreOperation struct {
  5571  	lro *longrunning.Operation
  5572  }
  5573  
  5574  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5575  //
  5576  // See documentation of Poll for error-handling information.
  5577  func (op *UpdateFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  5578  	var resp aiplatformpb.Featurestore
  5579  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5580  		return nil, err
  5581  	}
  5582  	return &resp, nil
  5583  }
  5584  
  5585  // Poll fetches the latest state of the long-running operation.
  5586  //
  5587  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5588  //
  5589  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5590  // the operation has completed with failure, the error is returned and op.Done will return true.
  5591  // If Poll succeeds and the operation has completed successfully,
  5592  // op.Done will return true, and the response of the operation is returned.
  5593  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5594  func (op *UpdateFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  5595  	var resp aiplatformpb.Featurestore
  5596  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5597  		return nil, err
  5598  	}
  5599  	if !op.Done() {
  5600  		return nil, nil
  5601  	}
  5602  	return &resp, nil
  5603  }
  5604  
  5605  // Metadata returns metadata associated with the long-running operation.
  5606  // Metadata itself does not contact the server, but Poll does.
  5607  // To get the latest metadata, call this method after a successful call to Poll.
  5608  // If the metadata is not available, the returned metadata and error are both nil.
  5609  func (op *UpdateFeaturestoreOperation) Metadata() (*aiplatformpb.UpdateFeaturestoreOperationMetadata, error) {
  5610  	var meta aiplatformpb.UpdateFeaturestoreOperationMetadata
  5611  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5612  		return nil, nil
  5613  	} else if err != nil {
  5614  		return nil, err
  5615  	}
  5616  	return &meta, nil
  5617  }
  5618  
  5619  // Done reports whether the long-running operation has completed.
  5620  func (op *UpdateFeaturestoreOperation) Done() bool {
  5621  	return op.lro.Done()
  5622  }
  5623  
  5624  // Name returns the name of the long-running operation.
  5625  // The name is assigned by the server and is unique within the service from which the operation is created.
  5626  func (op *UpdateFeaturestoreOperation) Name() string {
  5627  	return op.lro.Name()
  5628  }
  5629  
  5630  // UpdateIndexOperation manages a long-running operation from UpdateIndex.
  5631  type UpdateIndexOperation struct {
  5632  	lro *longrunning.Operation
  5633  }
  5634  
  5635  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5636  //
  5637  // See documentation of Poll for error-handling information.
  5638  func (op *UpdateIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  5639  	var resp aiplatformpb.Index
  5640  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5641  		return nil, err
  5642  	}
  5643  	return &resp, nil
  5644  }
  5645  
  5646  // Poll fetches the latest state of the long-running operation.
  5647  //
  5648  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5649  //
  5650  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5651  // the operation has completed with failure, the error is returned and op.Done will return true.
  5652  // If Poll succeeds and the operation has completed successfully,
  5653  // op.Done will return true, and the response of the operation is returned.
  5654  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5655  func (op *UpdateIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  5656  	var resp aiplatformpb.Index
  5657  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5658  		return nil, err
  5659  	}
  5660  	if !op.Done() {
  5661  		return nil, nil
  5662  	}
  5663  	return &resp, nil
  5664  }
  5665  
  5666  // Metadata returns metadata associated with the long-running operation.
  5667  // Metadata itself does not contact the server, but Poll does.
  5668  // To get the latest metadata, call this method after a successful call to Poll.
  5669  // If the metadata is not available, the returned metadata and error are both nil.
  5670  func (op *UpdateIndexOperation) Metadata() (*aiplatformpb.UpdateIndexOperationMetadata, error) {
  5671  	var meta aiplatformpb.UpdateIndexOperationMetadata
  5672  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5673  		return nil, nil
  5674  	} else if err != nil {
  5675  		return nil, err
  5676  	}
  5677  	return &meta, nil
  5678  }
  5679  
  5680  // Done reports whether the long-running operation has completed.
  5681  func (op *UpdateIndexOperation) Done() bool {
  5682  	return op.lro.Done()
  5683  }
  5684  
  5685  // Name returns the name of the long-running operation.
  5686  // The name is assigned by the server and is unique within the service from which the operation is created.
  5687  func (op *UpdateIndexOperation) Name() string {
  5688  	return op.lro.Name()
  5689  }
  5690  
  5691  // UpdateModelDeploymentMonitoringJobOperation manages a long-running operation from UpdateModelDeploymentMonitoringJob.
  5692  type UpdateModelDeploymentMonitoringJobOperation struct {
  5693  	lro *longrunning.Operation
  5694  }
  5695  
  5696  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5697  //
  5698  // See documentation of Poll for error-handling information.
  5699  func (op *UpdateModelDeploymentMonitoringJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  5700  	var resp aiplatformpb.ModelDeploymentMonitoringJob
  5701  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5702  		return nil, err
  5703  	}
  5704  	return &resp, nil
  5705  }
  5706  
  5707  // Poll fetches the latest state of the long-running operation.
  5708  //
  5709  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5710  //
  5711  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5712  // the operation has completed with failure, the error is returned and op.Done will return true.
  5713  // If Poll succeeds and the operation has completed successfully,
  5714  // op.Done will return true, and the response of the operation is returned.
  5715  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5716  func (op *UpdateModelDeploymentMonitoringJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  5717  	var resp aiplatformpb.ModelDeploymentMonitoringJob
  5718  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5719  		return nil, err
  5720  	}
  5721  	if !op.Done() {
  5722  		return nil, nil
  5723  	}
  5724  	return &resp, nil
  5725  }
  5726  
  5727  // Metadata returns metadata associated with the long-running operation.
  5728  // Metadata itself does not contact the server, but Poll does.
  5729  // To get the latest metadata, call this method after a successful call to Poll.
  5730  // If the metadata is not available, the returned metadata and error are both nil.
  5731  func (op *UpdateModelDeploymentMonitoringJobOperation) Metadata() (*aiplatformpb.UpdateModelDeploymentMonitoringJobOperationMetadata, error) {
  5732  	var meta aiplatformpb.UpdateModelDeploymentMonitoringJobOperationMetadata
  5733  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5734  		return nil, nil
  5735  	} else if err != nil {
  5736  		return nil, err
  5737  	}
  5738  	return &meta, nil
  5739  }
  5740  
  5741  // Done reports whether the long-running operation has completed.
  5742  func (op *UpdateModelDeploymentMonitoringJobOperation) Done() bool {
  5743  	return op.lro.Done()
  5744  }
  5745  
  5746  // Name returns the name of the long-running operation.
  5747  // The name is assigned by the server and is unique within the service from which the operation is created.
  5748  func (op *UpdateModelDeploymentMonitoringJobOperation) Name() string {
  5749  	return op.lro.Name()
  5750  }
  5751  
  5752  // UpdatePersistentResourceOperation manages a long-running operation from UpdatePersistentResource.
  5753  type UpdatePersistentResourceOperation struct {
  5754  	lro *longrunning.Operation
  5755  }
  5756  
  5757  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5758  //
  5759  // See documentation of Poll for error-handling information.
  5760  func (op *UpdatePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  5761  	var resp aiplatformpb.PersistentResource
  5762  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5763  		return nil, err
  5764  	}
  5765  	return &resp, nil
  5766  }
  5767  
  5768  // Poll fetches the latest state of the long-running operation.
  5769  //
  5770  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5771  //
  5772  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5773  // the operation has completed with failure, the error is returned and op.Done will return true.
  5774  // If Poll succeeds and the operation has completed successfully,
  5775  // op.Done will return true, and the response of the operation is returned.
  5776  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5777  func (op *UpdatePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  5778  	var resp aiplatformpb.PersistentResource
  5779  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5780  		return nil, err
  5781  	}
  5782  	if !op.Done() {
  5783  		return nil, nil
  5784  	}
  5785  	return &resp, nil
  5786  }
  5787  
  5788  // Metadata returns metadata associated with the long-running operation.
  5789  // Metadata itself does not contact the server, but Poll does.
  5790  // To get the latest metadata, call this method after a successful call to Poll.
  5791  // If the metadata is not available, the returned metadata and error are both nil.
  5792  func (op *UpdatePersistentResourceOperation) Metadata() (*aiplatformpb.UpdatePersistentResourceOperationMetadata, error) {
  5793  	var meta aiplatformpb.UpdatePersistentResourceOperationMetadata
  5794  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5795  		return nil, nil
  5796  	} else if err != nil {
  5797  		return nil, err
  5798  	}
  5799  	return &meta, nil
  5800  }
  5801  
  5802  // Done reports whether the long-running operation has completed.
  5803  func (op *UpdatePersistentResourceOperation) Done() bool {
  5804  	return op.lro.Done()
  5805  }
  5806  
  5807  // Name returns the name of the long-running operation.
  5808  // The name is assigned by the server and is unique within the service from which the operation is created.
  5809  func (op *UpdatePersistentResourceOperation) Name() string {
  5810  	return op.lro.Name()
  5811  }
  5812  
  5813  // UpdateRagCorpusOperation manages a long-running operation from UpdateRagCorpus.
  5814  type UpdateRagCorpusOperation struct {
  5815  	lro *longrunning.Operation
  5816  }
  5817  
  5818  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5819  //
  5820  // See documentation of Poll for error-handling information.
  5821  func (op *UpdateRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  5822  	var resp aiplatformpb.RagCorpus
  5823  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5824  		return nil, err
  5825  	}
  5826  	return &resp, nil
  5827  }
  5828  
  5829  // Poll fetches the latest state of the long-running operation.
  5830  //
  5831  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5832  //
  5833  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5834  // the operation has completed with failure, the error is returned and op.Done will return true.
  5835  // If Poll succeeds and the operation has completed successfully,
  5836  // op.Done will return true, and the response of the operation is returned.
  5837  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5838  func (op *UpdateRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  5839  	var resp aiplatformpb.RagCorpus
  5840  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5841  		return nil, err
  5842  	}
  5843  	if !op.Done() {
  5844  		return nil, nil
  5845  	}
  5846  	return &resp, nil
  5847  }
  5848  
  5849  // Metadata returns metadata associated with the long-running operation.
  5850  // Metadata itself does not contact the server, but Poll does.
  5851  // To get the latest metadata, call this method after a successful call to Poll.
  5852  // If the metadata is not available, the returned metadata and error are both nil.
  5853  func (op *UpdateRagCorpusOperation) Metadata() (*aiplatformpb.UpdateRagCorpusOperationMetadata, error) {
  5854  	var meta aiplatformpb.UpdateRagCorpusOperationMetadata
  5855  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5856  		return nil, nil
  5857  	} else if err != nil {
  5858  		return nil, err
  5859  	}
  5860  	return &meta, nil
  5861  }
  5862  
  5863  // Done reports whether the long-running operation has completed.
  5864  func (op *UpdateRagCorpusOperation) Done() bool {
  5865  	return op.lro.Done()
  5866  }
  5867  
  5868  // Name returns the name of the long-running operation.
  5869  // The name is assigned by the server and is unique within the service from which the operation is created.
  5870  func (op *UpdateRagCorpusOperation) Name() string {
  5871  	return op.lro.Name()
  5872  }
  5873  
  5874  // UpdateRagEngineConfigOperation manages a long-running operation from UpdateRagEngineConfig.
  5875  type UpdateRagEngineConfigOperation struct {
  5876  	lro *longrunning.Operation
  5877  }
  5878  
  5879  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5880  //
  5881  // See documentation of Poll for error-handling information.
  5882  func (op *UpdateRagEngineConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagEngineConfig, error) {
  5883  	var resp aiplatformpb.RagEngineConfig
  5884  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5885  		return nil, err
  5886  	}
  5887  	return &resp, nil
  5888  }
  5889  
  5890  // Poll fetches the latest state of the long-running operation.
  5891  //
  5892  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5893  //
  5894  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5895  // the operation has completed with failure, the error is returned and op.Done will return true.
  5896  // If Poll succeeds and the operation has completed successfully,
  5897  // op.Done will return true, and the response of the operation is returned.
  5898  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5899  func (op *UpdateRagEngineConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagEngineConfig, error) {
  5900  	var resp aiplatformpb.RagEngineConfig
  5901  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5902  		return nil, err
  5903  	}
  5904  	if !op.Done() {
  5905  		return nil, nil
  5906  	}
  5907  	return &resp, nil
  5908  }
  5909  
  5910  // Metadata returns metadata associated with the long-running operation.
  5911  // Metadata itself does not contact the server, but Poll does.
  5912  // To get the latest metadata, call this method after a successful call to Poll.
  5913  // If the metadata is not available, the returned metadata and error are both nil.
  5914  func (op *UpdateRagEngineConfigOperation) Metadata() (*aiplatformpb.UpdateRagEngineConfigOperationMetadata, error) {
  5915  	var meta aiplatformpb.UpdateRagEngineConfigOperationMetadata
  5916  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5917  		return nil, nil
  5918  	} else if err != nil {
  5919  		return nil, err
  5920  	}
  5921  	return &meta, nil
  5922  }
  5923  
  5924  // Done reports whether the long-running operation has completed.
  5925  func (op *UpdateRagEngineConfigOperation) Done() bool {
  5926  	return op.lro.Done()
  5927  }
  5928  
  5929  // Name returns the name of the long-running operation.
  5930  // The name is assigned by the server and is unique within the service from which the operation is created.
  5931  func (op *UpdateRagEngineConfigOperation) Name() string {
  5932  	return op.lro.Name()
  5933  }
  5934  
  5935  // UpdateReasoningEngineOperation manages a long-running operation from UpdateReasoningEngine.
  5936  type UpdateReasoningEngineOperation struct {
  5937  	lro *longrunning.Operation
  5938  }
  5939  
  5940  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5941  //
  5942  // See documentation of Poll for error-handling information.
  5943  func (op *UpdateReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  5944  	var resp aiplatformpb.ReasoningEngine
  5945  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5946  		return nil, err
  5947  	}
  5948  	return &resp, nil
  5949  }
  5950  
  5951  // Poll fetches the latest state of the long-running operation.
  5952  //
  5953  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5954  //
  5955  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5956  // the operation has completed with failure, the error is returned and op.Done will return true.
  5957  // If Poll succeeds and the operation has completed successfully,
  5958  // op.Done will return true, and the response of the operation is returned.
  5959  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5960  func (op *UpdateReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  5961  	var resp aiplatformpb.ReasoningEngine
  5962  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5963  		return nil, err
  5964  	}
  5965  	if !op.Done() {
  5966  		return nil, nil
  5967  	}
  5968  	return &resp, nil
  5969  }
  5970  
  5971  // Metadata returns metadata associated with the long-running operation.
  5972  // Metadata itself does not contact the server, but Poll does.
  5973  // To get the latest metadata, call this method after a successful call to Poll.
  5974  // If the metadata is not available, the returned metadata and error are both nil.
  5975  func (op *UpdateReasoningEngineOperation) Metadata() (*aiplatformpb.UpdateReasoningEngineOperationMetadata, error) {
  5976  	var meta aiplatformpb.UpdateReasoningEngineOperationMetadata
  5977  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5978  		return nil, nil
  5979  	} else if err != nil {
  5980  		return nil, err
  5981  	}
  5982  	return &meta, nil
  5983  }
  5984  
  5985  // Done reports whether the long-running operation has completed.
  5986  func (op *UpdateReasoningEngineOperation) Done() bool {
  5987  	return op.lro.Done()
  5988  }
  5989  
  5990  // Name returns the name of the long-running operation.
  5991  // The name is assigned by the server and is unique within the service from which the operation is created.
  5992  func (op *UpdateReasoningEngineOperation) Name() string {
  5993  	return op.lro.Name()
  5994  }
  5995  
  5996  // UpdateSpecialistPoolOperation manages a long-running operation from UpdateSpecialistPool.
  5997  type UpdateSpecialistPoolOperation struct {
  5998  	lro *longrunning.Operation
  5999  }
  6000  
  6001  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6002  //
  6003  // See documentation of Poll for error-handling information.
  6004  func (op *UpdateSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  6005  	var resp aiplatformpb.SpecialistPool
  6006  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6007  		return nil, err
  6008  	}
  6009  	return &resp, nil
  6010  }
  6011  
  6012  // Poll fetches the latest state of the long-running operation.
  6013  //
  6014  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6015  //
  6016  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6017  // the operation has completed with failure, the error is returned and op.Done will return true.
  6018  // If Poll succeeds and the operation has completed successfully,
  6019  // op.Done will return true, and the response of the operation is returned.
  6020  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6021  func (op *UpdateSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  6022  	var resp aiplatformpb.SpecialistPool
  6023  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6024  		return nil, err
  6025  	}
  6026  	if !op.Done() {
  6027  		return nil, nil
  6028  	}
  6029  	return &resp, nil
  6030  }
  6031  
  6032  // Metadata returns metadata associated with the long-running operation.
  6033  // Metadata itself does not contact the server, but Poll does.
  6034  // To get the latest metadata, call this method after a successful call to Poll.
  6035  // If the metadata is not available, the returned metadata and error are both nil.
  6036  func (op *UpdateSpecialistPoolOperation) Metadata() (*aiplatformpb.UpdateSpecialistPoolOperationMetadata, error) {
  6037  	var meta aiplatformpb.UpdateSpecialistPoolOperationMetadata
  6038  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6039  		return nil, nil
  6040  	} else if err != nil {
  6041  		return nil, err
  6042  	}
  6043  	return &meta, nil
  6044  }
  6045  
  6046  // Done reports whether the long-running operation has completed.
  6047  func (op *UpdateSpecialistPoolOperation) Done() bool {
  6048  	return op.lro.Done()
  6049  }
  6050  
  6051  // Name returns the name of the long-running operation.
  6052  // The name is assigned by the server and is unique within the service from which the operation is created.
  6053  func (op *UpdateSpecialistPoolOperation) Name() string {
  6054  	return op.lro.Name()
  6055  }
  6056  
  6057  // UpdateTensorboardOperation manages a long-running operation from UpdateTensorboard.
  6058  type UpdateTensorboardOperation struct {
  6059  	lro *longrunning.Operation
  6060  }
  6061  
  6062  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6063  //
  6064  // See documentation of Poll for error-handling information.
  6065  func (op *UpdateTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  6066  	var resp aiplatformpb.Tensorboard
  6067  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6068  		return nil, err
  6069  	}
  6070  	return &resp, nil
  6071  }
  6072  
  6073  // Poll fetches the latest state of the long-running operation.
  6074  //
  6075  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6076  //
  6077  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6078  // the operation has completed with failure, the error is returned and op.Done will return true.
  6079  // If Poll succeeds and the operation has completed successfully,
  6080  // op.Done will return true, and the response of the operation is returned.
  6081  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6082  func (op *UpdateTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  6083  	var resp aiplatformpb.Tensorboard
  6084  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6085  		return nil, err
  6086  	}
  6087  	if !op.Done() {
  6088  		return nil, nil
  6089  	}
  6090  	return &resp, nil
  6091  }
  6092  
  6093  // Metadata returns metadata associated with the long-running operation.
  6094  // Metadata itself does not contact the server, but Poll does.
  6095  // To get the latest metadata, call this method after a successful call to Poll.
  6096  // If the metadata is not available, the returned metadata and error are both nil.
  6097  func (op *UpdateTensorboardOperation) Metadata() (*aiplatformpb.UpdateTensorboardOperationMetadata, error) {
  6098  	var meta aiplatformpb.UpdateTensorboardOperationMetadata
  6099  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6100  		return nil, nil
  6101  	} else if err != nil {
  6102  		return nil, err
  6103  	}
  6104  	return &meta, nil
  6105  }
  6106  
  6107  // Done reports whether the long-running operation has completed.
  6108  func (op *UpdateTensorboardOperation) Done() bool {
  6109  	return op.lro.Done()
  6110  }
  6111  
  6112  // Name returns the name of the long-running operation.
  6113  // The name is assigned by the server and is unique within the service from which the operation is created.
  6114  func (op *UpdateTensorboardOperation) Name() string {
  6115  	return op.lro.Name()
  6116  }
  6117  
  6118  // UpgradeNotebookRuntimeOperation manages a long-running operation from UpgradeNotebookRuntime.
  6119  type UpgradeNotebookRuntimeOperation struct {
  6120  	lro *longrunning.Operation
  6121  }
  6122  
  6123  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6124  //
  6125  // See documentation of Poll for error-handling information.
  6126  func (op *UpgradeNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpgradeNotebookRuntimeResponse, error) {
  6127  	var resp aiplatformpb.UpgradeNotebookRuntimeResponse
  6128  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6129  		return nil, err
  6130  	}
  6131  	return &resp, nil
  6132  }
  6133  
  6134  // Poll fetches the latest state of the long-running operation.
  6135  //
  6136  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6137  //
  6138  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6139  // the operation has completed with failure, the error is returned and op.Done will return true.
  6140  // If Poll succeeds and the operation has completed successfully,
  6141  // op.Done will return true, and the response of the operation is returned.
  6142  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6143  func (op *UpgradeNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpgradeNotebookRuntimeResponse, error) {
  6144  	var resp aiplatformpb.UpgradeNotebookRuntimeResponse
  6145  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6146  		return nil, err
  6147  	}
  6148  	if !op.Done() {
  6149  		return nil, nil
  6150  	}
  6151  	return &resp, nil
  6152  }
  6153  
  6154  // Metadata returns metadata associated with the long-running operation.
  6155  // Metadata itself does not contact the server, but Poll does.
  6156  // To get the latest metadata, call this method after a successful call to Poll.
  6157  // If the metadata is not available, the returned metadata and error are both nil.
  6158  func (op *UpgradeNotebookRuntimeOperation) Metadata() (*aiplatformpb.UpgradeNotebookRuntimeOperationMetadata, error) {
  6159  	var meta aiplatformpb.UpgradeNotebookRuntimeOperationMetadata
  6160  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6161  		return nil, nil
  6162  	} else if err != nil {
  6163  		return nil, err
  6164  	}
  6165  	return &meta, nil
  6166  }
  6167  
  6168  // Done reports whether the long-running operation has completed.
  6169  func (op *UpgradeNotebookRuntimeOperation) Done() bool {
  6170  	return op.lro.Done()
  6171  }
  6172  
  6173  // Name returns the name of the long-running operation.
  6174  // The name is assigned by the server and is unique within the service from which the operation is created.
  6175  func (op *UpgradeNotebookRuntimeOperation) Name() string {
  6176  	return op.lro.Name()
  6177  }
  6178  
  6179  // UploadModelOperation manages a long-running operation from UploadModel.
  6180  type UploadModelOperation struct {
  6181  	lro *longrunning.Operation
  6182  }
  6183  
  6184  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6185  //
  6186  // See documentation of Poll for error-handling information.
  6187  func (op *UploadModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UploadModelResponse, error) {
  6188  	var resp aiplatformpb.UploadModelResponse
  6189  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6190  		return nil, err
  6191  	}
  6192  	return &resp, nil
  6193  }
  6194  
  6195  // Poll fetches the latest state of the long-running operation.
  6196  //
  6197  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6198  //
  6199  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6200  // the operation has completed with failure, the error is returned and op.Done will return true.
  6201  // If Poll succeeds and the operation has completed successfully,
  6202  // op.Done will return true, and the response of the operation is returned.
  6203  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6204  func (op *UploadModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UploadModelResponse, error) {
  6205  	var resp aiplatformpb.UploadModelResponse
  6206  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6207  		return nil, err
  6208  	}
  6209  	if !op.Done() {
  6210  		return nil, nil
  6211  	}
  6212  	return &resp, nil
  6213  }
  6214  
  6215  // Metadata returns metadata associated with the long-running operation.
  6216  // Metadata itself does not contact the server, but Poll does.
  6217  // To get the latest metadata, call this method after a successful call to Poll.
  6218  // If the metadata is not available, the returned metadata and error are both nil.
  6219  func (op *UploadModelOperation) Metadata() (*aiplatformpb.UploadModelOperationMetadata, error) {
  6220  	var meta aiplatformpb.UploadModelOperationMetadata
  6221  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6222  		return nil, nil
  6223  	} else if err != nil {
  6224  		return nil, err
  6225  	}
  6226  	return &meta, nil
  6227  }
  6228  
  6229  // Done reports whether the long-running operation has completed.
  6230  func (op *UploadModelOperation) Done() bool {
  6231  	return op.lro.Done()
  6232  }
  6233  
  6234  // Name returns the name of the long-running operation.
  6235  // The name is assigned by the server and is unique within the service from which the operation is created.
  6236  func (op *UploadModelOperation) Name() string {
  6237  	return op.lro.Name()
  6238  }
  6239  
  6240  // AnnotationIterator manages a stream of *aiplatformpb.Annotation.
  6241  type AnnotationIterator struct {
  6242  	items    []*aiplatformpb.Annotation
  6243  	pageInfo *iterator.PageInfo
  6244  	nextFunc func() error
  6245  
  6246  	// Response is the raw response for the current page.
  6247  	// It must be cast to the RPC response type.
  6248  	// Calling Next() or InternalFetch() updates this value.
  6249  	Response interface{}
  6250  
  6251  	// InternalFetch is for use by the Google Cloud Libraries only.
  6252  	// It is not part of the stable interface of this package.
  6253  	//
  6254  	// InternalFetch returns results from a single call to the underlying RPC.
  6255  	// The number of results is no greater than pageSize.
  6256  	// If there are no more results, nextPageToken is empty and err is nil.
  6257  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Annotation, nextPageToken string, err error)
  6258  }
  6259  
  6260  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6261  func (it *AnnotationIterator) PageInfo() *iterator.PageInfo {
  6262  	return it.pageInfo
  6263  }
  6264  
  6265  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6266  // results. Once Next returns Done, all subsequent calls will return Done.
  6267  func (it *AnnotationIterator) Next() (*aiplatformpb.Annotation, error) {
  6268  	var item *aiplatformpb.Annotation
  6269  	if err := it.nextFunc(); err != nil {
  6270  		return item, err
  6271  	}
  6272  	item = it.items[0]
  6273  	it.items = it.items[1:]
  6274  	return item, nil
  6275  }
  6276  
  6277  func (it *AnnotationIterator) bufLen() int {
  6278  	return len(it.items)
  6279  }
  6280  
  6281  func (it *AnnotationIterator) takeBuf() interface{} {
  6282  	b := it.items
  6283  	it.items = nil
  6284  	return b
  6285  }
  6286  
  6287  // ArtifactIterator manages a stream of *aiplatformpb.Artifact.
  6288  type ArtifactIterator struct {
  6289  	items    []*aiplatformpb.Artifact
  6290  	pageInfo *iterator.PageInfo
  6291  	nextFunc func() error
  6292  
  6293  	// Response is the raw response for the current page.
  6294  	// It must be cast to the RPC response type.
  6295  	// Calling Next() or InternalFetch() updates this value.
  6296  	Response interface{}
  6297  
  6298  	// InternalFetch is for use by the Google Cloud Libraries only.
  6299  	// It is not part of the stable interface of this package.
  6300  	//
  6301  	// InternalFetch returns results from a single call to the underlying RPC.
  6302  	// The number of results is no greater than pageSize.
  6303  	// If there are no more results, nextPageToken is empty and err is nil.
  6304  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Artifact, nextPageToken string, err error)
  6305  }
  6306  
  6307  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6308  func (it *ArtifactIterator) PageInfo() *iterator.PageInfo {
  6309  	return it.pageInfo
  6310  }
  6311  
  6312  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6313  // results. Once Next returns Done, all subsequent calls will return Done.
  6314  func (it *ArtifactIterator) Next() (*aiplatformpb.Artifact, error) {
  6315  	var item *aiplatformpb.Artifact
  6316  	if err := it.nextFunc(); err != nil {
  6317  		return item, err
  6318  	}
  6319  	item = it.items[0]
  6320  	it.items = it.items[1:]
  6321  	return item, nil
  6322  }
  6323  
  6324  func (it *ArtifactIterator) bufLen() int {
  6325  	return len(it.items)
  6326  }
  6327  
  6328  func (it *ArtifactIterator) takeBuf() interface{} {
  6329  	b := it.items
  6330  	it.items = nil
  6331  	return b
  6332  }
  6333  
  6334  // BatchPredictionJobIterator manages a stream of *aiplatformpb.BatchPredictionJob.
  6335  type BatchPredictionJobIterator struct {
  6336  	items    []*aiplatformpb.BatchPredictionJob
  6337  	pageInfo *iterator.PageInfo
  6338  	nextFunc func() error
  6339  
  6340  	// Response is the raw response for the current page.
  6341  	// It must be cast to the RPC response type.
  6342  	// Calling Next() or InternalFetch() updates this value.
  6343  	Response interface{}
  6344  
  6345  	// InternalFetch is for use by the Google Cloud Libraries only.
  6346  	// It is not part of the stable interface of this package.
  6347  	//
  6348  	// InternalFetch returns results from a single call to the underlying RPC.
  6349  	// The number of results is no greater than pageSize.
  6350  	// If there are no more results, nextPageToken is empty and err is nil.
  6351  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.BatchPredictionJob, nextPageToken string, err error)
  6352  }
  6353  
  6354  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6355  func (it *BatchPredictionJobIterator) PageInfo() *iterator.PageInfo {
  6356  	return it.pageInfo
  6357  }
  6358  
  6359  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6360  // results. Once Next returns Done, all subsequent calls will return Done.
  6361  func (it *BatchPredictionJobIterator) Next() (*aiplatformpb.BatchPredictionJob, error) {
  6362  	var item *aiplatformpb.BatchPredictionJob
  6363  	if err := it.nextFunc(); err != nil {
  6364  		return item, err
  6365  	}
  6366  	item = it.items[0]
  6367  	it.items = it.items[1:]
  6368  	return item, nil
  6369  }
  6370  
  6371  func (it *BatchPredictionJobIterator) bufLen() int {
  6372  	return len(it.items)
  6373  }
  6374  
  6375  func (it *BatchPredictionJobIterator) takeBuf() interface{} {
  6376  	b := it.items
  6377  	it.items = nil
  6378  	return b
  6379  }
  6380  
  6381  // CachedContentIterator manages a stream of *aiplatformpb.CachedContent.
  6382  type CachedContentIterator struct {
  6383  	items    []*aiplatformpb.CachedContent
  6384  	pageInfo *iterator.PageInfo
  6385  	nextFunc func() error
  6386  
  6387  	// Response is the raw response for the current page.
  6388  	// It must be cast to the RPC response type.
  6389  	// Calling Next() or InternalFetch() updates this value.
  6390  	Response interface{}
  6391  
  6392  	// InternalFetch is for use by the Google Cloud Libraries only.
  6393  	// It is not part of the stable interface of this package.
  6394  	//
  6395  	// InternalFetch returns results from a single call to the underlying RPC.
  6396  	// The number of results is no greater than pageSize.
  6397  	// If there are no more results, nextPageToken is empty and err is nil.
  6398  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.CachedContent, nextPageToken string, err error)
  6399  }
  6400  
  6401  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6402  func (it *CachedContentIterator) PageInfo() *iterator.PageInfo {
  6403  	return it.pageInfo
  6404  }
  6405  
  6406  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6407  // results. Once Next returns Done, all subsequent calls will return Done.
  6408  func (it *CachedContentIterator) Next() (*aiplatformpb.CachedContent, error) {
  6409  	var item *aiplatformpb.CachedContent
  6410  	if err := it.nextFunc(); err != nil {
  6411  		return item, err
  6412  	}
  6413  	item = it.items[0]
  6414  	it.items = it.items[1:]
  6415  	return item, nil
  6416  }
  6417  
  6418  func (it *CachedContentIterator) bufLen() int {
  6419  	return len(it.items)
  6420  }
  6421  
  6422  func (it *CachedContentIterator) takeBuf() interface{} {
  6423  	b := it.items
  6424  	it.items = nil
  6425  	return b
  6426  }
  6427  
  6428  // ContextIterator manages a stream of *aiplatformpb.Context.
  6429  type ContextIterator struct {
  6430  	items    []*aiplatformpb.Context
  6431  	pageInfo *iterator.PageInfo
  6432  	nextFunc func() error
  6433  
  6434  	// Response is the raw response for the current page.
  6435  	// It must be cast to the RPC response type.
  6436  	// Calling Next() or InternalFetch() updates this value.
  6437  	Response interface{}
  6438  
  6439  	// InternalFetch is for use by the Google Cloud Libraries only.
  6440  	// It is not part of the stable interface of this package.
  6441  	//
  6442  	// InternalFetch returns results from a single call to the underlying RPC.
  6443  	// The number of results is no greater than pageSize.
  6444  	// If there are no more results, nextPageToken is empty and err is nil.
  6445  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Context, nextPageToken string, err error)
  6446  }
  6447  
  6448  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6449  func (it *ContextIterator) PageInfo() *iterator.PageInfo {
  6450  	return it.pageInfo
  6451  }
  6452  
  6453  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6454  // results. Once Next returns Done, all subsequent calls will return Done.
  6455  func (it *ContextIterator) Next() (*aiplatformpb.Context, error) {
  6456  	var item *aiplatformpb.Context
  6457  	if err := it.nextFunc(); err != nil {
  6458  		return item, err
  6459  	}
  6460  	item = it.items[0]
  6461  	it.items = it.items[1:]
  6462  	return item, nil
  6463  }
  6464  
  6465  func (it *ContextIterator) bufLen() int {
  6466  	return len(it.items)
  6467  }
  6468  
  6469  func (it *ContextIterator) takeBuf() interface{} {
  6470  	b := it.items
  6471  	it.items = nil
  6472  	return b
  6473  }
  6474  
  6475  // CustomJobIterator manages a stream of *aiplatformpb.CustomJob.
  6476  type CustomJobIterator struct {
  6477  	items    []*aiplatformpb.CustomJob
  6478  	pageInfo *iterator.PageInfo
  6479  	nextFunc func() error
  6480  
  6481  	// Response is the raw response for the current page.
  6482  	// It must be cast to the RPC response type.
  6483  	// Calling Next() or InternalFetch() updates this value.
  6484  	Response interface{}
  6485  
  6486  	// InternalFetch is for use by the Google Cloud Libraries only.
  6487  	// It is not part of the stable interface of this package.
  6488  	//
  6489  	// InternalFetch returns results from a single call to the underlying RPC.
  6490  	// The number of results is no greater than pageSize.
  6491  	// If there are no more results, nextPageToken is empty and err is nil.
  6492  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.CustomJob, nextPageToken string, err error)
  6493  }
  6494  
  6495  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6496  func (it *CustomJobIterator) PageInfo() *iterator.PageInfo {
  6497  	return it.pageInfo
  6498  }
  6499  
  6500  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6501  // results. Once Next returns Done, all subsequent calls will return Done.
  6502  func (it *CustomJobIterator) Next() (*aiplatformpb.CustomJob, error) {
  6503  	var item *aiplatformpb.CustomJob
  6504  	if err := it.nextFunc(); err != nil {
  6505  		return item, err
  6506  	}
  6507  	item = it.items[0]
  6508  	it.items = it.items[1:]
  6509  	return item, nil
  6510  }
  6511  
  6512  func (it *CustomJobIterator) bufLen() int {
  6513  	return len(it.items)
  6514  }
  6515  
  6516  func (it *CustomJobIterator) takeBuf() interface{} {
  6517  	b := it.items
  6518  	it.items = nil
  6519  	return b
  6520  }
  6521  
  6522  // DataItemIterator manages a stream of *aiplatformpb.DataItem.
  6523  type DataItemIterator struct {
  6524  	items    []*aiplatformpb.DataItem
  6525  	pageInfo *iterator.PageInfo
  6526  	nextFunc func() error
  6527  
  6528  	// Response is the raw response for the current page.
  6529  	// It must be cast to the RPC response type.
  6530  	// Calling Next() or InternalFetch() updates this value.
  6531  	Response interface{}
  6532  
  6533  	// InternalFetch is for use by the Google Cloud Libraries only.
  6534  	// It is not part of the stable interface of this package.
  6535  	//
  6536  	// InternalFetch returns results from a single call to the underlying RPC.
  6537  	// The number of results is no greater than pageSize.
  6538  	// If there are no more results, nextPageToken is empty and err is nil.
  6539  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataItem, nextPageToken string, err error)
  6540  }
  6541  
  6542  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6543  func (it *DataItemIterator) PageInfo() *iterator.PageInfo {
  6544  	return it.pageInfo
  6545  }
  6546  
  6547  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6548  // results. Once Next returns Done, all subsequent calls will return Done.
  6549  func (it *DataItemIterator) Next() (*aiplatformpb.DataItem, error) {
  6550  	var item *aiplatformpb.DataItem
  6551  	if err := it.nextFunc(); err != nil {
  6552  		return item, err
  6553  	}
  6554  	item = it.items[0]
  6555  	it.items = it.items[1:]
  6556  	return item, nil
  6557  }
  6558  
  6559  func (it *DataItemIterator) bufLen() int {
  6560  	return len(it.items)
  6561  }
  6562  
  6563  func (it *DataItemIterator) takeBuf() interface{} {
  6564  	b := it.items
  6565  	it.items = nil
  6566  	return b
  6567  }
  6568  
  6569  // DataItemViewIterator manages a stream of *aiplatformpb.DataItemView.
  6570  type DataItemViewIterator struct {
  6571  	items    []*aiplatformpb.DataItemView
  6572  	pageInfo *iterator.PageInfo
  6573  	nextFunc func() error
  6574  
  6575  	// Response is the raw response for the current page.
  6576  	// It must be cast to the RPC response type.
  6577  	// Calling Next() or InternalFetch() updates this value.
  6578  	Response interface{}
  6579  
  6580  	// InternalFetch is for use by the Google Cloud Libraries only.
  6581  	// It is not part of the stable interface of this package.
  6582  	//
  6583  	// InternalFetch returns results from a single call to the underlying RPC.
  6584  	// The number of results is no greater than pageSize.
  6585  	// If there are no more results, nextPageToken is empty and err is nil.
  6586  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataItemView, nextPageToken string, err error)
  6587  }
  6588  
  6589  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6590  func (it *DataItemViewIterator) PageInfo() *iterator.PageInfo {
  6591  	return it.pageInfo
  6592  }
  6593  
  6594  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6595  // results. Once Next returns Done, all subsequent calls will return Done.
  6596  func (it *DataItemViewIterator) Next() (*aiplatformpb.DataItemView, error) {
  6597  	var item *aiplatformpb.DataItemView
  6598  	if err := it.nextFunc(); err != nil {
  6599  		return item, err
  6600  	}
  6601  	item = it.items[0]
  6602  	it.items = it.items[1:]
  6603  	return item, nil
  6604  }
  6605  
  6606  func (it *DataItemViewIterator) bufLen() int {
  6607  	return len(it.items)
  6608  }
  6609  
  6610  func (it *DataItemViewIterator) takeBuf() interface{} {
  6611  	b := it.items
  6612  	it.items = nil
  6613  	return b
  6614  }
  6615  
  6616  // DataLabelingJobIterator manages a stream of *aiplatformpb.DataLabelingJob.
  6617  type DataLabelingJobIterator struct {
  6618  	items    []*aiplatformpb.DataLabelingJob
  6619  	pageInfo *iterator.PageInfo
  6620  	nextFunc func() error
  6621  
  6622  	// Response is the raw response for the current page.
  6623  	// It must be cast to the RPC response type.
  6624  	// Calling Next() or InternalFetch() updates this value.
  6625  	Response interface{}
  6626  
  6627  	// InternalFetch is for use by the Google Cloud Libraries only.
  6628  	// It is not part of the stable interface of this package.
  6629  	//
  6630  	// InternalFetch returns results from a single call to the underlying RPC.
  6631  	// The number of results is no greater than pageSize.
  6632  	// If there are no more results, nextPageToken is empty and err is nil.
  6633  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataLabelingJob, nextPageToken string, err error)
  6634  }
  6635  
  6636  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6637  func (it *DataLabelingJobIterator) PageInfo() *iterator.PageInfo {
  6638  	return it.pageInfo
  6639  }
  6640  
  6641  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6642  // results. Once Next returns Done, all subsequent calls will return Done.
  6643  func (it *DataLabelingJobIterator) Next() (*aiplatformpb.DataLabelingJob, error) {
  6644  	var item *aiplatformpb.DataLabelingJob
  6645  	if err := it.nextFunc(); err != nil {
  6646  		return item, err
  6647  	}
  6648  	item = it.items[0]
  6649  	it.items = it.items[1:]
  6650  	return item, nil
  6651  }
  6652  
  6653  func (it *DataLabelingJobIterator) bufLen() int {
  6654  	return len(it.items)
  6655  }
  6656  
  6657  func (it *DataLabelingJobIterator) takeBuf() interface{} {
  6658  	b := it.items
  6659  	it.items = nil
  6660  	return b
  6661  }
  6662  
  6663  // DatasetIterator manages a stream of *aiplatformpb.Dataset.
  6664  type DatasetIterator struct {
  6665  	items    []*aiplatformpb.Dataset
  6666  	pageInfo *iterator.PageInfo
  6667  	nextFunc func() error
  6668  
  6669  	// Response is the raw response for the current page.
  6670  	// It must be cast to the RPC response type.
  6671  	// Calling Next() or InternalFetch() updates this value.
  6672  	Response interface{}
  6673  
  6674  	// InternalFetch is for use by the Google Cloud Libraries only.
  6675  	// It is not part of the stable interface of this package.
  6676  	//
  6677  	// InternalFetch returns results from a single call to the underlying RPC.
  6678  	// The number of results is no greater than pageSize.
  6679  	// If there are no more results, nextPageToken is empty and err is nil.
  6680  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Dataset, nextPageToken string, err error)
  6681  }
  6682  
  6683  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6684  func (it *DatasetIterator) PageInfo() *iterator.PageInfo {
  6685  	return it.pageInfo
  6686  }
  6687  
  6688  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6689  // results. Once Next returns Done, all subsequent calls will return Done.
  6690  func (it *DatasetIterator) Next() (*aiplatformpb.Dataset, error) {
  6691  	var item *aiplatformpb.Dataset
  6692  	if err := it.nextFunc(); err != nil {
  6693  		return item, err
  6694  	}
  6695  	item = it.items[0]
  6696  	it.items = it.items[1:]
  6697  	return item, nil
  6698  }
  6699  
  6700  func (it *DatasetIterator) bufLen() int {
  6701  	return len(it.items)
  6702  }
  6703  
  6704  func (it *DatasetIterator) takeBuf() interface{} {
  6705  	b := it.items
  6706  	it.items = nil
  6707  	return b
  6708  }
  6709  
  6710  // DatasetVersionIterator manages a stream of *aiplatformpb.DatasetVersion.
  6711  type DatasetVersionIterator struct {
  6712  	items    []*aiplatformpb.DatasetVersion
  6713  	pageInfo *iterator.PageInfo
  6714  	nextFunc func() error
  6715  
  6716  	// Response is the raw response for the current page.
  6717  	// It must be cast to the RPC response type.
  6718  	// Calling Next() or InternalFetch() updates this value.
  6719  	Response interface{}
  6720  
  6721  	// InternalFetch is for use by the Google Cloud Libraries only.
  6722  	// It is not part of the stable interface of this package.
  6723  	//
  6724  	// InternalFetch returns results from a single call to the underlying RPC.
  6725  	// The number of results is no greater than pageSize.
  6726  	// If there are no more results, nextPageToken is empty and err is nil.
  6727  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DatasetVersion, nextPageToken string, err error)
  6728  }
  6729  
  6730  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6731  func (it *DatasetVersionIterator) PageInfo() *iterator.PageInfo {
  6732  	return it.pageInfo
  6733  }
  6734  
  6735  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6736  // results. Once Next returns Done, all subsequent calls will return Done.
  6737  func (it *DatasetVersionIterator) Next() (*aiplatformpb.DatasetVersion, error) {
  6738  	var item *aiplatformpb.DatasetVersion
  6739  	if err := it.nextFunc(); err != nil {
  6740  		return item, err
  6741  	}
  6742  	item = it.items[0]
  6743  	it.items = it.items[1:]
  6744  	return item, nil
  6745  }
  6746  
  6747  func (it *DatasetVersionIterator) bufLen() int {
  6748  	return len(it.items)
  6749  }
  6750  
  6751  func (it *DatasetVersionIterator) takeBuf() interface{} {
  6752  	b := it.items
  6753  	it.items = nil
  6754  	return b
  6755  }
  6756  
  6757  // DeployedModelIterator manages a stream of *aiplatformpb.DeployedModel.
  6758  type DeployedModelIterator struct {
  6759  	items    []*aiplatformpb.DeployedModel
  6760  	pageInfo *iterator.PageInfo
  6761  	nextFunc func() error
  6762  
  6763  	// Response is the raw response for the current page.
  6764  	// It must be cast to the RPC response type.
  6765  	// Calling Next() or InternalFetch() updates this value.
  6766  	Response interface{}
  6767  
  6768  	// InternalFetch is for use by the Google Cloud Libraries only.
  6769  	// It is not part of the stable interface of this package.
  6770  	//
  6771  	// InternalFetch returns results from a single call to the underlying RPC.
  6772  	// The number of results is no greater than pageSize.
  6773  	// If there are no more results, nextPageToken is empty and err is nil.
  6774  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DeployedModel, nextPageToken string, err error)
  6775  }
  6776  
  6777  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6778  func (it *DeployedModelIterator) PageInfo() *iterator.PageInfo {
  6779  	return it.pageInfo
  6780  }
  6781  
  6782  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6783  // results. Once Next returns Done, all subsequent calls will return Done.
  6784  func (it *DeployedModelIterator) Next() (*aiplatformpb.DeployedModel, error) {
  6785  	var item *aiplatformpb.DeployedModel
  6786  	if err := it.nextFunc(); err != nil {
  6787  		return item, err
  6788  	}
  6789  	item = it.items[0]
  6790  	it.items = it.items[1:]
  6791  	return item, nil
  6792  }
  6793  
  6794  func (it *DeployedModelIterator) bufLen() int {
  6795  	return len(it.items)
  6796  }
  6797  
  6798  func (it *DeployedModelIterator) takeBuf() interface{} {
  6799  	b := it.items
  6800  	it.items = nil
  6801  	return b
  6802  }
  6803  
  6804  // DeploymentResourcePoolIterator manages a stream of *aiplatformpb.DeploymentResourcePool.
  6805  type DeploymentResourcePoolIterator struct {
  6806  	items    []*aiplatformpb.DeploymentResourcePool
  6807  	pageInfo *iterator.PageInfo
  6808  	nextFunc func() error
  6809  
  6810  	// Response is the raw response for the current page.
  6811  	// It must be cast to the RPC response type.
  6812  	// Calling Next() or InternalFetch() updates this value.
  6813  	Response interface{}
  6814  
  6815  	// InternalFetch is for use by the Google Cloud Libraries only.
  6816  	// It is not part of the stable interface of this package.
  6817  	//
  6818  	// InternalFetch returns results from a single call to the underlying RPC.
  6819  	// The number of results is no greater than pageSize.
  6820  	// If there are no more results, nextPageToken is empty and err is nil.
  6821  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DeploymentResourcePool, nextPageToken string, err error)
  6822  }
  6823  
  6824  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6825  func (it *DeploymentResourcePoolIterator) PageInfo() *iterator.PageInfo {
  6826  	return it.pageInfo
  6827  }
  6828  
  6829  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6830  // results. Once Next returns Done, all subsequent calls will return Done.
  6831  func (it *DeploymentResourcePoolIterator) Next() (*aiplatformpb.DeploymentResourcePool, error) {
  6832  	var item *aiplatformpb.DeploymentResourcePool
  6833  	if err := it.nextFunc(); err != nil {
  6834  		return item, err
  6835  	}
  6836  	item = it.items[0]
  6837  	it.items = it.items[1:]
  6838  	return item, nil
  6839  }
  6840  
  6841  func (it *DeploymentResourcePoolIterator) bufLen() int {
  6842  	return len(it.items)
  6843  }
  6844  
  6845  func (it *DeploymentResourcePoolIterator) takeBuf() interface{} {
  6846  	b := it.items
  6847  	it.items = nil
  6848  	return b
  6849  }
  6850  
  6851  // EndpointIterator manages a stream of *aiplatformpb.Endpoint.
  6852  type EndpointIterator struct {
  6853  	items    []*aiplatformpb.Endpoint
  6854  	pageInfo *iterator.PageInfo
  6855  	nextFunc func() error
  6856  
  6857  	// Response is the raw response for the current page.
  6858  	// It must be cast to the RPC response type.
  6859  	// Calling Next() or InternalFetch() updates this value.
  6860  	Response interface{}
  6861  
  6862  	// InternalFetch is for use by the Google Cloud Libraries only.
  6863  	// It is not part of the stable interface of this package.
  6864  	//
  6865  	// InternalFetch returns results from a single call to the underlying RPC.
  6866  	// The number of results is no greater than pageSize.
  6867  	// If there are no more results, nextPageToken is empty and err is nil.
  6868  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Endpoint, nextPageToken string, err error)
  6869  }
  6870  
  6871  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6872  func (it *EndpointIterator) PageInfo() *iterator.PageInfo {
  6873  	return it.pageInfo
  6874  }
  6875  
  6876  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6877  // results. Once Next returns Done, all subsequent calls will return Done.
  6878  func (it *EndpointIterator) Next() (*aiplatformpb.Endpoint, error) {
  6879  	var item *aiplatformpb.Endpoint
  6880  	if err := it.nextFunc(); err != nil {
  6881  		return item, err
  6882  	}
  6883  	item = it.items[0]
  6884  	it.items = it.items[1:]
  6885  	return item, nil
  6886  }
  6887  
  6888  func (it *EndpointIterator) bufLen() int {
  6889  	return len(it.items)
  6890  }
  6891  
  6892  func (it *EndpointIterator) takeBuf() interface{} {
  6893  	b := it.items
  6894  	it.items = nil
  6895  	return b
  6896  }
  6897  
  6898  // EntityTypeIterator manages a stream of *aiplatformpb.EntityType.
  6899  type EntityTypeIterator struct {
  6900  	items    []*aiplatformpb.EntityType
  6901  	pageInfo *iterator.PageInfo
  6902  	nextFunc func() error
  6903  
  6904  	// Response is the raw response for the current page.
  6905  	// It must be cast to the RPC response type.
  6906  	// Calling Next() or InternalFetch() updates this value.
  6907  	Response interface{}
  6908  
  6909  	// InternalFetch is for use by the Google Cloud Libraries only.
  6910  	// It is not part of the stable interface of this package.
  6911  	//
  6912  	// InternalFetch returns results from a single call to the underlying RPC.
  6913  	// The number of results is no greater than pageSize.
  6914  	// If there are no more results, nextPageToken is empty and err is nil.
  6915  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.EntityType, nextPageToken string, err error)
  6916  }
  6917  
  6918  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6919  func (it *EntityTypeIterator) PageInfo() *iterator.PageInfo {
  6920  	return it.pageInfo
  6921  }
  6922  
  6923  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6924  // results. Once Next returns Done, all subsequent calls will return Done.
  6925  func (it *EntityTypeIterator) Next() (*aiplatformpb.EntityType, error) {
  6926  	var item *aiplatformpb.EntityType
  6927  	if err := it.nextFunc(); err != nil {
  6928  		return item, err
  6929  	}
  6930  	item = it.items[0]
  6931  	it.items = it.items[1:]
  6932  	return item, nil
  6933  }
  6934  
  6935  func (it *EntityTypeIterator) bufLen() int {
  6936  	return len(it.items)
  6937  }
  6938  
  6939  func (it *EntityTypeIterator) takeBuf() interface{} {
  6940  	b := it.items
  6941  	it.items = nil
  6942  	return b
  6943  }
  6944  
  6945  // ExecutionIterator manages a stream of *aiplatformpb.Execution.
  6946  type ExecutionIterator struct {
  6947  	items    []*aiplatformpb.Execution
  6948  	pageInfo *iterator.PageInfo
  6949  	nextFunc func() error
  6950  
  6951  	// Response is the raw response for the current page.
  6952  	// It must be cast to the RPC response type.
  6953  	// Calling Next() or InternalFetch() updates this value.
  6954  	Response interface{}
  6955  
  6956  	// InternalFetch is for use by the Google Cloud Libraries only.
  6957  	// It is not part of the stable interface of this package.
  6958  	//
  6959  	// InternalFetch returns results from a single call to the underlying RPC.
  6960  	// The number of results is no greater than pageSize.
  6961  	// If there are no more results, nextPageToken is empty and err is nil.
  6962  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Execution, nextPageToken string, err error)
  6963  }
  6964  
  6965  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  6966  func (it *ExecutionIterator) PageInfo() *iterator.PageInfo {
  6967  	return it.pageInfo
  6968  }
  6969  
  6970  // Next returns the next result. Its second return value is iterator.Done if there are no more
  6971  // results. Once Next returns Done, all subsequent calls will return Done.
  6972  func (it *ExecutionIterator) Next() (*aiplatformpb.Execution, error) {
  6973  	var item *aiplatformpb.Execution
  6974  	if err := it.nextFunc(); err != nil {
  6975  		return item, err
  6976  	}
  6977  	item = it.items[0]
  6978  	it.items = it.items[1:]
  6979  	return item, nil
  6980  }
  6981  
  6982  func (it *ExecutionIterator) bufLen() int {
  6983  	return len(it.items)
  6984  }
  6985  
  6986  func (it *ExecutionIterator) takeBuf() interface{} {
  6987  	b := it.items
  6988  	it.items = nil
  6989  	return b
  6990  }
  6991  
  6992  // FeatureGroupIterator manages a stream of *aiplatformpb.FeatureGroup.
  6993  type FeatureGroupIterator struct {
  6994  	items    []*aiplatformpb.FeatureGroup
  6995  	pageInfo *iterator.PageInfo
  6996  	nextFunc func() error
  6997  
  6998  	// Response is the raw response for the current page.
  6999  	// It must be cast to the RPC response type.
  7000  	// Calling Next() or InternalFetch() updates this value.
  7001  	Response interface{}
  7002  
  7003  	// InternalFetch is for use by the Google Cloud Libraries only.
  7004  	// It is not part of the stable interface of this package.
  7005  	//
  7006  	// InternalFetch returns results from a single call to the underlying RPC.
  7007  	// The number of results is no greater than pageSize.
  7008  	// If there are no more results, nextPageToken is empty and err is nil.
  7009  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureGroup, nextPageToken string, err error)
  7010  }
  7011  
  7012  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7013  func (it *FeatureGroupIterator) PageInfo() *iterator.PageInfo {
  7014  	return it.pageInfo
  7015  }
  7016  
  7017  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7018  // results. Once Next returns Done, all subsequent calls will return Done.
  7019  func (it *FeatureGroupIterator) Next() (*aiplatformpb.FeatureGroup, error) {
  7020  	var item *aiplatformpb.FeatureGroup
  7021  	if err := it.nextFunc(); err != nil {
  7022  		return item, err
  7023  	}
  7024  	item = it.items[0]
  7025  	it.items = it.items[1:]
  7026  	return item, nil
  7027  }
  7028  
  7029  func (it *FeatureGroupIterator) bufLen() int {
  7030  	return len(it.items)
  7031  }
  7032  
  7033  func (it *FeatureGroupIterator) takeBuf() interface{} {
  7034  	b := it.items
  7035  	it.items = nil
  7036  	return b
  7037  }
  7038  
  7039  // FeatureIterator manages a stream of *aiplatformpb.Feature.
  7040  type FeatureIterator struct {
  7041  	items    []*aiplatformpb.Feature
  7042  	pageInfo *iterator.PageInfo
  7043  	nextFunc func() error
  7044  
  7045  	// Response is the raw response for the current page.
  7046  	// It must be cast to the RPC response type.
  7047  	// Calling Next() or InternalFetch() updates this value.
  7048  	Response interface{}
  7049  
  7050  	// InternalFetch is for use by the Google Cloud Libraries only.
  7051  	// It is not part of the stable interface of this package.
  7052  	//
  7053  	// InternalFetch returns results from a single call to the underlying RPC.
  7054  	// The number of results is no greater than pageSize.
  7055  	// If there are no more results, nextPageToken is empty and err is nil.
  7056  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Feature, nextPageToken string, err error)
  7057  }
  7058  
  7059  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7060  func (it *FeatureIterator) PageInfo() *iterator.PageInfo {
  7061  	return it.pageInfo
  7062  }
  7063  
  7064  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7065  // results. Once Next returns Done, all subsequent calls will return Done.
  7066  func (it *FeatureIterator) Next() (*aiplatformpb.Feature, error) {
  7067  	var item *aiplatformpb.Feature
  7068  	if err := it.nextFunc(); err != nil {
  7069  		return item, err
  7070  	}
  7071  	item = it.items[0]
  7072  	it.items = it.items[1:]
  7073  	return item, nil
  7074  }
  7075  
  7076  func (it *FeatureIterator) bufLen() int {
  7077  	return len(it.items)
  7078  }
  7079  
  7080  func (it *FeatureIterator) takeBuf() interface{} {
  7081  	b := it.items
  7082  	it.items = nil
  7083  	return b
  7084  }
  7085  
  7086  // FeatureOnlineStoreIterator manages a stream of *aiplatformpb.FeatureOnlineStore.
  7087  type FeatureOnlineStoreIterator struct {
  7088  	items    []*aiplatformpb.FeatureOnlineStore
  7089  	pageInfo *iterator.PageInfo
  7090  	nextFunc func() error
  7091  
  7092  	// Response is the raw response for the current page.
  7093  	// It must be cast to the RPC response type.
  7094  	// Calling Next() or InternalFetch() updates this value.
  7095  	Response interface{}
  7096  
  7097  	// InternalFetch is for use by the Google Cloud Libraries only.
  7098  	// It is not part of the stable interface of this package.
  7099  	//
  7100  	// InternalFetch returns results from a single call to the underlying RPC.
  7101  	// The number of results is no greater than pageSize.
  7102  	// If there are no more results, nextPageToken is empty and err is nil.
  7103  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureOnlineStore, nextPageToken string, err error)
  7104  }
  7105  
  7106  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7107  func (it *FeatureOnlineStoreIterator) PageInfo() *iterator.PageInfo {
  7108  	return it.pageInfo
  7109  }
  7110  
  7111  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7112  // results. Once Next returns Done, all subsequent calls will return Done.
  7113  func (it *FeatureOnlineStoreIterator) Next() (*aiplatformpb.FeatureOnlineStore, error) {
  7114  	var item *aiplatformpb.FeatureOnlineStore
  7115  	if err := it.nextFunc(); err != nil {
  7116  		return item, err
  7117  	}
  7118  	item = it.items[0]
  7119  	it.items = it.items[1:]
  7120  	return item, nil
  7121  }
  7122  
  7123  func (it *FeatureOnlineStoreIterator) bufLen() int {
  7124  	return len(it.items)
  7125  }
  7126  
  7127  func (it *FeatureOnlineStoreIterator) takeBuf() interface{} {
  7128  	b := it.items
  7129  	it.items = nil
  7130  	return b
  7131  }
  7132  
  7133  // FeatureViewIterator manages a stream of *aiplatformpb.FeatureView.
  7134  type FeatureViewIterator struct {
  7135  	items    []*aiplatformpb.FeatureView
  7136  	pageInfo *iterator.PageInfo
  7137  	nextFunc func() error
  7138  
  7139  	// Response is the raw response for the current page.
  7140  	// It must be cast to the RPC response type.
  7141  	// Calling Next() or InternalFetch() updates this value.
  7142  	Response interface{}
  7143  
  7144  	// InternalFetch is for use by the Google Cloud Libraries only.
  7145  	// It is not part of the stable interface of this package.
  7146  	//
  7147  	// InternalFetch returns results from a single call to the underlying RPC.
  7148  	// The number of results is no greater than pageSize.
  7149  	// If there are no more results, nextPageToken is empty and err is nil.
  7150  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureView, nextPageToken string, err error)
  7151  }
  7152  
  7153  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7154  func (it *FeatureViewIterator) PageInfo() *iterator.PageInfo {
  7155  	return it.pageInfo
  7156  }
  7157  
  7158  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7159  // results. Once Next returns Done, all subsequent calls will return Done.
  7160  func (it *FeatureViewIterator) Next() (*aiplatformpb.FeatureView, error) {
  7161  	var item *aiplatformpb.FeatureView
  7162  	if err := it.nextFunc(); err != nil {
  7163  		return item, err
  7164  	}
  7165  	item = it.items[0]
  7166  	it.items = it.items[1:]
  7167  	return item, nil
  7168  }
  7169  
  7170  func (it *FeatureViewIterator) bufLen() int {
  7171  	return len(it.items)
  7172  }
  7173  
  7174  func (it *FeatureViewIterator) takeBuf() interface{} {
  7175  	b := it.items
  7176  	it.items = nil
  7177  	return b
  7178  }
  7179  
  7180  // FeatureViewSyncIterator manages a stream of *aiplatformpb.FeatureViewSync.
  7181  type FeatureViewSyncIterator struct {
  7182  	items    []*aiplatformpb.FeatureViewSync
  7183  	pageInfo *iterator.PageInfo
  7184  	nextFunc func() error
  7185  
  7186  	// Response is the raw response for the current page.
  7187  	// It must be cast to the RPC response type.
  7188  	// Calling Next() or InternalFetch() updates this value.
  7189  	Response interface{}
  7190  
  7191  	// InternalFetch is for use by the Google Cloud Libraries only.
  7192  	// It is not part of the stable interface of this package.
  7193  	//
  7194  	// InternalFetch returns results from a single call to the underlying RPC.
  7195  	// The number of results is no greater than pageSize.
  7196  	// If there are no more results, nextPageToken is empty and err is nil.
  7197  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureViewSync, nextPageToken string, err error)
  7198  }
  7199  
  7200  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7201  func (it *FeatureViewSyncIterator) PageInfo() *iterator.PageInfo {
  7202  	return it.pageInfo
  7203  }
  7204  
  7205  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7206  // results. Once Next returns Done, all subsequent calls will return Done.
  7207  func (it *FeatureViewSyncIterator) Next() (*aiplatformpb.FeatureViewSync, error) {
  7208  	var item *aiplatformpb.FeatureViewSync
  7209  	if err := it.nextFunc(); err != nil {
  7210  		return item, err
  7211  	}
  7212  	item = it.items[0]
  7213  	it.items = it.items[1:]
  7214  	return item, nil
  7215  }
  7216  
  7217  func (it *FeatureViewSyncIterator) bufLen() int {
  7218  	return len(it.items)
  7219  }
  7220  
  7221  func (it *FeatureViewSyncIterator) takeBuf() interface{} {
  7222  	b := it.items
  7223  	it.items = nil
  7224  	return b
  7225  }
  7226  
  7227  // FeaturestoreIterator manages a stream of *aiplatformpb.Featurestore.
  7228  type FeaturestoreIterator struct {
  7229  	items    []*aiplatformpb.Featurestore
  7230  	pageInfo *iterator.PageInfo
  7231  	nextFunc func() error
  7232  
  7233  	// Response is the raw response for the current page.
  7234  	// It must be cast to the RPC response type.
  7235  	// Calling Next() or InternalFetch() updates this value.
  7236  	Response interface{}
  7237  
  7238  	// InternalFetch is for use by the Google Cloud Libraries only.
  7239  	// It is not part of the stable interface of this package.
  7240  	//
  7241  	// InternalFetch returns results from a single call to the underlying RPC.
  7242  	// The number of results is no greater than pageSize.
  7243  	// If there are no more results, nextPageToken is empty and err is nil.
  7244  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Featurestore, nextPageToken string, err error)
  7245  }
  7246  
  7247  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7248  func (it *FeaturestoreIterator) PageInfo() *iterator.PageInfo {
  7249  	return it.pageInfo
  7250  }
  7251  
  7252  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7253  // results. Once Next returns Done, all subsequent calls will return Done.
  7254  func (it *FeaturestoreIterator) Next() (*aiplatformpb.Featurestore, error) {
  7255  	var item *aiplatformpb.Featurestore
  7256  	if err := it.nextFunc(); err != nil {
  7257  		return item, err
  7258  	}
  7259  	item = it.items[0]
  7260  	it.items = it.items[1:]
  7261  	return item, nil
  7262  }
  7263  
  7264  func (it *FeaturestoreIterator) bufLen() int {
  7265  	return len(it.items)
  7266  }
  7267  
  7268  func (it *FeaturestoreIterator) takeBuf() interface{} {
  7269  	b := it.items
  7270  	it.items = nil
  7271  	return b
  7272  }
  7273  
  7274  // HyperparameterTuningJobIterator manages a stream of *aiplatformpb.HyperparameterTuningJob.
  7275  type HyperparameterTuningJobIterator struct {
  7276  	items    []*aiplatformpb.HyperparameterTuningJob
  7277  	pageInfo *iterator.PageInfo
  7278  	nextFunc func() error
  7279  
  7280  	// Response is the raw response for the current page.
  7281  	// It must be cast to the RPC response type.
  7282  	// Calling Next() or InternalFetch() updates this value.
  7283  	Response interface{}
  7284  
  7285  	// InternalFetch is for use by the Google Cloud Libraries only.
  7286  	// It is not part of the stable interface of this package.
  7287  	//
  7288  	// InternalFetch returns results from a single call to the underlying RPC.
  7289  	// The number of results is no greater than pageSize.
  7290  	// If there are no more results, nextPageToken is empty and err is nil.
  7291  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.HyperparameterTuningJob, nextPageToken string, err error)
  7292  }
  7293  
  7294  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7295  func (it *HyperparameterTuningJobIterator) PageInfo() *iterator.PageInfo {
  7296  	return it.pageInfo
  7297  }
  7298  
  7299  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7300  // results. Once Next returns Done, all subsequent calls will return Done.
  7301  func (it *HyperparameterTuningJobIterator) Next() (*aiplatformpb.HyperparameterTuningJob, error) {
  7302  	var item *aiplatformpb.HyperparameterTuningJob
  7303  	if err := it.nextFunc(); err != nil {
  7304  		return item, err
  7305  	}
  7306  	item = it.items[0]
  7307  	it.items = it.items[1:]
  7308  	return item, nil
  7309  }
  7310  
  7311  func (it *HyperparameterTuningJobIterator) bufLen() int {
  7312  	return len(it.items)
  7313  }
  7314  
  7315  func (it *HyperparameterTuningJobIterator) takeBuf() interface{} {
  7316  	b := it.items
  7317  	it.items = nil
  7318  	return b
  7319  }
  7320  
  7321  // IndexEndpointIterator manages a stream of *aiplatformpb.IndexEndpoint.
  7322  type IndexEndpointIterator struct {
  7323  	items    []*aiplatformpb.IndexEndpoint
  7324  	pageInfo *iterator.PageInfo
  7325  	nextFunc func() error
  7326  
  7327  	// Response is the raw response for the current page.
  7328  	// It must be cast to the RPC response type.
  7329  	// Calling Next() or InternalFetch() updates this value.
  7330  	Response interface{}
  7331  
  7332  	// InternalFetch is for use by the Google Cloud Libraries only.
  7333  	// It is not part of the stable interface of this package.
  7334  	//
  7335  	// InternalFetch returns results from a single call to the underlying RPC.
  7336  	// The number of results is no greater than pageSize.
  7337  	// If there are no more results, nextPageToken is empty and err is nil.
  7338  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.IndexEndpoint, nextPageToken string, err error)
  7339  }
  7340  
  7341  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7342  func (it *IndexEndpointIterator) PageInfo() *iterator.PageInfo {
  7343  	return it.pageInfo
  7344  }
  7345  
  7346  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7347  // results. Once Next returns Done, all subsequent calls will return Done.
  7348  func (it *IndexEndpointIterator) Next() (*aiplatformpb.IndexEndpoint, error) {
  7349  	var item *aiplatformpb.IndexEndpoint
  7350  	if err := it.nextFunc(); err != nil {
  7351  		return item, err
  7352  	}
  7353  	item = it.items[0]
  7354  	it.items = it.items[1:]
  7355  	return item, nil
  7356  }
  7357  
  7358  func (it *IndexEndpointIterator) bufLen() int {
  7359  	return len(it.items)
  7360  }
  7361  
  7362  func (it *IndexEndpointIterator) takeBuf() interface{} {
  7363  	b := it.items
  7364  	it.items = nil
  7365  	return b
  7366  }
  7367  
  7368  // IndexIterator manages a stream of *aiplatformpb.Index.
  7369  type IndexIterator struct {
  7370  	items    []*aiplatformpb.Index
  7371  	pageInfo *iterator.PageInfo
  7372  	nextFunc func() error
  7373  
  7374  	// Response is the raw response for the current page.
  7375  	// It must be cast to the RPC response type.
  7376  	// Calling Next() or InternalFetch() updates this value.
  7377  	Response interface{}
  7378  
  7379  	// InternalFetch is for use by the Google Cloud Libraries only.
  7380  	// It is not part of the stable interface of this package.
  7381  	//
  7382  	// InternalFetch returns results from a single call to the underlying RPC.
  7383  	// The number of results is no greater than pageSize.
  7384  	// If there are no more results, nextPageToken is empty and err is nil.
  7385  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Index, nextPageToken string, err error)
  7386  }
  7387  
  7388  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7389  func (it *IndexIterator) PageInfo() *iterator.PageInfo {
  7390  	return it.pageInfo
  7391  }
  7392  
  7393  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7394  // results. Once Next returns Done, all subsequent calls will return Done.
  7395  func (it *IndexIterator) Next() (*aiplatformpb.Index, error) {
  7396  	var item *aiplatformpb.Index
  7397  	if err := it.nextFunc(); err != nil {
  7398  		return item, err
  7399  	}
  7400  	item = it.items[0]
  7401  	it.items = it.items[1:]
  7402  	return item, nil
  7403  }
  7404  
  7405  func (it *IndexIterator) bufLen() int {
  7406  	return len(it.items)
  7407  }
  7408  
  7409  func (it *IndexIterator) takeBuf() interface{} {
  7410  	b := it.items
  7411  	it.items = nil
  7412  	return b
  7413  }
  7414  
  7415  // LocationIterator manages a stream of *locationpb.Location.
  7416  type LocationIterator struct {
  7417  	items    []*locationpb.Location
  7418  	pageInfo *iterator.PageInfo
  7419  	nextFunc func() error
  7420  
  7421  	// Response is the raw response for the current page.
  7422  	// It must be cast to the RPC response type.
  7423  	// Calling Next() or InternalFetch() updates this value.
  7424  	Response interface{}
  7425  
  7426  	// InternalFetch is for use by the Google Cloud Libraries only.
  7427  	// It is not part of the stable interface of this package.
  7428  	//
  7429  	// InternalFetch returns results from a single call to the underlying RPC.
  7430  	// The number of results is no greater than pageSize.
  7431  	// If there are no more results, nextPageToken is empty and err is nil.
  7432  	InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error)
  7433  }
  7434  
  7435  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7436  func (it *LocationIterator) PageInfo() *iterator.PageInfo {
  7437  	return it.pageInfo
  7438  }
  7439  
  7440  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7441  // results. Once Next returns Done, all subsequent calls will return Done.
  7442  func (it *LocationIterator) Next() (*locationpb.Location, error) {
  7443  	var item *locationpb.Location
  7444  	if err := it.nextFunc(); err != nil {
  7445  		return item, err
  7446  	}
  7447  	item = it.items[0]
  7448  	it.items = it.items[1:]
  7449  	return item, nil
  7450  }
  7451  
  7452  func (it *LocationIterator) bufLen() int {
  7453  	return len(it.items)
  7454  }
  7455  
  7456  func (it *LocationIterator) takeBuf() interface{} {
  7457  	b := it.items
  7458  	it.items = nil
  7459  	return b
  7460  }
  7461  
  7462  // MetadataSchemaIterator manages a stream of *aiplatformpb.MetadataSchema.
  7463  type MetadataSchemaIterator struct {
  7464  	items    []*aiplatformpb.MetadataSchema
  7465  	pageInfo *iterator.PageInfo
  7466  	nextFunc func() error
  7467  
  7468  	// Response is the raw response for the current page.
  7469  	// It must be cast to the RPC response type.
  7470  	// Calling Next() or InternalFetch() updates this value.
  7471  	Response interface{}
  7472  
  7473  	// InternalFetch is for use by the Google Cloud Libraries only.
  7474  	// It is not part of the stable interface of this package.
  7475  	//
  7476  	// InternalFetch returns results from a single call to the underlying RPC.
  7477  	// The number of results is no greater than pageSize.
  7478  	// If there are no more results, nextPageToken is empty and err is nil.
  7479  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MetadataSchema, nextPageToken string, err error)
  7480  }
  7481  
  7482  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7483  func (it *MetadataSchemaIterator) PageInfo() *iterator.PageInfo {
  7484  	return it.pageInfo
  7485  }
  7486  
  7487  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7488  // results. Once Next returns Done, all subsequent calls will return Done.
  7489  func (it *MetadataSchemaIterator) Next() (*aiplatformpb.MetadataSchema, error) {
  7490  	var item *aiplatformpb.MetadataSchema
  7491  	if err := it.nextFunc(); err != nil {
  7492  		return item, err
  7493  	}
  7494  	item = it.items[0]
  7495  	it.items = it.items[1:]
  7496  	return item, nil
  7497  }
  7498  
  7499  func (it *MetadataSchemaIterator) bufLen() int {
  7500  	return len(it.items)
  7501  }
  7502  
  7503  func (it *MetadataSchemaIterator) takeBuf() interface{} {
  7504  	b := it.items
  7505  	it.items = nil
  7506  	return b
  7507  }
  7508  
  7509  // MetadataStoreIterator manages a stream of *aiplatformpb.MetadataStore.
  7510  type MetadataStoreIterator struct {
  7511  	items    []*aiplatformpb.MetadataStore
  7512  	pageInfo *iterator.PageInfo
  7513  	nextFunc func() error
  7514  
  7515  	// Response is the raw response for the current page.
  7516  	// It must be cast to the RPC response type.
  7517  	// Calling Next() or InternalFetch() updates this value.
  7518  	Response interface{}
  7519  
  7520  	// InternalFetch is for use by the Google Cloud Libraries only.
  7521  	// It is not part of the stable interface of this package.
  7522  	//
  7523  	// InternalFetch returns results from a single call to the underlying RPC.
  7524  	// The number of results is no greater than pageSize.
  7525  	// If there are no more results, nextPageToken is empty and err is nil.
  7526  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MetadataStore, nextPageToken string, err error)
  7527  }
  7528  
  7529  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7530  func (it *MetadataStoreIterator) PageInfo() *iterator.PageInfo {
  7531  	return it.pageInfo
  7532  }
  7533  
  7534  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7535  // results. Once Next returns Done, all subsequent calls will return Done.
  7536  func (it *MetadataStoreIterator) Next() (*aiplatformpb.MetadataStore, error) {
  7537  	var item *aiplatformpb.MetadataStore
  7538  	if err := it.nextFunc(); err != nil {
  7539  		return item, err
  7540  	}
  7541  	item = it.items[0]
  7542  	it.items = it.items[1:]
  7543  	return item, nil
  7544  }
  7545  
  7546  func (it *MetadataStoreIterator) bufLen() int {
  7547  	return len(it.items)
  7548  }
  7549  
  7550  func (it *MetadataStoreIterator) takeBuf() interface{} {
  7551  	b := it.items
  7552  	it.items = nil
  7553  	return b
  7554  }
  7555  
  7556  // MigratableResourceIterator manages a stream of *aiplatformpb.MigratableResource.
  7557  type MigratableResourceIterator struct {
  7558  	items    []*aiplatformpb.MigratableResource
  7559  	pageInfo *iterator.PageInfo
  7560  	nextFunc func() error
  7561  
  7562  	// Response is the raw response for the current page.
  7563  	// It must be cast to the RPC response type.
  7564  	// Calling Next() or InternalFetch() updates this value.
  7565  	Response interface{}
  7566  
  7567  	// InternalFetch is for use by the Google Cloud Libraries only.
  7568  	// It is not part of the stable interface of this package.
  7569  	//
  7570  	// InternalFetch returns results from a single call to the underlying RPC.
  7571  	// The number of results is no greater than pageSize.
  7572  	// If there are no more results, nextPageToken is empty and err is nil.
  7573  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MigratableResource, nextPageToken string, err error)
  7574  }
  7575  
  7576  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7577  func (it *MigratableResourceIterator) PageInfo() *iterator.PageInfo {
  7578  	return it.pageInfo
  7579  }
  7580  
  7581  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7582  // results. Once Next returns Done, all subsequent calls will return Done.
  7583  func (it *MigratableResourceIterator) Next() (*aiplatformpb.MigratableResource, error) {
  7584  	var item *aiplatformpb.MigratableResource
  7585  	if err := it.nextFunc(); err != nil {
  7586  		return item, err
  7587  	}
  7588  	item = it.items[0]
  7589  	it.items = it.items[1:]
  7590  	return item, nil
  7591  }
  7592  
  7593  func (it *MigratableResourceIterator) bufLen() int {
  7594  	return len(it.items)
  7595  }
  7596  
  7597  func (it *MigratableResourceIterator) takeBuf() interface{} {
  7598  	b := it.items
  7599  	it.items = nil
  7600  	return b
  7601  }
  7602  
  7603  // ModelDeploymentMonitoringJobIterator manages a stream of *aiplatformpb.ModelDeploymentMonitoringJob.
  7604  type ModelDeploymentMonitoringJobIterator struct {
  7605  	items    []*aiplatformpb.ModelDeploymentMonitoringJob
  7606  	pageInfo *iterator.PageInfo
  7607  	nextFunc func() error
  7608  
  7609  	// Response is the raw response for the current page.
  7610  	// It must be cast to the RPC response type.
  7611  	// Calling Next() or InternalFetch() updates this value.
  7612  	Response interface{}
  7613  
  7614  	// InternalFetch is for use by the Google Cloud Libraries only.
  7615  	// It is not part of the stable interface of this package.
  7616  	//
  7617  	// InternalFetch returns results from a single call to the underlying RPC.
  7618  	// The number of results is no greater than pageSize.
  7619  	// If there are no more results, nextPageToken is empty and err is nil.
  7620  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelDeploymentMonitoringJob, nextPageToken string, err error)
  7621  }
  7622  
  7623  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7624  func (it *ModelDeploymentMonitoringJobIterator) PageInfo() *iterator.PageInfo {
  7625  	return it.pageInfo
  7626  }
  7627  
  7628  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7629  // results. Once Next returns Done, all subsequent calls will return Done.
  7630  func (it *ModelDeploymentMonitoringJobIterator) Next() (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  7631  	var item *aiplatformpb.ModelDeploymentMonitoringJob
  7632  	if err := it.nextFunc(); err != nil {
  7633  		return item, err
  7634  	}
  7635  	item = it.items[0]
  7636  	it.items = it.items[1:]
  7637  	return item, nil
  7638  }
  7639  
  7640  func (it *ModelDeploymentMonitoringJobIterator) bufLen() int {
  7641  	return len(it.items)
  7642  }
  7643  
  7644  func (it *ModelDeploymentMonitoringJobIterator) takeBuf() interface{} {
  7645  	b := it.items
  7646  	it.items = nil
  7647  	return b
  7648  }
  7649  
  7650  // ModelEvaluationIterator manages a stream of *aiplatformpb.ModelEvaluation.
  7651  type ModelEvaluationIterator struct {
  7652  	items    []*aiplatformpb.ModelEvaluation
  7653  	pageInfo *iterator.PageInfo
  7654  	nextFunc func() error
  7655  
  7656  	// Response is the raw response for the current page.
  7657  	// It must be cast to the RPC response type.
  7658  	// Calling Next() or InternalFetch() updates this value.
  7659  	Response interface{}
  7660  
  7661  	// InternalFetch is for use by the Google Cloud Libraries only.
  7662  	// It is not part of the stable interface of this package.
  7663  	//
  7664  	// InternalFetch returns results from a single call to the underlying RPC.
  7665  	// The number of results is no greater than pageSize.
  7666  	// If there are no more results, nextPageToken is empty and err is nil.
  7667  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelEvaluation, nextPageToken string, err error)
  7668  }
  7669  
  7670  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7671  func (it *ModelEvaluationIterator) PageInfo() *iterator.PageInfo {
  7672  	return it.pageInfo
  7673  }
  7674  
  7675  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7676  // results. Once Next returns Done, all subsequent calls will return Done.
  7677  func (it *ModelEvaluationIterator) Next() (*aiplatformpb.ModelEvaluation, error) {
  7678  	var item *aiplatformpb.ModelEvaluation
  7679  	if err := it.nextFunc(); err != nil {
  7680  		return item, err
  7681  	}
  7682  	item = it.items[0]
  7683  	it.items = it.items[1:]
  7684  	return item, nil
  7685  }
  7686  
  7687  func (it *ModelEvaluationIterator) bufLen() int {
  7688  	return len(it.items)
  7689  }
  7690  
  7691  func (it *ModelEvaluationIterator) takeBuf() interface{} {
  7692  	b := it.items
  7693  	it.items = nil
  7694  	return b
  7695  }
  7696  
  7697  // ModelEvaluationSliceIterator manages a stream of *aiplatformpb.ModelEvaluationSlice.
  7698  type ModelEvaluationSliceIterator struct {
  7699  	items    []*aiplatformpb.ModelEvaluationSlice
  7700  	pageInfo *iterator.PageInfo
  7701  	nextFunc func() error
  7702  
  7703  	// Response is the raw response for the current page.
  7704  	// It must be cast to the RPC response type.
  7705  	// Calling Next() or InternalFetch() updates this value.
  7706  	Response interface{}
  7707  
  7708  	// InternalFetch is for use by the Google Cloud Libraries only.
  7709  	// It is not part of the stable interface of this package.
  7710  	//
  7711  	// InternalFetch returns results from a single call to the underlying RPC.
  7712  	// The number of results is no greater than pageSize.
  7713  	// If there are no more results, nextPageToken is empty and err is nil.
  7714  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelEvaluationSlice, nextPageToken string, err error)
  7715  }
  7716  
  7717  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7718  func (it *ModelEvaluationSliceIterator) PageInfo() *iterator.PageInfo {
  7719  	return it.pageInfo
  7720  }
  7721  
  7722  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7723  // results. Once Next returns Done, all subsequent calls will return Done.
  7724  func (it *ModelEvaluationSliceIterator) Next() (*aiplatformpb.ModelEvaluationSlice, error) {
  7725  	var item *aiplatformpb.ModelEvaluationSlice
  7726  	if err := it.nextFunc(); err != nil {
  7727  		return item, err
  7728  	}
  7729  	item = it.items[0]
  7730  	it.items = it.items[1:]
  7731  	return item, nil
  7732  }
  7733  
  7734  func (it *ModelEvaluationSliceIterator) bufLen() int {
  7735  	return len(it.items)
  7736  }
  7737  
  7738  func (it *ModelEvaluationSliceIterator) takeBuf() interface{} {
  7739  	b := it.items
  7740  	it.items = nil
  7741  	return b
  7742  }
  7743  
  7744  // ModelIterator manages a stream of *aiplatformpb.Model.
  7745  type ModelIterator struct {
  7746  	items    []*aiplatformpb.Model
  7747  	pageInfo *iterator.PageInfo
  7748  	nextFunc func() error
  7749  
  7750  	// Response is the raw response for the current page.
  7751  	// It must be cast to the RPC response type.
  7752  	// Calling Next() or InternalFetch() updates this value.
  7753  	Response interface{}
  7754  
  7755  	// InternalFetch is for use by the Google Cloud Libraries only.
  7756  	// It is not part of the stable interface of this package.
  7757  	//
  7758  	// InternalFetch returns results from a single call to the underlying RPC.
  7759  	// The number of results is no greater than pageSize.
  7760  	// If there are no more results, nextPageToken is empty and err is nil.
  7761  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Model, nextPageToken string, err error)
  7762  }
  7763  
  7764  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7765  func (it *ModelIterator) PageInfo() *iterator.PageInfo {
  7766  	return it.pageInfo
  7767  }
  7768  
  7769  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7770  // results. Once Next returns Done, all subsequent calls will return Done.
  7771  func (it *ModelIterator) Next() (*aiplatformpb.Model, error) {
  7772  	var item *aiplatformpb.Model
  7773  	if err := it.nextFunc(); err != nil {
  7774  		return item, err
  7775  	}
  7776  	item = it.items[0]
  7777  	it.items = it.items[1:]
  7778  	return item, nil
  7779  }
  7780  
  7781  func (it *ModelIterator) bufLen() int {
  7782  	return len(it.items)
  7783  }
  7784  
  7785  func (it *ModelIterator) takeBuf() interface{} {
  7786  	b := it.items
  7787  	it.items = nil
  7788  	return b
  7789  }
  7790  
  7791  // ModelMonitoringStatsAnomaliesIterator manages a stream of *aiplatformpb.ModelMonitoringStatsAnomalies.
  7792  type ModelMonitoringStatsAnomaliesIterator struct {
  7793  	items    []*aiplatformpb.ModelMonitoringStatsAnomalies
  7794  	pageInfo *iterator.PageInfo
  7795  	nextFunc func() error
  7796  
  7797  	// Response is the raw response for the current page.
  7798  	// It must be cast to the RPC response type.
  7799  	// Calling Next() or InternalFetch() updates this value.
  7800  	Response interface{}
  7801  
  7802  	// InternalFetch is for use by the Google Cloud Libraries only.
  7803  	// It is not part of the stable interface of this package.
  7804  	//
  7805  	// InternalFetch returns results from a single call to the underlying RPC.
  7806  	// The number of results is no greater than pageSize.
  7807  	// If there are no more results, nextPageToken is empty and err is nil.
  7808  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitoringStatsAnomalies, nextPageToken string, err error)
  7809  }
  7810  
  7811  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7812  func (it *ModelMonitoringStatsAnomaliesIterator) PageInfo() *iterator.PageInfo {
  7813  	return it.pageInfo
  7814  }
  7815  
  7816  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7817  // results. Once Next returns Done, all subsequent calls will return Done.
  7818  func (it *ModelMonitoringStatsAnomaliesIterator) Next() (*aiplatformpb.ModelMonitoringStatsAnomalies, error) {
  7819  	var item *aiplatformpb.ModelMonitoringStatsAnomalies
  7820  	if err := it.nextFunc(); err != nil {
  7821  		return item, err
  7822  	}
  7823  	item = it.items[0]
  7824  	it.items = it.items[1:]
  7825  	return item, nil
  7826  }
  7827  
  7828  func (it *ModelMonitoringStatsAnomaliesIterator) bufLen() int {
  7829  	return len(it.items)
  7830  }
  7831  
  7832  func (it *ModelMonitoringStatsAnomaliesIterator) takeBuf() interface{} {
  7833  	b := it.items
  7834  	it.items = nil
  7835  	return b
  7836  }
  7837  
  7838  // ModelVersionCheckpointIterator manages a stream of *aiplatformpb.ModelVersionCheckpoint.
  7839  type ModelVersionCheckpointIterator struct {
  7840  	items    []*aiplatformpb.ModelVersionCheckpoint
  7841  	pageInfo *iterator.PageInfo
  7842  	nextFunc func() error
  7843  
  7844  	// Response is the raw response for the current page.
  7845  	// It must be cast to the RPC response type.
  7846  	// Calling Next() or InternalFetch() updates this value.
  7847  	Response interface{}
  7848  
  7849  	// InternalFetch is for use by the Google Cloud Libraries only.
  7850  	// It is not part of the stable interface of this package.
  7851  	//
  7852  	// InternalFetch returns results from a single call to the underlying RPC.
  7853  	// The number of results is no greater than pageSize.
  7854  	// If there are no more results, nextPageToken is empty and err is nil.
  7855  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelVersionCheckpoint, nextPageToken string, err error)
  7856  }
  7857  
  7858  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7859  func (it *ModelVersionCheckpointIterator) PageInfo() *iterator.PageInfo {
  7860  	return it.pageInfo
  7861  }
  7862  
  7863  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7864  // results. Once Next returns Done, all subsequent calls will return Done.
  7865  func (it *ModelVersionCheckpointIterator) Next() (*aiplatformpb.ModelVersionCheckpoint, error) {
  7866  	var item *aiplatformpb.ModelVersionCheckpoint
  7867  	if err := it.nextFunc(); err != nil {
  7868  		return item, err
  7869  	}
  7870  	item = it.items[0]
  7871  	it.items = it.items[1:]
  7872  	return item, nil
  7873  }
  7874  
  7875  func (it *ModelVersionCheckpointIterator) bufLen() int {
  7876  	return len(it.items)
  7877  }
  7878  
  7879  func (it *ModelVersionCheckpointIterator) takeBuf() interface{} {
  7880  	b := it.items
  7881  	it.items = nil
  7882  	return b
  7883  }
  7884  
  7885  // NasJobIterator manages a stream of *aiplatformpb.NasJob.
  7886  type NasJobIterator struct {
  7887  	items    []*aiplatformpb.NasJob
  7888  	pageInfo *iterator.PageInfo
  7889  	nextFunc func() error
  7890  
  7891  	// Response is the raw response for the current page.
  7892  	// It must be cast to the RPC response type.
  7893  	// Calling Next() or InternalFetch() updates this value.
  7894  	Response interface{}
  7895  
  7896  	// InternalFetch is for use by the Google Cloud Libraries only.
  7897  	// It is not part of the stable interface of this package.
  7898  	//
  7899  	// InternalFetch returns results from a single call to the underlying RPC.
  7900  	// The number of results is no greater than pageSize.
  7901  	// If there are no more results, nextPageToken is empty and err is nil.
  7902  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NasJob, nextPageToken string, err error)
  7903  }
  7904  
  7905  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7906  func (it *NasJobIterator) PageInfo() *iterator.PageInfo {
  7907  	return it.pageInfo
  7908  }
  7909  
  7910  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7911  // results. Once Next returns Done, all subsequent calls will return Done.
  7912  func (it *NasJobIterator) Next() (*aiplatformpb.NasJob, error) {
  7913  	var item *aiplatformpb.NasJob
  7914  	if err := it.nextFunc(); err != nil {
  7915  		return item, err
  7916  	}
  7917  	item = it.items[0]
  7918  	it.items = it.items[1:]
  7919  	return item, nil
  7920  }
  7921  
  7922  func (it *NasJobIterator) bufLen() int {
  7923  	return len(it.items)
  7924  }
  7925  
  7926  func (it *NasJobIterator) takeBuf() interface{} {
  7927  	b := it.items
  7928  	it.items = nil
  7929  	return b
  7930  }
  7931  
  7932  // NasTrialDetailIterator manages a stream of *aiplatformpb.NasTrialDetail.
  7933  type NasTrialDetailIterator struct {
  7934  	items    []*aiplatformpb.NasTrialDetail
  7935  	pageInfo *iterator.PageInfo
  7936  	nextFunc func() error
  7937  
  7938  	// Response is the raw response for the current page.
  7939  	// It must be cast to the RPC response type.
  7940  	// Calling Next() or InternalFetch() updates this value.
  7941  	Response interface{}
  7942  
  7943  	// InternalFetch is for use by the Google Cloud Libraries only.
  7944  	// It is not part of the stable interface of this package.
  7945  	//
  7946  	// InternalFetch returns results from a single call to the underlying RPC.
  7947  	// The number of results is no greater than pageSize.
  7948  	// If there are no more results, nextPageToken is empty and err is nil.
  7949  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NasTrialDetail, nextPageToken string, err error)
  7950  }
  7951  
  7952  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  7953  func (it *NasTrialDetailIterator) PageInfo() *iterator.PageInfo {
  7954  	return it.pageInfo
  7955  }
  7956  
  7957  // Next returns the next result. Its second return value is iterator.Done if there are no more
  7958  // results. Once Next returns Done, all subsequent calls will return Done.
  7959  func (it *NasTrialDetailIterator) Next() (*aiplatformpb.NasTrialDetail, error) {
  7960  	var item *aiplatformpb.NasTrialDetail
  7961  	if err := it.nextFunc(); err != nil {
  7962  		return item, err
  7963  	}
  7964  	item = it.items[0]
  7965  	it.items = it.items[1:]
  7966  	return item, nil
  7967  }
  7968  
  7969  func (it *NasTrialDetailIterator) bufLen() int {
  7970  	return len(it.items)
  7971  }
  7972  
  7973  func (it *NasTrialDetailIterator) takeBuf() interface{} {
  7974  	b := it.items
  7975  	it.items = nil
  7976  	return b
  7977  }
  7978  
  7979  // NotebookExecutionJobIterator manages a stream of *aiplatformpb.NotebookExecutionJob.
  7980  type NotebookExecutionJobIterator struct {
  7981  	items    []*aiplatformpb.NotebookExecutionJob
  7982  	pageInfo *iterator.PageInfo
  7983  	nextFunc func() error
  7984  
  7985  	// Response is the raw response for the current page.
  7986  	// It must be cast to the RPC response type.
  7987  	// Calling Next() or InternalFetch() updates this value.
  7988  	Response interface{}
  7989  
  7990  	// InternalFetch is for use by the Google Cloud Libraries only.
  7991  	// It is not part of the stable interface of this package.
  7992  	//
  7993  	// InternalFetch returns results from a single call to the underlying RPC.
  7994  	// The number of results is no greater than pageSize.
  7995  	// If there are no more results, nextPageToken is empty and err is nil.
  7996  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookExecutionJob, nextPageToken string, err error)
  7997  }
  7998  
  7999  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8000  func (it *NotebookExecutionJobIterator) PageInfo() *iterator.PageInfo {
  8001  	return it.pageInfo
  8002  }
  8003  
  8004  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8005  // results. Once Next returns Done, all subsequent calls will return Done.
  8006  func (it *NotebookExecutionJobIterator) Next() (*aiplatformpb.NotebookExecutionJob, error) {
  8007  	var item *aiplatformpb.NotebookExecutionJob
  8008  	if err := it.nextFunc(); err != nil {
  8009  		return item, err
  8010  	}
  8011  	item = it.items[0]
  8012  	it.items = it.items[1:]
  8013  	return item, nil
  8014  }
  8015  
  8016  func (it *NotebookExecutionJobIterator) bufLen() int {
  8017  	return len(it.items)
  8018  }
  8019  
  8020  func (it *NotebookExecutionJobIterator) takeBuf() interface{} {
  8021  	b := it.items
  8022  	it.items = nil
  8023  	return b
  8024  }
  8025  
  8026  // NotebookRuntimeIterator manages a stream of *aiplatformpb.NotebookRuntime.
  8027  type NotebookRuntimeIterator struct {
  8028  	items    []*aiplatformpb.NotebookRuntime
  8029  	pageInfo *iterator.PageInfo
  8030  	nextFunc func() error
  8031  
  8032  	// Response is the raw response for the current page.
  8033  	// It must be cast to the RPC response type.
  8034  	// Calling Next() or InternalFetch() updates this value.
  8035  	Response interface{}
  8036  
  8037  	// InternalFetch is for use by the Google Cloud Libraries only.
  8038  	// It is not part of the stable interface of this package.
  8039  	//
  8040  	// InternalFetch returns results from a single call to the underlying RPC.
  8041  	// The number of results is no greater than pageSize.
  8042  	// If there are no more results, nextPageToken is empty and err is nil.
  8043  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookRuntime, nextPageToken string, err error)
  8044  }
  8045  
  8046  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8047  func (it *NotebookRuntimeIterator) PageInfo() *iterator.PageInfo {
  8048  	return it.pageInfo
  8049  }
  8050  
  8051  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8052  // results. Once Next returns Done, all subsequent calls will return Done.
  8053  func (it *NotebookRuntimeIterator) Next() (*aiplatformpb.NotebookRuntime, error) {
  8054  	var item *aiplatformpb.NotebookRuntime
  8055  	if err := it.nextFunc(); err != nil {
  8056  		return item, err
  8057  	}
  8058  	item = it.items[0]
  8059  	it.items = it.items[1:]
  8060  	return item, nil
  8061  }
  8062  
  8063  func (it *NotebookRuntimeIterator) bufLen() int {
  8064  	return len(it.items)
  8065  }
  8066  
  8067  func (it *NotebookRuntimeIterator) takeBuf() interface{} {
  8068  	b := it.items
  8069  	it.items = nil
  8070  	return b
  8071  }
  8072  
  8073  // NotebookRuntimeTemplateIterator manages a stream of *aiplatformpb.NotebookRuntimeTemplate.
  8074  type NotebookRuntimeTemplateIterator struct {
  8075  	items    []*aiplatformpb.NotebookRuntimeTemplate
  8076  	pageInfo *iterator.PageInfo
  8077  	nextFunc func() error
  8078  
  8079  	// Response is the raw response for the current page.
  8080  	// It must be cast to the RPC response type.
  8081  	// Calling Next() or InternalFetch() updates this value.
  8082  	Response interface{}
  8083  
  8084  	// InternalFetch is for use by the Google Cloud Libraries only.
  8085  	// It is not part of the stable interface of this package.
  8086  	//
  8087  	// InternalFetch returns results from a single call to the underlying RPC.
  8088  	// The number of results is no greater than pageSize.
  8089  	// If there are no more results, nextPageToken is empty and err is nil.
  8090  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookRuntimeTemplate, nextPageToken string, err error)
  8091  }
  8092  
  8093  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8094  func (it *NotebookRuntimeTemplateIterator) PageInfo() *iterator.PageInfo {
  8095  	return it.pageInfo
  8096  }
  8097  
  8098  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8099  // results. Once Next returns Done, all subsequent calls will return Done.
  8100  func (it *NotebookRuntimeTemplateIterator) Next() (*aiplatformpb.NotebookRuntimeTemplate, error) {
  8101  	var item *aiplatformpb.NotebookRuntimeTemplate
  8102  	if err := it.nextFunc(); err != nil {
  8103  		return item, err
  8104  	}
  8105  	item = it.items[0]
  8106  	it.items = it.items[1:]
  8107  	return item, nil
  8108  }
  8109  
  8110  func (it *NotebookRuntimeTemplateIterator) bufLen() int {
  8111  	return len(it.items)
  8112  }
  8113  
  8114  func (it *NotebookRuntimeTemplateIterator) takeBuf() interface{} {
  8115  	b := it.items
  8116  	it.items = nil
  8117  	return b
  8118  }
  8119  
  8120  // OperationIterator manages a stream of *longrunningpb.Operation.
  8121  type OperationIterator struct {
  8122  	items    []*longrunningpb.Operation
  8123  	pageInfo *iterator.PageInfo
  8124  	nextFunc func() error
  8125  
  8126  	// Response is the raw response for the current page.
  8127  	// It must be cast to the RPC response type.
  8128  	// Calling Next() or InternalFetch() updates this value.
  8129  	Response interface{}
  8130  
  8131  	// InternalFetch is for use by the Google Cloud Libraries only.
  8132  	// It is not part of the stable interface of this package.
  8133  	//
  8134  	// InternalFetch returns results from a single call to the underlying RPC.
  8135  	// The number of results is no greater than pageSize.
  8136  	// If there are no more results, nextPageToken is empty and err is nil.
  8137  	InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
  8138  }
  8139  
  8140  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8141  func (it *OperationIterator) PageInfo() *iterator.PageInfo {
  8142  	return it.pageInfo
  8143  }
  8144  
  8145  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8146  // results. Once Next returns Done, all subsequent calls will return Done.
  8147  func (it *OperationIterator) Next() (*longrunningpb.Operation, error) {
  8148  	var item *longrunningpb.Operation
  8149  	if err := it.nextFunc(); err != nil {
  8150  		return item, err
  8151  	}
  8152  	item = it.items[0]
  8153  	it.items = it.items[1:]
  8154  	return item, nil
  8155  }
  8156  
  8157  func (it *OperationIterator) bufLen() int {
  8158  	return len(it.items)
  8159  }
  8160  
  8161  func (it *OperationIterator) takeBuf() interface{} {
  8162  	b := it.items
  8163  	it.items = nil
  8164  	return b
  8165  }
  8166  
  8167  // PersistentResourceIterator manages a stream of *aiplatformpb.PersistentResource.
  8168  type PersistentResourceIterator struct {
  8169  	items    []*aiplatformpb.PersistentResource
  8170  	pageInfo *iterator.PageInfo
  8171  	nextFunc func() error
  8172  
  8173  	// Response is the raw response for the current page.
  8174  	// It must be cast to the RPC response type.
  8175  	// Calling Next() or InternalFetch() updates this value.
  8176  	Response interface{}
  8177  
  8178  	// InternalFetch is for use by the Google Cloud Libraries only.
  8179  	// It is not part of the stable interface of this package.
  8180  	//
  8181  	// InternalFetch returns results from a single call to the underlying RPC.
  8182  	// The number of results is no greater than pageSize.
  8183  	// If there are no more results, nextPageToken is empty and err is nil.
  8184  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.PersistentResource, nextPageToken string, err error)
  8185  }
  8186  
  8187  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8188  func (it *PersistentResourceIterator) PageInfo() *iterator.PageInfo {
  8189  	return it.pageInfo
  8190  }
  8191  
  8192  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8193  // results. Once Next returns Done, all subsequent calls will return Done.
  8194  func (it *PersistentResourceIterator) Next() (*aiplatformpb.PersistentResource, error) {
  8195  	var item *aiplatformpb.PersistentResource
  8196  	if err := it.nextFunc(); err != nil {
  8197  		return item, err
  8198  	}
  8199  	item = it.items[0]
  8200  	it.items = it.items[1:]
  8201  	return item, nil
  8202  }
  8203  
  8204  func (it *PersistentResourceIterator) bufLen() int {
  8205  	return len(it.items)
  8206  }
  8207  
  8208  func (it *PersistentResourceIterator) takeBuf() interface{} {
  8209  	b := it.items
  8210  	it.items = nil
  8211  	return b
  8212  }
  8213  
  8214  // PipelineJobIterator manages a stream of *aiplatformpb.PipelineJob.
  8215  type PipelineJobIterator struct {
  8216  	items    []*aiplatformpb.PipelineJob
  8217  	pageInfo *iterator.PageInfo
  8218  	nextFunc func() error
  8219  
  8220  	// Response is the raw response for the current page.
  8221  	// It must be cast to the RPC response type.
  8222  	// Calling Next() or InternalFetch() updates this value.
  8223  	Response interface{}
  8224  
  8225  	// InternalFetch is for use by the Google Cloud Libraries only.
  8226  	// It is not part of the stable interface of this package.
  8227  	//
  8228  	// InternalFetch returns results from a single call to the underlying RPC.
  8229  	// The number of results is no greater than pageSize.
  8230  	// If there are no more results, nextPageToken is empty and err is nil.
  8231  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.PipelineJob, nextPageToken string, err error)
  8232  }
  8233  
  8234  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8235  func (it *PipelineJobIterator) PageInfo() *iterator.PageInfo {
  8236  	return it.pageInfo
  8237  }
  8238  
  8239  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8240  // results. Once Next returns Done, all subsequent calls will return Done.
  8241  func (it *PipelineJobIterator) Next() (*aiplatformpb.PipelineJob, error) {
  8242  	var item *aiplatformpb.PipelineJob
  8243  	if err := it.nextFunc(); err != nil {
  8244  		return item, err
  8245  	}
  8246  	item = it.items[0]
  8247  	it.items = it.items[1:]
  8248  	return item, nil
  8249  }
  8250  
  8251  func (it *PipelineJobIterator) bufLen() int {
  8252  	return len(it.items)
  8253  }
  8254  
  8255  func (it *PipelineJobIterator) takeBuf() interface{} {
  8256  	b := it.items
  8257  	it.items = nil
  8258  	return b
  8259  }
  8260  
  8261  // RagCorpusIterator manages a stream of *aiplatformpb.RagCorpus.
  8262  type RagCorpusIterator struct {
  8263  	items    []*aiplatformpb.RagCorpus
  8264  	pageInfo *iterator.PageInfo
  8265  	nextFunc func() error
  8266  
  8267  	// Response is the raw response for the current page.
  8268  	// It must be cast to the RPC response type.
  8269  	// Calling Next() or InternalFetch() updates this value.
  8270  	Response interface{}
  8271  
  8272  	// InternalFetch is for use by the Google Cloud Libraries only.
  8273  	// It is not part of the stable interface of this package.
  8274  	//
  8275  	// InternalFetch returns results from a single call to the underlying RPC.
  8276  	// The number of results is no greater than pageSize.
  8277  	// If there are no more results, nextPageToken is empty and err is nil.
  8278  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.RagCorpus, nextPageToken string, err error)
  8279  }
  8280  
  8281  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8282  func (it *RagCorpusIterator) PageInfo() *iterator.PageInfo {
  8283  	return it.pageInfo
  8284  }
  8285  
  8286  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8287  // results. Once Next returns Done, all subsequent calls will return Done.
  8288  func (it *RagCorpusIterator) Next() (*aiplatformpb.RagCorpus, error) {
  8289  	var item *aiplatformpb.RagCorpus
  8290  	if err := it.nextFunc(); err != nil {
  8291  		return item, err
  8292  	}
  8293  	item = it.items[0]
  8294  	it.items = it.items[1:]
  8295  	return item, nil
  8296  }
  8297  
  8298  func (it *RagCorpusIterator) bufLen() int {
  8299  	return len(it.items)
  8300  }
  8301  
  8302  func (it *RagCorpusIterator) takeBuf() interface{} {
  8303  	b := it.items
  8304  	it.items = nil
  8305  	return b
  8306  }
  8307  
  8308  // RagFileIterator manages a stream of *aiplatformpb.RagFile.
  8309  type RagFileIterator struct {
  8310  	items    []*aiplatformpb.RagFile
  8311  	pageInfo *iterator.PageInfo
  8312  	nextFunc func() error
  8313  
  8314  	// Response is the raw response for the current page.
  8315  	// It must be cast to the RPC response type.
  8316  	// Calling Next() or InternalFetch() updates this value.
  8317  	Response interface{}
  8318  
  8319  	// InternalFetch is for use by the Google Cloud Libraries only.
  8320  	// It is not part of the stable interface of this package.
  8321  	//
  8322  	// InternalFetch returns results from a single call to the underlying RPC.
  8323  	// The number of results is no greater than pageSize.
  8324  	// If there are no more results, nextPageToken is empty and err is nil.
  8325  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.RagFile, nextPageToken string, err error)
  8326  }
  8327  
  8328  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8329  func (it *RagFileIterator) PageInfo() *iterator.PageInfo {
  8330  	return it.pageInfo
  8331  }
  8332  
  8333  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8334  // results. Once Next returns Done, all subsequent calls will return Done.
  8335  func (it *RagFileIterator) Next() (*aiplatformpb.RagFile, error) {
  8336  	var item *aiplatformpb.RagFile
  8337  	if err := it.nextFunc(); err != nil {
  8338  		return item, err
  8339  	}
  8340  	item = it.items[0]
  8341  	it.items = it.items[1:]
  8342  	return item, nil
  8343  }
  8344  
  8345  func (it *RagFileIterator) bufLen() int {
  8346  	return len(it.items)
  8347  }
  8348  
  8349  func (it *RagFileIterator) takeBuf() interface{} {
  8350  	b := it.items
  8351  	it.items = nil
  8352  	return b
  8353  }
  8354  
  8355  // ReasoningEngineIterator manages a stream of *aiplatformpb.ReasoningEngine.
  8356  type ReasoningEngineIterator struct {
  8357  	items    []*aiplatformpb.ReasoningEngine
  8358  	pageInfo *iterator.PageInfo
  8359  	nextFunc func() error
  8360  
  8361  	// Response is the raw response for the current page.
  8362  	// It must be cast to the RPC response type.
  8363  	// Calling Next() or InternalFetch() updates this value.
  8364  	Response interface{}
  8365  
  8366  	// InternalFetch is for use by the Google Cloud Libraries only.
  8367  	// It is not part of the stable interface of this package.
  8368  	//
  8369  	// InternalFetch returns results from a single call to the underlying RPC.
  8370  	// The number of results is no greater than pageSize.
  8371  	// If there are no more results, nextPageToken is empty and err is nil.
  8372  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ReasoningEngine, nextPageToken string, err error)
  8373  }
  8374  
  8375  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8376  func (it *ReasoningEngineIterator) PageInfo() *iterator.PageInfo {
  8377  	return it.pageInfo
  8378  }
  8379  
  8380  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8381  // results. Once Next returns Done, all subsequent calls will return Done.
  8382  func (it *ReasoningEngineIterator) Next() (*aiplatformpb.ReasoningEngine, error) {
  8383  	var item *aiplatformpb.ReasoningEngine
  8384  	if err := it.nextFunc(); err != nil {
  8385  		return item, err
  8386  	}
  8387  	item = it.items[0]
  8388  	it.items = it.items[1:]
  8389  	return item, nil
  8390  }
  8391  
  8392  func (it *ReasoningEngineIterator) bufLen() int {
  8393  	return len(it.items)
  8394  }
  8395  
  8396  func (it *ReasoningEngineIterator) takeBuf() interface{} {
  8397  	b := it.items
  8398  	it.items = nil
  8399  	return b
  8400  }
  8401  
  8402  // SavedQueryIterator manages a stream of *aiplatformpb.SavedQuery.
  8403  type SavedQueryIterator struct {
  8404  	items    []*aiplatformpb.SavedQuery
  8405  	pageInfo *iterator.PageInfo
  8406  	nextFunc func() error
  8407  
  8408  	// Response is the raw response for the current page.
  8409  	// It must be cast to the RPC response type.
  8410  	// Calling Next() or InternalFetch() updates this value.
  8411  	Response interface{}
  8412  
  8413  	// InternalFetch is for use by the Google Cloud Libraries only.
  8414  	// It is not part of the stable interface of this package.
  8415  	//
  8416  	// InternalFetch returns results from a single call to the underlying RPC.
  8417  	// The number of results is no greater than pageSize.
  8418  	// If there are no more results, nextPageToken is empty and err is nil.
  8419  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.SavedQuery, nextPageToken string, err error)
  8420  }
  8421  
  8422  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8423  func (it *SavedQueryIterator) PageInfo() *iterator.PageInfo {
  8424  	return it.pageInfo
  8425  }
  8426  
  8427  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8428  // results. Once Next returns Done, all subsequent calls will return Done.
  8429  func (it *SavedQueryIterator) Next() (*aiplatformpb.SavedQuery, error) {
  8430  	var item *aiplatformpb.SavedQuery
  8431  	if err := it.nextFunc(); err != nil {
  8432  		return item, err
  8433  	}
  8434  	item = it.items[0]
  8435  	it.items = it.items[1:]
  8436  	return item, nil
  8437  }
  8438  
  8439  func (it *SavedQueryIterator) bufLen() int {
  8440  	return len(it.items)
  8441  }
  8442  
  8443  func (it *SavedQueryIterator) takeBuf() interface{} {
  8444  	b := it.items
  8445  	it.items = nil
  8446  	return b
  8447  }
  8448  
  8449  // ScheduleIterator manages a stream of *aiplatformpb.Schedule.
  8450  type ScheduleIterator struct {
  8451  	items    []*aiplatformpb.Schedule
  8452  	pageInfo *iterator.PageInfo
  8453  	nextFunc func() error
  8454  
  8455  	// Response is the raw response for the current page.
  8456  	// It must be cast to the RPC response type.
  8457  	// Calling Next() or InternalFetch() updates this value.
  8458  	Response interface{}
  8459  
  8460  	// InternalFetch is for use by the Google Cloud Libraries only.
  8461  	// It is not part of the stable interface of this package.
  8462  	//
  8463  	// InternalFetch returns results from a single call to the underlying RPC.
  8464  	// The number of results is no greater than pageSize.
  8465  	// If there are no more results, nextPageToken is empty and err is nil.
  8466  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Schedule, nextPageToken string, err error)
  8467  }
  8468  
  8469  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8470  func (it *ScheduleIterator) PageInfo() *iterator.PageInfo {
  8471  	return it.pageInfo
  8472  }
  8473  
  8474  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8475  // results. Once Next returns Done, all subsequent calls will return Done.
  8476  func (it *ScheduleIterator) Next() (*aiplatformpb.Schedule, error) {
  8477  	var item *aiplatformpb.Schedule
  8478  	if err := it.nextFunc(); err != nil {
  8479  		return item, err
  8480  	}
  8481  	item = it.items[0]
  8482  	it.items = it.items[1:]
  8483  	return item, nil
  8484  }
  8485  
  8486  func (it *ScheduleIterator) bufLen() int {
  8487  	return len(it.items)
  8488  }
  8489  
  8490  func (it *ScheduleIterator) takeBuf() interface{} {
  8491  	b := it.items
  8492  	it.items = nil
  8493  	return b
  8494  }
  8495  
  8496  // SpecialistPoolIterator manages a stream of *aiplatformpb.SpecialistPool.
  8497  type SpecialistPoolIterator struct {
  8498  	items    []*aiplatformpb.SpecialistPool
  8499  	pageInfo *iterator.PageInfo
  8500  	nextFunc func() error
  8501  
  8502  	// Response is the raw response for the current page.
  8503  	// It must be cast to the RPC response type.
  8504  	// Calling Next() or InternalFetch() updates this value.
  8505  	Response interface{}
  8506  
  8507  	// InternalFetch is for use by the Google Cloud Libraries only.
  8508  	// It is not part of the stable interface of this package.
  8509  	//
  8510  	// InternalFetch returns results from a single call to the underlying RPC.
  8511  	// The number of results is no greater than pageSize.
  8512  	// If there are no more results, nextPageToken is empty and err is nil.
  8513  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.SpecialistPool, nextPageToken string, err error)
  8514  }
  8515  
  8516  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8517  func (it *SpecialistPoolIterator) PageInfo() *iterator.PageInfo {
  8518  	return it.pageInfo
  8519  }
  8520  
  8521  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8522  // results. Once Next returns Done, all subsequent calls will return Done.
  8523  func (it *SpecialistPoolIterator) Next() (*aiplatformpb.SpecialistPool, error) {
  8524  	var item *aiplatformpb.SpecialistPool
  8525  	if err := it.nextFunc(); err != nil {
  8526  		return item, err
  8527  	}
  8528  	item = it.items[0]
  8529  	it.items = it.items[1:]
  8530  	return item, nil
  8531  }
  8532  
  8533  func (it *SpecialistPoolIterator) bufLen() int {
  8534  	return len(it.items)
  8535  }
  8536  
  8537  func (it *SpecialistPoolIterator) takeBuf() interface{} {
  8538  	b := it.items
  8539  	it.items = nil
  8540  	return b
  8541  }
  8542  
  8543  // StudyIterator manages a stream of *aiplatformpb.Study.
  8544  type StudyIterator struct {
  8545  	items    []*aiplatformpb.Study
  8546  	pageInfo *iterator.PageInfo
  8547  	nextFunc func() error
  8548  
  8549  	// Response is the raw response for the current page.
  8550  	// It must be cast to the RPC response type.
  8551  	// Calling Next() or InternalFetch() updates this value.
  8552  	Response interface{}
  8553  
  8554  	// InternalFetch is for use by the Google Cloud Libraries only.
  8555  	// It is not part of the stable interface of this package.
  8556  	//
  8557  	// InternalFetch returns results from a single call to the underlying RPC.
  8558  	// The number of results is no greater than pageSize.
  8559  	// If there are no more results, nextPageToken is empty and err is nil.
  8560  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Study, nextPageToken string, err error)
  8561  }
  8562  
  8563  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8564  func (it *StudyIterator) PageInfo() *iterator.PageInfo {
  8565  	return it.pageInfo
  8566  }
  8567  
  8568  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8569  // results. Once Next returns Done, all subsequent calls will return Done.
  8570  func (it *StudyIterator) Next() (*aiplatformpb.Study, error) {
  8571  	var item *aiplatformpb.Study
  8572  	if err := it.nextFunc(); err != nil {
  8573  		return item, err
  8574  	}
  8575  	item = it.items[0]
  8576  	it.items = it.items[1:]
  8577  	return item, nil
  8578  }
  8579  
  8580  func (it *StudyIterator) bufLen() int {
  8581  	return len(it.items)
  8582  }
  8583  
  8584  func (it *StudyIterator) takeBuf() interface{} {
  8585  	b := it.items
  8586  	it.items = nil
  8587  	return b
  8588  }
  8589  
  8590  // TensorboardExperimentIterator manages a stream of *aiplatformpb.TensorboardExperiment.
  8591  type TensorboardExperimentIterator struct {
  8592  	items    []*aiplatformpb.TensorboardExperiment
  8593  	pageInfo *iterator.PageInfo
  8594  	nextFunc func() error
  8595  
  8596  	// Response is the raw response for the current page.
  8597  	// It must be cast to the RPC response type.
  8598  	// Calling Next() or InternalFetch() updates this value.
  8599  	Response interface{}
  8600  
  8601  	// InternalFetch is for use by the Google Cloud Libraries only.
  8602  	// It is not part of the stable interface of this package.
  8603  	//
  8604  	// InternalFetch returns results from a single call to the underlying RPC.
  8605  	// The number of results is no greater than pageSize.
  8606  	// If there are no more results, nextPageToken is empty and err is nil.
  8607  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardExperiment, nextPageToken string, err error)
  8608  }
  8609  
  8610  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8611  func (it *TensorboardExperimentIterator) PageInfo() *iterator.PageInfo {
  8612  	return it.pageInfo
  8613  }
  8614  
  8615  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8616  // results. Once Next returns Done, all subsequent calls will return Done.
  8617  func (it *TensorboardExperimentIterator) Next() (*aiplatformpb.TensorboardExperiment, error) {
  8618  	var item *aiplatformpb.TensorboardExperiment
  8619  	if err := it.nextFunc(); err != nil {
  8620  		return item, err
  8621  	}
  8622  	item = it.items[0]
  8623  	it.items = it.items[1:]
  8624  	return item, nil
  8625  }
  8626  
  8627  func (it *TensorboardExperimentIterator) bufLen() int {
  8628  	return len(it.items)
  8629  }
  8630  
  8631  func (it *TensorboardExperimentIterator) takeBuf() interface{} {
  8632  	b := it.items
  8633  	it.items = nil
  8634  	return b
  8635  }
  8636  
  8637  // TensorboardIterator manages a stream of *aiplatformpb.Tensorboard.
  8638  type TensorboardIterator struct {
  8639  	items    []*aiplatformpb.Tensorboard
  8640  	pageInfo *iterator.PageInfo
  8641  	nextFunc func() error
  8642  
  8643  	// Response is the raw response for the current page.
  8644  	// It must be cast to the RPC response type.
  8645  	// Calling Next() or InternalFetch() updates this value.
  8646  	Response interface{}
  8647  
  8648  	// InternalFetch is for use by the Google Cloud Libraries only.
  8649  	// It is not part of the stable interface of this package.
  8650  	//
  8651  	// InternalFetch returns results from a single call to the underlying RPC.
  8652  	// The number of results is no greater than pageSize.
  8653  	// If there are no more results, nextPageToken is empty and err is nil.
  8654  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Tensorboard, nextPageToken string, err error)
  8655  }
  8656  
  8657  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8658  func (it *TensorboardIterator) PageInfo() *iterator.PageInfo {
  8659  	return it.pageInfo
  8660  }
  8661  
  8662  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8663  // results. Once Next returns Done, all subsequent calls will return Done.
  8664  func (it *TensorboardIterator) Next() (*aiplatformpb.Tensorboard, error) {
  8665  	var item *aiplatformpb.Tensorboard
  8666  	if err := it.nextFunc(); err != nil {
  8667  		return item, err
  8668  	}
  8669  	item = it.items[0]
  8670  	it.items = it.items[1:]
  8671  	return item, nil
  8672  }
  8673  
  8674  func (it *TensorboardIterator) bufLen() int {
  8675  	return len(it.items)
  8676  }
  8677  
  8678  func (it *TensorboardIterator) takeBuf() interface{} {
  8679  	b := it.items
  8680  	it.items = nil
  8681  	return b
  8682  }
  8683  
  8684  // TensorboardRunIterator manages a stream of *aiplatformpb.TensorboardRun.
  8685  type TensorboardRunIterator struct {
  8686  	items    []*aiplatformpb.TensorboardRun
  8687  	pageInfo *iterator.PageInfo
  8688  	nextFunc func() error
  8689  
  8690  	// Response is the raw response for the current page.
  8691  	// It must be cast to the RPC response type.
  8692  	// Calling Next() or InternalFetch() updates this value.
  8693  	Response interface{}
  8694  
  8695  	// InternalFetch is for use by the Google Cloud Libraries only.
  8696  	// It is not part of the stable interface of this package.
  8697  	//
  8698  	// InternalFetch returns results from a single call to the underlying RPC.
  8699  	// The number of results is no greater than pageSize.
  8700  	// If there are no more results, nextPageToken is empty and err is nil.
  8701  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardRun, nextPageToken string, err error)
  8702  }
  8703  
  8704  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8705  func (it *TensorboardRunIterator) PageInfo() *iterator.PageInfo {
  8706  	return it.pageInfo
  8707  }
  8708  
  8709  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8710  // results. Once Next returns Done, all subsequent calls will return Done.
  8711  func (it *TensorboardRunIterator) Next() (*aiplatformpb.TensorboardRun, error) {
  8712  	var item *aiplatformpb.TensorboardRun
  8713  	if err := it.nextFunc(); err != nil {
  8714  		return item, err
  8715  	}
  8716  	item = it.items[0]
  8717  	it.items = it.items[1:]
  8718  	return item, nil
  8719  }
  8720  
  8721  func (it *TensorboardRunIterator) bufLen() int {
  8722  	return len(it.items)
  8723  }
  8724  
  8725  func (it *TensorboardRunIterator) takeBuf() interface{} {
  8726  	b := it.items
  8727  	it.items = nil
  8728  	return b
  8729  }
  8730  
  8731  // TensorboardTimeSeriesIterator manages a stream of *aiplatformpb.TensorboardTimeSeries.
  8732  type TensorboardTimeSeriesIterator struct {
  8733  	items    []*aiplatformpb.TensorboardTimeSeries
  8734  	pageInfo *iterator.PageInfo
  8735  	nextFunc func() error
  8736  
  8737  	// Response is the raw response for the current page.
  8738  	// It must be cast to the RPC response type.
  8739  	// Calling Next() or InternalFetch() updates this value.
  8740  	Response interface{}
  8741  
  8742  	// InternalFetch is for use by the Google Cloud Libraries only.
  8743  	// It is not part of the stable interface of this package.
  8744  	//
  8745  	// InternalFetch returns results from a single call to the underlying RPC.
  8746  	// The number of results is no greater than pageSize.
  8747  	// If there are no more results, nextPageToken is empty and err is nil.
  8748  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardTimeSeries, nextPageToken string, err error)
  8749  }
  8750  
  8751  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8752  func (it *TensorboardTimeSeriesIterator) PageInfo() *iterator.PageInfo {
  8753  	return it.pageInfo
  8754  }
  8755  
  8756  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8757  // results. Once Next returns Done, all subsequent calls will return Done.
  8758  func (it *TensorboardTimeSeriesIterator) Next() (*aiplatformpb.TensorboardTimeSeries, error) {
  8759  	var item *aiplatformpb.TensorboardTimeSeries
  8760  	if err := it.nextFunc(); err != nil {
  8761  		return item, err
  8762  	}
  8763  	item = it.items[0]
  8764  	it.items = it.items[1:]
  8765  	return item, nil
  8766  }
  8767  
  8768  func (it *TensorboardTimeSeriesIterator) bufLen() int {
  8769  	return len(it.items)
  8770  }
  8771  
  8772  func (it *TensorboardTimeSeriesIterator) takeBuf() interface{} {
  8773  	b := it.items
  8774  	it.items = nil
  8775  	return b
  8776  }
  8777  
  8778  // TimeSeriesDataPointIterator manages a stream of *aiplatformpb.TimeSeriesDataPoint.
  8779  type TimeSeriesDataPointIterator struct {
  8780  	items    []*aiplatformpb.TimeSeriesDataPoint
  8781  	pageInfo *iterator.PageInfo
  8782  	nextFunc func() error
  8783  
  8784  	// Response is the raw response for the current page.
  8785  	// It must be cast to the RPC response type.
  8786  	// Calling Next() or InternalFetch() updates this value.
  8787  	Response interface{}
  8788  
  8789  	// InternalFetch is for use by the Google Cloud Libraries only.
  8790  	// It is not part of the stable interface of this package.
  8791  	//
  8792  	// InternalFetch returns results from a single call to the underlying RPC.
  8793  	// The number of results is no greater than pageSize.
  8794  	// If there are no more results, nextPageToken is empty and err is nil.
  8795  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TimeSeriesDataPoint, nextPageToken string, err error)
  8796  }
  8797  
  8798  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8799  func (it *TimeSeriesDataPointIterator) PageInfo() *iterator.PageInfo {
  8800  	return it.pageInfo
  8801  }
  8802  
  8803  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8804  // results. Once Next returns Done, all subsequent calls will return Done.
  8805  func (it *TimeSeriesDataPointIterator) Next() (*aiplatformpb.TimeSeriesDataPoint, error) {
  8806  	var item *aiplatformpb.TimeSeriesDataPoint
  8807  	if err := it.nextFunc(); err != nil {
  8808  		return item, err
  8809  	}
  8810  	item = it.items[0]
  8811  	it.items = it.items[1:]
  8812  	return item, nil
  8813  }
  8814  
  8815  func (it *TimeSeriesDataPointIterator) bufLen() int {
  8816  	return len(it.items)
  8817  }
  8818  
  8819  func (it *TimeSeriesDataPointIterator) takeBuf() interface{} {
  8820  	b := it.items
  8821  	it.items = nil
  8822  	return b
  8823  }
  8824  
  8825  // TrainingPipelineIterator manages a stream of *aiplatformpb.TrainingPipeline.
  8826  type TrainingPipelineIterator struct {
  8827  	items    []*aiplatformpb.TrainingPipeline
  8828  	pageInfo *iterator.PageInfo
  8829  	nextFunc func() error
  8830  
  8831  	// Response is the raw response for the current page.
  8832  	// It must be cast to the RPC response type.
  8833  	// Calling Next() or InternalFetch() updates this value.
  8834  	Response interface{}
  8835  
  8836  	// InternalFetch is for use by the Google Cloud Libraries only.
  8837  	// It is not part of the stable interface of this package.
  8838  	//
  8839  	// InternalFetch returns results from a single call to the underlying RPC.
  8840  	// The number of results is no greater than pageSize.
  8841  	// If there are no more results, nextPageToken is empty and err is nil.
  8842  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TrainingPipeline, nextPageToken string, err error)
  8843  }
  8844  
  8845  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8846  func (it *TrainingPipelineIterator) PageInfo() *iterator.PageInfo {
  8847  	return it.pageInfo
  8848  }
  8849  
  8850  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8851  // results. Once Next returns Done, all subsequent calls will return Done.
  8852  func (it *TrainingPipelineIterator) Next() (*aiplatformpb.TrainingPipeline, error) {
  8853  	var item *aiplatformpb.TrainingPipeline
  8854  	if err := it.nextFunc(); err != nil {
  8855  		return item, err
  8856  	}
  8857  	item = it.items[0]
  8858  	it.items = it.items[1:]
  8859  	return item, nil
  8860  }
  8861  
  8862  func (it *TrainingPipelineIterator) bufLen() int {
  8863  	return len(it.items)
  8864  }
  8865  
  8866  func (it *TrainingPipelineIterator) takeBuf() interface{} {
  8867  	b := it.items
  8868  	it.items = nil
  8869  	return b
  8870  }
  8871  
  8872  // TrialIterator manages a stream of *aiplatformpb.Trial.
  8873  type TrialIterator struct {
  8874  	items    []*aiplatformpb.Trial
  8875  	pageInfo *iterator.PageInfo
  8876  	nextFunc func() error
  8877  
  8878  	// Response is the raw response for the current page.
  8879  	// It must be cast to the RPC response type.
  8880  	// Calling Next() or InternalFetch() updates this value.
  8881  	Response interface{}
  8882  
  8883  	// InternalFetch is for use by the Google Cloud Libraries only.
  8884  	// It is not part of the stable interface of this package.
  8885  	//
  8886  	// InternalFetch returns results from a single call to the underlying RPC.
  8887  	// The number of results is no greater than pageSize.
  8888  	// If there are no more results, nextPageToken is empty and err is nil.
  8889  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Trial, nextPageToken string, err error)
  8890  }
  8891  
  8892  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8893  func (it *TrialIterator) PageInfo() *iterator.PageInfo {
  8894  	return it.pageInfo
  8895  }
  8896  
  8897  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8898  // results. Once Next returns Done, all subsequent calls will return Done.
  8899  func (it *TrialIterator) Next() (*aiplatformpb.Trial, error) {
  8900  	var item *aiplatformpb.Trial
  8901  	if err := it.nextFunc(); err != nil {
  8902  		return item, err
  8903  	}
  8904  	item = it.items[0]
  8905  	it.items = it.items[1:]
  8906  	return item, nil
  8907  }
  8908  
  8909  func (it *TrialIterator) bufLen() int {
  8910  	return len(it.items)
  8911  }
  8912  
  8913  func (it *TrialIterator) takeBuf() interface{} {
  8914  	b := it.items
  8915  	it.items = nil
  8916  	return b
  8917  }
  8918  
  8919  // TuningJobIterator manages a stream of *aiplatformpb.TuningJob.
  8920  type TuningJobIterator struct {
  8921  	items    []*aiplatformpb.TuningJob
  8922  	pageInfo *iterator.PageInfo
  8923  	nextFunc func() error
  8924  
  8925  	// Response is the raw response for the current page.
  8926  	// It must be cast to the RPC response type.
  8927  	// Calling Next() or InternalFetch() updates this value.
  8928  	Response interface{}
  8929  
  8930  	// InternalFetch is for use by the Google Cloud Libraries only.
  8931  	// It is not part of the stable interface of this package.
  8932  	//
  8933  	// InternalFetch returns results from a single call to the underlying RPC.
  8934  	// The number of results is no greater than pageSize.
  8935  	// If there are no more results, nextPageToken is empty and err is nil.
  8936  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TuningJob, nextPageToken string, err error)
  8937  }
  8938  
  8939  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8940  func (it *TuningJobIterator) PageInfo() *iterator.PageInfo {
  8941  	return it.pageInfo
  8942  }
  8943  
  8944  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8945  // results. Once Next returns Done, all subsequent calls will return Done.
  8946  func (it *TuningJobIterator) Next() (*aiplatformpb.TuningJob, error) {
  8947  	var item *aiplatformpb.TuningJob
  8948  	if err := it.nextFunc(); err != nil {
  8949  		return item, err
  8950  	}
  8951  	item = it.items[0]
  8952  	it.items = it.items[1:]
  8953  	return item, nil
  8954  }
  8955  
  8956  func (it *TuningJobIterator) bufLen() int {
  8957  	return len(it.items)
  8958  }
  8959  
  8960  func (it *TuningJobIterator) takeBuf() interface{} {
  8961  	b := it.items
  8962  	it.items = nil
  8963  	return b
  8964  }