cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/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/apiv1beta1/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  // AssembleDataOperation manages a long-running operation from AssembleData.
    32  type AssembleDataOperation struct {
    33  	lro      *longrunning.Operation
    34  	pollPath string
    35  }
    36  
    37  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
    38  //
    39  // See documentation of Poll for error-handling information.
    40  func (op *AssembleDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.AssembleDataResponse, error) {
    41  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
    42  	var resp aiplatformpb.AssembleDataResponse
    43  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
    44  		return nil, err
    45  	}
    46  	return &resp, nil
    47  }
    48  
    49  // Poll fetches the latest state of the long-running operation.
    50  //
    51  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
    52  //
    53  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
    54  // the operation has completed with failure, the error is returned and op.Done will return true.
    55  // If Poll succeeds and the operation has completed successfully,
    56  // op.Done will return true, and the response of the operation is returned.
    57  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
    58  func (op *AssembleDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.AssembleDataResponse, error) {
    59  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
    60  	var resp aiplatformpb.AssembleDataResponse
    61  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
    62  		return nil, err
    63  	}
    64  	if !op.Done() {
    65  		return nil, nil
    66  	}
    67  	return &resp, nil
    68  }
    69  
    70  // Metadata returns metadata associated with the long-running operation.
    71  // Metadata itself does not contact the server, but Poll does.
    72  // To get the latest metadata, call this method after a successful call to Poll.
    73  // If the metadata is not available, the returned metadata and error are both nil.
    74  func (op *AssembleDataOperation) Metadata() (*aiplatformpb.AssembleDataOperationMetadata, error) {
    75  	var meta aiplatformpb.AssembleDataOperationMetadata
    76  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
    77  		return nil, nil
    78  	} else if err != nil {
    79  		return nil, err
    80  	}
    81  	return &meta, nil
    82  }
    83  
    84  // Done reports whether the long-running operation has completed.
    85  func (op *AssembleDataOperation) Done() bool {
    86  	return op.lro.Done()
    87  }
    88  
    89  // Name returns the name of the long-running operation.
    90  // The name is assigned by the server and is unique within the service from which the operation is created.
    91  func (op *AssembleDataOperation) Name() string {
    92  	return op.lro.Name()
    93  }
    94  
    95  // AssessDataOperation manages a long-running operation from AssessData.
    96  type AssessDataOperation struct {
    97  	lro      *longrunning.Operation
    98  	pollPath string
    99  }
   100  
   101  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   102  //
   103  // See documentation of Poll for error-handling information.
   104  func (op *AssessDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.AssessDataResponse, error) {
   105  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   106  	var resp aiplatformpb.AssessDataResponse
   107  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   108  		return nil, err
   109  	}
   110  	return &resp, nil
   111  }
   112  
   113  // Poll fetches the latest state of the long-running operation.
   114  //
   115  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   116  //
   117  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   118  // the operation has completed with failure, the error is returned and op.Done will return true.
   119  // If Poll succeeds and the operation has completed successfully,
   120  // op.Done will return true, and the response of the operation is returned.
   121  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   122  func (op *AssessDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.AssessDataResponse, error) {
   123  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   124  	var resp aiplatformpb.AssessDataResponse
   125  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   126  		return nil, err
   127  	}
   128  	if !op.Done() {
   129  		return nil, nil
   130  	}
   131  	return &resp, nil
   132  }
   133  
   134  // Metadata returns metadata associated with the long-running operation.
   135  // Metadata itself does not contact the server, but Poll does.
   136  // To get the latest metadata, call this method after a successful call to Poll.
   137  // If the metadata is not available, the returned metadata and error are both nil.
   138  func (op *AssessDataOperation) Metadata() (*aiplatformpb.AssessDataOperationMetadata, error) {
   139  	var meta aiplatformpb.AssessDataOperationMetadata
   140  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   141  		return nil, nil
   142  	} else if err != nil {
   143  		return nil, err
   144  	}
   145  	return &meta, nil
   146  }
   147  
   148  // Done reports whether the long-running operation has completed.
   149  func (op *AssessDataOperation) Done() bool {
   150  	return op.lro.Done()
   151  }
   152  
   153  // Name returns the name of the long-running operation.
   154  // The name is assigned by the server and is unique within the service from which the operation is created.
   155  func (op *AssessDataOperation) Name() string {
   156  	return op.lro.Name()
   157  }
   158  
   159  // AssignNotebookRuntimeOperation manages a long-running operation from AssignNotebookRuntime.
   160  type AssignNotebookRuntimeOperation struct {
   161  	lro      *longrunning.Operation
   162  	pollPath string
   163  }
   164  
   165  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   166  //
   167  // See documentation of Poll for error-handling information.
   168  func (op *AssignNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntime, error) {
   169  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   170  	var resp aiplatformpb.NotebookRuntime
   171  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   172  		return nil, err
   173  	}
   174  	return &resp, nil
   175  }
   176  
   177  // Poll fetches the latest state of the long-running operation.
   178  //
   179  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   180  //
   181  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   182  // the operation has completed with failure, the error is returned and op.Done will return true.
   183  // If Poll succeeds and the operation has completed successfully,
   184  // op.Done will return true, and the response of the operation is returned.
   185  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   186  func (op *AssignNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntime, error) {
   187  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   188  	var resp aiplatformpb.NotebookRuntime
   189  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   190  		return nil, err
   191  	}
   192  	if !op.Done() {
   193  		return nil, nil
   194  	}
   195  	return &resp, nil
   196  }
   197  
   198  // Metadata returns metadata associated with the long-running operation.
   199  // Metadata itself does not contact the server, but Poll does.
   200  // To get the latest metadata, call this method after a successful call to Poll.
   201  // If the metadata is not available, the returned metadata and error are both nil.
   202  func (op *AssignNotebookRuntimeOperation) Metadata() (*aiplatformpb.AssignNotebookRuntimeOperationMetadata, error) {
   203  	var meta aiplatformpb.AssignNotebookRuntimeOperationMetadata
   204  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   205  		return nil, nil
   206  	} else if err != nil {
   207  		return nil, err
   208  	}
   209  	return &meta, nil
   210  }
   211  
   212  // Done reports whether the long-running operation has completed.
   213  func (op *AssignNotebookRuntimeOperation) Done() bool {
   214  	return op.lro.Done()
   215  }
   216  
   217  // Name returns the name of the long-running operation.
   218  // The name is assigned by the server and is unique within the service from which the operation is created.
   219  func (op *AssignNotebookRuntimeOperation) Name() string {
   220  	return op.lro.Name()
   221  }
   222  
   223  // BatchCancelPipelineJobsOperation manages a long-running operation from BatchCancelPipelineJobs.
   224  type BatchCancelPipelineJobsOperation struct {
   225  	lro      *longrunning.Operation
   226  	pollPath string
   227  }
   228  
   229  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   230  //
   231  // See documentation of Poll for error-handling information.
   232  func (op *BatchCancelPipelineJobsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCancelPipelineJobsResponse, error) {
   233  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   234  	var resp aiplatformpb.BatchCancelPipelineJobsResponse
   235  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   236  		return nil, err
   237  	}
   238  	return &resp, nil
   239  }
   240  
   241  // Poll fetches the latest state of the long-running operation.
   242  //
   243  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   244  //
   245  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   246  // the operation has completed with failure, the error is returned and op.Done will return true.
   247  // If Poll succeeds and the operation has completed successfully,
   248  // op.Done will return true, and the response of the operation is returned.
   249  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   250  func (op *BatchCancelPipelineJobsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCancelPipelineJobsResponse, error) {
   251  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   252  	var resp aiplatformpb.BatchCancelPipelineJobsResponse
   253  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   254  		return nil, err
   255  	}
   256  	if !op.Done() {
   257  		return nil, nil
   258  	}
   259  	return &resp, nil
   260  }
   261  
   262  // Metadata returns metadata associated with the long-running operation.
   263  // Metadata itself does not contact the server, but Poll does.
   264  // To get the latest metadata, call this method after a successful call to Poll.
   265  // If the metadata is not available, the returned metadata and error are both nil.
   266  func (op *BatchCancelPipelineJobsOperation) Metadata() (*aiplatformpb.BatchCancelPipelineJobsOperationMetadata, error) {
   267  	var meta aiplatformpb.BatchCancelPipelineJobsOperationMetadata
   268  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   269  		return nil, nil
   270  	} else if err != nil {
   271  		return nil, err
   272  	}
   273  	return &meta, nil
   274  }
   275  
   276  // Done reports whether the long-running operation has completed.
   277  func (op *BatchCancelPipelineJobsOperation) Done() bool {
   278  	return op.lro.Done()
   279  }
   280  
   281  // Name returns the name of the long-running operation.
   282  // The name is assigned by the server and is unique within the service from which the operation is created.
   283  func (op *BatchCancelPipelineJobsOperation) Name() string {
   284  	return op.lro.Name()
   285  }
   286  
   287  // BatchCreateFeaturesOperation manages a long-running operation from BatchCreateFeatures.
   288  type BatchCreateFeaturesOperation struct {
   289  	lro      *longrunning.Operation
   290  	pollPath string
   291  }
   292  
   293  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   294  //
   295  // See documentation of Poll for error-handling information.
   296  func (op *BatchCreateFeaturesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCreateFeaturesResponse, error) {
   297  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   298  	var resp aiplatformpb.BatchCreateFeaturesResponse
   299  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   300  		return nil, err
   301  	}
   302  	return &resp, nil
   303  }
   304  
   305  // Poll fetches the latest state of the long-running operation.
   306  //
   307  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   308  //
   309  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   310  // the operation has completed with failure, the error is returned and op.Done will return true.
   311  // If Poll succeeds and the operation has completed successfully,
   312  // op.Done will return true, and the response of the operation is returned.
   313  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   314  func (op *BatchCreateFeaturesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchCreateFeaturesResponse, error) {
   315  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   316  	var resp aiplatformpb.BatchCreateFeaturesResponse
   317  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   318  		return nil, err
   319  	}
   320  	if !op.Done() {
   321  		return nil, nil
   322  	}
   323  	return &resp, nil
   324  }
   325  
   326  // Metadata returns metadata associated with the long-running operation.
   327  // Metadata itself does not contact the server, but Poll does.
   328  // To get the latest metadata, call this method after a successful call to Poll.
   329  // If the metadata is not available, the returned metadata and error are both nil.
   330  func (op *BatchCreateFeaturesOperation) Metadata() (*aiplatformpb.BatchCreateFeaturesOperationMetadata, error) {
   331  	var meta aiplatformpb.BatchCreateFeaturesOperationMetadata
   332  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   333  		return nil, nil
   334  	} else if err != nil {
   335  		return nil, err
   336  	}
   337  	return &meta, nil
   338  }
   339  
   340  // Done reports whether the long-running operation has completed.
   341  func (op *BatchCreateFeaturesOperation) Done() bool {
   342  	return op.lro.Done()
   343  }
   344  
   345  // Name returns the name of the long-running operation.
   346  // The name is assigned by the server and is unique within the service from which the operation is created.
   347  func (op *BatchCreateFeaturesOperation) Name() string {
   348  	return op.lro.Name()
   349  }
   350  
   351  // BatchDeletePipelineJobsOperation manages a long-running operation from BatchDeletePipelineJobs.
   352  type BatchDeletePipelineJobsOperation struct {
   353  	lro      *longrunning.Operation
   354  	pollPath string
   355  }
   356  
   357  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   358  //
   359  // See documentation of Poll for error-handling information.
   360  func (op *BatchDeletePipelineJobsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchDeletePipelineJobsResponse, error) {
   361  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   362  	var resp aiplatformpb.BatchDeletePipelineJobsResponse
   363  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   364  		return nil, err
   365  	}
   366  	return &resp, nil
   367  }
   368  
   369  // Poll fetches the latest state of the long-running operation.
   370  //
   371  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   372  //
   373  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   374  // the operation has completed with failure, the error is returned and op.Done will return true.
   375  // If Poll succeeds and the operation has completed successfully,
   376  // op.Done will return true, and the response of the operation is returned.
   377  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   378  func (op *BatchDeletePipelineJobsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchDeletePipelineJobsResponse, error) {
   379  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   380  	var resp aiplatformpb.BatchDeletePipelineJobsResponse
   381  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   382  		return nil, err
   383  	}
   384  	if !op.Done() {
   385  		return nil, nil
   386  	}
   387  	return &resp, nil
   388  }
   389  
   390  // Metadata returns metadata associated with the long-running operation.
   391  // Metadata itself does not contact the server, but Poll does.
   392  // To get the latest metadata, call this method after a successful call to Poll.
   393  // If the metadata is not available, the returned metadata and error are both nil.
   394  func (op *BatchDeletePipelineJobsOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
   395  	var meta aiplatformpb.DeleteOperationMetadata
   396  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   397  		return nil, nil
   398  	} else if err != nil {
   399  		return nil, err
   400  	}
   401  	return &meta, nil
   402  }
   403  
   404  // Done reports whether the long-running operation has completed.
   405  func (op *BatchDeletePipelineJobsOperation) Done() bool {
   406  	return op.lro.Done()
   407  }
   408  
   409  // Name returns the name of the long-running operation.
   410  // The name is assigned by the server and is unique within the service from which the operation is created.
   411  func (op *BatchDeletePipelineJobsOperation) Name() string {
   412  	return op.lro.Name()
   413  }
   414  
   415  // BatchMigrateResourcesOperation manages a long-running operation from BatchMigrateResources.
   416  type BatchMigrateResourcesOperation struct {
   417  	lro      *longrunning.Operation
   418  	pollPath string
   419  }
   420  
   421  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   422  //
   423  // See documentation of Poll for error-handling information.
   424  func (op *BatchMigrateResourcesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchMigrateResourcesResponse, error) {
   425  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   426  	var resp aiplatformpb.BatchMigrateResourcesResponse
   427  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   428  		return nil, err
   429  	}
   430  	return &resp, nil
   431  }
   432  
   433  // Poll fetches the latest state of the long-running operation.
   434  //
   435  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   436  //
   437  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   438  // the operation has completed with failure, the error is returned and op.Done will return true.
   439  // If Poll succeeds and the operation has completed successfully,
   440  // op.Done will return true, and the response of the operation is returned.
   441  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   442  func (op *BatchMigrateResourcesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchMigrateResourcesResponse, error) {
   443  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   444  	var resp aiplatformpb.BatchMigrateResourcesResponse
   445  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   446  		return nil, err
   447  	}
   448  	if !op.Done() {
   449  		return nil, nil
   450  	}
   451  	return &resp, nil
   452  }
   453  
   454  // Metadata returns metadata associated with the long-running operation.
   455  // Metadata itself does not contact the server, but Poll does.
   456  // To get the latest metadata, call this method after a successful call to Poll.
   457  // If the metadata is not available, the returned metadata and error are both nil.
   458  func (op *BatchMigrateResourcesOperation) Metadata() (*aiplatformpb.BatchMigrateResourcesOperationMetadata, error) {
   459  	var meta aiplatformpb.BatchMigrateResourcesOperationMetadata
   460  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   461  		return nil, nil
   462  	} else if err != nil {
   463  		return nil, err
   464  	}
   465  	return &meta, nil
   466  }
   467  
   468  // Done reports whether the long-running operation has completed.
   469  func (op *BatchMigrateResourcesOperation) Done() bool {
   470  	return op.lro.Done()
   471  }
   472  
   473  // Name returns the name of the long-running operation.
   474  // The name is assigned by the server and is unique within the service from which the operation is created.
   475  func (op *BatchMigrateResourcesOperation) Name() string {
   476  	return op.lro.Name()
   477  }
   478  
   479  // BatchReadFeatureValuesOperation manages a long-running operation from BatchReadFeatureValues.
   480  type BatchReadFeatureValuesOperation struct {
   481  	lro      *longrunning.Operation
   482  	pollPath string
   483  }
   484  
   485  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   486  //
   487  // See documentation of Poll for error-handling information.
   488  func (op *BatchReadFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchReadFeatureValuesResponse, error) {
   489  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   490  	var resp aiplatformpb.BatchReadFeatureValuesResponse
   491  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   492  		return nil, err
   493  	}
   494  	return &resp, nil
   495  }
   496  
   497  // Poll fetches the latest state of the long-running operation.
   498  //
   499  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   500  //
   501  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   502  // the operation has completed with failure, the error is returned and op.Done will return true.
   503  // If Poll succeeds and the operation has completed successfully,
   504  // op.Done will return true, and the response of the operation is returned.
   505  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   506  func (op *BatchReadFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.BatchReadFeatureValuesResponse, error) {
   507  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   508  	var resp aiplatformpb.BatchReadFeatureValuesResponse
   509  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   510  		return nil, err
   511  	}
   512  	if !op.Done() {
   513  		return nil, nil
   514  	}
   515  	return &resp, nil
   516  }
   517  
   518  // Metadata returns metadata associated with the long-running operation.
   519  // Metadata itself does not contact the server, but Poll does.
   520  // To get the latest metadata, call this method after a successful call to Poll.
   521  // If the metadata is not available, the returned metadata and error are both nil.
   522  func (op *BatchReadFeatureValuesOperation) Metadata() (*aiplatformpb.BatchReadFeatureValuesOperationMetadata, error) {
   523  	var meta aiplatformpb.BatchReadFeatureValuesOperationMetadata
   524  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   525  		return nil, nil
   526  	} else if err != nil {
   527  		return nil, err
   528  	}
   529  	return &meta, nil
   530  }
   531  
   532  // Done reports whether the long-running operation has completed.
   533  func (op *BatchReadFeatureValuesOperation) Done() bool {
   534  	return op.lro.Done()
   535  }
   536  
   537  // Name returns the name of the long-running operation.
   538  // The name is assigned by the server and is unique within the service from which the operation is created.
   539  func (op *BatchReadFeatureValuesOperation) Name() string {
   540  	return op.lro.Name()
   541  }
   542  
   543  // CheckTrialEarlyStoppingStateOperation manages a long-running operation from CheckTrialEarlyStoppingState.
   544  type CheckTrialEarlyStoppingStateOperation struct {
   545  	lro      *longrunning.Operation
   546  	pollPath string
   547  }
   548  
   549  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   550  //
   551  // See documentation of Poll for error-handling information.
   552  func (op *CheckTrialEarlyStoppingStateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CheckTrialEarlyStoppingStateResponse, error) {
   553  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   554  	var resp aiplatformpb.CheckTrialEarlyStoppingStateResponse
   555  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   556  		return nil, err
   557  	}
   558  	return &resp, nil
   559  }
   560  
   561  // Poll fetches the latest state of the long-running operation.
   562  //
   563  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   564  //
   565  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   566  // the operation has completed with failure, the error is returned and op.Done will return true.
   567  // If Poll succeeds and the operation has completed successfully,
   568  // op.Done will return true, and the response of the operation is returned.
   569  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   570  func (op *CheckTrialEarlyStoppingStateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CheckTrialEarlyStoppingStateResponse, error) {
   571  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   572  	var resp aiplatformpb.CheckTrialEarlyStoppingStateResponse
   573  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   574  		return nil, err
   575  	}
   576  	if !op.Done() {
   577  		return nil, nil
   578  	}
   579  	return &resp, nil
   580  }
   581  
   582  // Metadata returns metadata associated with the long-running operation.
   583  // Metadata itself does not contact the server, but Poll does.
   584  // To get the latest metadata, call this method after a successful call to Poll.
   585  // If the metadata is not available, the returned metadata and error are both nil.
   586  func (op *CheckTrialEarlyStoppingStateOperation) Metadata() (*aiplatformpb.CheckTrialEarlyStoppingStateMetatdata, error) {
   587  	var meta aiplatformpb.CheckTrialEarlyStoppingStateMetatdata
   588  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   589  		return nil, nil
   590  	} else if err != nil {
   591  		return nil, err
   592  	}
   593  	return &meta, nil
   594  }
   595  
   596  // Done reports whether the long-running operation has completed.
   597  func (op *CheckTrialEarlyStoppingStateOperation) Done() bool {
   598  	return op.lro.Done()
   599  }
   600  
   601  // Name returns the name of the long-running operation.
   602  // The name is assigned by the server and is unique within the service from which the operation is created.
   603  func (op *CheckTrialEarlyStoppingStateOperation) Name() string {
   604  	return op.lro.Name()
   605  }
   606  
   607  // CopyModelOperation manages a long-running operation from CopyModel.
   608  type CopyModelOperation struct {
   609  	lro      *longrunning.Operation
   610  	pollPath string
   611  }
   612  
   613  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   614  //
   615  // See documentation of Poll for error-handling information.
   616  func (op *CopyModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CopyModelResponse, error) {
   617  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   618  	var resp aiplatformpb.CopyModelResponse
   619  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   620  		return nil, err
   621  	}
   622  	return &resp, nil
   623  }
   624  
   625  // Poll fetches the latest state of the long-running operation.
   626  //
   627  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   628  //
   629  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   630  // the operation has completed with failure, the error is returned and op.Done will return true.
   631  // If Poll succeeds and the operation has completed successfully,
   632  // op.Done will return true, and the response of the operation is returned.
   633  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   634  func (op *CopyModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.CopyModelResponse, error) {
   635  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   636  	var resp aiplatformpb.CopyModelResponse
   637  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   638  		return nil, err
   639  	}
   640  	if !op.Done() {
   641  		return nil, nil
   642  	}
   643  	return &resp, nil
   644  }
   645  
   646  // Metadata returns metadata associated with the long-running operation.
   647  // Metadata itself does not contact the server, but Poll does.
   648  // To get the latest metadata, call this method after a successful call to Poll.
   649  // If the metadata is not available, the returned metadata and error are both nil.
   650  func (op *CopyModelOperation) Metadata() (*aiplatformpb.CopyModelOperationMetadata, error) {
   651  	var meta aiplatformpb.CopyModelOperationMetadata
   652  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   653  		return nil, nil
   654  	} else if err != nil {
   655  		return nil, err
   656  	}
   657  	return &meta, nil
   658  }
   659  
   660  // Done reports whether the long-running operation has completed.
   661  func (op *CopyModelOperation) Done() bool {
   662  	return op.lro.Done()
   663  }
   664  
   665  // Name returns the name of the long-running operation.
   666  // The name is assigned by the server and is unique within the service from which the operation is created.
   667  func (op *CopyModelOperation) Name() string {
   668  	return op.lro.Name()
   669  }
   670  
   671  // CreateDatasetOperation manages a long-running operation from CreateDataset.
   672  type CreateDatasetOperation struct {
   673  	lro      *longrunning.Operation
   674  	pollPath string
   675  }
   676  
   677  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   678  //
   679  // See documentation of Poll for error-handling information.
   680  func (op *CreateDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Dataset, error) {
   681  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   682  	var resp aiplatformpb.Dataset
   683  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   684  		return nil, err
   685  	}
   686  	return &resp, nil
   687  }
   688  
   689  // Poll fetches the latest state of the long-running operation.
   690  //
   691  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   692  //
   693  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   694  // the operation has completed with failure, the error is returned and op.Done will return true.
   695  // If Poll succeeds and the operation has completed successfully,
   696  // op.Done will return true, and the response of the operation is returned.
   697  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   698  func (op *CreateDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Dataset, error) {
   699  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   700  	var resp aiplatformpb.Dataset
   701  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   702  		return nil, err
   703  	}
   704  	if !op.Done() {
   705  		return nil, nil
   706  	}
   707  	return &resp, nil
   708  }
   709  
   710  // Metadata returns metadata associated with the long-running operation.
   711  // Metadata itself does not contact the server, but Poll does.
   712  // To get the latest metadata, call this method after a successful call to Poll.
   713  // If the metadata is not available, the returned metadata and error are both nil.
   714  func (op *CreateDatasetOperation) Metadata() (*aiplatformpb.CreateDatasetOperationMetadata, error) {
   715  	var meta aiplatformpb.CreateDatasetOperationMetadata
   716  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   717  		return nil, nil
   718  	} else if err != nil {
   719  		return nil, err
   720  	}
   721  	return &meta, nil
   722  }
   723  
   724  // Done reports whether the long-running operation has completed.
   725  func (op *CreateDatasetOperation) Done() bool {
   726  	return op.lro.Done()
   727  }
   728  
   729  // Name returns the name of the long-running operation.
   730  // The name is assigned by the server and is unique within the service from which the operation is created.
   731  func (op *CreateDatasetOperation) Name() string {
   732  	return op.lro.Name()
   733  }
   734  
   735  // CreateDatasetVersionOperation manages a long-running operation from CreateDatasetVersion.
   736  type CreateDatasetVersionOperation struct {
   737  	lro      *longrunning.Operation
   738  	pollPath string
   739  }
   740  
   741  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   742  //
   743  // See documentation of Poll for error-handling information.
   744  func (op *CreateDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
   745  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   746  	var resp aiplatformpb.DatasetVersion
   747  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   748  		return nil, err
   749  	}
   750  	return &resp, nil
   751  }
   752  
   753  // Poll fetches the latest state of the long-running operation.
   754  //
   755  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   756  //
   757  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   758  // the operation has completed with failure, the error is returned and op.Done will return true.
   759  // If Poll succeeds and the operation has completed successfully,
   760  // op.Done will return true, and the response of the operation is returned.
   761  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   762  func (op *CreateDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
   763  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   764  	var resp aiplatformpb.DatasetVersion
   765  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   766  		return nil, err
   767  	}
   768  	if !op.Done() {
   769  		return nil, nil
   770  	}
   771  	return &resp, nil
   772  }
   773  
   774  // Metadata returns metadata associated with the long-running operation.
   775  // Metadata itself does not contact the server, but Poll does.
   776  // To get the latest metadata, call this method after a successful call to Poll.
   777  // If the metadata is not available, the returned metadata and error are both nil.
   778  func (op *CreateDatasetVersionOperation) Metadata() (*aiplatformpb.CreateDatasetVersionOperationMetadata, error) {
   779  	var meta aiplatformpb.CreateDatasetVersionOperationMetadata
   780  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   781  		return nil, nil
   782  	} else if err != nil {
   783  		return nil, err
   784  	}
   785  	return &meta, nil
   786  }
   787  
   788  // Done reports whether the long-running operation has completed.
   789  func (op *CreateDatasetVersionOperation) Done() bool {
   790  	return op.lro.Done()
   791  }
   792  
   793  // Name returns the name of the long-running operation.
   794  // The name is assigned by the server and is unique within the service from which the operation is created.
   795  func (op *CreateDatasetVersionOperation) Name() string {
   796  	return op.lro.Name()
   797  }
   798  
   799  // CreateDeploymentResourcePoolOperation manages a long-running operation from CreateDeploymentResourcePool.
   800  type CreateDeploymentResourcePoolOperation struct {
   801  	lro      *longrunning.Operation
   802  	pollPath string
   803  }
   804  
   805  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   806  //
   807  // See documentation of Poll for error-handling information.
   808  func (op *CreateDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
   809  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   810  	var resp aiplatformpb.DeploymentResourcePool
   811  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   812  		return nil, err
   813  	}
   814  	return &resp, nil
   815  }
   816  
   817  // Poll fetches the latest state of the long-running operation.
   818  //
   819  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   820  //
   821  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   822  // the operation has completed with failure, the error is returned and op.Done will return true.
   823  // If Poll succeeds and the operation has completed successfully,
   824  // op.Done will return true, and the response of the operation is returned.
   825  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   826  func (op *CreateDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
   827  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   828  	var resp aiplatformpb.DeploymentResourcePool
   829  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   830  		return nil, err
   831  	}
   832  	if !op.Done() {
   833  		return nil, nil
   834  	}
   835  	return &resp, nil
   836  }
   837  
   838  // Metadata returns metadata associated with the long-running operation.
   839  // Metadata itself does not contact the server, but Poll does.
   840  // To get the latest metadata, call this method after a successful call to Poll.
   841  // If the metadata is not available, the returned metadata and error are both nil.
   842  func (op *CreateDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.CreateDeploymentResourcePoolOperationMetadata, error) {
   843  	var meta aiplatformpb.CreateDeploymentResourcePoolOperationMetadata
   844  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   845  		return nil, nil
   846  	} else if err != nil {
   847  		return nil, err
   848  	}
   849  	return &meta, nil
   850  }
   851  
   852  // Done reports whether the long-running operation has completed.
   853  func (op *CreateDeploymentResourcePoolOperation) Done() bool {
   854  	return op.lro.Done()
   855  }
   856  
   857  // Name returns the name of the long-running operation.
   858  // The name is assigned by the server and is unique within the service from which the operation is created.
   859  func (op *CreateDeploymentResourcePoolOperation) Name() string {
   860  	return op.lro.Name()
   861  }
   862  
   863  // CreateEndpointOperation manages a long-running operation from CreateEndpoint.
   864  type CreateEndpointOperation struct {
   865  	lro      *longrunning.Operation
   866  	pollPath string
   867  }
   868  
   869  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   870  //
   871  // See documentation of Poll for error-handling information.
   872  func (op *CreateEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
   873  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   874  	var resp aiplatformpb.Endpoint
   875  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   876  		return nil, err
   877  	}
   878  	return &resp, nil
   879  }
   880  
   881  // Poll fetches the latest state of the long-running operation.
   882  //
   883  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   884  //
   885  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   886  // the operation has completed with failure, the error is returned and op.Done will return true.
   887  // If Poll succeeds and the operation has completed successfully,
   888  // op.Done will return true, and the response of the operation is returned.
   889  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   890  func (op *CreateEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
   891  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   892  	var resp aiplatformpb.Endpoint
   893  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   894  		return nil, err
   895  	}
   896  	if !op.Done() {
   897  		return nil, nil
   898  	}
   899  	return &resp, nil
   900  }
   901  
   902  // Metadata returns metadata associated with the long-running operation.
   903  // Metadata itself does not contact the server, but Poll does.
   904  // To get the latest metadata, call this method after a successful call to Poll.
   905  // If the metadata is not available, the returned metadata and error are both nil.
   906  func (op *CreateEndpointOperation) Metadata() (*aiplatformpb.CreateEndpointOperationMetadata, error) {
   907  	var meta aiplatformpb.CreateEndpointOperationMetadata
   908  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   909  		return nil, nil
   910  	} else if err != nil {
   911  		return nil, err
   912  	}
   913  	return &meta, nil
   914  }
   915  
   916  // Done reports whether the long-running operation has completed.
   917  func (op *CreateEndpointOperation) Done() bool {
   918  	return op.lro.Done()
   919  }
   920  
   921  // Name returns the name of the long-running operation.
   922  // The name is assigned by the server and is unique within the service from which the operation is created.
   923  func (op *CreateEndpointOperation) Name() string {
   924  	return op.lro.Name()
   925  }
   926  
   927  // CreateEntityTypeOperation manages a long-running operation from CreateEntityType.
   928  type CreateEntityTypeOperation struct {
   929  	lro      *longrunning.Operation
   930  	pollPath string
   931  }
   932  
   933  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   934  //
   935  // See documentation of Poll for error-handling information.
   936  func (op *CreateEntityTypeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EntityType, error) {
   937  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   938  	var resp aiplatformpb.EntityType
   939  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
   940  		return nil, err
   941  	}
   942  	return &resp, nil
   943  }
   944  
   945  // Poll fetches the latest state of the long-running operation.
   946  //
   947  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
   948  //
   949  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
   950  // the operation has completed with failure, the error is returned and op.Done will return true.
   951  // If Poll succeeds and the operation has completed successfully,
   952  // op.Done will return true, and the response of the operation is returned.
   953  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
   954  func (op *CreateEntityTypeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EntityType, error) {
   955  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
   956  	var resp aiplatformpb.EntityType
   957  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
   958  		return nil, err
   959  	}
   960  	if !op.Done() {
   961  		return nil, nil
   962  	}
   963  	return &resp, nil
   964  }
   965  
   966  // Metadata returns metadata associated with the long-running operation.
   967  // Metadata itself does not contact the server, but Poll does.
   968  // To get the latest metadata, call this method after a successful call to Poll.
   969  // If the metadata is not available, the returned metadata and error are both nil.
   970  func (op *CreateEntityTypeOperation) Metadata() (*aiplatformpb.CreateEntityTypeOperationMetadata, error) {
   971  	var meta aiplatformpb.CreateEntityTypeOperationMetadata
   972  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
   973  		return nil, nil
   974  	} else if err != nil {
   975  		return nil, err
   976  	}
   977  	return &meta, nil
   978  }
   979  
   980  // Done reports whether the long-running operation has completed.
   981  func (op *CreateEntityTypeOperation) Done() bool {
   982  	return op.lro.Done()
   983  }
   984  
   985  // Name returns the name of the long-running operation.
   986  // The name is assigned by the server and is unique within the service from which the operation is created.
   987  func (op *CreateEntityTypeOperation) Name() string {
   988  	return op.lro.Name()
   989  }
   990  
   991  // CreateExampleStoreOperation manages a long-running operation from CreateExampleStore.
   992  type CreateExampleStoreOperation struct {
   993  	lro      *longrunning.Operation
   994  	pollPath string
   995  }
   996  
   997  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
   998  //
   999  // See documentation of Poll for error-handling information.
  1000  func (op *CreateExampleStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExampleStore, error) {
  1001  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1002  	var resp aiplatformpb.ExampleStore
  1003  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1004  		return nil, err
  1005  	}
  1006  	return &resp, nil
  1007  }
  1008  
  1009  // Poll fetches the latest state of the long-running operation.
  1010  //
  1011  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1012  //
  1013  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1014  // the operation has completed with failure, the error is returned and op.Done will return true.
  1015  // If Poll succeeds and the operation has completed successfully,
  1016  // op.Done will return true, and the response of the operation is returned.
  1017  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1018  func (op *CreateExampleStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExampleStore, error) {
  1019  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1020  	var resp aiplatformpb.ExampleStore
  1021  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1022  		return nil, err
  1023  	}
  1024  	if !op.Done() {
  1025  		return nil, nil
  1026  	}
  1027  	return &resp, nil
  1028  }
  1029  
  1030  // Metadata returns metadata associated with the long-running operation.
  1031  // Metadata itself does not contact the server, but Poll does.
  1032  // To get the latest metadata, call this method after a successful call to Poll.
  1033  // If the metadata is not available, the returned metadata and error are both nil.
  1034  func (op *CreateExampleStoreOperation) Metadata() (*aiplatformpb.CreateExampleStoreOperationMetadata, error) {
  1035  	var meta aiplatformpb.CreateExampleStoreOperationMetadata
  1036  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1037  		return nil, nil
  1038  	} else if err != nil {
  1039  		return nil, err
  1040  	}
  1041  	return &meta, nil
  1042  }
  1043  
  1044  // Done reports whether the long-running operation has completed.
  1045  func (op *CreateExampleStoreOperation) Done() bool {
  1046  	return op.lro.Done()
  1047  }
  1048  
  1049  // Name returns the name of the long-running operation.
  1050  // The name is assigned by the server and is unique within the service from which the operation is created.
  1051  func (op *CreateExampleStoreOperation) Name() string {
  1052  	return op.lro.Name()
  1053  }
  1054  
  1055  // CreateFeatureGroupOperation manages a long-running operation from CreateFeatureGroup.
  1056  type CreateFeatureGroupOperation struct {
  1057  	lro      *longrunning.Operation
  1058  	pollPath string
  1059  }
  1060  
  1061  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1062  //
  1063  // See documentation of Poll for error-handling information.
  1064  func (op *CreateFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  1065  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1066  	var resp aiplatformpb.FeatureGroup
  1067  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1068  		return nil, err
  1069  	}
  1070  	return &resp, nil
  1071  }
  1072  
  1073  // Poll fetches the latest state of the long-running operation.
  1074  //
  1075  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1076  //
  1077  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1078  // the operation has completed with failure, the error is returned and op.Done will return true.
  1079  // If Poll succeeds and the operation has completed successfully,
  1080  // op.Done will return true, and the response of the operation is returned.
  1081  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1082  func (op *CreateFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  1083  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1084  	var resp aiplatformpb.FeatureGroup
  1085  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1086  		return nil, err
  1087  	}
  1088  	if !op.Done() {
  1089  		return nil, nil
  1090  	}
  1091  	return &resp, nil
  1092  }
  1093  
  1094  // Metadata returns metadata associated with the long-running operation.
  1095  // Metadata itself does not contact the server, but Poll does.
  1096  // To get the latest metadata, call this method after a successful call to Poll.
  1097  // If the metadata is not available, the returned metadata and error are both nil.
  1098  func (op *CreateFeatureGroupOperation) Metadata() (*aiplatformpb.CreateFeatureGroupOperationMetadata, error) {
  1099  	var meta aiplatformpb.CreateFeatureGroupOperationMetadata
  1100  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1101  		return nil, nil
  1102  	} else if err != nil {
  1103  		return nil, err
  1104  	}
  1105  	return &meta, nil
  1106  }
  1107  
  1108  // Done reports whether the long-running operation has completed.
  1109  func (op *CreateFeatureGroupOperation) Done() bool {
  1110  	return op.lro.Done()
  1111  }
  1112  
  1113  // Name returns the name of the long-running operation.
  1114  // The name is assigned by the server and is unique within the service from which the operation is created.
  1115  func (op *CreateFeatureGroupOperation) Name() string {
  1116  	return op.lro.Name()
  1117  }
  1118  
  1119  // CreateFeatureMonitorOperation manages a long-running operation from CreateFeatureMonitor.
  1120  type CreateFeatureMonitorOperation struct {
  1121  	lro      *longrunning.Operation
  1122  	pollPath string
  1123  }
  1124  
  1125  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1126  //
  1127  // See documentation of Poll for error-handling information.
  1128  func (op *CreateFeatureMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureMonitor, error) {
  1129  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1130  	var resp aiplatformpb.FeatureMonitor
  1131  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1132  		return nil, err
  1133  	}
  1134  	return &resp, nil
  1135  }
  1136  
  1137  // Poll fetches the latest state of the long-running operation.
  1138  //
  1139  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1140  //
  1141  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1142  // the operation has completed with failure, the error is returned and op.Done will return true.
  1143  // If Poll succeeds and the operation has completed successfully,
  1144  // op.Done will return true, and the response of the operation is returned.
  1145  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1146  func (op *CreateFeatureMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureMonitor, error) {
  1147  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1148  	var resp aiplatformpb.FeatureMonitor
  1149  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1150  		return nil, err
  1151  	}
  1152  	if !op.Done() {
  1153  		return nil, nil
  1154  	}
  1155  	return &resp, nil
  1156  }
  1157  
  1158  // Metadata returns metadata associated with the long-running operation.
  1159  // Metadata itself does not contact the server, but Poll does.
  1160  // To get the latest metadata, call this method after a successful call to Poll.
  1161  // If the metadata is not available, the returned metadata and error are both nil.
  1162  func (op *CreateFeatureMonitorOperation) Metadata() (*aiplatformpb.CreateFeatureMonitorOperationMetadata, error) {
  1163  	var meta aiplatformpb.CreateFeatureMonitorOperationMetadata
  1164  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1165  		return nil, nil
  1166  	} else if err != nil {
  1167  		return nil, err
  1168  	}
  1169  	return &meta, nil
  1170  }
  1171  
  1172  // Done reports whether the long-running operation has completed.
  1173  func (op *CreateFeatureMonitorOperation) Done() bool {
  1174  	return op.lro.Done()
  1175  }
  1176  
  1177  // Name returns the name of the long-running operation.
  1178  // The name is assigned by the server and is unique within the service from which the operation is created.
  1179  func (op *CreateFeatureMonitorOperation) Name() string {
  1180  	return op.lro.Name()
  1181  }
  1182  
  1183  // CreateFeatureOnlineStoreOperation manages a long-running operation from CreateFeatureOnlineStore.
  1184  type CreateFeatureOnlineStoreOperation struct {
  1185  	lro      *longrunning.Operation
  1186  	pollPath string
  1187  }
  1188  
  1189  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1190  //
  1191  // See documentation of Poll for error-handling information.
  1192  func (op *CreateFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  1193  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1194  	var resp aiplatformpb.FeatureOnlineStore
  1195  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1196  		return nil, err
  1197  	}
  1198  	return &resp, nil
  1199  }
  1200  
  1201  // Poll fetches the latest state of the long-running operation.
  1202  //
  1203  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1204  //
  1205  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1206  // the operation has completed with failure, the error is returned and op.Done will return true.
  1207  // If Poll succeeds and the operation has completed successfully,
  1208  // op.Done will return true, and the response of the operation is returned.
  1209  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1210  func (op *CreateFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  1211  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1212  	var resp aiplatformpb.FeatureOnlineStore
  1213  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1214  		return nil, err
  1215  	}
  1216  	if !op.Done() {
  1217  		return nil, nil
  1218  	}
  1219  	return &resp, nil
  1220  }
  1221  
  1222  // Metadata returns metadata associated with the long-running operation.
  1223  // Metadata itself does not contact the server, but Poll does.
  1224  // To get the latest metadata, call this method after a successful call to Poll.
  1225  // If the metadata is not available, the returned metadata and error are both nil.
  1226  func (op *CreateFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.CreateFeatureOnlineStoreOperationMetadata, error) {
  1227  	var meta aiplatformpb.CreateFeatureOnlineStoreOperationMetadata
  1228  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1229  		return nil, nil
  1230  	} else if err != nil {
  1231  		return nil, err
  1232  	}
  1233  	return &meta, nil
  1234  }
  1235  
  1236  // Done reports whether the long-running operation has completed.
  1237  func (op *CreateFeatureOnlineStoreOperation) Done() bool {
  1238  	return op.lro.Done()
  1239  }
  1240  
  1241  // Name returns the name of the long-running operation.
  1242  // The name is assigned by the server and is unique within the service from which the operation is created.
  1243  func (op *CreateFeatureOnlineStoreOperation) Name() string {
  1244  	return op.lro.Name()
  1245  }
  1246  
  1247  // CreateFeatureOperation manages a long-running operation from CreateFeature.
  1248  type CreateFeatureOperation struct {
  1249  	lro      *longrunning.Operation
  1250  	pollPath string
  1251  }
  1252  
  1253  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1254  //
  1255  // See documentation of Poll for error-handling information.
  1256  func (op *CreateFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  1257  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1258  	var resp aiplatformpb.Feature
  1259  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1260  		return nil, err
  1261  	}
  1262  	return &resp, nil
  1263  }
  1264  
  1265  // Poll fetches the latest state of the long-running operation.
  1266  //
  1267  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1268  //
  1269  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1270  // the operation has completed with failure, the error is returned and op.Done will return true.
  1271  // If Poll succeeds and the operation has completed successfully,
  1272  // op.Done will return true, and the response of the operation is returned.
  1273  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1274  func (op *CreateFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  1275  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1276  	var resp aiplatformpb.Feature
  1277  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1278  		return nil, err
  1279  	}
  1280  	if !op.Done() {
  1281  		return nil, nil
  1282  	}
  1283  	return &resp, nil
  1284  }
  1285  
  1286  // Metadata returns metadata associated with the long-running operation.
  1287  // Metadata itself does not contact the server, but Poll does.
  1288  // To get the latest metadata, call this method after a successful call to Poll.
  1289  // If the metadata is not available, the returned metadata and error are both nil.
  1290  func (op *CreateFeatureOperation) Metadata() (*aiplatformpb.CreateFeatureOperationMetadata, error) {
  1291  	var meta aiplatformpb.CreateFeatureOperationMetadata
  1292  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1293  		return nil, nil
  1294  	} else if err != nil {
  1295  		return nil, err
  1296  	}
  1297  	return &meta, nil
  1298  }
  1299  
  1300  // Done reports whether the long-running operation has completed.
  1301  func (op *CreateFeatureOperation) Done() bool {
  1302  	return op.lro.Done()
  1303  }
  1304  
  1305  // Name returns the name of the long-running operation.
  1306  // The name is assigned by the server and is unique within the service from which the operation is created.
  1307  func (op *CreateFeatureOperation) Name() string {
  1308  	return op.lro.Name()
  1309  }
  1310  
  1311  // CreateFeatureViewOperation manages a long-running operation from CreateFeatureView.
  1312  type CreateFeatureViewOperation struct {
  1313  	lro      *longrunning.Operation
  1314  	pollPath string
  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 *CreateFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  1321  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1322  	var resp aiplatformpb.FeatureView
  1323  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1324  		return nil, err
  1325  	}
  1326  	return &resp, nil
  1327  }
  1328  
  1329  // Poll fetches the latest state of the long-running operation.
  1330  //
  1331  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1332  //
  1333  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1334  // the operation has completed with failure, the error is returned and op.Done will return true.
  1335  // If Poll succeeds and the operation has completed successfully,
  1336  // op.Done will return true, and the response of the operation is returned.
  1337  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1338  func (op *CreateFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  1339  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1340  	var resp aiplatformpb.FeatureView
  1341  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1342  		return nil, err
  1343  	}
  1344  	if !op.Done() {
  1345  		return nil, nil
  1346  	}
  1347  	return &resp, nil
  1348  }
  1349  
  1350  // Metadata returns metadata associated with the long-running operation.
  1351  // Metadata itself does not contact the server, but Poll does.
  1352  // To get the latest metadata, call this method after a successful call to Poll.
  1353  // If the metadata is not available, the returned metadata and error are both nil.
  1354  func (op *CreateFeatureViewOperation) Metadata() (*aiplatformpb.CreateFeatureViewOperationMetadata, error) {
  1355  	var meta aiplatformpb.CreateFeatureViewOperationMetadata
  1356  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1357  		return nil, nil
  1358  	} else if err != nil {
  1359  		return nil, err
  1360  	}
  1361  	return &meta, nil
  1362  }
  1363  
  1364  // Done reports whether the long-running operation has completed.
  1365  func (op *CreateFeatureViewOperation) Done() bool {
  1366  	return op.lro.Done()
  1367  }
  1368  
  1369  // Name returns the name of the long-running operation.
  1370  // The name is assigned by the server and is unique within the service from which the operation is created.
  1371  func (op *CreateFeatureViewOperation) Name() string {
  1372  	return op.lro.Name()
  1373  }
  1374  
  1375  // CreateFeaturestoreOperation manages a long-running operation from CreateFeaturestore.
  1376  type CreateFeaturestoreOperation struct {
  1377  	lro      *longrunning.Operation
  1378  	pollPath string
  1379  }
  1380  
  1381  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1382  //
  1383  // See documentation of Poll for error-handling information.
  1384  func (op *CreateFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  1385  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1386  	var resp aiplatformpb.Featurestore
  1387  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1388  		return nil, err
  1389  	}
  1390  	return &resp, nil
  1391  }
  1392  
  1393  // Poll fetches the latest state of the long-running operation.
  1394  //
  1395  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1396  //
  1397  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1398  // the operation has completed with failure, the error is returned and op.Done will return true.
  1399  // If Poll succeeds and the operation has completed successfully,
  1400  // op.Done will return true, and the response of the operation is returned.
  1401  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1402  func (op *CreateFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  1403  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1404  	var resp aiplatformpb.Featurestore
  1405  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1406  		return nil, err
  1407  	}
  1408  	if !op.Done() {
  1409  		return nil, nil
  1410  	}
  1411  	return &resp, nil
  1412  }
  1413  
  1414  // Metadata returns metadata associated with the long-running operation.
  1415  // Metadata itself does not contact the server, but Poll does.
  1416  // To get the latest metadata, call this method after a successful call to Poll.
  1417  // If the metadata is not available, the returned metadata and error are both nil.
  1418  func (op *CreateFeaturestoreOperation) Metadata() (*aiplatformpb.CreateFeaturestoreOperationMetadata, error) {
  1419  	var meta aiplatformpb.CreateFeaturestoreOperationMetadata
  1420  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1421  		return nil, nil
  1422  	} else if err != nil {
  1423  		return nil, err
  1424  	}
  1425  	return &meta, nil
  1426  }
  1427  
  1428  // Done reports whether the long-running operation has completed.
  1429  func (op *CreateFeaturestoreOperation) Done() bool {
  1430  	return op.lro.Done()
  1431  }
  1432  
  1433  // Name returns the name of the long-running operation.
  1434  // The name is assigned by the server and is unique within the service from which the operation is created.
  1435  func (op *CreateFeaturestoreOperation) Name() string {
  1436  	return op.lro.Name()
  1437  }
  1438  
  1439  // CreateIndexEndpointOperation manages a long-running operation from CreateIndexEndpoint.
  1440  type CreateIndexEndpointOperation struct {
  1441  	lro      *longrunning.Operation
  1442  	pollPath string
  1443  }
  1444  
  1445  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1446  //
  1447  // See documentation of Poll for error-handling information.
  1448  func (op *CreateIndexEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.IndexEndpoint, error) {
  1449  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1450  	var resp aiplatformpb.IndexEndpoint
  1451  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1452  		return nil, err
  1453  	}
  1454  	return &resp, nil
  1455  }
  1456  
  1457  // Poll fetches the latest state of the long-running operation.
  1458  //
  1459  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1460  //
  1461  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1462  // the operation has completed with failure, the error is returned and op.Done will return true.
  1463  // If Poll succeeds and the operation has completed successfully,
  1464  // op.Done will return true, and the response of the operation is returned.
  1465  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1466  func (op *CreateIndexEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.IndexEndpoint, error) {
  1467  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1468  	var resp aiplatformpb.IndexEndpoint
  1469  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1470  		return nil, err
  1471  	}
  1472  	if !op.Done() {
  1473  		return nil, nil
  1474  	}
  1475  	return &resp, nil
  1476  }
  1477  
  1478  // Metadata returns metadata associated with the long-running operation.
  1479  // Metadata itself does not contact the server, but Poll does.
  1480  // To get the latest metadata, call this method after a successful call to Poll.
  1481  // If the metadata is not available, the returned metadata and error are both nil.
  1482  func (op *CreateIndexEndpointOperation) Metadata() (*aiplatformpb.CreateIndexEndpointOperationMetadata, error) {
  1483  	var meta aiplatformpb.CreateIndexEndpointOperationMetadata
  1484  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1485  		return nil, nil
  1486  	} else if err != nil {
  1487  		return nil, err
  1488  	}
  1489  	return &meta, nil
  1490  }
  1491  
  1492  // Done reports whether the long-running operation has completed.
  1493  func (op *CreateIndexEndpointOperation) Done() bool {
  1494  	return op.lro.Done()
  1495  }
  1496  
  1497  // Name returns the name of the long-running operation.
  1498  // The name is assigned by the server and is unique within the service from which the operation is created.
  1499  func (op *CreateIndexEndpointOperation) Name() string {
  1500  	return op.lro.Name()
  1501  }
  1502  
  1503  // CreateIndexOperation manages a long-running operation from CreateIndex.
  1504  type CreateIndexOperation struct {
  1505  	lro      *longrunning.Operation
  1506  	pollPath string
  1507  }
  1508  
  1509  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1510  //
  1511  // See documentation of Poll for error-handling information.
  1512  func (op *CreateIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  1513  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1514  	var resp aiplatformpb.Index
  1515  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1516  		return nil, err
  1517  	}
  1518  	return &resp, nil
  1519  }
  1520  
  1521  // Poll fetches the latest state of the long-running operation.
  1522  //
  1523  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1524  //
  1525  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1526  // the operation has completed with failure, the error is returned and op.Done will return true.
  1527  // If Poll succeeds and the operation has completed successfully,
  1528  // op.Done will return true, and the response of the operation is returned.
  1529  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1530  func (op *CreateIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  1531  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1532  	var resp aiplatformpb.Index
  1533  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1534  		return nil, err
  1535  	}
  1536  	if !op.Done() {
  1537  		return nil, nil
  1538  	}
  1539  	return &resp, nil
  1540  }
  1541  
  1542  // Metadata returns metadata associated with the long-running operation.
  1543  // Metadata itself does not contact the server, but Poll does.
  1544  // To get the latest metadata, call this method after a successful call to Poll.
  1545  // If the metadata is not available, the returned metadata and error are both nil.
  1546  func (op *CreateIndexOperation) Metadata() (*aiplatformpb.CreateIndexOperationMetadata, error) {
  1547  	var meta aiplatformpb.CreateIndexOperationMetadata
  1548  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1549  		return nil, nil
  1550  	} else if err != nil {
  1551  		return nil, err
  1552  	}
  1553  	return &meta, nil
  1554  }
  1555  
  1556  // Done reports whether the long-running operation has completed.
  1557  func (op *CreateIndexOperation) Done() bool {
  1558  	return op.lro.Done()
  1559  }
  1560  
  1561  // Name returns the name of the long-running operation.
  1562  // The name is assigned by the server and is unique within the service from which the operation is created.
  1563  func (op *CreateIndexOperation) Name() string {
  1564  	return op.lro.Name()
  1565  }
  1566  
  1567  // CreateMemoryOperation manages a long-running operation from CreateMemory.
  1568  type CreateMemoryOperation struct {
  1569  	lro      *longrunning.Operation
  1570  	pollPath string
  1571  }
  1572  
  1573  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1574  //
  1575  // See documentation of Poll for error-handling information.
  1576  func (op *CreateMemoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Memory, error) {
  1577  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1578  	var resp aiplatformpb.Memory
  1579  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1580  		return nil, err
  1581  	}
  1582  	return &resp, nil
  1583  }
  1584  
  1585  // Poll fetches the latest state of the long-running operation.
  1586  //
  1587  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1588  //
  1589  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1590  // the operation has completed with failure, the error is returned and op.Done will return true.
  1591  // If Poll succeeds and the operation has completed successfully,
  1592  // op.Done will return true, and the response of the operation is returned.
  1593  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1594  func (op *CreateMemoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Memory, error) {
  1595  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1596  	var resp aiplatformpb.Memory
  1597  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1598  		return nil, err
  1599  	}
  1600  	if !op.Done() {
  1601  		return nil, nil
  1602  	}
  1603  	return &resp, nil
  1604  }
  1605  
  1606  // Metadata returns metadata associated with the long-running operation.
  1607  // Metadata itself does not contact the server, but Poll does.
  1608  // To get the latest metadata, call this method after a successful call to Poll.
  1609  // If the metadata is not available, the returned metadata and error are both nil.
  1610  func (op *CreateMemoryOperation) Metadata() (*aiplatformpb.CreateMemoryOperationMetadata, error) {
  1611  	var meta aiplatformpb.CreateMemoryOperationMetadata
  1612  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1613  		return nil, nil
  1614  	} else if err != nil {
  1615  		return nil, err
  1616  	}
  1617  	return &meta, nil
  1618  }
  1619  
  1620  // Done reports whether the long-running operation has completed.
  1621  func (op *CreateMemoryOperation) Done() bool {
  1622  	return op.lro.Done()
  1623  }
  1624  
  1625  // Name returns the name of the long-running operation.
  1626  // The name is assigned by the server and is unique within the service from which the operation is created.
  1627  func (op *CreateMemoryOperation) Name() string {
  1628  	return op.lro.Name()
  1629  }
  1630  
  1631  // CreateMetadataStoreOperation manages a long-running operation from CreateMetadataStore.
  1632  type CreateMetadataStoreOperation struct {
  1633  	lro      *longrunning.Operation
  1634  	pollPath string
  1635  }
  1636  
  1637  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1638  //
  1639  // See documentation of Poll for error-handling information.
  1640  func (op *CreateMetadataStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MetadataStore, error) {
  1641  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1642  	var resp aiplatformpb.MetadataStore
  1643  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1644  		return nil, err
  1645  	}
  1646  	return &resp, nil
  1647  }
  1648  
  1649  // Poll fetches the latest state of the long-running operation.
  1650  //
  1651  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1652  //
  1653  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1654  // the operation has completed with failure, the error is returned and op.Done will return true.
  1655  // If Poll succeeds and the operation has completed successfully,
  1656  // op.Done will return true, and the response of the operation is returned.
  1657  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1658  func (op *CreateMetadataStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MetadataStore, error) {
  1659  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1660  	var resp aiplatformpb.MetadataStore
  1661  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1662  		return nil, err
  1663  	}
  1664  	if !op.Done() {
  1665  		return nil, nil
  1666  	}
  1667  	return &resp, nil
  1668  }
  1669  
  1670  // Metadata returns metadata associated with the long-running operation.
  1671  // Metadata itself does not contact the server, but Poll does.
  1672  // To get the latest metadata, call this method after a successful call to Poll.
  1673  // If the metadata is not available, the returned metadata and error are both nil.
  1674  func (op *CreateMetadataStoreOperation) Metadata() (*aiplatformpb.CreateMetadataStoreOperationMetadata, error) {
  1675  	var meta aiplatformpb.CreateMetadataStoreOperationMetadata
  1676  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1677  		return nil, nil
  1678  	} else if err != nil {
  1679  		return nil, err
  1680  	}
  1681  	return &meta, nil
  1682  }
  1683  
  1684  // Done reports whether the long-running operation has completed.
  1685  func (op *CreateMetadataStoreOperation) Done() bool {
  1686  	return op.lro.Done()
  1687  }
  1688  
  1689  // Name returns the name of the long-running operation.
  1690  // The name is assigned by the server and is unique within the service from which the operation is created.
  1691  func (op *CreateMetadataStoreOperation) Name() string {
  1692  	return op.lro.Name()
  1693  }
  1694  
  1695  // CreateModelMonitorOperation manages a long-running operation from CreateModelMonitor.
  1696  type CreateModelMonitorOperation struct {
  1697  	lro      *longrunning.Operation
  1698  	pollPath string
  1699  }
  1700  
  1701  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1702  //
  1703  // See documentation of Poll for error-handling information.
  1704  func (op *CreateModelMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelMonitor, error) {
  1705  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1706  	var resp aiplatformpb.ModelMonitor
  1707  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1708  		return nil, err
  1709  	}
  1710  	return &resp, nil
  1711  }
  1712  
  1713  // Poll fetches the latest state of the long-running operation.
  1714  //
  1715  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1716  //
  1717  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1718  // the operation has completed with failure, the error is returned and op.Done will return true.
  1719  // If Poll succeeds and the operation has completed successfully,
  1720  // op.Done will return true, and the response of the operation is returned.
  1721  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1722  func (op *CreateModelMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelMonitor, error) {
  1723  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1724  	var resp aiplatformpb.ModelMonitor
  1725  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1726  		return nil, err
  1727  	}
  1728  	if !op.Done() {
  1729  		return nil, nil
  1730  	}
  1731  	return &resp, nil
  1732  }
  1733  
  1734  // Metadata returns metadata associated with the long-running operation.
  1735  // Metadata itself does not contact the server, but Poll does.
  1736  // To get the latest metadata, call this method after a successful call to Poll.
  1737  // If the metadata is not available, the returned metadata and error are both nil.
  1738  func (op *CreateModelMonitorOperation) Metadata() (*aiplatformpb.CreateModelMonitorOperationMetadata, error) {
  1739  	var meta aiplatformpb.CreateModelMonitorOperationMetadata
  1740  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1741  		return nil, nil
  1742  	} else if err != nil {
  1743  		return nil, err
  1744  	}
  1745  	return &meta, nil
  1746  }
  1747  
  1748  // Done reports whether the long-running operation has completed.
  1749  func (op *CreateModelMonitorOperation) Done() bool {
  1750  	return op.lro.Done()
  1751  }
  1752  
  1753  // Name returns the name of the long-running operation.
  1754  // The name is assigned by the server and is unique within the service from which the operation is created.
  1755  func (op *CreateModelMonitorOperation) Name() string {
  1756  	return op.lro.Name()
  1757  }
  1758  
  1759  // CreateNotebookExecutionJobOperation manages a long-running operation from CreateNotebookExecutionJob.
  1760  type CreateNotebookExecutionJobOperation struct {
  1761  	lro      *longrunning.Operation
  1762  	pollPath string
  1763  }
  1764  
  1765  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1766  //
  1767  // See documentation of Poll for error-handling information.
  1768  func (op *CreateNotebookExecutionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookExecutionJob, error) {
  1769  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1770  	var resp aiplatformpb.NotebookExecutionJob
  1771  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1772  		return nil, err
  1773  	}
  1774  	return &resp, nil
  1775  }
  1776  
  1777  // Poll fetches the latest state of the long-running operation.
  1778  //
  1779  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1780  //
  1781  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1782  // the operation has completed with failure, the error is returned and op.Done will return true.
  1783  // If Poll succeeds and the operation has completed successfully,
  1784  // op.Done will return true, and the response of the operation is returned.
  1785  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1786  func (op *CreateNotebookExecutionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookExecutionJob, error) {
  1787  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1788  	var resp aiplatformpb.NotebookExecutionJob
  1789  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1790  		return nil, err
  1791  	}
  1792  	if !op.Done() {
  1793  		return nil, nil
  1794  	}
  1795  	return &resp, nil
  1796  }
  1797  
  1798  // Metadata returns metadata associated with the long-running operation.
  1799  // Metadata itself does not contact the server, but Poll does.
  1800  // To get the latest metadata, call this method after a successful call to Poll.
  1801  // If the metadata is not available, the returned metadata and error are both nil.
  1802  func (op *CreateNotebookExecutionJobOperation) Metadata() (*aiplatformpb.CreateNotebookExecutionJobOperationMetadata, error) {
  1803  	var meta aiplatformpb.CreateNotebookExecutionJobOperationMetadata
  1804  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1805  		return nil, nil
  1806  	} else if err != nil {
  1807  		return nil, err
  1808  	}
  1809  	return &meta, nil
  1810  }
  1811  
  1812  // Done reports whether the long-running operation has completed.
  1813  func (op *CreateNotebookExecutionJobOperation) Done() bool {
  1814  	return op.lro.Done()
  1815  }
  1816  
  1817  // Name returns the name of the long-running operation.
  1818  // The name is assigned by the server and is unique within the service from which the operation is created.
  1819  func (op *CreateNotebookExecutionJobOperation) Name() string {
  1820  	return op.lro.Name()
  1821  }
  1822  
  1823  // CreateNotebookRuntimeTemplateOperation manages a long-running operation from CreateNotebookRuntimeTemplate.
  1824  type CreateNotebookRuntimeTemplateOperation struct {
  1825  	lro      *longrunning.Operation
  1826  	pollPath string
  1827  }
  1828  
  1829  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1830  //
  1831  // See documentation of Poll for error-handling information.
  1832  func (op *CreateNotebookRuntimeTemplateOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntimeTemplate, error) {
  1833  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1834  	var resp aiplatformpb.NotebookRuntimeTemplate
  1835  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1836  		return nil, err
  1837  	}
  1838  	return &resp, nil
  1839  }
  1840  
  1841  // Poll fetches the latest state of the long-running operation.
  1842  //
  1843  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1844  //
  1845  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1846  // the operation has completed with failure, the error is returned and op.Done will return true.
  1847  // If Poll succeeds and the operation has completed successfully,
  1848  // op.Done will return true, and the response of the operation is returned.
  1849  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1850  func (op *CreateNotebookRuntimeTemplateOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.NotebookRuntimeTemplate, error) {
  1851  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1852  	var resp aiplatformpb.NotebookRuntimeTemplate
  1853  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1854  		return nil, err
  1855  	}
  1856  	if !op.Done() {
  1857  		return nil, nil
  1858  	}
  1859  	return &resp, nil
  1860  }
  1861  
  1862  // Metadata returns metadata associated with the long-running operation.
  1863  // Metadata itself does not contact the server, but Poll does.
  1864  // To get the latest metadata, call this method after a successful call to Poll.
  1865  // If the metadata is not available, the returned metadata and error are both nil.
  1866  func (op *CreateNotebookRuntimeTemplateOperation) Metadata() (*aiplatformpb.CreateNotebookRuntimeTemplateOperationMetadata, error) {
  1867  	var meta aiplatformpb.CreateNotebookRuntimeTemplateOperationMetadata
  1868  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1869  		return nil, nil
  1870  	} else if err != nil {
  1871  		return nil, err
  1872  	}
  1873  	return &meta, nil
  1874  }
  1875  
  1876  // Done reports whether the long-running operation has completed.
  1877  func (op *CreateNotebookRuntimeTemplateOperation) Done() bool {
  1878  	return op.lro.Done()
  1879  }
  1880  
  1881  // Name returns the name of the long-running operation.
  1882  // The name is assigned by the server and is unique within the service from which the operation is created.
  1883  func (op *CreateNotebookRuntimeTemplateOperation) Name() string {
  1884  	return op.lro.Name()
  1885  }
  1886  
  1887  // CreatePersistentResourceOperation manages a long-running operation from CreatePersistentResource.
  1888  type CreatePersistentResourceOperation struct {
  1889  	lro      *longrunning.Operation
  1890  	pollPath string
  1891  }
  1892  
  1893  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1894  //
  1895  // See documentation of Poll for error-handling information.
  1896  func (op *CreatePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  1897  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1898  	var resp aiplatformpb.PersistentResource
  1899  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1900  		return nil, err
  1901  	}
  1902  	return &resp, nil
  1903  }
  1904  
  1905  // Poll fetches the latest state of the long-running operation.
  1906  //
  1907  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1908  //
  1909  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1910  // the operation has completed with failure, the error is returned and op.Done will return true.
  1911  // If Poll succeeds and the operation has completed successfully,
  1912  // op.Done will return true, and the response of the operation is returned.
  1913  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1914  func (op *CreatePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  1915  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1916  	var resp aiplatformpb.PersistentResource
  1917  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1918  		return nil, err
  1919  	}
  1920  	if !op.Done() {
  1921  		return nil, nil
  1922  	}
  1923  	return &resp, nil
  1924  }
  1925  
  1926  // Metadata returns metadata associated with the long-running operation.
  1927  // Metadata itself does not contact the server, but Poll does.
  1928  // To get the latest metadata, call this method after a successful call to Poll.
  1929  // If the metadata is not available, the returned metadata and error are both nil.
  1930  func (op *CreatePersistentResourceOperation) Metadata() (*aiplatformpb.CreatePersistentResourceOperationMetadata, error) {
  1931  	var meta aiplatformpb.CreatePersistentResourceOperationMetadata
  1932  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1933  		return nil, nil
  1934  	} else if err != nil {
  1935  		return nil, err
  1936  	}
  1937  	return &meta, nil
  1938  }
  1939  
  1940  // Done reports whether the long-running operation has completed.
  1941  func (op *CreatePersistentResourceOperation) Done() bool {
  1942  	return op.lro.Done()
  1943  }
  1944  
  1945  // Name returns the name of the long-running operation.
  1946  // The name is assigned by the server and is unique within the service from which the operation is created.
  1947  func (op *CreatePersistentResourceOperation) Name() string {
  1948  	return op.lro.Name()
  1949  }
  1950  
  1951  // CreateRagCorpusOperation manages a long-running operation from CreateRagCorpus.
  1952  type CreateRagCorpusOperation struct {
  1953  	lro      *longrunning.Operation
  1954  	pollPath string
  1955  }
  1956  
  1957  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  1958  //
  1959  // See documentation of Poll for error-handling information.
  1960  func (op *CreateRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  1961  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1962  	var resp aiplatformpb.RagCorpus
  1963  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  1964  		return nil, err
  1965  	}
  1966  	return &resp, nil
  1967  }
  1968  
  1969  // Poll fetches the latest state of the long-running operation.
  1970  //
  1971  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  1972  //
  1973  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  1974  // the operation has completed with failure, the error is returned and op.Done will return true.
  1975  // If Poll succeeds and the operation has completed successfully,
  1976  // op.Done will return true, and the response of the operation is returned.
  1977  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  1978  func (op *CreateRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  1979  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  1980  	var resp aiplatformpb.RagCorpus
  1981  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  1982  		return nil, err
  1983  	}
  1984  	if !op.Done() {
  1985  		return nil, nil
  1986  	}
  1987  	return &resp, nil
  1988  }
  1989  
  1990  // Metadata returns metadata associated with the long-running operation.
  1991  // Metadata itself does not contact the server, but Poll does.
  1992  // To get the latest metadata, call this method after a successful call to Poll.
  1993  // If the metadata is not available, the returned metadata and error are both nil.
  1994  func (op *CreateRagCorpusOperation) Metadata() (*aiplatformpb.CreateRagCorpusOperationMetadata, error) {
  1995  	var meta aiplatformpb.CreateRagCorpusOperationMetadata
  1996  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  1997  		return nil, nil
  1998  	} else if err != nil {
  1999  		return nil, err
  2000  	}
  2001  	return &meta, nil
  2002  }
  2003  
  2004  // Done reports whether the long-running operation has completed.
  2005  func (op *CreateRagCorpusOperation) Done() bool {
  2006  	return op.lro.Done()
  2007  }
  2008  
  2009  // Name returns the name of the long-running operation.
  2010  // The name is assigned by the server and is unique within the service from which the operation is created.
  2011  func (op *CreateRagCorpusOperation) Name() string {
  2012  	return op.lro.Name()
  2013  }
  2014  
  2015  // CreateReasoningEngineOperation manages a long-running operation from CreateReasoningEngine.
  2016  type CreateReasoningEngineOperation struct {
  2017  	lro      *longrunning.Operation
  2018  	pollPath string
  2019  }
  2020  
  2021  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2022  //
  2023  // See documentation of Poll for error-handling information.
  2024  func (op *CreateReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  2025  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2026  	var resp aiplatformpb.ReasoningEngine
  2027  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  2028  		return nil, err
  2029  	}
  2030  	return &resp, nil
  2031  }
  2032  
  2033  // Poll fetches the latest state of the long-running operation.
  2034  //
  2035  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2036  //
  2037  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2038  // the operation has completed with failure, the error is returned and op.Done will return true.
  2039  // If Poll succeeds and the operation has completed successfully,
  2040  // op.Done will return true, and the response of the operation is returned.
  2041  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2042  func (op *CreateReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  2043  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2044  	var resp aiplatformpb.ReasoningEngine
  2045  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  2046  		return nil, err
  2047  	}
  2048  	if !op.Done() {
  2049  		return nil, nil
  2050  	}
  2051  	return &resp, nil
  2052  }
  2053  
  2054  // Metadata returns metadata associated with the long-running operation.
  2055  // Metadata itself does not contact the server, but Poll does.
  2056  // To get the latest metadata, call this method after a successful call to Poll.
  2057  // If the metadata is not available, the returned metadata and error are both nil.
  2058  func (op *CreateReasoningEngineOperation) Metadata() (*aiplatformpb.CreateReasoningEngineOperationMetadata, error) {
  2059  	var meta aiplatformpb.CreateReasoningEngineOperationMetadata
  2060  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2061  		return nil, nil
  2062  	} else if err != nil {
  2063  		return nil, err
  2064  	}
  2065  	return &meta, nil
  2066  }
  2067  
  2068  // Done reports whether the long-running operation has completed.
  2069  func (op *CreateReasoningEngineOperation) Done() bool {
  2070  	return op.lro.Done()
  2071  }
  2072  
  2073  // Name returns the name of the long-running operation.
  2074  // The name is assigned by the server and is unique within the service from which the operation is created.
  2075  func (op *CreateReasoningEngineOperation) Name() string {
  2076  	return op.lro.Name()
  2077  }
  2078  
  2079  // CreateSessionOperation manages a long-running operation from CreateSession.
  2080  type CreateSessionOperation struct {
  2081  	lro      *longrunning.Operation
  2082  	pollPath string
  2083  }
  2084  
  2085  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2086  //
  2087  // See documentation of Poll for error-handling information.
  2088  func (op *CreateSessionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Session, error) {
  2089  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2090  	var resp aiplatformpb.Session
  2091  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  2092  		return nil, err
  2093  	}
  2094  	return &resp, nil
  2095  }
  2096  
  2097  // Poll fetches the latest state of the long-running operation.
  2098  //
  2099  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2100  //
  2101  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2102  // the operation has completed with failure, the error is returned and op.Done will return true.
  2103  // If Poll succeeds and the operation has completed successfully,
  2104  // op.Done will return true, and the response of the operation is returned.
  2105  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2106  func (op *CreateSessionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Session, error) {
  2107  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2108  	var resp aiplatformpb.Session
  2109  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  2110  		return nil, err
  2111  	}
  2112  	if !op.Done() {
  2113  		return nil, nil
  2114  	}
  2115  	return &resp, nil
  2116  }
  2117  
  2118  // Metadata returns metadata associated with the long-running operation.
  2119  // Metadata itself does not contact the server, but Poll does.
  2120  // To get the latest metadata, call this method after a successful call to Poll.
  2121  // If the metadata is not available, the returned metadata and error are both nil.
  2122  func (op *CreateSessionOperation) Metadata() (*aiplatformpb.CreateSessionOperationMetadata, error) {
  2123  	var meta aiplatformpb.CreateSessionOperationMetadata
  2124  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2125  		return nil, nil
  2126  	} else if err != nil {
  2127  		return nil, err
  2128  	}
  2129  	return &meta, nil
  2130  }
  2131  
  2132  // Done reports whether the long-running operation has completed.
  2133  func (op *CreateSessionOperation) Done() bool {
  2134  	return op.lro.Done()
  2135  }
  2136  
  2137  // Name returns the name of the long-running operation.
  2138  // The name is assigned by the server and is unique within the service from which the operation is created.
  2139  func (op *CreateSessionOperation) Name() string {
  2140  	return op.lro.Name()
  2141  }
  2142  
  2143  // CreateSpecialistPoolOperation manages a long-running operation from CreateSpecialistPool.
  2144  type CreateSpecialistPoolOperation struct {
  2145  	lro      *longrunning.Operation
  2146  	pollPath string
  2147  }
  2148  
  2149  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2150  //
  2151  // See documentation of Poll for error-handling information.
  2152  func (op *CreateSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  2153  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2154  	var resp aiplatformpb.SpecialistPool
  2155  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  2156  		return nil, err
  2157  	}
  2158  	return &resp, nil
  2159  }
  2160  
  2161  // Poll fetches the latest state of the long-running operation.
  2162  //
  2163  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2164  //
  2165  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2166  // the operation has completed with failure, the error is returned and op.Done will return true.
  2167  // If Poll succeeds and the operation has completed successfully,
  2168  // op.Done will return true, and the response of the operation is returned.
  2169  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2170  func (op *CreateSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  2171  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2172  	var resp aiplatformpb.SpecialistPool
  2173  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  2174  		return nil, err
  2175  	}
  2176  	if !op.Done() {
  2177  		return nil, nil
  2178  	}
  2179  	return &resp, nil
  2180  }
  2181  
  2182  // Metadata returns metadata associated with the long-running operation.
  2183  // Metadata itself does not contact the server, but Poll does.
  2184  // To get the latest metadata, call this method after a successful call to Poll.
  2185  // If the metadata is not available, the returned metadata and error are both nil.
  2186  func (op *CreateSpecialistPoolOperation) Metadata() (*aiplatformpb.CreateSpecialistPoolOperationMetadata, error) {
  2187  	var meta aiplatformpb.CreateSpecialistPoolOperationMetadata
  2188  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2189  		return nil, nil
  2190  	} else if err != nil {
  2191  		return nil, err
  2192  	}
  2193  	return &meta, nil
  2194  }
  2195  
  2196  // Done reports whether the long-running operation has completed.
  2197  func (op *CreateSpecialistPoolOperation) Done() bool {
  2198  	return op.lro.Done()
  2199  }
  2200  
  2201  // Name returns the name of the long-running operation.
  2202  // The name is assigned by the server and is unique within the service from which the operation is created.
  2203  func (op *CreateSpecialistPoolOperation) Name() string {
  2204  	return op.lro.Name()
  2205  }
  2206  
  2207  // CreateTensorboardOperation manages a long-running operation from CreateTensorboard.
  2208  type CreateTensorboardOperation struct {
  2209  	lro      *longrunning.Operation
  2210  	pollPath string
  2211  }
  2212  
  2213  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2214  //
  2215  // See documentation of Poll for error-handling information.
  2216  func (op *CreateTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  2217  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2218  	var resp aiplatformpb.Tensorboard
  2219  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  2220  		return nil, err
  2221  	}
  2222  	return &resp, nil
  2223  }
  2224  
  2225  // Poll fetches the latest state of the long-running operation.
  2226  //
  2227  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2228  //
  2229  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2230  // the operation has completed with failure, the error is returned and op.Done will return true.
  2231  // If Poll succeeds and the operation has completed successfully,
  2232  // op.Done will return true, and the response of the operation is returned.
  2233  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2234  func (op *CreateTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  2235  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2236  	var resp aiplatformpb.Tensorboard
  2237  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  2238  		return nil, err
  2239  	}
  2240  	if !op.Done() {
  2241  		return nil, nil
  2242  	}
  2243  	return &resp, nil
  2244  }
  2245  
  2246  // Metadata returns metadata associated with the long-running operation.
  2247  // Metadata itself does not contact the server, but Poll does.
  2248  // To get the latest metadata, call this method after a successful call to Poll.
  2249  // If the metadata is not available, the returned metadata and error are both nil.
  2250  func (op *CreateTensorboardOperation) Metadata() (*aiplatformpb.CreateTensorboardOperationMetadata, error) {
  2251  	var meta aiplatformpb.CreateTensorboardOperationMetadata
  2252  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2253  		return nil, nil
  2254  	} else if err != nil {
  2255  		return nil, err
  2256  	}
  2257  	return &meta, nil
  2258  }
  2259  
  2260  // Done reports whether the long-running operation has completed.
  2261  func (op *CreateTensorboardOperation) Done() bool {
  2262  	return op.lro.Done()
  2263  }
  2264  
  2265  // Name returns the name of the long-running operation.
  2266  // The name is assigned by the server and is unique within the service from which the operation is created.
  2267  func (op *CreateTensorboardOperation) Name() string {
  2268  	return op.lro.Name()
  2269  }
  2270  
  2271  // DeleteArtifactOperation manages a long-running operation from DeleteArtifact.
  2272  type DeleteArtifactOperation struct {
  2273  	lro      *longrunning.Operation
  2274  	pollPath string
  2275  }
  2276  
  2277  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2278  //
  2279  // See documentation of Poll for error-handling information.
  2280  func (op *DeleteArtifactOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2281  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2282  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2283  }
  2284  
  2285  // Poll fetches the latest state of the long-running operation.
  2286  //
  2287  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2288  //
  2289  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2290  // the operation has completed with failure, the error is returned and op.Done will return true.
  2291  // If Poll succeeds and the operation has completed successfully,
  2292  // op.Done will return true, and the response of the operation is returned.
  2293  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2294  func (op *DeleteArtifactOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2295  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2296  	return op.lro.Poll(ctx, nil, opts...)
  2297  }
  2298  
  2299  // Metadata returns metadata associated with the long-running operation.
  2300  // Metadata itself does not contact the server, but Poll does.
  2301  // To get the latest metadata, call this method after a successful call to Poll.
  2302  // If the metadata is not available, the returned metadata and error are both nil.
  2303  func (op *DeleteArtifactOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2304  	var meta aiplatformpb.DeleteOperationMetadata
  2305  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2306  		return nil, nil
  2307  	} else if err != nil {
  2308  		return nil, err
  2309  	}
  2310  	return &meta, nil
  2311  }
  2312  
  2313  // Done reports whether the long-running operation has completed.
  2314  func (op *DeleteArtifactOperation) Done() bool {
  2315  	return op.lro.Done()
  2316  }
  2317  
  2318  // Name returns the name of the long-running operation.
  2319  // The name is assigned by the server and is unique within the service from which the operation is created.
  2320  func (op *DeleteArtifactOperation) Name() string {
  2321  	return op.lro.Name()
  2322  }
  2323  
  2324  // DeleteBatchPredictionJobOperation manages a long-running operation from DeleteBatchPredictionJob.
  2325  type DeleteBatchPredictionJobOperation struct {
  2326  	lro      *longrunning.Operation
  2327  	pollPath string
  2328  }
  2329  
  2330  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2331  //
  2332  // See documentation of Poll for error-handling information.
  2333  func (op *DeleteBatchPredictionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2334  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2335  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2336  }
  2337  
  2338  // Poll fetches the latest state of the long-running operation.
  2339  //
  2340  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2341  //
  2342  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2343  // the operation has completed with failure, the error is returned and op.Done will return true.
  2344  // If Poll succeeds and the operation has completed successfully,
  2345  // op.Done will return true, and the response of the operation is returned.
  2346  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2347  func (op *DeleteBatchPredictionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2348  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2349  	return op.lro.Poll(ctx, nil, opts...)
  2350  }
  2351  
  2352  // Metadata returns metadata associated with the long-running operation.
  2353  // Metadata itself does not contact the server, but Poll does.
  2354  // To get the latest metadata, call this method after a successful call to Poll.
  2355  // If the metadata is not available, the returned metadata and error are both nil.
  2356  func (op *DeleteBatchPredictionJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2357  	var meta aiplatformpb.DeleteOperationMetadata
  2358  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2359  		return nil, nil
  2360  	} else if err != nil {
  2361  		return nil, err
  2362  	}
  2363  	return &meta, nil
  2364  }
  2365  
  2366  // Done reports whether the long-running operation has completed.
  2367  func (op *DeleteBatchPredictionJobOperation) Done() bool {
  2368  	return op.lro.Done()
  2369  }
  2370  
  2371  // Name returns the name of the long-running operation.
  2372  // The name is assigned by the server and is unique within the service from which the operation is created.
  2373  func (op *DeleteBatchPredictionJobOperation) Name() string {
  2374  	return op.lro.Name()
  2375  }
  2376  
  2377  // DeleteContextOperation manages a long-running operation from DeleteContext.
  2378  type DeleteContextOperation struct {
  2379  	lro      *longrunning.Operation
  2380  	pollPath string
  2381  }
  2382  
  2383  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2384  //
  2385  // See documentation of Poll for error-handling information.
  2386  func (op *DeleteContextOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2387  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2388  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2389  }
  2390  
  2391  // Poll fetches the latest state of the long-running operation.
  2392  //
  2393  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2394  //
  2395  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2396  // the operation has completed with failure, the error is returned and op.Done will return true.
  2397  // If Poll succeeds and the operation has completed successfully,
  2398  // op.Done will return true, and the response of the operation is returned.
  2399  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2400  func (op *DeleteContextOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2401  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2402  	return op.lro.Poll(ctx, nil, opts...)
  2403  }
  2404  
  2405  // Metadata returns metadata associated with the long-running operation.
  2406  // Metadata itself does not contact the server, but Poll does.
  2407  // To get the latest metadata, call this method after a successful call to Poll.
  2408  // If the metadata is not available, the returned metadata and error are both nil.
  2409  func (op *DeleteContextOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2410  	var meta aiplatformpb.DeleteOperationMetadata
  2411  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2412  		return nil, nil
  2413  	} else if err != nil {
  2414  		return nil, err
  2415  	}
  2416  	return &meta, nil
  2417  }
  2418  
  2419  // Done reports whether the long-running operation has completed.
  2420  func (op *DeleteContextOperation) Done() bool {
  2421  	return op.lro.Done()
  2422  }
  2423  
  2424  // Name returns the name of the long-running operation.
  2425  // The name is assigned by the server and is unique within the service from which the operation is created.
  2426  func (op *DeleteContextOperation) Name() string {
  2427  	return op.lro.Name()
  2428  }
  2429  
  2430  // DeleteCustomJobOperation manages a long-running operation from DeleteCustomJob.
  2431  type DeleteCustomJobOperation struct {
  2432  	lro      *longrunning.Operation
  2433  	pollPath string
  2434  }
  2435  
  2436  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2437  //
  2438  // See documentation of Poll for error-handling information.
  2439  func (op *DeleteCustomJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2440  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2441  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2442  }
  2443  
  2444  // Poll fetches the latest state of the long-running operation.
  2445  //
  2446  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2447  //
  2448  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2449  // the operation has completed with failure, the error is returned and op.Done will return true.
  2450  // If Poll succeeds and the operation has completed successfully,
  2451  // op.Done will return true, and the response of the operation is returned.
  2452  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2453  func (op *DeleteCustomJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2454  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2455  	return op.lro.Poll(ctx, nil, opts...)
  2456  }
  2457  
  2458  // Metadata returns metadata associated with the long-running operation.
  2459  // Metadata itself does not contact the server, but Poll does.
  2460  // To get the latest metadata, call this method after a successful call to Poll.
  2461  // If the metadata is not available, the returned metadata and error are both nil.
  2462  func (op *DeleteCustomJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2463  	var meta aiplatformpb.DeleteOperationMetadata
  2464  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2465  		return nil, nil
  2466  	} else if err != nil {
  2467  		return nil, err
  2468  	}
  2469  	return &meta, nil
  2470  }
  2471  
  2472  // Done reports whether the long-running operation has completed.
  2473  func (op *DeleteCustomJobOperation) Done() bool {
  2474  	return op.lro.Done()
  2475  }
  2476  
  2477  // Name returns the name of the long-running operation.
  2478  // The name is assigned by the server and is unique within the service from which the operation is created.
  2479  func (op *DeleteCustomJobOperation) Name() string {
  2480  	return op.lro.Name()
  2481  }
  2482  
  2483  // DeleteDataLabelingJobOperation manages a long-running operation from DeleteDataLabelingJob.
  2484  type DeleteDataLabelingJobOperation struct {
  2485  	lro      *longrunning.Operation
  2486  	pollPath string
  2487  }
  2488  
  2489  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2490  //
  2491  // See documentation of Poll for error-handling information.
  2492  func (op *DeleteDataLabelingJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2493  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2494  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2495  }
  2496  
  2497  // Poll fetches the latest state of the long-running operation.
  2498  //
  2499  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2500  //
  2501  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2502  // the operation has completed with failure, the error is returned and op.Done will return true.
  2503  // If Poll succeeds and the operation has completed successfully,
  2504  // op.Done will return true, and the response of the operation is returned.
  2505  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2506  func (op *DeleteDataLabelingJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2507  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2508  	return op.lro.Poll(ctx, nil, opts...)
  2509  }
  2510  
  2511  // Metadata returns metadata associated with the long-running operation.
  2512  // Metadata itself does not contact the server, but Poll does.
  2513  // To get the latest metadata, call this method after a successful call to Poll.
  2514  // If the metadata is not available, the returned metadata and error are both nil.
  2515  func (op *DeleteDataLabelingJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2516  	var meta aiplatformpb.DeleteOperationMetadata
  2517  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2518  		return nil, nil
  2519  	} else if err != nil {
  2520  		return nil, err
  2521  	}
  2522  	return &meta, nil
  2523  }
  2524  
  2525  // Done reports whether the long-running operation has completed.
  2526  func (op *DeleteDataLabelingJobOperation) Done() bool {
  2527  	return op.lro.Done()
  2528  }
  2529  
  2530  // Name returns the name of the long-running operation.
  2531  // The name is assigned by the server and is unique within the service from which the operation is created.
  2532  func (op *DeleteDataLabelingJobOperation) Name() string {
  2533  	return op.lro.Name()
  2534  }
  2535  
  2536  // DeleteDatasetOperation manages a long-running operation from DeleteDataset.
  2537  type DeleteDatasetOperation struct {
  2538  	lro      *longrunning.Operation
  2539  	pollPath string
  2540  }
  2541  
  2542  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2543  //
  2544  // See documentation of Poll for error-handling information.
  2545  func (op *DeleteDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2546  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2547  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2548  }
  2549  
  2550  // Poll fetches the latest state of the long-running operation.
  2551  //
  2552  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2553  //
  2554  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2555  // the operation has completed with failure, the error is returned and op.Done will return true.
  2556  // If Poll succeeds and the operation has completed successfully,
  2557  // op.Done will return true, and the response of the operation is returned.
  2558  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2559  func (op *DeleteDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2560  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2561  	return op.lro.Poll(ctx, nil, opts...)
  2562  }
  2563  
  2564  // Metadata returns metadata associated with the long-running operation.
  2565  // Metadata itself does not contact the server, but Poll does.
  2566  // To get the latest metadata, call this method after a successful call to Poll.
  2567  // If the metadata is not available, the returned metadata and error are both nil.
  2568  func (op *DeleteDatasetOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2569  	var meta aiplatformpb.DeleteOperationMetadata
  2570  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2571  		return nil, nil
  2572  	} else if err != nil {
  2573  		return nil, err
  2574  	}
  2575  	return &meta, nil
  2576  }
  2577  
  2578  // Done reports whether the long-running operation has completed.
  2579  func (op *DeleteDatasetOperation) Done() bool {
  2580  	return op.lro.Done()
  2581  }
  2582  
  2583  // Name returns the name of the long-running operation.
  2584  // The name is assigned by the server and is unique within the service from which the operation is created.
  2585  func (op *DeleteDatasetOperation) Name() string {
  2586  	return op.lro.Name()
  2587  }
  2588  
  2589  // DeleteDatasetVersionOperation manages a long-running operation from DeleteDatasetVersion.
  2590  type DeleteDatasetVersionOperation struct {
  2591  	lro      *longrunning.Operation
  2592  	pollPath string
  2593  }
  2594  
  2595  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2596  //
  2597  // See documentation of Poll for error-handling information.
  2598  func (op *DeleteDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2599  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2600  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2601  }
  2602  
  2603  // Poll fetches the latest state of the long-running operation.
  2604  //
  2605  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2606  //
  2607  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2608  // the operation has completed with failure, the error is returned and op.Done will return true.
  2609  // If Poll succeeds and the operation has completed successfully,
  2610  // op.Done will return true, and the response of the operation is returned.
  2611  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2612  func (op *DeleteDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2613  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2614  	return op.lro.Poll(ctx, nil, opts...)
  2615  }
  2616  
  2617  // Metadata returns metadata associated with the long-running operation.
  2618  // Metadata itself does not contact the server, but Poll does.
  2619  // To get the latest metadata, call this method after a successful call to Poll.
  2620  // If the metadata is not available, the returned metadata and error are both nil.
  2621  func (op *DeleteDatasetVersionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2622  	var meta aiplatformpb.DeleteOperationMetadata
  2623  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2624  		return nil, nil
  2625  	} else if err != nil {
  2626  		return nil, err
  2627  	}
  2628  	return &meta, nil
  2629  }
  2630  
  2631  // Done reports whether the long-running operation has completed.
  2632  func (op *DeleteDatasetVersionOperation) Done() bool {
  2633  	return op.lro.Done()
  2634  }
  2635  
  2636  // Name returns the name of the long-running operation.
  2637  // The name is assigned by the server and is unique within the service from which the operation is created.
  2638  func (op *DeleteDatasetVersionOperation) Name() string {
  2639  	return op.lro.Name()
  2640  }
  2641  
  2642  // DeleteDeploymentResourcePoolOperation manages a long-running operation from DeleteDeploymentResourcePool.
  2643  type DeleteDeploymentResourcePoolOperation struct {
  2644  	lro      *longrunning.Operation
  2645  	pollPath string
  2646  }
  2647  
  2648  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2649  //
  2650  // See documentation of Poll for error-handling information.
  2651  func (op *DeleteDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2652  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2653  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2654  }
  2655  
  2656  // Poll fetches the latest state of the long-running operation.
  2657  //
  2658  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2659  //
  2660  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2661  // the operation has completed with failure, the error is returned and op.Done will return true.
  2662  // If Poll succeeds and the operation has completed successfully,
  2663  // op.Done will return true, and the response of the operation is returned.
  2664  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2665  func (op *DeleteDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2666  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2667  	return op.lro.Poll(ctx, nil, opts...)
  2668  }
  2669  
  2670  // Metadata returns metadata associated with the long-running operation.
  2671  // Metadata itself does not contact the server, but Poll does.
  2672  // To get the latest metadata, call this method after a successful call to Poll.
  2673  // If the metadata is not available, the returned metadata and error are both nil.
  2674  func (op *DeleteDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2675  	var meta aiplatformpb.DeleteOperationMetadata
  2676  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2677  		return nil, nil
  2678  	} else if err != nil {
  2679  		return nil, err
  2680  	}
  2681  	return &meta, nil
  2682  }
  2683  
  2684  // Done reports whether the long-running operation has completed.
  2685  func (op *DeleteDeploymentResourcePoolOperation) Done() bool {
  2686  	return op.lro.Done()
  2687  }
  2688  
  2689  // Name returns the name of the long-running operation.
  2690  // The name is assigned by the server and is unique within the service from which the operation is created.
  2691  func (op *DeleteDeploymentResourcePoolOperation) Name() string {
  2692  	return op.lro.Name()
  2693  }
  2694  
  2695  // DeleteEndpointOperation manages a long-running operation from DeleteEndpoint.
  2696  type DeleteEndpointOperation struct {
  2697  	lro      *longrunning.Operation
  2698  	pollPath string
  2699  }
  2700  
  2701  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2702  //
  2703  // See documentation of Poll for error-handling information.
  2704  func (op *DeleteEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2705  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2706  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2707  }
  2708  
  2709  // Poll fetches the latest state of the long-running operation.
  2710  //
  2711  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2712  //
  2713  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2714  // the operation has completed with failure, the error is returned and op.Done will return true.
  2715  // If Poll succeeds and the operation has completed successfully,
  2716  // op.Done will return true, and the response of the operation is returned.
  2717  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2718  func (op *DeleteEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2719  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2720  	return op.lro.Poll(ctx, nil, opts...)
  2721  }
  2722  
  2723  // Metadata returns metadata associated with the long-running operation.
  2724  // Metadata itself does not contact the server, but Poll does.
  2725  // To get the latest metadata, call this method after a successful call to Poll.
  2726  // If the metadata is not available, the returned metadata and error are both nil.
  2727  func (op *DeleteEndpointOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2728  	var meta aiplatformpb.DeleteOperationMetadata
  2729  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2730  		return nil, nil
  2731  	} else if err != nil {
  2732  		return nil, err
  2733  	}
  2734  	return &meta, nil
  2735  }
  2736  
  2737  // Done reports whether the long-running operation has completed.
  2738  func (op *DeleteEndpointOperation) Done() bool {
  2739  	return op.lro.Done()
  2740  }
  2741  
  2742  // Name returns the name of the long-running operation.
  2743  // The name is assigned by the server and is unique within the service from which the operation is created.
  2744  func (op *DeleteEndpointOperation) Name() string {
  2745  	return op.lro.Name()
  2746  }
  2747  
  2748  // DeleteEntityTypeOperation manages a long-running operation from DeleteEntityType.
  2749  type DeleteEntityTypeOperation struct {
  2750  	lro      *longrunning.Operation
  2751  	pollPath string
  2752  }
  2753  
  2754  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2755  //
  2756  // See documentation of Poll for error-handling information.
  2757  func (op *DeleteEntityTypeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2758  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  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 *DeleteEntityTypeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2772  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2773  	return op.lro.Poll(ctx, nil, opts...)
  2774  }
  2775  
  2776  // Metadata returns metadata associated with the long-running operation.
  2777  // Metadata itself does not contact the server, but Poll does.
  2778  // To get the latest metadata, call this method after a successful call to Poll.
  2779  // If the metadata is not available, the returned metadata and error are both nil.
  2780  func (op *DeleteEntityTypeOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2781  	var meta aiplatformpb.DeleteOperationMetadata
  2782  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2783  		return nil, nil
  2784  	} else if err != nil {
  2785  		return nil, err
  2786  	}
  2787  	return &meta, nil
  2788  }
  2789  
  2790  // Done reports whether the long-running operation has completed.
  2791  func (op *DeleteEntityTypeOperation) Done() bool {
  2792  	return op.lro.Done()
  2793  }
  2794  
  2795  // Name returns the name of the long-running operation.
  2796  // The name is assigned by the server and is unique within the service from which the operation is created.
  2797  func (op *DeleteEntityTypeOperation) Name() string {
  2798  	return op.lro.Name()
  2799  }
  2800  
  2801  // DeleteExampleStoreOperation manages a long-running operation from DeleteExampleStore.
  2802  type DeleteExampleStoreOperation struct {
  2803  	lro      *longrunning.Operation
  2804  	pollPath string
  2805  }
  2806  
  2807  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2808  //
  2809  // See documentation of Poll for error-handling information.
  2810  func (op *DeleteExampleStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2811  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2812  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2813  }
  2814  
  2815  // Poll fetches the latest state of the long-running operation.
  2816  //
  2817  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2818  //
  2819  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2820  // the operation has completed with failure, the error is returned and op.Done will return true.
  2821  // If Poll succeeds and the operation has completed successfully,
  2822  // op.Done will return true, and the response of the operation is returned.
  2823  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2824  func (op *DeleteExampleStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2825  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2826  	return op.lro.Poll(ctx, nil, opts...)
  2827  }
  2828  
  2829  // Metadata returns metadata associated with the long-running operation.
  2830  // Metadata itself does not contact the server, but Poll does.
  2831  // To get the latest metadata, call this method after a successful call to Poll.
  2832  // If the metadata is not available, the returned metadata and error are both nil.
  2833  func (op *DeleteExampleStoreOperation) Metadata() (*aiplatformpb.DeleteExampleStoreOperationMetadata, error) {
  2834  	var meta aiplatformpb.DeleteExampleStoreOperationMetadata
  2835  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2836  		return nil, nil
  2837  	} else if err != nil {
  2838  		return nil, err
  2839  	}
  2840  	return &meta, nil
  2841  }
  2842  
  2843  // Done reports whether the long-running operation has completed.
  2844  func (op *DeleteExampleStoreOperation) Done() bool {
  2845  	return op.lro.Done()
  2846  }
  2847  
  2848  // Name returns the name of the long-running operation.
  2849  // The name is assigned by the server and is unique within the service from which the operation is created.
  2850  func (op *DeleteExampleStoreOperation) Name() string {
  2851  	return op.lro.Name()
  2852  }
  2853  
  2854  // DeleteExecutionOperation manages a long-running operation from DeleteExecution.
  2855  type DeleteExecutionOperation struct {
  2856  	lro      *longrunning.Operation
  2857  	pollPath string
  2858  }
  2859  
  2860  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2861  //
  2862  // See documentation of Poll for error-handling information.
  2863  func (op *DeleteExecutionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2864  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2865  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2866  }
  2867  
  2868  // Poll fetches the latest state of the long-running operation.
  2869  //
  2870  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2871  //
  2872  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2873  // the operation has completed with failure, the error is returned and op.Done will return true.
  2874  // If Poll succeeds and the operation has completed successfully,
  2875  // op.Done will return true, and the response of the operation is returned.
  2876  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2877  func (op *DeleteExecutionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2878  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2879  	return op.lro.Poll(ctx, nil, opts...)
  2880  }
  2881  
  2882  // Metadata returns metadata associated with the long-running operation.
  2883  // Metadata itself does not contact the server, but Poll does.
  2884  // To get the latest metadata, call this method after a successful call to Poll.
  2885  // If the metadata is not available, the returned metadata and error are both nil.
  2886  func (op *DeleteExecutionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2887  	var meta aiplatformpb.DeleteOperationMetadata
  2888  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2889  		return nil, nil
  2890  	} else if err != nil {
  2891  		return nil, err
  2892  	}
  2893  	return &meta, nil
  2894  }
  2895  
  2896  // Done reports whether the long-running operation has completed.
  2897  func (op *DeleteExecutionOperation) Done() bool {
  2898  	return op.lro.Done()
  2899  }
  2900  
  2901  // Name returns the name of the long-running operation.
  2902  // The name is assigned by the server and is unique within the service from which the operation is created.
  2903  func (op *DeleteExecutionOperation) Name() string {
  2904  	return op.lro.Name()
  2905  }
  2906  
  2907  // DeleteExtensionOperation manages a long-running operation from DeleteExtension.
  2908  type DeleteExtensionOperation struct {
  2909  	lro      *longrunning.Operation
  2910  	pollPath string
  2911  }
  2912  
  2913  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2914  //
  2915  // See documentation of Poll for error-handling information.
  2916  func (op *DeleteExtensionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2917  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2918  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2919  }
  2920  
  2921  // Poll fetches the latest state of the long-running operation.
  2922  //
  2923  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2924  //
  2925  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2926  // the operation has completed with failure, the error is returned and op.Done will return true.
  2927  // If Poll succeeds and the operation has completed successfully,
  2928  // op.Done will return true, and the response of the operation is returned.
  2929  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2930  func (op *DeleteExtensionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2931  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2932  	return op.lro.Poll(ctx, nil, opts...)
  2933  }
  2934  
  2935  // Metadata returns metadata associated with the long-running operation.
  2936  // Metadata itself does not contact the server, but Poll does.
  2937  // To get the latest metadata, call this method after a successful call to Poll.
  2938  // If the metadata is not available, the returned metadata and error are both nil.
  2939  func (op *DeleteExtensionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2940  	var meta aiplatformpb.DeleteOperationMetadata
  2941  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2942  		return nil, nil
  2943  	} else if err != nil {
  2944  		return nil, err
  2945  	}
  2946  	return &meta, nil
  2947  }
  2948  
  2949  // Done reports whether the long-running operation has completed.
  2950  func (op *DeleteExtensionOperation) Done() bool {
  2951  	return op.lro.Done()
  2952  }
  2953  
  2954  // Name returns the name of the long-running operation.
  2955  // The name is assigned by the server and is unique within the service from which the operation is created.
  2956  func (op *DeleteExtensionOperation) Name() string {
  2957  	return op.lro.Name()
  2958  }
  2959  
  2960  // DeleteFeatureGroupOperation manages a long-running operation from DeleteFeatureGroup.
  2961  type DeleteFeatureGroupOperation struct {
  2962  	lro      *longrunning.Operation
  2963  	pollPath string
  2964  }
  2965  
  2966  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  2967  //
  2968  // See documentation of Poll for error-handling information.
  2969  func (op *DeleteFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  2970  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2971  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  2972  }
  2973  
  2974  // Poll fetches the latest state of the long-running operation.
  2975  //
  2976  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  2977  //
  2978  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  2979  // the operation has completed with failure, the error is returned and op.Done will return true.
  2980  // If Poll succeeds and the operation has completed successfully,
  2981  // op.Done will return true, and the response of the operation is returned.
  2982  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  2983  func (op *DeleteFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  2984  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  2985  	return op.lro.Poll(ctx, nil, opts...)
  2986  }
  2987  
  2988  // Metadata returns metadata associated with the long-running operation.
  2989  // Metadata itself does not contact the server, but Poll does.
  2990  // To get the latest metadata, call this method after a successful call to Poll.
  2991  // If the metadata is not available, the returned metadata and error are both nil.
  2992  func (op *DeleteFeatureGroupOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  2993  	var meta aiplatformpb.DeleteOperationMetadata
  2994  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  2995  		return nil, nil
  2996  	} else if err != nil {
  2997  		return nil, err
  2998  	}
  2999  	return &meta, nil
  3000  }
  3001  
  3002  // Done reports whether the long-running operation has completed.
  3003  func (op *DeleteFeatureGroupOperation) Done() bool {
  3004  	return op.lro.Done()
  3005  }
  3006  
  3007  // Name returns the name of the long-running operation.
  3008  // The name is assigned by the server and is unique within the service from which the operation is created.
  3009  func (op *DeleteFeatureGroupOperation) Name() string {
  3010  	return op.lro.Name()
  3011  }
  3012  
  3013  // DeleteFeatureMonitorOperation manages a long-running operation from DeleteFeatureMonitor.
  3014  type DeleteFeatureMonitorOperation struct {
  3015  	lro      *longrunning.Operation
  3016  	pollPath string
  3017  }
  3018  
  3019  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3020  //
  3021  // See documentation of Poll for error-handling information.
  3022  func (op *DeleteFeatureMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3023  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3024  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3025  }
  3026  
  3027  // Poll fetches the latest state of the long-running operation.
  3028  //
  3029  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3030  //
  3031  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3032  // the operation has completed with failure, the error is returned and op.Done will return true.
  3033  // If Poll succeeds and the operation has completed successfully,
  3034  // op.Done will return true, and the response of the operation is returned.
  3035  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3036  func (op *DeleteFeatureMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3037  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3038  	return op.lro.Poll(ctx, nil, opts...)
  3039  }
  3040  
  3041  // Metadata returns metadata associated with the long-running operation.
  3042  // Metadata itself does not contact the server, but Poll does.
  3043  // To get the latest metadata, call this method after a successful call to Poll.
  3044  // If the metadata is not available, the returned metadata and error are both nil.
  3045  func (op *DeleteFeatureMonitorOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3046  	var meta aiplatformpb.DeleteOperationMetadata
  3047  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3048  		return nil, nil
  3049  	} else if err != nil {
  3050  		return nil, err
  3051  	}
  3052  	return &meta, nil
  3053  }
  3054  
  3055  // Done reports whether the long-running operation has completed.
  3056  func (op *DeleteFeatureMonitorOperation) Done() bool {
  3057  	return op.lro.Done()
  3058  }
  3059  
  3060  // Name returns the name of the long-running operation.
  3061  // The name is assigned by the server and is unique within the service from which the operation is created.
  3062  func (op *DeleteFeatureMonitorOperation) Name() string {
  3063  	return op.lro.Name()
  3064  }
  3065  
  3066  // DeleteFeatureOnlineStoreOperation manages a long-running operation from DeleteFeatureOnlineStore.
  3067  type DeleteFeatureOnlineStoreOperation struct {
  3068  	lro      *longrunning.Operation
  3069  	pollPath string
  3070  }
  3071  
  3072  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3073  //
  3074  // See documentation of Poll for error-handling information.
  3075  func (op *DeleteFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3076  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3077  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3078  }
  3079  
  3080  // Poll fetches the latest state of the long-running operation.
  3081  //
  3082  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3083  //
  3084  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3085  // the operation has completed with failure, the error is returned and op.Done will return true.
  3086  // If Poll succeeds and the operation has completed successfully,
  3087  // op.Done will return true, and the response of the operation is returned.
  3088  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3089  func (op *DeleteFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3090  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3091  	return op.lro.Poll(ctx, nil, opts...)
  3092  }
  3093  
  3094  // Metadata returns metadata associated with the long-running operation.
  3095  // Metadata itself does not contact the server, but Poll does.
  3096  // To get the latest metadata, call this method after a successful call to Poll.
  3097  // If the metadata is not available, the returned metadata and error are both nil.
  3098  func (op *DeleteFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3099  	var meta aiplatformpb.DeleteOperationMetadata
  3100  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3101  		return nil, nil
  3102  	} else if err != nil {
  3103  		return nil, err
  3104  	}
  3105  	return &meta, nil
  3106  }
  3107  
  3108  // Done reports whether the long-running operation has completed.
  3109  func (op *DeleteFeatureOnlineStoreOperation) Done() bool {
  3110  	return op.lro.Done()
  3111  }
  3112  
  3113  // Name returns the name of the long-running operation.
  3114  // The name is assigned by the server and is unique within the service from which the operation is created.
  3115  func (op *DeleteFeatureOnlineStoreOperation) Name() string {
  3116  	return op.lro.Name()
  3117  }
  3118  
  3119  // DeleteFeatureOperation manages a long-running operation from DeleteFeature.
  3120  type DeleteFeatureOperation struct {
  3121  	lro      *longrunning.Operation
  3122  	pollPath string
  3123  }
  3124  
  3125  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3126  //
  3127  // See documentation of Poll for error-handling information.
  3128  func (op *DeleteFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3129  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3130  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3131  }
  3132  
  3133  // Poll fetches the latest state of the long-running operation.
  3134  //
  3135  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3136  //
  3137  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3138  // the operation has completed with failure, the error is returned and op.Done will return true.
  3139  // If Poll succeeds and the operation has completed successfully,
  3140  // op.Done will return true, and the response of the operation is returned.
  3141  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3142  func (op *DeleteFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3143  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3144  	return op.lro.Poll(ctx, nil, opts...)
  3145  }
  3146  
  3147  // Metadata returns metadata associated with the long-running operation.
  3148  // Metadata itself does not contact the server, but Poll does.
  3149  // To get the latest metadata, call this method after a successful call to Poll.
  3150  // If the metadata is not available, the returned metadata and error are both nil.
  3151  func (op *DeleteFeatureOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3152  	var meta aiplatformpb.DeleteOperationMetadata
  3153  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3154  		return nil, nil
  3155  	} else if err != nil {
  3156  		return nil, err
  3157  	}
  3158  	return &meta, nil
  3159  }
  3160  
  3161  // Done reports whether the long-running operation has completed.
  3162  func (op *DeleteFeatureOperation) Done() bool {
  3163  	return op.lro.Done()
  3164  }
  3165  
  3166  // Name returns the name of the long-running operation.
  3167  // The name is assigned by the server and is unique within the service from which the operation is created.
  3168  func (op *DeleteFeatureOperation) Name() string {
  3169  	return op.lro.Name()
  3170  }
  3171  
  3172  // DeleteFeatureValuesOperation manages a long-running operation from DeleteFeatureValues.
  3173  type DeleteFeatureValuesOperation struct {
  3174  	lro      *longrunning.Operation
  3175  	pollPath string
  3176  }
  3177  
  3178  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3179  //
  3180  // See documentation of Poll for error-handling information.
  3181  func (op *DeleteFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeleteFeatureValuesResponse, error) {
  3182  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3183  	var resp aiplatformpb.DeleteFeatureValuesResponse
  3184  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  3185  		return nil, err
  3186  	}
  3187  	return &resp, nil
  3188  }
  3189  
  3190  // Poll fetches the latest state of the long-running operation.
  3191  //
  3192  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3193  //
  3194  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3195  // the operation has completed with failure, the error is returned and op.Done will return true.
  3196  // If Poll succeeds and the operation has completed successfully,
  3197  // op.Done will return true, and the response of the operation is returned.
  3198  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3199  func (op *DeleteFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeleteFeatureValuesResponse, error) {
  3200  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3201  	var resp aiplatformpb.DeleteFeatureValuesResponse
  3202  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  3203  		return nil, err
  3204  	}
  3205  	if !op.Done() {
  3206  		return nil, nil
  3207  	}
  3208  	return &resp, nil
  3209  }
  3210  
  3211  // Metadata returns metadata associated with the long-running operation.
  3212  // Metadata itself does not contact the server, but Poll does.
  3213  // To get the latest metadata, call this method after a successful call to Poll.
  3214  // If the metadata is not available, the returned metadata and error are both nil.
  3215  func (op *DeleteFeatureValuesOperation) Metadata() (*aiplatformpb.DeleteFeatureValuesOperationMetadata, error) {
  3216  	var meta aiplatformpb.DeleteFeatureValuesOperationMetadata
  3217  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3218  		return nil, nil
  3219  	} else if err != nil {
  3220  		return nil, err
  3221  	}
  3222  	return &meta, nil
  3223  }
  3224  
  3225  // Done reports whether the long-running operation has completed.
  3226  func (op *DeleteFeatureValuesOperation) Done() bool {
  3227  	return op.lro.Done()
  3228  }
  3229  
  3230  // Name returns the name of the long-running operation.
  3231  // The name is assigned by the server and is unique within the service from which the operation is created.
  3232  func (op *DeleteFeatureValuesOperation) Name() string {
  3233  	return op.lro.Name()
  3234  }
  3235  
  3236  // DeleteFeatureViewOperation manages a long-running operation from DeleteFeatureView.
  3237  type DeleteFeatureViewOperation struct {
  3238  	lro      *longrunning.Operation
  3239  	pollPath string
  3240  }
  3241  
  3242  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3243  //
  3244  // See documentation of Poll for error-handling information.
  3245  func (op *DeleteFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3246  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3247  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3248  }
  3249  
  3250  // Poll fetches the latest state of the long-running operation.
  3251  //
  3252  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3253  //
  3254  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3255  // the operation has completed with failure, the error is returned and op.Done will return true.
  3256  // If Poll succeeds and the operation has completed successfully,
  3257  // op.Done will return true, and the response of the operation is returned.
  3258  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3259  func (op *DeleteFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3260  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3261  	return op.lro.Poll(ctx, nil, opts...)
  3262  }
  3263  
  3264  // Metadata returns metadata associated with the long-running operation.
  3265  // Metadata itself does not contact the server, but Poll does.
  3266  // To get the latest metadata, call this method after a successful call to Poll.
  3267  // If the metadata is not available, the returned metadata and error are both nil.
  3268  func (op *DeleteFeatureViewOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3269  	var meta aiplatformpb.DeleteOperationMetadata
  3270  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3271  		return nil, nil
  3272  	} else if err != nil {
  3273  		return nil, err
  3274  	}
  3275  	return &meta, nil
  3276  }
  3277  
  3278  // Done reports whether the long-running operation has completed.
  3279  func (op *DeleteFeatureViewOperation) Done() bool {
  3280  	return op.lro.Done()
  3281  }
  3282  
  3283  // Name returns the name of the long-running operation.
  3284  // The name is assigned by the server and is unique within the service from which the operation is created.
  3285  func (op *DeleteFeatureViewOperation) Name() string {
  3286  	return op.lro.Name()
  3287  }
  3288  
  3289  // DeleteFeaturestoreOperation manages a long-running operation from DeleteFeaturestore.
  3290  type DeleteFeaturestoreOperation struct {
  3291  	lro      *longrunning.Operation
  3292  	pollPath string
  3293  }
  3294  
  3295  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3296  //
  3297  // See documentation of Poll for error-handling information.
  3298  func (op *DeleteFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3299  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3300  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3301  }
  3302  
  3303  // Poll fetches the latest state of the long-running operation.
  3304  //
  3305  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3306  //
  3307  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3308  // the operation has completed with failure, the error is returned and op.Done will return true.
  3309  // If Poll succeeds and the operation has completed successfully,
  3310  // op.Done will return true, and the response of the operation is returned.
  3311  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3312  func (op *DeleteFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3313  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3314  	return op.lro.Poll(ctx, nil, opts...)
  3315  }
  3316  
  3317  // Metadata returns metadata associated with the long-running operation.
  3318  // Metadata itself does not contact the server, but Poll does.
  3319  // To get the latest metadata, call this method after a successful call to Poll.
  3320  // If the metadata is not available, the returned metadata and error are both nil.
  3321  func (op *DeleteFeaturestoreOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3322  	var meta aiplatformpb.DeleteOperationMetadata
  3323  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3324  		return nil, nil
  3325  	} else if err != nil {
  3326  		return nil, err
  3327  	}
  3328  	return &meta, nil
  3329  }
  3330  
  3331  // Done reports whether the long-running operation has completed.
  3332  func (op *DeleteFeaturestoreOperation) Done() bool {
  3333  	return op.lro.Done()
  3334  }
  3335  
  3336  // Name returns the name of the long-running operation.
  3337  // The name is assigned by the server and is unique within the service from which the operation is created.
  3338  func (op *DeleteFeaturestoreOperation) Name() string {
  3339  	return op.lro.Name()
  3340  }
  3341  
  3342  // DeleteHyperparameterTuningJobOperation manages a long-running operation from DeleteHyperparameterTuningJob.
  3343  type DeleteHyperparameterTuningJobOperation struct {
  3344  	lro      *longrunning.Operation
  3345  	pollPath string
  3346  }
  3347  
  3348  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3349  //
  3350  // See documentation of Poll for error-handling information.
  3351  func (op *DeleteHyperparameterTuningJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3352  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3353  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3354  }
  3355  
  3356  // Poll fetches the latest state of the long-running operation.
  3357  //
  3358  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3359  //
  3360  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3361  // the operation has completed with failure, the error is returned and op.Done will return true.
  3362  // If Poll succeeds and the operation has completed successfully,
  3363  // op.Done will return true, and the response of the operation is returned.
  3364  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3365  func (op *DeleteHyperparameterTuningJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3366  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3367  	return op.lro.Poll(ctx, nil, opts...)
  3368  }
  3369  
  3370  // Metadata returns metadata associated with the long-running operation.
  3371  // Metadata itself does not contact the server, but Poll does.
  3372  // To get the latest metadata, call this method after a successful call to Poll.
  3373  // If the metadata is not available, the returned metadata and error are both nil.
  3374  func (op *DeleteHyperparameterTuningJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3375  	var meta aiplatformpb.DeleteOperationMetadata
  3376  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3377  		return nil, nil
  3378  	} else if err != nil {
  3379  		return nil, err
  3380  	}
  3381  	return &meta, nil
  3382  }
  3383  
  3384  // Done reports whether the long-running operation has completed.
  3385  func (op *DeleteHyperparameterTuningJobOperation) Done() bool {
  3386  	return op.lro.Done()
  3387  }
  3388  
  3389  // Name returns the name of the long-running operation.
  3390  // The name is assigned by the server and is unique within the service from which the operation is created.
  3391  func (op *DeleteHyperparameterTuningJobOperation) Name() string {
  3392  	return op.lro.Name()
  3393  }
  3394  
  3395  // DeleteIndexEndpointOperation manages a long-running operation from DeleteIndexEndpoint.
  3396  type DeleteIndexEndpointOperation struct {
  3397  	lro      *longrunning.Operation
  3398  	pollPath string
  3399  }
  3400  
  3401  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3402  //
  3403  // See documentation of Poll for error-handling information.
  3404  func (op *DeleteIndexEndpointOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3405  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3406  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3407  }
  3408  
  3409  // Poll fetches the latest state of the long-running operation.
  3410  //
  3411  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3412  //
  3413  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3414  // the operation has completed with failure, the error is returned and op.Done will return true.
  3415  // If Poll succeeds and the operation has completed successfully,
  3416  // op.Done will return true, and the response of the operation is returned.
  3417  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3418  func (op *DeleteIndexEndpointOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3419  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3420  	return op.lro.Poll(ctx, nil, opts...)
  3421  }
  3422  
  3423  // Metadata returns metadata associated with the long-running operation.
  3424  // Metadata itself does not contact the server, but Poll does.
  3425  // To get the latest metadata, call this method after a successful call to Poll.
  3426  // If the metadata is not available, the returned metadata and error are both nil.
  3427  func (op *DeleteIndexEndpointOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3428  	var meta aiplatformpb.DeleteOperationMetadata
  3429  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3430  		return nil, nil
  3431  	} else if err != nil {
  3432  		return nil, err
  3433  	}
  3434  	return &meta, nil
  3435  }
  3436  
  3437  // Done reports whether the long-running operation has completed.
  3438  func (op *DeleteIndexEndpointOperation) Done() bool {
  3439  	return op.lro.Done()
  3440  }
  3441  
  3442  // Name returns the name of the long-running operation.
  3443  // The name is assigned by the server and is unique within the service from which the operation is created.
  3444  func (op *DeleteIndexEndpointOperation) Name() string {
  3445  	return op.lro.Name()
  3446  }
  3447  
  3448  // DeleteIndexOperation manages a long-running operation from DeleteIndex.
  3449  type DeleteIndexOperation struct {
  3450  	lro      *longrunning.Operation
  3451  	pollPath string
  3452  }
  3453  
  3454  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3455  //
  3456  // See documentation of Poll for error-handling information.
  3457  func (op *DeleteIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3458  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  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 *DeleteIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3472  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3473  	return op.lro.Poll(ctx, nil, opts...)
  3474  }
  3475  
  3476  // Metadata returns metadata associated with the long-running operation.
  3477  // Metadata itself does not contact the server, but Poll does.
  3478  // To get the latest metadata, call this method after a successful call to Poll.
  3479  // If the metadata is not available, the returned metadata and error are both nil.
  3480  func (op *DeleteIndexOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3481  	var meta aiplatformpb.DeleteOperationMetadata
  3482  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3483  		return nil, nil
  3484  	} else if err != nil {
  3485  		return nil, err
  3486  	}
  3487  	return &meta, nil
  3488  }
  3489  
  3490  // Done reports whether the long-running operation has completed.
  3491  func (op *DeleteIndexOperation) Done() bool {
  3492  	return op.lro.Done()
  3493  }
  3494  
  3495  // Name returns the name of the long-running operation.
  3496  // The name is assigned by the server and is unique within the service from which the operation is created.
  3497  func (op *DeleteIndexOperation) Name() string {
  3498  	return op.lro.Name()
  3499  }
  3500  
  3501  // DeleteMemoryOperation manages a long-running operation from DeleteMemory.
  3502  type DeleteMemoryOperation struct {
  3503  	lro      *longrunning.Operation
  3504  	pollPath string
  3505  }
  3506  
  3507  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3508  //
  3509  // See documentation of Poll for error-handling information.
  3510  func (op *DeleteMemoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3511  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3512  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3513  }
  3514  
  3515  // Poll fetches the latest state of the long-running operation.
  3516  //
  3517  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3518  //
  3519  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3520  // the operation has completed with failure, the error is returned and op.Done will return true.
  3521  // If Poll succeeds and the operation has completed successfully,
  3522  // op.Done will return true, and the response of the operation is returned.
  3523  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3524  func (op *DeleteMemoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3525  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3526  	return op.lro.Poll(ctx, nil, opts...)
  3527  }
  3528  
  3529  // Metadata returns metadata associated with the long-running operation.
  3530  // Metadata itself does not contact the server, but Poll does.
  3531  // To get the latest metadata, call this method after a successful call to Poll.
  3532  // If the metadata is not available, the returned metadata and error are both nil.
  3533  func (op *DeleteMemoryOperation) Metadata() (*aiplatformpb.DeleteMemoryOperationMetadata, error) {
  3534  	var meta aiplatformpb.DeleteMemoryOperationMetadata
  3535  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3536  		return nil, nil
  3537  	} else if err != nil {
  3538  		return nil, err
  3539  	}
  3540  	return &meta, nil
  3541  }
  3542  
  3543  // Done reports whether the long-running operation has completed.
  3544  func (op *DeleteMemoryOperation) Done() bool {
  3545  	return op.lro.Done()
  3546  }
  3547  
  3548  // Name returns the name of the long-running operation.
  3549  // The name is assigned by the server and is unique within the service from which the operation is created.
  3550  func (op *DeleteMemoryOperation) Name() string {
  3551  	return op.lro.Name()
  3552  }
  3553  
  3554  // DeleteMetadataStoreOperation manages a long-running operation from DeleteMetadataStore.
  3555  type DeleteMetadataStoreOperation struct {
  3556  	lro      *longrunning.Operation
  3557  	pollPath string
  3558  }
  3559  
  3560  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3561  //
  3562  // See documentation of Poll for error-handling information.
  3563  func (op *DeleteMetadataStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3564  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3565  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3566  }
  3567  
  3568  // Poll fetches the latest state of the long-running operation.
  3569  //
  3570  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3571  //
  3572  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3573  // the operation has completed with failure, the error is returned and op.Done will return true.
  3574  // If Poll succeeds and the operation has completed successfully,
  3575  // op.Done will return true, and the response of the operation is returned.
  3576  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3577  func (op *DeleteMetadataStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3578  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3579  	return op.lro.Poll(ctx, nil, opts...)
  3580  }
  3581  
  3582  // Metadata returns metadata associated with the long-running operation.
  3583  // Metadata itself does not contact the server, but Poll does.
  3584  // To get the latest metadata, call this method after a successful call to Poll.
  3585  // If the metadata is not available, the returned metadata and error are both nil.
  3586  func (op *DeleteMetadataStoreOperation) Metadata() (*aiplatformpb.DeleteMetadataStoreOperationMetadata, error) {
  3587  	var meta aiplatformpb.DeleteMetadataStoreOperationMetadata
  3588  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3589  		return nil, nil
  3590  	} else if err != nil {
  3591  		return nil, err
  3592  	}
  3593  	return &meta, nil
  3594  }
  3595  
  3596  // Done reports whether the long-running operation has completed.
  3597  func (op *DeleteMetadataStoreOperation) Done() bool {
  3598  	return op.lro.Done()
  3599  }
  3600  
  3601  // Name returns the name of the long-running operation.
  3602  // The name is assigned by the server and is unique within the service from which the operation is created.
  3603  func (op *DeleteMetadataStoreOperation) Name() string {
  3604  	return op.lro.Name()
  3605  }
  3606  
  3607  // DeleteModelDeploymentMonitoringJobOperation manages a long-running operation from DeleteModelDeploymentMonitoringJob.
  3608  type DeleteModelDeploymentMonitoringJobOperation struct {
  3609  	lro      *longrunning.Operation
  3610  	pollPath string
  3611  }
  3612  
  3613  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3614  //
  3615  // See documentation of Poll for error-handling information.
  3616  func (op *DeleteModelDeploymentMonitoringJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3617  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3618  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3619  }
  3620  
  3621  // Poll fetches the latest state of the long-running operation.
  3622  //
  3623  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3624  //
  3625  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3626  // the operation has completed with failure, the error is returned and op.Done will return true.
  3627  // If Poll succeeds and the operation has completed successfully,
  3628  // op.Done will return true, and the response of the operation is returned.
  3629  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3630  func (op *DeleteModelDeploymentMonitoringJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3631  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3632  	return op.lro.Poll(ctx, nil, opts...)
  3633  }
  3634  
  3635  // Metadata returns metadata associated with the long-running operation.
  3636  // Metadata itself does not contact the server, but Poll does.
  3637  // To get the latest metadata, call this method after a successful call to Poll.
  3638  // If the metadata is not available, the returned metadata and error are both nil.
  3639  func (op *DeleteModelDeploymentMonitoringJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3640  	var meta aiplatformpb.DeleteOperationMetadata
  3641  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3642  		return nil, nil
  3643  	} else if err != nil {
  3644  		return nil, err
  3645  	}
  3646  	return &meta, nil
  3647  }
  3648  
  3649  // Done reports whether the long-running operation has completed.
  3650  func (op *DeleteModelDeploymentMonitoringJobOperation) Done() bool {
  3651  	return op.lro.Done()
  3652  }
  3653  
  3654  // Name returns the name of the long-running operation.
  3655  // The name is assigned by the server and is unique within the service from which the operation is created.
  3656  func (op *DeleteModelDeploymentMonitoringJobOperation) Name() string {
  3657  	return op.lro.Name()
  3658  }
  3659  
  3660  // DeleteModelMonitorOperation manages a long-running operation from DeleteModelMonitor.
  3661  type DeleteModelMonitorOperation struct {
  3662  	lro      *longrunning.Operation
  3663  	pollPath string
  3664  }
  3665  
  3666  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3667  //
  3668  // See documentation of Poll for error-handling information.
  3669  func (op *DeleteModelMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3670  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3671  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3672  }
  3673  
  3674  // Poll fetches the latest state of the long-running operation.
  3675  //
  3676  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3677  //
  3678  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3679  // the operation has completed with failure, the error is returned and op.Done will return true.
  3680  // If Poll succeeds and the operation has completed successfully,
  3681  // op.Done will return true, and the response of the operation is returned.
  3682  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3683  func (op *DeleteModelMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3684  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3685  	return op.lro.Poll(ctx, nil, opts...)
  3686  }
  3687  
  3688  // Metadata returns metadata associated with the long-running operation.
  3689  // Metadata itself does not contact the server, but Poll does.
  3690  // To get the latest metadata, call this method after a successful call to Poll.
  3691  // If the metadata is not available, the returned metadata and error are both nil.
  3692  func (op *DeleteModelMonitorOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3693  	var meta aiplatformpb.DeleteOperationMetadata
  3694  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3695  		return nil, nil
  3696  	} else if err != nil {
  3697  		return nil, err
  3698  	}
  3699  	return &meta, nil
  3700  }
  3701  
  3702  // Done reports whether the long-running operation has completed.
  3703  func (op *DeleteModelMonitorOperation) Done() bool {
  3704  	return op.lro.Done()
  3705  }
  3706  
  3707  // Name returns the name of the long-running operation.
  3708  // The name is assigned by the server and is unique within the service from which the operation is created.
  3709  func (op *DeleteModelMonitorOperation) Name() string {
  3710  	return op.lro.Name()
  3711  }
  3712  
  3713  // DeleteModelMonitoringJobOperation manages a long-running operation from DeleteModelMonitoringJob.
  3714  type DeleteModelMonitoringJobOperation struct {
  3715  	lro      *longrunning.Operation
  3716  	pollPath string
  3717  }
  3718  
  3719  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3720  //
  3721  // See documentation of Poll for error-handling information.
  3722  func (op *DeleteModelMonitoringJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3723  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3724  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3725  }
  3726  
  3727  // Poll fetches the latest state of the long-running operation.
  3728  //
  3729  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3730  //
  3731  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3732  // the operation has completed with failure, the error is returned and op.Done will return true.
  3733  // If Poll succeeds and the operation has completed successfully,
  3734  // op.Done will return true, and the response of the operation is returned.
  3735  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3736  func (op *DeleteModelMonitoringJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3737  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3738  	return op.lro.Poll(ctx, nil, opts...)
  3739  }
  3740  
  3741  // Metadata returns metadata associated with the long-running operation.
  3742  // Metadata itself does not contact the server, but Poll does.
  3743  // To get the latest metadata, call this method after a successful call to Poll.
  3744  // If the metadata is not available, the returned metadata and error are both nil.
  3745  func (op *DeleteModelMonitoringJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3746  	var meta aiplatformpb.DeleteOperationMetadata
  3747  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3748  		return nil, nil
  3749  	} else if err != nil {
  3750  		return nil, err
  3751  	}
  3752  	return &meta, nil
  3753  }
  3754  
  3755  // Done reports whether the long-running operation has completed.
  3756  func (op *DeleteModelMonitoringJobOperation) Done() bool {
  3757  	return op.lro.Done()
  3758  }
  3759  
  3760  // Name returns the name of the long-running operation.
  3761  // The name is assigned by the server and is unique within the service from which the operation is created.
  3762  func (op *DeleteModelMonitoringJobOperation) Name() string {
  3763  	return op.lro.Name()
  3764  }
  3765  
  3766  // DeleteModelOperation manages a long-running operation from DeleteModel.
  3767  type DeleteModelOperation struct {
  3768  	lro      *longrunning.Operation
  3769  	pollPath string
  3770  }
  3771  
  3772  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3773  //
  3774  // See documentation of Poll for error-handling information.
  3775  func (op *DeleteModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3776  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3777  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3778  }
  3779  
  3780  // Poll fetches the latest state of the long-running operation.
  3781  //
  3782  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3783  //
  3784  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3785  // the operation has completed with failure, the error is returned and op.Done will return true.
  3786  // If Poll succeeds and the operation has completed successfully,
  3787  // op.Done will return true, and the response of the operation is returned.
  3788  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3789  func (op *DeleteModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3790  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3791  	return op.lro.Poll(ctx, nil, opts...)
  3792  }
  3793  
  3794  // Metadata returns metadata associated with the long-running operation.
  3795  // Metadata itself does not contact the server, but Poll does.
  3796  // To get the latest metadata, call this method after a successful call to Poll.
  3797  // If the metadata is not available, the returned metadata and error are both nil.
  3798  func (op *DeleteModelOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3799  	var meta aiplatformpb.DeleteOperationMetadata
  3800  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3801  		return nil, nil
  3802  	} else if err != nil {
  3803  		return nil, err
  3804  	}
  3805  	return &meta, nil
  3806  }
  3807  
  3808  // Done reports whether the long-running operation has completed.
  3809  func (op *DeleteModelOperation) Done() bool {
  3810  	return op.lro.Done()
  3811  }
  3812  
  3813  // Name returns the name of the long-running operation.
  3814  // The name is assigned by the server and is unique within the service from which the operation is created.
  3815  func (op *DeleteModelOperation) Name() string {
  3816  	return op.lro.Name()
  3817  }
  3818  
  3819  // DeleteModelVersionOperation manages a long-running operation from DeleteModelVersion.
  3820  type DeleteModelVersionOperation struct {
  3821  	lro      *longrunning.Operation
  3822  	pollPath string
  3823  }
  3824  
  3825  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3826  //
  3827  // See documentation of Poll for error-handling information.
  3828  func (op *DeleteModelVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3829  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3830  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3831  }
  3832  
  3833  // Poll fetches the latest state of the long-running operation.
  3834  //
  3835  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3836  //
  3837  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3838  // the operation has completed with failure, the error is returned and op.Done will return true.
  3839  // If Poll succeeds and the operation has completed successfully,
  3840  // op.Done will return true, and the response of the operation is returned.
  3841  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3842  func (op *DeleteModelVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3843  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3844  	return op.lro.Poll(ctx, nil, opts...)
  3845  }
  3846  
  3847  // Metadata returns metadata associated with the long-running operation.
  3848  // Metadata itself does not contact the server, but Poll does.
  3849  // To get the latest metadata, call this method after a successful call to Poll.
  3850  // If the metadata is not available, the returned metadata and error are both nil.
  3851  func (op *DeleteModelVersionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3852  	var meta aiplatformpb.DeleteOperationMetadata
  3853  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3854  		return nil, nil
  3855  	} else if err != nil {
  3856  		return nil, err
  3857  	}
  3858  	return &meta, nil
  3859  }
  3860  
  3861  // Done reports whether the long-running operation has completed.
  3862  func (op *DeleteModelVersionOperation) Done() bool {
  3863  	return op.lro.Done()
  3864  }
  3865  
  3866  // Name returns the name of the long-running operation.
  3867  // The name is assigned by the server and is unique within the service from which the operation is created.
  3868  func (op *DeleteModelVersionOperation) Name() string {
  3869  	return op.lro.Name()
  3870  }
  3871  
  3872  // DeleteNasJobOperation manages a long-running operation from DeleteNasJob.
  3873  type DeleteNasJobOperation struct {
  3874  	lro      *longrunning.Operation
  3875  	pollPath string
  3876  }
  3877  
  3878  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3879  //
  3880  // See documentation of Poll for error-handling information.
  3881  func (op *DeleteNasJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3882  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3883  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3884  }
  3885  
  3886  // Poll fetches the latest state of the long-running operation.
  3887  //
  3888  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3889  //
  3890  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3891  // the operation has completed with failure, the error is returned and op.Done will return true.
  3892  // If Poll succeeds and the operation has completed successfully,
  3893  // op.Done will return true, and the response of the operation is returned.
  3894  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3895  func (op *DeleteNasJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3896  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3897  	return op.lro.Poll(ctx, nil, opts...)
  3898  }
  3899  
  3900  // Metadata returns metadata associated with the long-running operation.
  3901  // Metadata itself does not contact the server, but Poll does.
  3902  // To get the latest metadata, call this method after a successful call to Poll.
  3903  // If the metadata is not available, the returned metadata and error are both nil.
  3904  func (op *DeleteNasJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3905  	var meta aiplatformpb.DeleteOperationMetadata
  3906  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3907  		return nil, nil
  3908  	} else if err != nil {
  3909  		return nil, err
  3910  	}
  3911  	return &meta, nil
  3912  }
  3913  
  3914  // Done reports whether the long-running operation has completed.
  3915  func (op *DeleteNasJobOperation) Done() bool {
  3916  	return op.lro.Done()
  3917  }
  3918  
  3919  // Name returns the name of the long-running operation.
  3920  // The name is assigned by the server and is unique within the service from which the operation is created.
  3921  func (op *DeleteNasJobOperation) Name() string {
  3922  	return op.lro.Name()
  3923  }
  3924  
  3925  // DeleteNotebookExecutionJobOperation manages a long-running operation from DeleteNotebookExecutionJob.
  3926  type DeleteNotebookExecutionJobOperation struct {
  3927  	lro      *longrunning.Operation
  3928  	pollPath string
  3929  }
  3930  
  3931  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3932  //
  3933  // See documentation of Poll for error-handling information.
  3934  func (op *DeleteNotebookExecutionJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3935  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3936  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3937  }
  3938  
  3939  // Poll fetches the latest state of the long-running operation.
  3940  //
  3941  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3942  //
  3943  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3944  // the operation has completed with failure, the error is returned and op.Done will return true.
  3945  // If Poll succeeds and the operation has completed successfully,
  3946  // op.Done will return true, and the response of the operation is returned.
  3947  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  3948  func (op *DeleteNotebookExecutionJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  3949  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3950  	return op.lro.Poll(ctx, nil, opts...)
  3951  }
  3952  
  3953  // Metadata returns metadata associated with the long-running operation.
  3954  // Metadata itself does not contact the server, but Poll does.
  3955  // To get the latest metadata, call this method after a successful call to Poll.
  3956  // If the metadata is not available, the returned metadata and error are both nil.
  3957  func (op *DeleteNotebookExecutionJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  3958  	var meta aiplatformpb.DeleteOperationMetadata
  3959  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  3960  		return nil, nil
  3961  	} else if err != nil {
  3962  		return nil, err
  3963  	}
  3964  	return &meta, nil
  3965  }
  3966  
  3967  // Done reports whether the long-running operation has completed.
  3968  func (op *DeleteNotebookExecutionJobOperation) Done() bool {
  3969  	return op.lro.Done()
  3970  }
  3971  
  3972  // Name returns the name of the long-running operation.
  3973  // The name is assigned by the server and is unique within the service from which the operation is created.
  3974  func (op *DeleteNotebookExecutionJobOperation) Name() string {
  3975  	return op.lro.Name()
  3976  }
  3977  
  3978  // DeleteNotebookRuntimeOperation manages a long-running operation from DeleteNotebookRuntime.
  3979  type DeleteNotebookRuntimeOperation struct {
  3980  	lro      *longrunning.Operation
  3981  	pollPath string
  3982  }
  3983  
  3984  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  3985  //
  3986  // See documentation of Poll for error-handling information.
  3987  func (op *DeleteNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  3988  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  3989  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  3990  }
  3991  
  3992  // Poll fetches the latest state of the long-running operation.
  3993  //
  3994  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  3995  //
  3996  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  3997  // the operation has completed with failure, the error is returned and op.Done will return true.
  3998  // If Poll succeeds and the operation has completed successfully,
  3999  // op.Done will return true, and the response of the operation is returned.
  4000  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4001  func (op *DeleteNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4002  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4003  	return op.lro.Poll(ctx, nil, opts...)
  4004  }
  4005  
  4006  // Metadata returns metadata associated with the long-running operation.
  4007  // Metadata itself does not contact the server, but Poll does.
  4008  // To get the latest metadata, call this method after a successful call to Poll.
  4009  // If the metadata is not available, the returned metadata and error are both nil.
  4010  func (op *DeleteNotebookRuntimeOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4011  	var meta aiplatformpb.DeleteOperationMetadata
  4012  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4013  		return nil, nil
  4014  	} else if err != nil {
  4015  		return nil, err
  4016  	}
  4017  	return &meta, nil
  4018  }
  4019  
  4020  // Done reports whether the long-running operation has completed.
  4021  func (op *DeleteNotebookRuntimeOperation) Done() bool {
  4022  	return op.lro.Done()
  4023  }
  4024  
  4025  // Name returns the name of the long-running operation.
  4026  // The name is assigned by the server and is unique within the service from which the operation is created.
  4027  func (op *DeleteNotebookRuntimeOperation) Name() string {
  4028  	return op.lro.Name()
  4029  }
  4030  
  4031  // DeleteNotebookRuntimeTemplateOperation manages a long-running operation from DeleteNotebookRuntimeTemplate.
  4032  type DeleteNotebookRuntimeTemplateOperation struct {
  4033  	lro      *longrunning.Operation
  4034  	pollPath string
  4035  }
  4036  
  4037  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4038  //
  4039  // See documentation of Poll for error-handling information.
  4040  func (op *DeleteNotebookRuntimeTemplateOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4041  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4042  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4043  }
  4044  
  4045  // Poll fetches the latest state of the long-running operation.
  4046  //
  4047  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4048  //
  4049  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4050  // the operation has completed with failure, the error is returned and op.Done will return true.
  4051  // If Poll succeeds and the operation has completed successfully,
  4052  // op.Done will return true, and the response of the operation is returned.
  4053  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4054  func (op *DeleteNotebookRuntimeTemplateOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4055  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4056  	return op.lro.Poll(ctx, nil, opts...)
  4057  }
  4058  
  4059  // Metadata returns metadata associated with the long-running operation.
  4060  // Metadata itself does not contact the server, but Poll does.
  4061  // To get the latest metadata, call this method after a successful call to Poll.
  4062  // If the metadata is not available, the returned metadata and error are both nil.
  4063  func (op *DeleteNotebookRuntimeTemplateOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4064  	var meta aiplatformpb.DeleteOperationMetadata
  4065  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4066  		return nil, nil
  4067  	} else if err != nil {
  4068  		return nil, err
  4069  	}
  4070  	return &meta, nil
  4071  }
  4072  
  4073  // Done reports whether the long-running operation has completed.
  4074  func (op *DeleteNotebookRuntimeTemplateOperation) Done() bool {
  4075  	return op.lro.Done()
  4076  }
  4077  
  4078  // Name returns the name of the long-running operation.
  4079  // The name is assigned by the server and is unique within the service from which the operation is created.
  4080  func (op *DeleteNotebookRuntimeTemplateOperation) Name() string {
  4081  	return op.lro.Name()
  4082  }
  4083  
  4084  // DeletePersistentResourceOperation manages a long-running operation from DeletePersistentResource.
  4085  type DeletePersistentResourceOperation struct {
  4086  	lro      *longrunning.Operation
  4087  	pollPath string
  4088  }
  4089  
  4090  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4091  //
  4092  // See documentation of Poll for error-handling information.
  4093  func (op *DeletePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4094  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4095  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4096  }
  4097  
  4098  // Poll fetches the latest state of the long-running operation.
  4099  //
  4100  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4101  //
  4102  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4103  // the operation has completed with failure, the error is returned and op.Done will return true.
  4104  // If Poll succeeds and the operation has completed successfully,
  4105  // op.Done will return true, and the response of the operation is returned.
  4106  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4107  func (op *DeletePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4108  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4109  	return op.lro.Poll(ctx, nil, opts...)
  4110  }
  4111  
  4112  // Metadata returns metadata associated with the long-running operation.
  4113  // Metadata itself does not contact the server, but Poll does.
  4114  // To get the latest metadata, call this method after a successful call to Poll.
  4115  // If the metadata is not available, the returned metadata and error are both nil.
  4116  func (op *DeletePersistentResourceOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4117  	var meta aiplatformpb.DeleteOperationMetadata
  4118  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4119  		return nil, nil
  4120  	} else if err != nil {
  4121  		return nil, err
  4122  	}
  4123  	return &meta, nil
  4124  }
  4125  
  4126  // Done reports whether the long-running operation has completed.
  4127  func (op *DeletePersistentResourceOperation) Done() bool {
  4128  	return op.lro.Done()
  4129  }
  4130  
  4131  // Name returns the name of the long-running operation.
  4132  // The name is assigned by the server and is unique within the service from which the operation is created.
  4133  func (op *DeletePersistentResourceOperation) Name() string {
  4134  	return op.lro.Name()
  4135  }
  4136  
  4137  // DeletePipelineJobOperation manages a long-running operation from DeletePipelineJob.
  4138  type DeletePipelineJobOperation struct {
  4139  	lro      *longrunning.Operation
  4140  	pollPath string
  4141  }
  4142  
  4143  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4144  //
  4145  // See documentation of Poll for error-handling information.
  4146  func (op *DeletePipelineJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4147  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4148  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4149  }
  4150  
  4151  // Poll fetches the latest state of the long-running operation.
  4152  //
  4153  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4154  //
  4155  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4156  // the operation has completed with failure, the error is returned and op.Done will return true.
  4157  // If Poll succeeds and the operation has completed successfully,
  4158  // op.Done will return true, and the response of the operation is returned.
  4159  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4160  func (op *DeletePipelineJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4161  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4162  	return op.lro.Poll(ctx, nil, opts...)
  4163  }
  4164  
  4165  // Metadata returns metadata associated with the long-running operation.
  4166  // Metadata itself does not contact the server, but Poll does.
  4167  // To get the latest metadata, call this method after a successful call to Poll.
  4168  // If the metadata is not available, the returned metadata and error are both nil.
  4169  func (op *DeletePipelineJobOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4170  	var meta aiplatformpb.DeleteOperationMetadata
  4171  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4172  		return nil, nil
  4173  	} else if err != nil {
  4174  		return nil, err
  4175  	}
  4176  	return &meta, nil
  4177  }
  4178  
  4179  // Done reports whether the long-running operation has completed.
  4180  func (op *DeletePipelineJobOperation) Done() bool {
  4181  	return op.lro.Done()
  4182  }
  4183  
  4184  // Name returns the name of the long-running operation.
  4185  // The name is assigned by the server and is unique within the service from which the operation is created.
  4186  func (op *DeletePipelineJobOperation) Name() string {
  4187  	return op.lro.Name()
  4188  }
  4189  
  4190  // DeleteRagCorpusOperation manages a long-running operation from DeleteRagCorpus.
  4191  type DeleteRagCorpusOperation struct {
  4192  	lro      *longrunning.Operation
  4193  	pollPath string
  4194  }
  4195  
  4196  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4197  //
  4198  // See documentation of Poll for error-handling information.
  4199  func (op *DeleteRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4200  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4201  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4202  }
  4203  
  4204  // Poll fetches the latest state of the long-running operation.
  4205  //
  4206  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4207  //
  4208  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4209  // the operation has completed with failure, the error is returned and op.Done will return true.
  4210  // If Poll succeeds and the operation has completed successfully,
  4211  // op.Done will return true, and the response of the operation is returned.
  4212  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4213  func (op *DeleteRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4214  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4215  	return op.lro.Poll(ctx, nil, opts...)
  4216  }
  4217  
  4218  // Metadata returns metadata associated with the long-running operation.
  4219  // Metadata itself does not contact the server, but Poll does.
  4220  // To get the latest metadata, call this method after a successful call to Poll.
  4221  // If the metadata is not available, the returned metadata and error are both nil.
  4222  func (op *DeleteRagCorpusOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4223  	var meta aiplatformpb.DeleteOperationMetadata
  4224  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4225  		return nil, nil
  4226  	} else if err != nil {
  4227  		return nil, err
  4228  	}
  4229  	return &meta, nil
  4230  }
  4231  
  4232  // Done reports whether the long-running operation has completed.
  4233  func (op *DeleteRagCorpusOperation) Done() bool {
  4234  	return op.lro.Done()
  4235  }
  4236  
  4237  // Name returns the name of the long-running operation.
  4238  // The name is assigned by the server and is unique within the service from which the operation is created.
  4239  func (op *DeleteRagCorpusOperation) Name() string {
  4240  	return op.lro.Name()
  4241  }
  4242  
  4243  // DeleteRagFileOperation manages a long-running operation from DeleteRagFile.
  4244  type DeleteRagFileOperation struct {
  4245  	lro      *longrunning.Operation
  4246  	pollPath string
  4247  }
  4248  
  4249  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4250  //
  4251  // See documentation of Poll for error-handling information.
  4252  func (op *DeleteRagFileOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4253  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4254  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4255  }
  4256  
  4257  // Poll fetches the latest state of the long-running operation.
  4258  //
  4259  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4260  //
  4261  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4262  // the operation has completed with failure, the error is returned and op.Done will return true.
  4263  // If Poll succeeds and the operation has completed successfully,
  4264  // op.Done will return true, and the response of the operation is returned.
  4265  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4266  func (op *DeleteRagFileOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4267  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4268  	return op.lro.Poll(ctx, nil, opts...)
  4269  }
  4270  
  4271  // Metadata returns metadata associated with the long-running operation.
  4272  // Metadata itself does not contact the server, but Poll does.
  4273  // To get the latest metadata, call this method after a successful call to Poll.
  4274  // If the metadata is not available, the returned metadata and error are both nil.
  4275  func (op *DeleteRagFileOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4276  	var meta aiplatformpb.DeleteOperationMetadata
  4277  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4278  		return nil, nil
  4279  	} else if err != nil {
  4280  		return nil, err
  4281  	}
  4282  	return &meta, nil
  4283  }
  4284  
  4285  // Done reports whether the long-running operation has completed.
  4286  func (op *DeleteRagFileOperation) Done() bool {
  4287  	return op.lro.Done()
  4288  }
  4289  
  4290  // Name returns the name of the long-running operation.
  4291  // The name is assigned by the server and is unique within the service from which the operation is created.
  4292  func (op *DeleteRagFileOperation) Name() string {
  4293  	return op.lro.Name()
  4294  }
  4295  
  4296  // DeleteReasoningEngineOperation manages a long-running operation from DeleteReasoningEngine.
  4297  type DeleteReasoningEngineOperation struct {
  4298  	lro      *longrunning.Operation
  4299  	pollPath string
  4300  }
  4301  
  4302  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4303  //
  4304  // See documentation of Poll for error-handling information.
  4305  func (op *DeleteReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4306  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4307  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4308  }
  4309  
  4310  // Poll fetches the latest state of the long-running operation.
  4311  //
  4312  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4313  //
  4314  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4315  // the operation has completed with failure, the error is returned and op.Done will return true.
  4316  // If Poll succeeds and the operation has completed successfully,
  4317  // op.Done will return true, and the response of the operation is returned.
  4318  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4319  func (op *DeleteReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4320  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4321  	return op.lro.Poll(ctx, nil, opts...)
  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 *DeleteReasoningEngineOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4329  	var meta aiplatformpb.DeleteOperationMetadata
  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 *DeleteReasoningEngineOperation) 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 *DeleteReasoningEngineOperation) Name() string {
  4346  	return op.lro.Name()
  4347  }
  4348  
  4349  // DeleteSavedQueryOperation manages a long-running operation from DeleteSavedQuery.
  4350  type DeleteSavedQueryOperation struct {
  4351  	lro      *longrunning.Operation
  4352  	pollPath string
  4353  }
  4354  
  4355  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4356  //
  4357  // See documentation of Poll for error-handling information.
  4358  func (op *DeleteSavedQueryOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4359  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4360  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4361  }
  4362  
  4363  // Poll fetches the latest state of the long-running operation.
  4364  //
  4365  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4366  //
  4367  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4368  // the operation has completed with failure, the error is returned and op.Done will return true.
  4369  // If Poll succeeds and the operation has completed successfully,
  4370  // op.Done will return true, and the response of the operation is returned.
  4371  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4372  func (op *DeleteSavedQueryOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4373  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4374  	return op.lro.Poll(ctx, nil, opts...)
  4375  }
  4376  
  4377  // Metadata returns metadata associated with the long-running operation.
  4378  // Metadata itself does not contact the server, but Poll does.
  4379  // To get the latest metadata, call this method after a successful call to Poll.
  4380  // If the metadata is not available, the returned metadata and error are both nil.
  4381  func (op *DeleteSavedQueryOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4382  	var meta aiplatformpb.DeleteOperationMetadata
  4383  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4384  		return nil, nil
  4385  	} else if err != nil {
  4386  		return nil, err
  4387  	}
  4388  	return &meta, nil
  4389  }
  4390  
  4391  // Done reports whether the long-running operation has completed.
  4392  func (op *DeleteSavedQueryOperation) Done() bool {
  4393  	return op.lro.Done()
  4394  }
  4395  
  4396  // Name returns the name of the long-running operation.
  4397  // The name is assigned by the server and is unique within the service from which the operation is created.
  4398  func (op *DeleteSavedQueryOperation) Name() string {
  4399  	return op.lro.Name()
  4400  }
  4401  
  4402  // DeleteScheduleOperation manages a long-running operation from DeleteSchedule.
  4403  type DeleteScheduleOperation struct {
  4404  	lro      *longrunning.Operation
  4405  	pollPath string
  4406  }
  4407  
  4408  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4409  //
  4410  // See documentation of Poll for error-handling information.
  4411  func (op *DeleteScheduleOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4412  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4413  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4414  }
  4415  
  4416  // Poll fetches the latest state of the long-running operation.
  4417  //
  4418  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4419  //
  4420  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4421  // the operation has completed with failure, the error is returned and op.Done will return true.
  4422  // If Poll succeeds and the operation has completed successfully,
  4423  // op.Done will return true, and the response of the operation is returned.
  4424  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4425  func (op *DeleteScheduleOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4426  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4427  	return op.lro.Poll(ctx, nil, opts...)
  4428  }
  4429  
  4430  // Metadata returns metadata associated with the long-running operation.
  4431  // Metadata itself does not contact the server, but Poll does.
  4432  // To get the latest metadata, call this method after a successful call to Poll.
  4433  // If the metadata is not available, the returned metadata and error are both nil.
  4434  func (op *DeleteScheduleOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4435  	var meta aiplatformpb.DeleteOperationMetadata
  4436  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4437  		return nil, nil
  4438  	} else if err != nil {
  4439  		return nil, err
  4440  	}
  4441  	return &meta, nil
  4442  }
  4443  
  4444  // Done reports whether the long-running operation has completed.
  4445  func (op *DeleteScheduleOperation) Done() bool {
  4446  	return op.lro.Done()
  4447  }
  4448  
  4449  // Name returns the name of the long-running operation.
  4450  // The name is assigned by the server and is unique within the service from which the operation is created.
  4451  func (op *DeleteScheduleOperation) Name() string {
  4452  	return op.lro.Name()
  4453  }
  4454  
  4455  // DeleteSessionOperation manages a long-running operation from DeleteSession.
  4456  type DeleteSessionOperation struct {
  4457  	lro      *longrunning.Operation
  4458  	pollPath string
  4459  }
  4460  
  4461  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4462  //
  4463  // See documentation of Poll for error-handling information.
  4464  func (op *DeleteSessionOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4465  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4466  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4467  }
  4468  
  4469  // Poll fetches the latest state of the long-running operation.
  4470  //
  4471  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4472  //
  4473  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4474  // the operation has completed with failure, the error is returned and op.Done will return true.
  4475  // If Poll succeeds and the operation has completed successfully,
  4476  // op.Done will return true, and the response of the operation is returned.
  4477  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4478  func (op *DeleteSessionOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4479  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4480  	return op.lro.Poll(ctx, nil, opts...)
  4481  }
  4482  
  4483  // Metadata returns metadata associated with the long-running operation.
  4484  // Metadata itself does not contact the server, but Poll does.
  4485  // To get the latest metadata, call this method after a successful call to Poll.
  4486  // If the metadata is not available, the returned metadata and error are both nil.
  4487  func (op *DeleteSessionOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4488  	var meta aiplatformpb.DeleteOperationMetadata
  4489  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4490  		return nil, nil
  4491  	} else if err != nil {
  4492  		return nil, err
  4493  	}
  4494  	return &meta, nil
  4495  }
  4496  
  4497  // Done reports whether the long-running operation has completed.
  4498  func (op *DeleteSessionOperation) Done() bool {
  4499  	return op.lro.Done()
  4500  }
  4501  
  4502  // Name returns the name of the long-running operation.
  4503  // The name is assigned by the server and is unique within the service from which the operation is created.
  4504  func (op *DeleteSessionOperation) Name() string {
  4505  	return op.lro.Name()
  4506  }
  4507  
  4508  // DeleteSpecialistPoolOperation manages a long-running operation from DeleteSpecialistPool.
  4509  type DeleteSpecialistPoolOperation struct {
  4510  	lro      *longrunning.Operation
  4511  	pollPath string
  4512  }
  4513  
  4514  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4515  //
  4516  // See documentation of Poll for error-handling information.
  4517  func (op *DeleteSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4518  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4519  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4520  }
  4521  
  4522  // Poll fetches the latest state of the long-running operation.
  4523  //
  4524  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4525  //
  4526  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4527  // the operation has completed with failure, the error is returned and op.Done will return true.
  4528  // If Poll succeeds and the operation has completed successfully,
  4529  // op.Done will return true, and the response of the operation is returned.
  4530  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4531  func (op *DeleteSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4532  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4533  	return op.lro.Poll(ctx, nil, opts...)
  4534  }
  4535  
  4536  // Metadata returns metadata associated with the long-running operation.
  4537  // Metadata itself does not contact the server, but Poll does.
  4538  // To get the latest metadata, call this method after a successful call to Poll.
  4539  // If the metadata is not available, the returned metadata and error are both nil.
  4540  func (op *DeleteSpecialistPoolOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4541  	var meta aiplatformpb.DeleteOperationMetadata
  4542  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4543  		return nil, nil
  4544  	} else if err != nil {
  4545  		return nil, err
  4546  	}
  4547  	return &meta, nil
  4548  }
  4549  
  4550  // Done reports whether the long-running operation has completed.
  4551  func (op *DeleteSpecialistPoolOperation) Done() bool {
  4552  	return op.lro.Done()
  4553  }
  4554  
  4555  // Name returns the name of the long-running operation.
  4556  // The name is assigned by the server and is unique within the service from which the operation is created.
  4557  func (op *DeleteSpecialistPoolOperation) Name() string {
  4558  	return op.lro.Name()
  4559  }
  4560  
  4561  // DeleteTensorboardExperimentOperation manages a long-running operation from DeleteTensorboardExperiment.
  4562  type DeleteTensorboardExperimentOperation struct {
  4563  	lro      *longrunning.Operation
  4564  	pollPath string
  4565  }
  4566  
  4567  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4568  //
  4569  // See documentation of Poll for error-handling information.
  4570  func (op *DeleteTensorboardExperimentOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4571  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4572  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4573  }
  4574  
  4575  // Poll fetches the latest state of the long-running operation.
  4576  //
  4577  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4578  //
  4579  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4580  // the operation has completed with failure, the error is returned and op.Done will return true.
  4581  // If Poll succeeds and the operation has completed successfully,
  4582  // op.Done will return true, and the response of the operation is returned.
  4583  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4584  func (op *DeleteTensorboardExperimentOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4585  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4586  	return op.lro.Poll(ctx, nil, opts...)
  4587  }
  4588  
  4589  // Metadata returns metadata associated with the long-running operation.
  4590  // Metadata itself does not contact the server, but Poll does.
  4591  // To get the latest metadata, call this method after a successful call to Poll.
  4592  // If the metadata is not available, the returned metadata and error are both nil.
  4593  func (op *DeleteTensorboardExperimentOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4594  	var meta aiplatformpb.DeleteOperationMetadata
  4595  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4596  		return nil, nil
  4597  	} else if err != nil {
  4598  		return nil, err
  4599  	}
  4600  	return &meta, nil
  4601  }
  4602  
  4603  // Done reports whether the long-running operation has completed.
  4604  func (op *DeleteTensorboardExperimentOperation) Done() bool {
  4605  	return op.lro.Done()
  4606  }
  4607  
  4608  // Name returns the name of the long-running operation.
  4609  // The name is assigned by the server and is unique within the service from which the operation is created.
  4610  func (op *DeleteTensorboardExperimentOperation) Name() string {
  4611  	return op.lro.Name()
  4612  }
  4613  
  4614  // DeleteTensorboardOperation manages a long-running operation from DeleteTensorboard.
  4615  type DeleteTensorboardOperation struct {
  4616  	lro      *longrunning.Operation
  4617  	pollPath string
  4618  }
  4619  
  4620  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4621  //
  4622  // See documentation of Poll for error-handling information.
  4623  func (op *DeleteTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4624  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4625  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4626  }
  4627  
  4628  // Poll fetches the latest state of the long-running operation.
  4629  //
  4630  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4631  //
  4632  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4633  // the operation has completed with failure, the error is returned and op.Done will return true.
  4634  // If Poll succeeds and the operation has completed successfully,
  4635  // op.Done will return true, and the response of the operation is returned.
  4636  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4637  func (op *DeleteTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4638  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4639  	return op.lro.Poll(ctx, nil, opts...)
  4640  }
  4641  
  4642  // Metadata returns metadata associated with the long-running operation.
  4643  // Metadata itself does not contact the server, but Poll does.
  4644  // To get the latest metadata, call this method after a successful call to Poll.
  4645  // If the metadata is not available, the returned metadata and error are both nil.
  4646  func (op *DeleteTensorboardOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4647  	var meta aiplatformpb.DeleteOperationMetadata
  4648  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4649  		return nil, nil
  4650  	} else if err != nil {
  4651  		return nil, err
  4652  	}
  4653  	return &meta, nil
  4654  }
  4655  
  4656  // Done reports whether the long-running operation has completed.
  4657  func (op *DeleteTensorboardOperation) Done() bool {
  4658  	return op.lro.Done()
  4659  }
  4660  
  4661  // Name returns the name of the long-running operation.
  4662  // The name is assigned by the server and is unique within the service from which the operation is created.
  4663  func (op *DeleteTensorboardOperation) Name() string {
  4664  	return op.lro.Name()
  4665  }
  4666  
  4667  // DeleteTensorboardRunOperation manages a long-running operation from DeleteTensorboardRun.
  4668  type DeleteTensorboardRunOperation struct {
  4669  	lro      *longrunning.Operation
  4670  	pollPath string
  4671  }
  4672  
  4673  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4674  //
  4675  // See documentation of Poll for error-handling information.
  4676  func (op *DeleteTensorboardRunOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4677  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4678  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4679  }
  4680  
  4681  // Poll fetches the latest state of the long-running operation.
  4682  //
  4683  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4684  //
  4685  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4686  // the operation has completed with failure, the error is returned and op.Done will return true.
  4687  // If Poll succeeds and the operation has completed successfully,
  4688  // op.Done will return true, and the response of the operation is returned.
  4689  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4690  func (op *DeleteTensorboardRunOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4691  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4692  	return op.lro.Poll(ctx, nil, opts...)
  4693  }
  4694  
  4695  // Metadata returns metadata associated with the long-running operation.
  4696  // Metadata itself does not contact the server, but Poll does.
  4697  // To get the latest metadata, call this method after a successful call to Poll.
  4698  // If the metadata is not available, the returned metadata and error are both nil.
  4699  func (op *DeleteTensorboardRunOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4700  	var meta aiplatformpb.DeleteOperationMetadata
  4701  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4702  		return nil, nil
  4703  	} else if err != nil {
  4704  		return nil, err
  4705  	}
  4706  	return &meta, nil
  4707  }
  4708  
  4709  // Done reports whether the long-running operation has completed.
  4710  func (op *DeleteTensorboardRunOperation) Done() bool {
  4711  	return op.lro.Done()
  4712  }
  4713  
  4714  // Name returns the name of the long-running operation.
  4715  // The name is assigned by the server and is unique within the service from which the operation is created.
  4716  func (op *DeleteTensorboardRunOperation) Name() string {
  4717  	return op.lro.Name()
  4718  }
  4719  
  4720  // DeleteTensorboardTimeSeriesOperation manages a long-running operation from DeleteTensorboardTimeSeries.
  4721  type DeleteTensorboardTimeSeriesOperation struct {
  4722  	lro      *longrunning.Operation
  4723  	pollPath string
  4724  }
  4725  
  4726  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4727  //
  4728  // See documentation of Poll for error-handling information.
  4729  func (op *DeleteTensorboardTimeSeriesOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4730  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4731  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4732  }
  4733  
  4734  // Poll fetches the latest state of the long-running operation.
  4735  //
  4736  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4737  //
  4738  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4739  // the operation has completed with failure, the error is returned and op.Done will return true.
  4740  // If Poll succeeds and the operation has completed successfully,
  4741  // op.Done will return true, and the response of the operation is returned.
  4742  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4743  func (op *DeleteTensorboardTimeSeriesOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4744  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4745  	return op.lro.Poll(ctx, nil, opts...)
  4746  }
  4747  
  4748  // Metadata returns metadata associated with the long-running operation.
  4749  // Metadata itself does not contact the server, but Poll does.
  4750  // To get the latest metadata, call this method after a successful call to Poll.
  4751  // If the metadata is not available, the returned metadata and error are both nil.
  4752  func (op *DeleteTensorboardTimeSeriesOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4753  	var meta aiplatformpb.DeleteOperationMetadata
  4754  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4755  		return nil, nil
  4756  	} else if err != nil {
  4757  		return nil, err
  4758  	}
  4759  	return &meta, nil
  4760  }
  4761  
  4762  // Done reports whether the long-running operation has completed.
  4763  func (op *DeleteTensorboardTimeSeriesOperation) Done() bool {
  4764  	return op.lro.Done()
  4765  }
  4766  
  4767  // Name returns the name of the long-running operation.
  4768  // The name is assigned by the server and is unique within the service from which the operation is created.
  4769  func (op *DeleteTensorboardTimeSeriesOperation) Name() string {
  4770  	return op.lro.Name()
  4771  }
  4772  
  4773  // DeleteTrainingPipelineOperation manages a long-running operation from DeleteTrainingPipeline.
  4774  type DeleteTrainingPipelineOperation struct {
  4775  	lro      *longrunning.Operation
  4776  	pollPath string
  4777  }
  4778  
  4779  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4780  //
  4781  // See documentation of Poll for error-handling information.
  4782  func (op *DeleteTrainingPipelineOperation) Wait(ctx context.Context, opts ...gax.CallOption) error {
  4783  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4784  	return op.lro.WaitWithInterval(ctx, nil, time.Minute, opts...)
  4785  }
  4786  
  4787  // Poll fetches the latest state of the long-running operation.
  4788  //
  4789  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4790  //
  4791  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4792  // the operation has completed with failure, the error is returned and op.Done will return true.
  4793  // If Poll succeeds and the operation has completed successfully,
  4794  // op.Done will return true, and the response of the operation is returned.
  4795  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4796  func (op *DeleteTrainingPipelineOperation) Poll(ctx context.Context, opts ...gax.CallOption) error {
  4797  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4798  	return op.lro.Poll(ctx, nil, opts...)
  4799  }
  4800  
  4801  // Metadata returns metadata associated with the long-running operation.
  4802  // Metadata itself does not contact the server, but Poll does.
  4803  // To get the latest metadata, call this method after a successful call to Poll.
  4804  // If the metadata is not available, the returned metadata and error are both nil.
  4805  func (op *DeleteTrainingPipelineOperation) Metadata() (*aiplatformpb.DeleteOperationMetadata, error) {
  4806  	var meta aiplatformpb.DeleteOperationMetadata
  4807  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4808  		return nil, nil
  4809  	} else if err != nil {
  4810  		return nil, err
  4811  	}
  4812  	return &meta, nil
  4813  }
  4814  
  4815  // Done reports whether the long-running operation has completed.
  4816  func (op *DeleteTrainingPipelineOperation) Done() bool {
  4817  	return op.lro.Done()
  4818  }
  4819  
  4820  // Name returns the name of the long-running operation.
  4821  // The name is assigned by the server and is unique within the service from which the operation is created.
  4822  func (op *DeleteTrainingPipelineOperation) Name() string {
  4823  	return op.lro.Name()
  4824  }
  4825  
  4826  // DeployIndexOperation manages a long-running operation from DeployIndex.
  4827  type DeployIndexOperation struct {
  4828  	lro      *longrunning.Operation
  4829  	pollPath string
  4830  }
  4831  
  4832  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4833  //
  4834  // See documentation of Poll for error-handling information.
  4835  func (op *DeployIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployIndexResponse, error) {
  4836  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4837  	var resp aiplatformpb.DeployIndexResponse
  4838  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4839  		return nil, err
  4840  	}
  4841  	return &resp, nil
  4842  }
  4843  
  4844  // Poll fetches the latest state of the long-running operation.
  4845  //
  4846  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4847  //
  4848  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4849  // the operation has completed with failure, the error is returned and op.Done will return true.
  4850  // If Poll succeeds and the operation has completed successfully,
  4851  // op.Done will return true, and the response of the operation is returned.
  4852  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4853  func (op *DeployIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployIndexResponse, error) {
  4854  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4855  	var resp aiplatformpb.DeployIndexResponse
  4856  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4857  		return nil, err
  4858  	}
  4859  	if !op.Done() {
  4860  		return nil, nil
  4861  	}
  4862  	return &resp, nil
  4863  }
  4864  
  4865  // Metadata returns metadata associated with the long-running operation.
  4866  // Metadata itself does not contact the server, but Poll does.
  4867  // To get the latest metadata, call this method after a successful call to Poll.
  4868  // If the metadata is not available, the returned metadata and error are both nil.
  4869  func (op *DeployIndexOperation) Metadata() (*aiplatformpb.DeployIndexOperationMetadata, error) {
  4870  	var meta aiplatformpb.DeployIndexOperationMetadata
  4871  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4872  		return nil, nil
  4873  	} else if err != nil {
  4874  		return nil, err
  4875  	}
  4876  	return &meta, nil
  4877  }
  4878  
  4879  // Done reports whether the long-running operation has completed.
  4880  func (op *DeployIndexOperation) Done() bool {
  4881  	return op.lro.Done()
  4882  }
  4883  
  4884  // Name returns the name of the long-running operation.
  4885  // The name is assigned by the server and is unique within the service from which the operation is created.
  4886  func (op *DeployIndexOperation) Name() string {
  4887  	return op.lro.Name()
  4888  }
  4889  
  4890  // DeployModelOperation manages a long-running operation from DeployModel.
  4891  type DeployModelOperation struct {
  4892  	lro      *longrunning.Operation
  4893  	pollPath string
  4894  }
  4895  
  4896  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4897  //
  4898  // See documentation of Poll for error-handling information.
  4899  func (op *DeployModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployModelResponse, error) {
  4900  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4901  	var resp aiplatformpb.DeployModelResponse
  4902  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4903  		return nil, err
  4904  	}
  4905  	return &resp, nil
  4906  }
  4907  
  4908  // Poll fetches the latest state of the long-running operation.
  4909  //
  4910  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4911  //
  4912  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4913  // the operation has completed with failure, the error is returned and op.Done will return true.
  4914  // If Poll succeeds and the operation has completed successfully,
  4915  // op.Done will return true, and the response of the operation is returned.
  4916  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4917  func (op *DeployModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployModelResponse, error) {
  4918  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4919  	var resp aiplatformpb.DeployModelResponse
  4920  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4921  		return nil, err
  4922  	}
  4923  	if !op.Done() {
  4924  		return nil, nil
  4925  	}
  4926  	return &resp, nil
  4927  }
  4928  
  4929  // Metadata returns metadata associated with the long-running operation.
  4930  // Metadata itself does not contact the server, but Poll does.
  4931  // To get the latest metadata, call this method after a successful call to Poll.
  4932  // If the metadata is not available, the returned metadata and error are both nil.
  4933  func (op *DeployModelOperation) Metadata() (*aiplatformpb.DeployModelOperationMetadata, error) {
  4934  	var meta aiplatformpb.DeployModelOperationMetadata
  4935  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  4936  		return nil, nil
  4937  	} else if err != nil {
  4938  		return nil, err
  4939  	}
  4940  	return &meta, nil
  4941  }
  4942  
  4943  // Done reports whether the long-running operation has completed.
  4944  func (op *DeployModelOperation) Done() bool {
  4945  	return op.lro.Done()
  4946  }
  4947  
  4948  // Name returns the name of the long-running operation.
  4949  // The name is assigned by the server and is unique within the service from which the operation is created.
  4950  func (op *DeployModelOperation) Name() string {
  4951  	return op.lro.Name()
  4952  }
  4953  
  4954  // DeployOperation manages a long-running operation from Deploy.
  4955  type DeployOperation struct {
  4956  	lro      *longrunning.Operation
  4957  	pollPath string
  4958  }
  4959  
  4960  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  4961  //
  4962  // See documentation of Poll for error-handling information.
  4963  func (op *DeployOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployResponse, error) {
  4964  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4965  	var resp aiplatformpb.DeployResponse
  4966  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  4967  		return nil, err
  4968  	}
  4969  	return &resp, nil
  4970  }
  4971  
  4972  // Poll fetches the latest state of the long-running operation.
  4973  //
  4974  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  4975  //
  4976  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  4977  // the operation has completed with failure, the error is returned and op.Done will return true.
  4978  // If Poll succeeds and the operation has completed successfully,
  4979  // op.Done will return true, and the response of the operation is returned.
  4980  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  4981  func (op *DeployOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployResponse, error) {
  4982  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  4983  	var resp aiplatformpb.DeployResponse
  4984  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  4985  		return nil, err
  4986  	}
  4987  	if !op.Done() {
  4988  		return nil, nil
  4989  	}
  4990  	return &resp, nil
  4991  }
  4992  
  4993  // Metadata returns metadata associated with the long-running operation.
  4994  // Metadata itself does not contact the server, but Poll does.
  4995  // To get the latest metadata, call this method after a successful call to Poll.
  4996  // If the metadata is not available, the returned metadata and error are both nil.
  4997  func (op *DeployOperation) Metadata() (*aiplatformpb.DeployOperationMetadata, error) {
  4998  	var meta aiplatformpb.DeployOperationMetadata
  4999  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5000  		return nil, nil
  5001  	} else if err != nil {
  5002  		return nil, err
  5003  	}
  5004  	return &meta, nil
  5005  }
  5006  
  5007  // Done reports whether the long-running operation has completed.
  5008  func (op *DeployOperation) Done() bool {
  5009  	return op.lro.Done()
  5010  }
  5011  
  5012  // Name returns the name of the long-running operation.
  5013  // The name is assigned by the server and is unique within the service from which the operation is created.
  5014  func (op *DeployOperation) Name() string {
  5015  	return op.lro.Name()
  5016  }
  5017  
  5018  // DeployPublisherModelOperation manages a long-running operation from DeployPublisherModel.
  5019  type DeployPublisherModelOperation struct {
  5020  	lro      *longrunning.Operation
  5021  	pollPath string
  5022  }
  5023  
  5024  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5025  //
  5026  // See documentation of Poll for error-handling information.
  5027  func (op *DeployPublisherModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployPublisherModelResponse, error) {
  5028  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5029  	var resp aiplatformpb.DeployPublisherModelResponse
  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 *DeployPublisherModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeployPublisherModelResponse, error) {
  5046  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5047  	var resp aiplatformpb.DeployPublisherModelResponse
  5048  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5049  		return nil, err
  5050  	}
  5051  	if !op.Done() {
  5052  		return nil, nil
  5053  	}
  5054  	return &resp, nil
  5055  }
  5056  
  5057  // Metadata returns metadata associated with the long-running operation.
  5058  // Metadata itself does not contact the server, but Poll does.
  5059  // To get the latest metadata, call this method after a successful call to Poll.
  5060  // If the metadata is not available, the returned metadata and error are both nil.
  5061  func (op *DeployPublisherModelOperation) Metadata() (*aiplatformpb.DeployPublisherModelOperationMetadata, error) {
  5062  	var meta aiplatformpb.DeployPublisherModelOperationMetadata
  5063  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5064  		return nil, nil
  5065  	} else if err != nil {
  5066  		return nil, err
  5067  	}
  5068  	return &meta, nil
  5069  }
  5070  
  5071  // Done reports whether the long-running operation has completed.
  5072  func (op *DeployPublisherModelOperation) Done() bool {
  5073  	return op.lro.Done()
  5074  }
  5075  
  5076  // Name returns the name of the long-running operation.
  5077  // The name is assigned by the server and is unique within the service from which the operation is created.
  5078  func (op *DeployPublisherModelOperation) Name() string {
  5079  	return op.lro.Name()
  5080  }
  5081  
  5082  // EvaluateDatasetOperation manages a long-running operation from EvaluateDataset.
  5083  type EvaluateDatasetOperation struct {
  5084  	lro      *longrunning.Operation
  5085  	pollPath string
  5086  }
  5087  
  5088  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5089  //
  5090  // See documentation of Poll for error-handling information.
  5091  func (op *EvaluateDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EvaluateDatasetResponse, error) {
  5092  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5093  	var resp aiplatformpb.EvaluateDatasetResponse
  5094  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5095  		return nil, err
  5096  	}
  5097  	return &resp, nil
  5098  }
  5099  
  5100  // Poll fetches the latest state of the long-running operation.
  5101  //
  5102  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5103  //
  5104  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5105  // the operation has completed with failure, the error is returned and op.Done will return true.
  5106  // If Poll succeeds and the operation has completed successfully,
  5107  // op.Done will return true, and the response of the operation is returned.
  5108  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5109  func (op *EvaluateDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.EvaluateDatasetResponse, error) {
  5110  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5111  	var resp aiplatformpb.EvaluateDatasetResponse
  5112  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5113  		return nil, err
  5114  	}
  5115  	if !op.Done() {
  5116  		return nil, nil
  5117  	}
  5118  	return &resp, nil
  5119  }
  5120  
  5121  // Metadata returns metadata associated with the long-running operation.
  5122  // Metadata itself does not contact the server, but Poll does.
  5123  // To get the latest metadata, call this method after a successful call to Poll.
  5124  // If the metadata is not available, the returned metadata and error are both nil.
  5125  func (op *EvaluateDatasetOperation) Metadata() (*aiplatformpb.EvaluateDatasetOperationMetadata, error) {
  5126  	var meta aiplatformpb.EvaluateDatasetOperationMetadata
  5127  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5128  		return nil, nil
  5129  	} else if err != nil {
  5130  		return nil, err
  5131  	}
  5132  	return &meta, nil
  5133  }
  5134  
  5135  // Done reports whether the long-running operation has completed.
  5136  func (op *EvaluateDatasetOperation) Done() bool {
  5137  	return op.lro.Done()
  5138  }
  5139  
  5140  // Name returns the name of the long-running operation.
  5141  // The name is assigned by the server and is unique within the service from which the operation is created.
  5142  func (op *EvaluateDatasetOperation) Name() string {
  5143  	return op.lro.Name()
  5144  }
  5145  
  5146  // ExportDataOperation manages a long-running operation from ExportData.
  5147  type ExportDataOperation struct {
  5148  	lro      *longrunning.Operation
  5149  	pollPath string
  5150  }
  5151  
  5152  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5153  //
  5154  // See documentation of Poll for error-handling information.
  5155  func (op *ExportDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportDataResponse, error) {
  5156  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5157  	var resp aiplatformpb.ExportDataResponse
  5158  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5159  		return nil, err
  5160  	}
  5161  	return &resp, nil
  5162  }
  5163  
  5164  // Poll fetches the latest state of the long-running operation.
  5165  //
  5166  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5167  //
  5168  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5169  // the operation has completed with failure, the error is returned and op.Done will return true.
  5170  // If Poll succeeds and the operation has completed successfully,
  5171  // op.Done will return true, and the response of the operation is returned.
  5172  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5173  func (op *ExportDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportDataResponse, error) {
  5174  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5175  	var resp aiplatformpb.ExportDataResponse
  5176  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5177  		return nil, err
  5178  	}
  5179  	if !op.Done() {
  5180  		return nil, nil
  5181  	}
  5182  	return &resp, nil
  5183  }
  5184  
  5185  // Metadata returns metadata associated with the long-running operation.
  5186  // Metadata itself does not contact the server, but Poll does.
  5187  // To get the latest metadata, call this method after a successful call to Poll.
  5188  // If the metadata is not available, the returned metadata and error are both nil.
  5189  func (op *ExportDataOperation) Metadata() (*aiplatformpb.ExportDataOperationMetadata, error) {
  5190  	var meta aiplatformpb.ExportDataOperationMetadata
  5191  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5192  		return nil, nil
  5193  	} else if err != nil {
  5194  		return nil, err
  5195  	}
  5196  	return &meta, nil
  5197  }
  5198  
  5199  // Done reports whether the long-running operation has completed.
  5200  func (op *ExportDataOperation) Done() bool {
  5201  	return op.lro.Done()
  5202  }
  5203  
  5204  // Name returns the name of the long-running operation.
  5205  // The name is assigned by the server and is unique within the service from which the operation is created.
  5206  func (op *ExportDataOperation) Name() string {
  5207  	return op.lro.Name()
  5208  }
  5209  
  5210  // ExportFeatureValuesOperation manages a long-running operation from ExportFeatureValues.
  5211  type ExportFeatureValuesOperation struct {
  5212  	lro      *longrunning.Operation
  5213  	pollPath string
  5214  }
  5215  
  5216  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5217  //
  5218  // See documentation of Poll for error-handling information.
  5219  func (op *ExportFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportFeatureValuesResponse, error) {
  5220  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5221  	var resp aiplatformpb.ExportFeatureValuesResponse
  5222  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5223  		return nil, err
  5224  	}
  5225  	return &resp, nil
  5226  }
  5227  
  5228  // Poll fetches the latest state of the long-running operation.
  5229  //
  5230  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5231  //
  5232  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5233  // the operation has completed with failure, the error is returned and op.Done will return true.
  5234  // If Poll succeeds and the operation has completed successfully,
  5235  // op.Done will return true, and the response of the operation is returned.
  5236  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5237  func (op *ExportFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportFeatureValuesResponse, error) {
  5238  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5239  	var resp aiplatformpb.ExportFeatureValuesResponse
  5240  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5241  		return nil, err
  5242  	}
  5243  	if !op.Done() {
  5244  		return nil, nil
  5245  	}
  5246  	return &resp, nil
  5247  }
  5248  
  5249  // Metadata returns metadata associated with the long-running operation.
  5250  // Metadata itself does not contact the server, but Poll does.
  5251  // To get the latest metadata, call this method after a successful call to Poll.
  5252  // If the metadata is not available, the returned metadata and error are both nil.
  5253  func (op *ExportFeatureValuesOperation) Metadata() (*aiplatformpb.ExportFeatureValuesOperationMetadata, error) {
  5254  	var meta aiplatformpb.ExportFeatureValuesOperationMetadata
  5255  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5256  		return nil, nil
  5257  	} else if err != nil {
  5258  		return nil, err
  5259  	}
  5260  	return &meta, nil
  5261  }
  5262  
  5263  // Done reports whether the long-running operation has completed.
  5264  func (op *ExportFeatureValuesOperation) Done() bool {
  5265  	return op.lro.Done()
  5266  }
  5267  
  5268  // Name returns the name of the long-running operation.
  5269  // The name is assigned by the server and is unique within the service from which the operation is created.
  5270  func (op *ExportFeatureValuesOperation) Name() string {
  5271  	return op.lro.Name()
  5272  }
  5273  
  5274  // ExportModelOperation manages a long-running operation from ExportModel.
  5275  type ExportModelOperation struct {
  5276  	lro      *longrunning.Operation
  5277  	pollPath string
  5278  }
  5279  
  5280  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5281  //
  5282  // See documentation of Poll for error-handling information.
  5283  func (op *ExportModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportModelResponse, error) {
  5284  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5285  	var resp aiplatformpb.ExportModelResponse
  5286  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5287  		return nil, err
  5288  	}
  5289  	return &resp, nil
  5290  }
  5291  
  5292  // Poll fetches the latest state of the long-running operation.
  5293  //
  5294  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5295  //
  5296  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5297  // the operation has completed with failure, the error is returned and op.Done will return true.
  5298  // If Poll succeeds and the operation has completed successfully,
  5299  // op.Done will return true, and the response of the operation is returned.
  5300  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5301  func (op *ExportModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportModelResponse, error) {
  5302  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5303  	var resp aiplatformpb.ExportModelResponse
  5304  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5305  		return nil, err
  5306  	}
  5307  	if !op.Done() {
  5308  		return nil, nil
  5309  	}
  5310  	return &resp, nil
  5311  }
  5312  
  5313  // Metadata returns metadata associated with the long-running operation.
  5314  // Metadata itself does not contact the server, but Poll does.
  5315  // To get the latest metadata, call this method after a successful call to Poll.
  5316  // If the metadata is not available, the returned metadata and error are both nil.
  5317  func (op *ExportModelOperation) Metadata() (*aiplatformpb.ExportModelOperationMetadata, error) {
  5318  	var meta aiplatformpb.ExportModelOperationMetadata
  5319  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5320  		return nil, nil
  5321  	} else if err != nil {
  5322  		return nil, err
  5323  	}
  5324  	return &meta, nil
  5325  }
  5326  
  5327  // Done reports whether the long-running operation has completed.
  5328  func (op *ExportModelOperation) Done() bool {
  5329  	return op.lro.Done()
  5330  }
  5331  
  5332  // Name returns the name of the long-running operation.
  5333  // The name is assigned by the server and is unique within the service from which the operation is created.
  5334  func (op *ExportModelOperation) Name() string {
  5335  	return op.lro.Name()
  5336  }
  5337  
  5338  // ExportPublisherModelOperation manages a long-running operation from ExportPublisherModel.
  5339  type ExportPublisherModelOperation struct {
  5340  	lro      *longrunning.Operation
  5341  	pollPath string
  5342  }
  5343  
  5344  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5345  //
  5346  // See documentation of Poll for error-handling information.
  5347  func (op *ExportPublisherModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportPublisherModelResponse, error) {
  5348  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5349  	var resp aiplatformpb.ExportPublisherModelResponse
  5350  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5351  		return nil, err
  5352  	}
  5353  	return &resp, nil
  5354  }
  5355  
  5356  // Poll fetches the latest state of the long-running operation.
  5357  //
  5358  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5359  //
  5360  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5361  // the operation has completed with failure, the error is returned and op.Done will return true.
  5362  // If Poll succeeds and the operation has completed successfully,
  5363  // op.Done will return true, and the response of the operation is returned.
  5364  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5365  func (op *ExportPublisherModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExportPublisherModelResponse, error) {
  5366  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5367  	var resp aiplatformpb.ExportPublisherModelResponse
  5368  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5369  		return nil, err
  5370  	}
  5371  	if !op.Done() {
  5372  		return nil, nil
  5373  	}
  5374  	return &resp, nil
  5375  }
  5376  
  5377  // Metadata returns metadata associated with the long-running operation.
  5378  // Metadata itself does not contact the server, but Poll does.
  5379  // To get the latest metadata, call this method after a successful call to Poll.
  5380  // If the metadata is not available, the returned metadata and error are both nil.
  5381  func (op *ExportPublisherModelOperation) Metadata() (*aiplatformpb.ExportPublisherModelOperationMetadata, error) {
  5382  	var meta aiplatformpb.ExportPublisherModelOperationMetadata
  5383  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5384  		return nil, nil
  5385  	} else if err != nil {
  5386  		return nil, err
  5387  	}
  5388  	return &meta, nil
  5389  }
  5390  
  5391  // Done reports whether the long-running operation has completed.
  5392  func (op *ExportPublisherModelOperation) Done() bool {
  5393  	return op.lro.Done()
  5394  }
  5395  
  5396  // Name returns the name of the long-running operation.
  5397  // The name is assigned by the server and is unique within the service from which the operation is created.
  5398  func (op *ExportPublisherModelOperation) Name() string {
  5399  	return op.lro.Name()
  5400  }
  5401  
  5402  // GenerateMemoriesOperation manages a long-running operation from GenerateMemories.
  5403  type GenerateMemoriesOperation struct {
  5404  	lro      *longrunning.Operation
  5405  	pollPath string
  5406  }
  5407  
  5408  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5409  //
  5410  // See documentation of Poll for error-handling information.
  5411  func (op *GenerateMemoriesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.GenerateMemoriesResponse, error) {
  5412  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5413  	var resp aiplatformpb.GenerateMemoriesResponse
  5414  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5415  		return nil, err
  5416  	}
  5417  	return &resp, nil
  5418  }
  5419  
  5420  // Poll fetches the latest state of the long-running operation.
  5421  //
  5422  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5423  //
  5424  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5425  // the operation has completed with failure, the error is returned and op.Done will return true.
  5426  // If Poll succeeds and the operation has completed successfully,
  5427  // op.Done will return true, and the response of the operation is returned.
  5428  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5429  func (op *GenerateMemoriesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.GenerateMemoriesResponse, error) {
  5430  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5431  	var resp aiplatformpb.GenerateMemoriesResponse
  5432  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5433  		return nil, err
  5434  	}
  5435  	if !op.Done() {
  5436  		return nil, nil
  5437  	}
  5438  	return &resp, nil
  5439  }
  5440  
  5441  // Metadata returns metadata associated with the long-running operation.
  5442  // Metadata itself does not contact the server, but Poll does.
  5443  // To get the latest metadata, call this method after a successful call to Poll.
  5444  // If the metadata is not available, the returned metadata and error are both nil.
  5445  func (op *GenerateMemoriesOperation) Metadata() (*aiplatformpb.GenerateMemoriesOperationMetadata, error) {
  5446  	var meta aiplatformpb.GenerateMemoriesOperationMetadata
  5447  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5448  		return nil, nil
  5449  	} else if err != nil {
  5450  		return nil, err
  5451  	}
  5452  	return &meta, nil
  5453  }
  5454  
  5455  // Done reports whether the long-running operation has completed.
  5456  func (op *GenerateMemoriesOperation) Done() bool {
  5457  	return op.lro.Done()
  5458  }
  5459  
  5460  // Name returns the name of the long-running operation.
  5461  // The name is assigned by the server and is unique within the service from which the operation is created.
  5462  func (op *GenerateMemoriesOperation) Name() string {
  5463  	return op.lro.Name()
  5464  }
  5465  
  5466  // ImportDataOperation manages a long-running operation from ImportData.
  5467  type ImportDataOperation struct {
  5468  	lro      *longrunning.Operation
  5469  	pollPath string
  5470  }
  5471  
  5472  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5473  //
  5474  // See documentation of Poll for error-handling information.
  5475  func (op *ImportDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportDataResponse, error) {
  5476  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5477  	var resp aiplatformpb.ImportDataResponse
  5478  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5479  		return nil, err
  5480  	}
  5481  	return &resp, nil
  5482  }
  5483  
  5484  // Poll fetches the latest state of the long-running operation.
  5485  //
  5486  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5487  //
  5488  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5489  // the operation has completed with failure, the error is returned and op.Done will return true.
  5490  // If Poll succeeds and the operation has completed successfully,
  5491  // op.Done will return true, and the response of the operation is returned.
  5492  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5493  func (op *ImportDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportDataResponse, error) {
  5494  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5495  	var resp aiplatformpb.ImportDataResponse
  5496  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5497  		return nil, err
  5498  	}
  5499  	if !op.Done() {
  5500  		return nil, nil
  5501  	}
  5502  	return &resp, nil
  5503  }
  5504  
  5505  // Metadata returns metadata associated with the long-running operation.
  5506  // Metadata itself does not contact the server, but Poll does.
  5507  // To get the latest metadata, call this method after a successful call to Poll.
  5508  // If the metadata is not available, the returned metadata and error are both nil.
  5509  func (op *ImportDataOperation) Metadata() (*aiplatformpb.ImportDataOperationMetadata, error) {
  5510  	var meta aiplatformpb.ImportDataOperationMetadata
  5511  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5512  		return nil, nil
  5513  	} else if err != nil {
  5514  		return nil, err
  5515  	}
  5516  	return &meta, nil
  5517  }
  5518  
  5519  // Done reports whether the long-running operation has completed.
  5520  func (op *ImportDataOperation) Done() bool {
  5521  	return op.lro.Done()
  5522  }
  5523  
  5524  // Name returns the name of the long-running operation.
  5525  // The name is assigned by the server and is unique within the service from which the operation is created.
  5526  func (op *ImportDataOperation) Name() string {
  5527  	return op.lro.Name()
  5528  }
  5529  
  5530  // ImportExtensionOperation manages a long-running operation from ImportExtension.
  5531  type ImportExtensionOperation struct {
  5532  	lro      *longrunning.Operation
  5533  	pollPath string
  5534  }
  5535  
  5536  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5537  //
  5538  // See documentation of Poll for error-handling information.
  5539  func (op *ImportExtensionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Extension, error) {
  5540  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5541  	var resp aiplatformpb.Extension
  5542  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5543  		return nil, err
  5544  	}
  5545  	return &resp, nil
  5546  }
  5547  
  5548  // Poll fetches the latest state of the long-running operation.
  5549  //
  5550  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5551  //
  5552  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5553  // the operation has completed with failure, the error is returned and op.Done will return true.
  5554  // If Poll succeeds and the operation has completed successfully,
  5555  // op.Done will return true, and the response of the operation is returned.
  5556  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5557  func (op *ImportExtensionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Extension, error) {
  5558  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5559  	var resp aiplatformpb.Extension
  5560  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5561  		return nil, err
  5562  	}
  5563  	if !op.Done() {
  5564  		return nil, nil
  5565  	}
  5566  	return &resp, nil
  5567  }
  5568  
  5569  // Metadata returns metadata associated with the long-running operation.
  5570  // Metadata itself does not contact the server, but Poll does.
  5571  // To get the latest metadata, call this method after a successful call to Poll.
  5572  // If the metadata is not available, the returned metadata and error are both nil.
  5573  func (op *ImportExtensionOperation) Metadata() (*aiplatformpb.ImportExtensionOperationMetadata, error) {
  5574  	var meta aiplatformpb.ImportExtensionOperationMetadata
  5575  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5576  		return nil, nil
  5577  	} else if err != nil {
  5578  		return nil, err
  5579  	}
  5580  	return &meta, nil
  5581  }
  5582  
  5583  // Done reports whether the long-running operation has completed.
  5584  func (op *ImportExtensionOperation) Done() bool {
  5585  	return op.lro.Done()
  5586  }
  5587  
  5588  // Name returns the name of the long-running operation.
  5589  // The name is assigned by the server and is unique within the service from which the operation is created.
  5590  func (op *ImportExtensionOperation) Name() string {
  5591  	return op.lro.Name()
  5592  }
  5593  
  5594  // ImportFeatureValuesOperation manages a long-running operation from ImportFeatureValues.
  5595  type ImportFeatureValuesOperation struct {
  5596  	lro      *longrunning.Operation
  5597  	pollPath string
  5598  }
  5599  
  5600  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5601  //
  5602  // See documentation of Poll for error-handling information.
  5603  func (op *ImportFeatureValuesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportFeatureValuesResponse, error) {
  5604  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5605  	var resp aiplatformpb.ImportFeatureValuesResponse
  5606  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5607  		return nil, err
  5608  	}
  5609  	return &resp, nil
  5610  }
  5611  
  5612  // Poll fetches the latest state of the long-running operation.
  5613  //
  5614  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5615  //
  5616  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5617  // the operation has completed with failure, the error is returned and op.Done will return true.
  5618  // If Poll succeeds and the operation has completed successfully,
  5619  // op.Done will return true, and the response of the operation is returned.
  5620  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5621  func (op *ImportFeatureValuesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportFeatureValuesResponse, error) {
  5622  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5623  	var resp aiplatformpb.ImportFeatureValuesResponse
  5624  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5625  		return nil, err
  5626  	}
  5627  	if !op.Done() {
  5628  		return nil, nil
  5629  	}
  5630  	return &resp, nil
  5631  }
  5632  
  5633  // Metadata returns metadata associated with the long-running operation.
  5634  // Metadata itself does not contact the server, but Poll does.
  5635  // To get the latest metadata, call this method after a successful call to Poll.
  5636  // If the metadata is not available, the returned metadata and error are both nil.
  5637  func (op *ImportFeatureValuesOperation) Metadata() (*aiplatformpb.ImportFeatureValuesOperationMetadata, error) {
  5638  	var meta aiplatformpb.ImportFeatureValuesOperationMetadata
  5639  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5640  		return nil, nil
  5641  	} else if err != nil {
  5642  		return nil, err
  5643  	}
  5644  	return &meta, nil
  5645  }
  5646  
  5647  // Done reports whether the long-running operation has completed.
  5648  func (op *ImportFeatureValuesOperation) Done() bool {
  5649  	return op.lro.Done()
  5650  }
  5651  
  5652  // Name returns the name of the long-running operation.
  5653  // The name is assigned by the server and is unique within the service from which the operation is created.
  5654  func (op *ImportFeatureValuesOperation) Name() string {
  5655  	return op.lro.Name()
  5656  }
  5657  
  5658  // ImportIndexOperation manages a long-running operation from ImportIndex.
  5659  type ImportIndexOperation struct {
  5660  	lro      *longrunning.Operation
  5661  	pollPath string
  5662  }
  5663  
  5664  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5665  //
  5666  // See documentation of Poll for error-handling information.
  5667  func (op *ImportIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  5668  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5669  	var resp aiplatformpb.Index
  5670  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5671  		return nil, err
  5672  	}
  5673  	return &resp, nil
  5674  }
  5675  
  5676  // Poll fetches the latest state of the long-running operation.
  5677  //
  5678  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5679  //
  5680  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5681  // the operation has completed with failure, the error is returned and op.Done will return true.
  5682  // If Poll succeeds and the operation has completed successfully,
  5683  // op.Done will return true, and the response of the operation is returned.
  5684  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5685  func (op *ImportIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  5686  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5687  	var resp aiplatformpb.Index
  5688  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5689  		return nil, err
  5690  	}
  5691  	if !op.Done() {
  5692  		return nil, nil
  5693  	}
  5694  	return &resp, nil
  5695  }
  5696  
  5697  // Metadata returns metadata associated with the long-running operation.
  5698  // Metadata itself does not contact the server, but Poll does.
  5699  // To get the latest metadata, call this method after a successful call to Poll.
  5700  // If the metadata is not available, the returned metadata and error are both nil.
  5701  func (op *ImportIndexOperation) Metadata() (*aiplatformpb.ImportIndexOperationMetadata, error) {
  5702  	var meta aiplatformpb.ImportIndexOperationMetadata
  5703  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5704  		return nil, nil
  5705  	} else if err != nil {
  5706  		return nil, err
  5707  	}
  5708  	return &meta, nil
  5709  }
  5710  
  5711  // Done reports whether the long-running operation has completed.
  5712  func (op *ImportIndexOperation) Done() bool {
  5713  	return op.lro.Done()
  5714  }
  5715  
  5716  // Name returns the name of the long-running operation.
  5717  // The name is assigned by the server and is unique within the service from which the operation is created.
  5718  func (op *ImportIndexOperation) Name() string {
  5719  	return op.lro.Name()
  5720  }
  5721  
  5722  // ImportRagFilesOperation manages a long-running operation from ImportRagFiles.
  5723  type ImportRagFilesOperation struct {
  5724  	lro      *longrunning.Operation
  5725  	pollPath string
  5726  }
  5727  
  5728  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5729  //
  5730  // See documentation of Poll for error-handling information.
  5731  func (op *ImportRagFilesOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportRagFilesResponse, error) {
  5732  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5733  	var resp aiplatformpb.ImportRagFilesResponse
  5734  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5735  		return nil, err
  5736  	}
  5737  	return &resp, nil
  5738  }
  5739  
  5740  // Poll fetches the latest state of the long-running operation.
  5741  //
  5742  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5743  //
  5744  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5745  // the operation has completed with failure, the error is returned and op.Done will return true.
  5746  // If Poll succeeds and the operation has completed successfully,
  5747  // op.Done will return true, and the response of the operation is returned.
  5748  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5749  func (op *ImportRagFilesOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ImportRagFilesResponse, error) {
  5750  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5751  	var resp aiplatformpb.ImportRagFilesResponse
  5752  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5753  		return nil, err
  5754  	}
  5755  	if !op.Done() {
  5756  		return nil, nil
  5757  	}
  5758  	return &resp, nil
  5759  }
  5760  
  5761  // Metadata returns metadata associated with the long-running operation.
  5762  // Metadata itself does not contact the server, but Poll does.
  5763  // To get the latest metadata, call this method after a successful call to Poll.
  5764  // If the metadata is not available, the returned metadata and error are both nil.
  5765  func (op *ImportRagFilesOperation) Metadata() (*aiplatformpb.ImportRagFilesOperationMetadata, error) {
  5766  	var meta aiplatformpb.ImportRagFilesOperationMetadata
  5767  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5768  		return nil, nil
  5769  	} else if err != nil {
  5770  		return nil, err
  5771  	}
  5772  	return &meta, nil
  5773  }
  5774  
  5775  // Done reports whether the long-running operation has completed.
  5776  func (op *ImportRagFilesOperation) Done() bool {
  5777  	return op.lro.Done()
  5778  }
  5779  
  5780  // Name returns the name of the long-running operation.
  5781  // The name is assigned by the server and is unique within the service from which the operation is created.
  5782  func (op *ImportRagFilesOperation) Name() string {
  5783  	return op.lro.Name()
  5784  }
  5785  
  5786  // MutateDeployedIndexOperation manages a long-running operation from MutateDeployedIndex.
  5787  type MutateDeployedIndexOperation struct {
  5788  	lro      *longrunning.Operation
  5789  	pollPath string
  5790  }
  5791  
  5792  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5793  //
  5794  // See documentation of Poll for error-handling information.
  5795  func (op *MutateDeployedIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedIndexResponse, error) {
  5796  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5797  	var resp aiplatformpb.MutateDeployedIndexResponse
  5798  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5799  		return nil, err
  5800  	}
  5801  	return &resp, nil
  5802  }
  5803  
  5804  // Poll fetches the latest state of the long-running operation.
  5805  //
  5806  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5807  //
  5808  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5809  // the operation has completed with failure, the error is returned and op.Done will return true.
  5810  // If Poll succeeds and the operation has completed successfully,
  5811  // op.Done will return true, and the response of the operation is returned.
  5812  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5813  func (op *MutateDeployedIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedIndexResponse, error) {
  5814  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5815  	var resp aiplatformpb.MutateDeployedIndexResponse
  5816  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5817  		return nil, err
  5818  	}
  5819  	if !op.Done() {
  5820  		return nil, nil
  5821  	}
  5822  	return &resp, nil
  5823  }
  5824  
  5825  // Metadata returns metadata associated with the long-running operation.
  5826  // Metadata itself does not contact the server, but Poll does.
  5827  // To get the latest metadata, call this method after a successful call to Poll.
  5828  // If the metadata is not available, the returned metadata and error are both nil.
  5829  func (op *MutateDeployedIndexOperation) Metadata() (*aiplatformpb.MutateDeployedIndexOperationMetadata, error) {
  5830  	var meta aiplatformpb.MutateDeployedIndexOperationMetadata
  5831  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5832  		return nil, nil
  5833  	} else if err != nil {
  5834  		return nil, err
  5835  	}
  5836  	return &meta, nil
  5837  }
  5838  
  5839  // Done reports whether the long-running operation has completed.
  5840  func (op *MutateDeployedIndexOperation) Done() bool {
  5841  	return op.lro.Done()
  5842  }
  5843  
  5844  // Name returns the name of the long-running operation.
  5845  // The name is assigned by the server and is unique within the service from which the operation is created.
  5846  func (op *MutateDeployedIndexOperation) Name() string {
  5847  	return op.lro.Name()
  5848  }
  5849  
  5850  // MutateDeployedModelOperation manages a long-running operation from MutateDeployedModel.
  5851  type MutateDeployedModelOperation struct {
  5852  	lro      *longrunning.Operation
  5853  	pollPath string
  5854  }
  5855  
  5856  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5857  //
  5858  // See documentation of Poll for error-handling information.
  5859  func (op *MutateDeployedModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedModelResponse, error) {
  5860  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5861  	var resp aiplatformpb.MutateDeployedModelResponse
  5862  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5863  		return nil, err
  5864  	}
  5865  	return &resp, nil
  5866  }
  5867  
  5868  // Poll fetches the latest state of the long-running operation.
  5869  //
  5870  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5871  //
  5872  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5873  // the operation has completed with failure, the error is returned and op.Done will return true.
  5874  // If Poll succeeds and the operation has completed successfully,
  5875  // op.Done will return true, and the response of the operation is returned.
  5876  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5877  func (op *MutateDeployedModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.MutateDeployedModelResponse, error) {
  5878  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5879  	var resp aiplatformpb.MutateDeployedModelResponse
  5880  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5881  		return nil, err
  5882  	}
  5883  	if !op.Done() {
  5884  		return nil, nil
  5885  	}
  5886  	return &resp, nil
  5887  }
  5888  
  5889  // Metadata returns metadata associated with the long-running operation.
  5890  // Metadata itself does not contact the server, but Poll does.
  5891  // To get the latest metadata, call this method after a successful call to Poll.
  5892  // If the metadata is not available, the returned metadata and error are both nil.
  5893  func (op *MutateDeployedModelOperation) Metadata() (*aiplatformpb.MutateDeployedModelOperationMetadata, error) {
  5894  	var meta aiplatformpb.MutateDeployedModelOperationMetadata
  5895  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5896  		return nil, nil
  5897  	} else if err != nil {
  5898  		return nil, err
  5899  	}
  5900  	return &meta, nil
  5901  }
  5902  
  5903  // Done reports whether the long-running operation has completed.
  5904  func (op *MutateDeployedModelOperation) Done() bool {
  5905  	return op.lro.Done()
  5906  }
  5907  
  5908  // Name returns the name of the long-running operation.
  5909  // The name is assigned by the server and is unique within the service from which the operation is created.
  5910  func (op *MutateDeployedModelOperation) Name() string {
  5911  	return op.lro.Name()
  5912  }
  5913  
  5914  // PurgeArtifactsOperation manages a long-running operation from PurgeArtifacts.
  5915  type PurgeArtifactsOperation struct {
  5916  	lro      *longrunning.Operation
  5917  	pollPath string
  5918  }
  5919  
  5920  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5921  //
  5922  // See documentation of Poll for error-handling information.
  5923  func (op *PurgeArtifactsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeArtifactsResponse, error) {
  5924  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5925  	var resp aiplatformpb.PurgeArtifactsResponse
  5926  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5927  		return nil, err
  5928  	}
  5929  	return &resp, nil
  5930  }
  5931  
  5932  // Poll fetches the latest state of the long-running operation.
  5933  //
  5934  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5935  //
  5936  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  5937  // the operation has completed with failure, the error is returned and op.Done will return true.
  5938  // If Poll succeeds and the operation has completed successfully,
  5939  // op.Done will return true, and the response of the operation is returned.
  5940  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  5941  func (op *PurgeArtifactsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeArtifactsResponse, error) {
  5942  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5943  	var resp aiplatformpb.PurgeArtifactsResponse
  5944  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  5945  		return nil, err
  5946  	}
  5947  	if !op.Done() {
  5948  		return nil, nil
  5949  	}
  5950  	return &resp, nil
  5951  }
  5952  
  5953  // Metadata returns metadata associated with the long-running operation.
  5954  // Metadata itself does not contact the server, but Poll does.
  5955  // To get the latest metadata, call this method after a successful call to Poll.
  5956  // If the metadata is not available, the returned metadata and error are both nil.
  5957  func (op *PurgeArtifactsOperation) Metadata() (*aiplatformpb.PurgeArtifactsMetadata, error) {
  5958  	var meta aiplatformpb.PurgeArtifactsMetadata
  5959  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  5960  		return nil, nil
  5961  	} else if err != nil {
  5962  		return nil, err
  5963  	}
  5964  	return &meta, nil
  5965  }
  5966  
  5967  // Done reports whether the long-running operation has completed.
  5968  func (op *PurgeArtifactsOperation) Done() bool {
  5969  	return op.lro.Done()
  5970  }
  5971  
  5972  // Name returns the name of the long-running operation.
  5973  // The name is assigned by the server and is unique within the service from which the operation is created.
  5974  func (op *PurgeArtifactsOperation) Name() string {
  5975  	return op.lro.Name()
  5976  }
  5977  
  5978  // PurgeContextsOperation manages a long-running operation from PurgeContexts.
  5979  type PurgeContextsOperation struct {
  5980  	lro      *longrunning.Operation
  5981  	pollPath string
  5982  }
  5983  
  5984  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  5985  //
  5986  // See documentation of Poll for error-handling information.
  5987  func (op *PurgeContextsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeContextsResponse, error) {
  5988  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  5989  	var resp aiplatformpb.PurgeContextsResponse
  5990  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  5991  		return nil, err
  5992  	}
  5993  	return &resp, nil
  5994  }
  5995  
  5996  // Poll fetches the latest state of the long-running operation.
  5997  //
  5998  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  5999  //
  6000  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6001  // the operation has completed with failure, the error is returned and op.Done will return true.
  6002  // If Poll succeeds and the operation has completed successfully,
  6003  // op.Done will return true, and the response of the operation is returned.
  6004  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6005  func (op *PurgeContextsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeContextsResponse, error) {
  6006  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6007  	var resp aiplatformpb.PurgeContextsResponse
  6008  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6009  		return nil, err
  6010  	}
  6011  	if !op.Done() {
  6012  		return nil, nil
  6013  	}
  6014  	return &resp, nil
  6015  }
  6016  
  6017  // Metadata returns metadata associated with the long-running operation.
  6018  // Metadata itself does not contact the server, but Poll does.
  6019  // To get the latest metadata, call this method after a successful call to Poll.
  6020  // If the metadata is not available, the returned metadata and error are both nil.
  6021  func (op *PurgeContextsOperation) Metadata() (*aiplatformpb.PurgeContextsMetadata, error) {
  6022  	var meta aiplatformpb.PurgeContextsMetadata
  6023  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6024  		return nil, nil
  6025  	} else if err != nil {
  6026  		return nil, err
  6027  	}
  6028  	return &meta, nil
  6029  }
  6030  
  6031  // Done reports whether the long-running operation has completed.
  6032  func (op *PurgeContextsOperation) Done() bool {
  6033  	return op.lro.Done()
  6034  }
  6035  
  6036  // Name returns the name of the long-running operation.
  6037  // The name is assigned by the server and is unique within the service from which the operation is created.
  6038  func (op *PurgeContextsOperation) Name() string {
  6039  	return op.lro.Name()
  6040  }
  6041  
  6042  // PurgeExecutionsOperation manages a long-running operation from PurgeExecutions.
  6043  type PurgeExecutionsOperation struct {
  6044  	lro      *longrunning.Operation
  6045  	pollPath string
  6046  }
  6047  
  6048  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6049  //
  6050  // See documentation of Poll for error-handling information.
  6051  func (op *PurgeExecutionsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeExecutionsResponse, error) {
  6052  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6053  	var resp aiplatformpb.PurgeExecutionsResponse
  6054  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6055  		return nil, err
  6056  	}
  6057  	return &resp, nil
  6058  }
  6059  
  6060  // Poll fetches the latest state of the long-running operation.
  6061  //
  6062  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6063  //
  6064  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6065  // the operation has completed with failure, the error is returned and op.Done will return true.
  6066  // If Poll succeeds and the operation has completed successfully,
  6067  // op.Done will return true, and the response of the operation is returned.
  6068  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6069  func (op *PurgeExecutionsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PurgeExecutionsResponse, error) {
  6070  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6071  	var resp aiplatformpb.PurgeExecutionsResponse
  6072  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6073  		return nil, err
  6074  	}
  6075  	if !op.Done() {
  6076  		return nil, nil
  6077  	}
  6078  	return &resp, nil
  6079  }
  6080  
  6081  // Metadata returns metadata associated with the long-running operation.
  6082  // Metadata itself does not contact the server, but Poll does.
  6083  // To get the latest metadata, call this method after a successful call to Poll.
  6084  // If the metadata is not available, the returned metadata and error are both nil.
  6085  func (op *PurgeExecutionsOperation) Metadata() (*aiplatformpb.PurgeExecutionsMetadata, error) {
  6086  	var meta aiplatformpb.PurgeExecutionsMetadata
  6087  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6088  		return nil, nil
  6089  	} else if err != nil {
  6090  		return nil, err
  6091  	}
  6092  	return &meta, nil
  6093  }
  6094  
  6095  // Done reports whether the long-running operation has completed.
  6096  func (op *PurgeExecutionsOperation) Done() bool {
  6097  	return op.lro.Done()
  6098  }
  6099  
  6100  // Name returns the name of the long-running operation.
  6101  // The name is assigned by the server and is unique within the service from which the operation is created.
  6102  func (op *PurgeExecutionsOperation) Name() string {
  6103  	return op.lro.Name()
  6104  }
  6105  
  6106  // RebaseTunedModelOperation manages a long-running operation from RebaseTunedModel.
  6107  type RebaseTunedModelOperation struct {
  6108  	lro      *longrunning.Operation
  6109  	pollPath string
  6110  }
  6111  
  6112  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6113  //
  6114  // See documentation of Poll for error-handling information.
  6115  func (op *RebaseTunedModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.TuningJob, error) {
  6116  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6117  	var resp aiplatformpb.TuningJob
  6118  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6119  		return nil, err
  6120  	}
  6121  	return &resp, nil
  6122  }
  6123  
  6124  // Poll fetches the latest state of the long-running operation.
  6125  //
  6126  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6127  //
  6128  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6129  // the operation has completed with failure, the error is returned and op.Done will return true.
  6130  // If Poll succeeds and the operation has completed successfully,
  6131  // op.Done will return true, and the response of the operation is returned.
  6132  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6133  func (op *RebaseTunedModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.TuningJob, error) {
  6134  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6135  	var resp aiplatformpb.TuningJob
  6136  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6137  		return nil, err
  6138  	}
  6139  	if !op.Done() {
  6140  		return nil, nil
  6141  	}
  6142  	return &resp, nil
  6143  }
  6144  
  6145  // Metadata returns metadata associated with the long-running operation.
  6146  // Metadata itself does not contact the server, but Poll does.
  6147  // To get the latest metadata, call this method after a successful call to Poll.
  6148  // If the metadata is not available, the returned metadata and error are both nil.
  6149  func (op *RebaseTunedModelOperation) Metadata() (*aiplatformpb.RebaseTunedModelOperationMetadata, error) {
  6150  	var meta aiplatformpb.RebaseTunedModelOperationMetadata
  6151  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6152  		return nil, nil
  6153  	} else if err != nil {
  6154  		return nil, err
  6155  	}
  6156  	return &meta, nil
  6157  }
  6158  
  6159  // Done reports whether the long-running operation has completed.
  6160  func (op *RebaseTunedModelOperation) Done() bool {
  6161  	return op.lro.Done()
  6162  }
  6163  
  6164  // Name returns the name of the long-running operation.
  6165  // The name is assigned by the server and is unique within the service from which the operation is created.
  6166  func (op *RebaseTunedModelOperation) Name() string {
  6167  	return op.lro.Name()
  6168  }
  6169  
  6170  // RebootPersistentResourceOperation manages a long-running operation from RebootPersistentResource.
  6171  type RebootPersistentResourceOperation struct {
  6172  	lro      *longrunning.Operation
  6173  	pollPath string
  6174  }
  6175  
  6176  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6177  //
  6178  // See documentation of Poll for error-handling information.
  6179  func (op *RebootPersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  6180  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6181  	var resp aiplatformpb.PersistentResource
  6182  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6183  		return nil, err
  6184  	}
  6185  	return &resp, nil
  6186  }
  6187  
  6188  // Poll fetches the latest state of the long-running operation.
  6189  //
  6190  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6191  //
  6192  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6193  // the operation has completed with failure, the error is returned and op.Done will return true.
  6194  // If Poll succeeds and the operation has completed successfully,
  6195  // op.Done will return true, and the response of the operation is returned.
  6196  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6197  func (op *RebootPersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  6198  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6199  	var resp aiplatformpb.PersistentResource
  6200  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6201  		return nil, err
  6202  	}
  6203  	if !op.Done() {
  6204  		return nil, nil
  6205  	}
  6206  	return &resp, nil
  6207  }
  6208  
  6209  // Metadata returns metadata associated with the long-running operation.
  6210  // Metadata itself does not contact the server, but Poll does.
  6211  // To get the latest metadata, call this method after a successful call to Poll.
  6212  // If the metadata is not available, the returned metadata and error are both nil.
  6213  func (op *RebootPersistentResourceOperation) Metadata() (*aiplatformpb.RebootPersistentResourceOperationMetadata, error) {
  6214  	var meta aiplatformpb.RebootPersistentResourceOperationMetadata
  6215  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6216  		return nil, nil
  6217  	} else if err != nil {
  6218  		return nil, err
  6219  	}
  6220  	return &meta, nil
  6221  }
  6222  
  6223  // Done reports whether the long-running operation has completed.
  6224  func (op *RebootPersistentResourceOperation) Done() bool {
  6225  	return op.lro.Done()
  6226  }
  6227  
  6228  // Name returns the name of the long-running operation.
  6229  // The name is assigned by the server and is unique within the service from which the operation is created.
  6230  func (op *RebootPersistentResourceOperation) Name() string {
  6231  	return op.lro.Name()
  6232  }
  6233  
  6234  // RestoreDatasetVersionOperation manages a long-running operation from RestoreDatasetVersion.
  6235  type RestoreDatasetVersionOperation struct {
  6236  	lro      *longrunning.Operation
  6237  	pollPath string
  6238  }
  6239  
  6240  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6241  //
  6242  // See documentation of Poll for error-handling information.
  6243  func (op *RestoreDatasetVersionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
  6244  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6245  	var resp aiplatformpb.DatasetVersion
  6246  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6247  		return nil, err
  6248  	}
  6249  	return &resp, nil
  6250  }
  6251  
  6252  // Poll fetches the latest state of the long-running operation.
  6253  //
  6254  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6255  //
  6256  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6257  // the operation has completed with failure, the error is returned and op.Done will return true.
  6258  // If Poll succeeds and the operation has completed successfully,
  6259  // op.Done will return true, and the response of the operation is returned.
  6260  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6261  func (op *RestoreDatasetVersionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DatasetVersion, error) {
  6262  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6263  	var resp aiplatformpb.DatasetVersion
  6264  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6265  		return nil, err
  6266  	}
  6267  	if !op.Done() {
  6268  		return nil, nil
  6269  	}
  6270  	return &resp, nil
  6271  }
  6272  
  6273  // Metadata returns metadata associated with the long-running operation.
  6274  // Metadata itself does not contact the server, but Poll does.
  6275  // To get the latest metadata, call this method after a successful call to Poll.
  6276  // If the metadata is not available, the returned metadata and error are both nil.
  6277  func (op *RestoreDatasetVersionOperation) Metadata() (*aiplatformpb.RestoreDatasetVersionOperationMetadata, error) {
  6278  	var meta aiplatformpb.RestoreDatasetVersionOperationMetadata
  6279  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6280  		return nil, nil
  6281  	} else if err != nil {
  6282  		return nil, err
  6283  	}
  6284  	return &meta, nil
  6285  }
  6286  
  6287  // Done reports whether the long-running operation has completed.
  6288  func (op *RestoreDatasetVersionOperation) Done() bool {
  6289  	return op.lro.Done()
  6290  }
  6291  
  6292  // Name returns the name of the long-running operation.
  6293  // The name is assigned by the server and is unique within the service from which the operation is created.
  6294  func (op *RestoreDatasetVersionOperation) Name() string {
  6295  	return op.lro.Name()
  6296  }
  6297  
  6298  // SetPublisherModelConfigOperation manages a long-running operation from SetPublisherModelConfig.
  6299  type SetPublisherModelConfigOperation struct {
  6300  	lro      *longrunning.Operation
  6301  	pollPath string
  6302  }
  6303  
  6304  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6305  //
  6306  // See documentation of Poll for error-handling information.
  6307  func (op *SetPublisherModelConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PublisherModelConfig, error) {
  6308  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6309  	var resp aiplatformpb.PublisherModelConfig
  6310  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6311  		return nil, err
  6312  	}
  6313  	return &resp, nil
  6314  }
  6315  
  6316  // Poll fetches the latest state of the long-running operation.
  6317  //
  6318  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6319  //
  6320  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6321  // the operation has completed with failure, the error is returned and op.Done will return true.
  6322  // If Poll succeeds and the operation has completed successfully,
  6323  // op.Done will return true, and the response of the operation is returned.
  6324  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6325  func (op *SetPublisherModelConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PublisherModelConfig, error) {
  6326  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6327  	var resp aiplatformpb.PublisherModelConfig
  6328  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6329  		return nil, err
  6330  	}
  6331  	if !op.Done() {
  6332  		return nil, nil
  6333  	}
  6334  	return &resp, nil
  6335  }
  6336  
  6337  // Metadata returns metadata associated with the long-running operation.
  6338  // Metadata itself does not contact the server, but Poll does.
  6339  // To get the latest metadata, call this method after a successful call to Poll.
  6340  // If the metadata is not available, the returned metadata and error are both nil.
  6341  func (op *SetPublisherModelConfigOperation) Metadata() (*aiplatformpb.SetPublisherModelConfigOperationMetadata, error) {
  6342  	var meta aiplatformpb.SetPublisherModelConfigOperationMetadata
  6343  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6344  		return nil, nil
  6345  	} else if err != nil {
  6346  		return nil, err
  6347  	}
  6348  	return &meta, nil
  6349  }
  6350  
  6351  // Done reports whether the long-running operation has completed.
  6352  func (op *SetPublisherModelConfigOperation) Done() bool {
  6353  	return op.lro.Done()
  6354  }
  6355  
  6356  // Name returns the name of the long-running operation.
  6357  // The name is assigned by the server and is unique within the service from which the operation is created.
  6358  func (op *SetPublisherModelConfigOperation) Name() string {
  6359  	return op.lro.Name()
  6360  }
  6361  
  6362  // StartNotebookRuntimeOperation manages a long-running operation from StartNotebookRuntime.
  6363  type StartNotebookRuntimeOperation struct {
  6364  	lro      *longrunning.Operation
  6365  	pollPath string
  6366  }
  6367  
  6368  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6369  //
  6370  // See documentation of Poll for error-handling information.
  6371  func (op *StartNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StartNotebookRuntimeResponse, error) {
  6372  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6373  	var resp aiplatformpb.StartNotebookRuntimeResponse
  6374  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6375  		return nil, err
  6376  	}
  6377  	return &resp, nil
  6378  }
  6379  
  6380  // Poll fetches the latest state of the long-running operation.
  6381  //
  6382  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6383  //
  6384  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6385  // the operation has completed with failure, the error is returned and op.Done will return true.
  6386  // If Poll succeeds and the operation has completed successfully,
  6387  // op.Done will return true, and the response of the operation is returned.
  6388  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6389  func (op *StartNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StartNotebookRuntimeResponse, error) {
  6390  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6391  	var resp aiplatformpb.StartNotebookRuntimeResponse
  6392  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6393  		return nil, err
  6394  	}
  6395  	if !op.Done() {
  6396  		return nil, nil
  6397  	}
  6398  	return &resp, nil
  6399  }
  6400  
  6401  // Metadata returns metadata associated with the long-running operation.
  6402  // Metadata itself does not contact the server, but Poll does.
  6403  // To get the latest metadata, call this method after a successful call to Poll.
  6404  // If the metadata is not available, the returned metadata and error are both nil.
  6405  func (op *StartNotebookRuntimeOperation) Metadata() (*aiplatformpb.StartNotebookRuntimeOperationMetadata, error) {
  6406  	var meta aiplatformpb.StartNotebookRuntimeOperationMetadata
  6407  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6408  		return nil, nil
  6409  	} else if err != nil {
  6410  		return nil, err
  6411  	}
  6412  	return &meta, nil
  6413  }
  6414  
  6415  // Done reports whether the long-running operation has completed.
  6416  func (op *StartNotebookRuntimeOperation) Done() bool {
  6417  	return op.lro.Done()
  6418  }
  6419  
  6420  // Name returns the name of the long-running operation.
  6421  // The name is assigned by the server and is unique within the service from which the operation is created.
  6422  func (op *StartNotebookRuntimeOperation) Name() string {
  6423  	return op.lro.Name()
  6424  }
  6425  
  6426  // StopNotebookRuntimeOperation manages a long-running operation from StopNotebookRuntime.
  6427  type StopNotebookRuntimeOperation struct {
  6428  	lro      *longrunning.Operation
  6429  	pollPath string
  6430  }
  6431  
  6432  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6433  //
  6434  // See documentation of Poll for error-handling information.
  6435  func (op *StopNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StopNotebookRuntimeResponse, error) {
  6436  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6437  	var resp aiplatformpb.StopNotebookRuntimeResponse
  6438  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6439  		return nil, err
  6440  	}
  6441  	return &resp, nil
  6442  }
  6443  
  6444  // Poll fetches the latest state of the long-running operation.
  6445  //
  6446  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6447  //
  6448  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6449  // the operation has completed with failure, the error is returned and op.Done will return true.
  6450  // If Poll succeeds and the operation has completed successfully,
  6451  // op.Done will return true, and the response of the operation is returned.
  6452  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6453  func (op *StopNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.StopNotebookRuntimeResponse, error) {
  6454  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6455  	var resp aiplatformpb.StopNotebookRuntimeResponse
  6456  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6457  		return nil, err
  6458  	}
  6459  	if !op.Done() {
  6460  		return nil, nil
  6461  	}
  6462  	return &resp, nil
  6463  }
  6464  
  6465  // Metadata returns metadata associated with the long-running operation.
  6466  // Metadata itself does not contact the server, but Poll does.
  6467  // To get the latest metadata, call this method after a successful call to Poll.
  6468  // If the metadata is not available, the returned metadata and error are both nil.
  6469  func (op *StopNotebookRuntimeOperation) Metadata() (*aiplatformpb.StopNotebookRuntimeOperationMetadata, error) {
  6470  	var meta aiplatformpb.StopNotebookRuntimeOperationMetadata
  6471  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6472  		return nil, nil
  6473  	} else if err != nil {
  6474  		return nil, err
  6475  	}
  6476  	return &meta, nil
  6477  }
  6478  
  6479  // Done reports whether the long-running operation has completed.
  6480  func (op *StopNotebookRuntimeOperation) Done() bool {
  6481  	return op.lro.Done()
  6482  }
  6483  
  6484  // Name returns the name of the long-running operation.
  6485  // The name is assigned by the server and is unique within the service from which the operation is created.
  6486  func (op *StopNotebookRuntimeOperation) Name() string {
  6487  	return op.lro.Name()
  6488  }
  6489  
  6490  // SuggestTrialsOperation manages a long-running operation from SuggestTrials.
  6491  type SuggestTrialsOperation struct {
  6492  	lro      *longrunning.Operation
  6493  	pollPath string
  6494  }
  6495  
  6496  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6497  //
  6498  // See documentation of Poll for error-handling information.
  6499  func (op *SuggestTrialsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SuggestTrialsResponse, error) {
  6500  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6501  	var resp aiplatformpb.SuggestTrialsResponse
  6502  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6503  		return nil, err
  6504  	}
  6505  	return &resp, nil
  6506  }
  6507  
  6508  // Poll fetches the latest state of the long-running operation.
  6509  //
  6510  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6511  //
  6512  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6513  // the operation has completed with failure, the error is returned and op.Done will return true.
  6514  // If Poll succeeds and the operation has completed successfully,
  6515  // op.Done will return true, and the response of the operation is returned.
  6516  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6517  func (op *SuggestTrialsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SuggestTrialsResponse, error) {
  6518  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6519  	var resp aiplatformpb.SuggestTrialsResponse
  6520  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6521  		return nil, err
  6522  	}
  6523  	if !op.Done() {
  6524  		return nil, nil
  6525  	}
  6526  	return &resp, nil
  6527  }
  6528  
  6529  // Metadata returns metadata associated with the long-running operation.
  6530  // Metadata itself does not contact the server, but Poll does.
  6531  // To get the latest metadata, call this method after a successful call to Poll.
  6532  // If the metadata is not available, the returned metadata and error are both nil.
  6533  func (op *SuggestTrialsOperation) Metadata() (*aiplatformpb.SuggestTrialsMetadata, error) {
  6534  	var meta aiplatformpb.SuggestTrialsMetadata
  6535  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6536  		return nil, nil
  6537  	} else if err != nil {
  6538  		return nil, err
  6539  	}
  6540  	return &meta, nil
  6541  }
  6542  
  6543  // Done reports whether the long-running operation has completed.
  6544  func (op *SuggestTrialsOperation) Done() bool {
  6545  	return op.lro.Done()
  6546  }
  6547  
  6548  // Name returns the name of the long-running operation.
  6549  // The name is assigned by the server and is unique within the service from which the operation is created.
  6550  func (op *SuggestTrialsOperation) Name() string {
  6551  	return op.lro.Name()
  6552  }
  6553  
  6554  // UndeployIndexOperation manages a long-running operation from UndeployIndex.
  6555  type UndeployIndexOperation struct {
  6556  	lro      *longrunning.Operation
  6557  	pollPath string
  6558  }
  6559  
  6560  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6561  //
  6562  // See documentation of Poll for error-handling information.
  6563  func (op *UndeployIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployIndexResponse, error) {
  6564  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6565  	var resp aiplatformpb.UndeployIndexResponse
  6566  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6567  		return nil, err
  6568  	}
  6569  	return &resp, nil
  6570  }
  6571  
  6572  // Poll fetches the latest state of the long-running operation.
  6573  //
  6574  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6575  //
  6576  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6577  // the operation has completed with failure, the error is returned and op.Done will return true.
  6578  // If Poll succeeds and the operation has completed successfully,
  6579  // op.Done will return true, and the response of the operation is returned.
  6580  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6581  func (op *UndeployIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployIndexResponse, error) {
  6582  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6583  	var resp aiplatformpb.UndeployIndexResponse
  6584  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6585  		return nil, err
  6586  	}
  6587  	if !op.Done() {
  6588  		return nil, nil
  6589  	}
  6590  	return &resp, nil
  6591  }
  6592  
  6593  // Metadata returns metadata associated with the long-running operation.
  6594  // Metadata itself does not contact the server, but Poll does.
  6595  // To get the latest metadata, call this method after a successful call to Poll.
  6596  // If the metadata is not available, the returned metadata and error are both nil.
  6597  func (op *UndeployIndexOperation) Metadata() (*aiplatformpb.UndeployIndexOperationMetadata, error) {
  6598  	var meta aiplatformpb.UndeployIndexOperationMetadata
  6599  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6600  		return nil, nil
  6601  	} else if err != nil {
  6602  		return nil, err
  6603  	}
  6604  	return &meta, nil
  6605  }
  6606  
  6607  // Done reports whether the long-running operation has completed.
  6608  func (op *UndeployIndexOperation) Done() bool {
  6609  	return op.lro.Done()
  6610  }
  6611  
  6612  // Name returns the name of the long-running operation.
  6613  // The name is assigned by the server and is unique within the service from which the operation is created.
  6614  func (op *UndeployIndexOperation) Name() string {
  6615  	return op.lro.Name()
  6616  }
  6617  
  6618  // UndeployModelOperation manages a long-running operation from UndeployModel.
  6619  type UndeployModelOperation struct {
  6620  	lro      *longrunning.Operation
  6621  	pollPath string
  6622  }
  6623  
  6624  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6625  //
  6626  // See documentation of Poll for error-handling information.
  6627  func (op *UndeployModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployModelResponse, error) {
  6628  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6629  	var resp aiplatformpb.UndeployModelResponse
  6630  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6631  		return nil, err
  6632  	}
  6633  	return &resp, nil
  6634  }
  6635  
  6636  // Poll fetches the latest state of the long-running operation.
  6637  //
  6638  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6639  //
  6640  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6641  // the operation has completed with failure, the error is returned and op.Done will return true.
  6642  // If Poll succeeds and the operation has completed successfully,
  6643  // op.Done will return true, and the response of the operation is returned.
  6644  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6645  func (op *UndeployModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UndeployModelResponse, error) {
  6646  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6647  	var resp aiplatformpb.UndeployModelResponse
  6648  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6649  		return nil, err
  6650  	}
  6651  	if !op.Done() {
  6652  		return nil, nil
  6653  	}
  6654  	return &resp, nil
  6655  }
  6656  
  6657  // Metadata returns metadata associated with the long-running operation.
  6658  // Metadata itself does not contact the server, but Poll does.
  6659  // To get the latest metadata, call this method after a successful call to Poll.
  6660  // If the metadata is not available, the returned metadata and error are both nil.
  6661  func (op *UndeployModelOperation) Metadata() (*aiplatformpb.UndeployModelOperationMetadata, error) {
  6662  	var meta aiplatformpb.UndeployModelOperationMetadata
  6663  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6664  		return nil, nil
  6665  	} else if err != nil {
  6666  		return nil, err
  6667  	}
  6668  	return &meta, nil
  6669  }
  6670  
  6671  // Done reports whether the long-running operation has completed.
  6672  func (op *UndeployModelOperation) Done() bool {
  6673  	return op.lro.Done()
  6674  }
  6675  
  6676  // Name returns the name of the long-running operation.
  6677  // The name is assigned by the server and is unique within the service from which the operation is created.
  6678  func (op *UndeployModelOperation) Name() string {
  6679  	return op.lro.Name()
  6680  }
  6681  
  6682  // UpdateDeploymentResourcePoolOperation manages a long-running operation from UpdateDeploymentResourcePool.
  6683  type UpdateDeploymentResourcePoolOperation struct {
  6684  	lro      *longrunning.Operation
  6685  	pollPath string
  6686  }
  6687  
  6688  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6689  //
  6690  // See documentation of Poll for error-handling information.
  6691  func (op *UpdateDeploymentResourcePoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
  6692  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6693  	var resp aiplatformpb.DeploymentResourcePool
  6694  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6695  		return nil, err
  6696  	}
  6697  	return &resp, nil
  6698  }
  6699  
  6700  // Poll fetches the latest state of the long-running operation.
  6701  //
  6702  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6703  //
  6704  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6705  // the operation has completed with failure, the error is returned and op.Done will return true.
  6706  // If Poll succeeds and the operation has completed successfully,
  6707  // op.Done will return true, and the response of the operation is returned.
  6708  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6709  func (op *UpdateDeploymentResourcePoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.DeploymentResourcePool, error) {
  6710  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6711  	var resp aiplatformpb.DeploymentResourcePool
  6712  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6713  		return nil, err
  6714  	}
  6715  	if !op.Done() {
  6716  		return nil, nil
  6717  	}
  6718  	return &resp, nil
  6719  }
  6720  
  6721  // Metadata returns metadata associated with the long-running operation.
  6722  // Metadata itself does not contact the server, but Poll does.
  6723  // To get the latest metadata, call this method after a successful call to Poll.
  6724  // If the metadata is not available, the returned metadata and error are both nil.
  6725  func (op *UpdateDeploymentResourcePoolOperation) Metadata() (*aiplatformpb.UpdateDeploymentResourcePoolOperationMetadata, error) {
  6726  	var meta aiplatformpb.UpdateDeploymentResourcePoolOperationMetadata
  6727  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6728  		return nil, nil
  6729  	} else if err != nil {
  6730  		return nil, err
  6731  	}
  6732  	return &meta, nil
  6733  }
  6734  
  6735  // Done reports whether the long-running operation has completed.
  6736  func (op *UpdateDeploymentResourcePoolOperation) Done() bool {
  6737  	return op.lro.Done()
  6738  }
  6739  
  6740  // Name returns the name of the long-running operation.
  6741  // The name is assigned by the server and is unique within the service from which the operation is created.
  6742  func (op *UpdateDeploymentResourcePoolOperation) Name() string {
  6743  	return op.lro.Name()
  6744  }
  6745  
  6746  // UpdateEndpointLongRunningOperation manages a long-running operation from UpdateEndpointLongRunning.
  6747  type UpdateEndpointLongRunningOperation struct {
  6748  	lro      *longrunning.Operation
  6749  	pollPath string
  6750  }
  6751  
  6752  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6753  //
  6754  // See documentation of Poll for error-handling information.
  6755  func (op *UpdateEndpointLongRunningOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
  6756  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6757  	var resp aiplatformpb.Endpoint
  6758  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6759  		return nil, err
  6760  	}
  6761  	return &resp, nil
  6762  }
  6763  
  6764  // Poll fetches the latest state of the long-running operation.
  6765  //
  6766  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6767  //
  6768  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6769  // the operation has completed with failure, the error is returned and op.Done will return true.
  6770  // If Poll succeeds and the operation has completed successfully,
  6771  // op.Done will return true, and the response of the operation is returned.
  6772  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6773  func (op *UpdateEndpointLongRunningOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Endpoint, error) {
  6774  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6775  	var resp aiplatformpb.Endpoint
  6776  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6777  		return nil, err
  6778  	}
  6779  	if !op.Done() {
  6780  		return nil, nil
  6781  	}
  6782  	return &resp, nil
  6783  }
  6784  
  6785  // Metadata returns metadata associated with the long-running operation.
  6786  // Metadata itself does not contact the server, but Poll does.
  6787  // To get the latest metadata, call this method after a successful call to Poll.
  6788  // If the metadata is not available, the returned metadata and error are both nil.
  6789  func (op *UpdateEndpointLongRunningOperation) Metadata() (*aiplatformpb.UpdateEndpointOperationMetadata, error) {
  6790  	var meta aiplatformpb.UpdateEndpointOperationMetadata
  6791  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6792  		return nil, nil
  6793  	} else if err != nil {
  6794  		return nil, err
  6795  	}
  6796  	return &meta, nil
  6797  }
  6798  
  6799  // Done reports whether the long-running operation has completed.
  6800  func (op *UpdateEndpointLongRunningOperation) Done() bool {
  6801  	return op.lro.Done()
  6802  }
  6803  
  6804  // Name returns the name of the long-running operation.
  6805  // The name is assigned by the server and is unique within the service from which the operation is created.
  6806  func (op *UpdateEndpointLongRunningOperation) Name() string {
  6807  	return op.lro.Name()
  6808  }
  6809  
  6810  // UpdateExampleStoreOperation manages a long-running operation from UpdateExampleStore.
  6811  type UpdateExampleStoreOperation struct {
  6812  	lro      *longrunning.Operation
  6813  	pollPath string
  6814  }
  6815  
  6816  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6817  //
  6818  // See documentation of Poll for error-handling information.
  6819  func (op *UpdateExampleStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExampleStore, error) {
  6820  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6821  	var resp aiplatformpb.ExampleStore
  6822  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6823  		return nil, err
  6824  	}
  6825  	return &resp, nil
  6826  }
  6827  
  6828  // Poll fetches the latest state of the long-running operation.
  6829  //
  6830  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6831  //
  6832  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6833  // the operation has completed with failure, the error is returned and op.Done will return true.
  6834  // If Poll succeeds and the operation has completed successfully,
  6835  // op.Done will return true, and the response of the operation is returned.
  6836  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6837  func (op *UpdateExampleStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ExampleStore, error) {
  6838  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6839  	var resp aiplatformpb.ExampleStore
  6840  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6841  		return nil, err
  6842  	}
  6843  	if !op.Done() {
  6844  		return nil, nil
  6845  	}
  6846  	return &resp, nil
  6847  }
  6848  
  6849  // Metadata returns metadata associated with the long-running operation.
  6850  // Metadata itself does not contact the server, but Poll does.
  6851  // To get the latest metadata, call this method after a successful call to Poll.
  6852  // If the metadata is not available, the returned metadata and error are both nil.
  6853  func (op *UpdateExampleStoreOperation) Metadata() (*aiplatformpb.UpdateExampleStoreOperationMetadata, error) {
  6854  	var meta aiplatformpb.UpdateExampleStoreOperationMetadata
  6855  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6856  		return nil, nil
  6857  	} else if err != nil {
  6858  		return nil, err
  6859  	}
  6860  	return &meta, nil
  6861  }
  6862  
  6863  // Done reports whether the long-running operation has completed.
  6864  func (op *UpdateExampleStoreOperation) Done() bool {
  6865  	return op.lro.Done()
  6866  }
  6867  
  6868  // Name returns the name of the long-running operation.
  6869  // The name is assigned by the server and is unique within the service from which the operation is created.
  6870  func (op *UpdateExampleStoreOperation) Name() string {
  6871  	return op.lro.Name()
  6872  }
  6873  
  6874  // UpdateExplanationDatasetOperation manages a long-running operation from UpdateExplanationDataset.
  6875  type UpdateExplanationDatasetOperation struct {
  6876  	lro      *longrunning.Operation
  6877  	pollPath string
  6878  }
  6879  
  6880  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6881  //
  6882  // See documentation of Poll for error-handling information.
  6883  func (op *UpdateExplanationDatasetOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpdateExplanationDatasetResponse, error) {
  6884  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6885  	var resp aiplatformpb.UpdateExplanationDatasetResponse
  6886  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6887  		return nil, err
  6888  	}
  6889  	return &resp, nil
  6890  }
  6891  
  6892  // Poll fetches the latest state of the long-running operation.
  6893  //
  6894  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6895  //
  6896  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6897  // the operation has completed with failure, the error is returned and op.Done will return true.
  6898  // If Poll succeeds and the operation has completed successfully,
  6899  // op.Done will return true, and the response of the operation is returned.
  6900  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6901  func (op *UpdateExplanationDatasetOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpdateExplanationDatasetResponse, error) {
  6902  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6903  	var resp aiplatformpb.UpdateExplanationDatasetResponse
  6904  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6905  		return nil, err
  6906  	}
  6907  	if !op.Done() {
  6908  		return nil, nil
  6909  	}
  6910  	return &resp, nil
  6911  }
  6912  
  6913  // Metadata returns metadata associated with the long-running operation.
  6914  // Metadata itself does not contact the server, but Poll does.
  6915  // To get the latest metadata, call this method after a successful call to Poll.
  6916  // If the metadata is not available, the returned metadata and error are both nil.
  6917  func (op *UpdateExplanationDatasetOperation) Metadata() (*aiplatformpb.UpdateExplanationDatasetOperationMetadata, error) {
  6918  	var meta aiplatformpb.UpdateExplanationDatasetOperationMetadata
  6919  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6920  		return nil, nil
  6921  	} else if err != nil {
  6922  		return nil, err
  6923  	}
  6924  	return &meta, nil
  6925  }
  6926  
  6927  // Done reports whether the long-running operation has completed.
  6928  func (op *UpdateExplanationDatasetOperation) Done() bool {
  6929  	return op.lro.Done()
  6930  }
  6931  
  6932  // Name returns the name of the long-running operation.
  6933  // The name is assigned by the server and is unique within the service from which the operation is created.
  6934  func (op *UpdateExplanationDatasetOperation) Name() string {
  6935  	return op.lro.Name()
  6936  }
  6937  
  6938  // UpdateFeatureGroupOperation manages a long-running operation from UpdateFeatureGroup.
  6939  type UpdateFeatureGroupOperation struct {
  6940  	lro      *longrunning.Operation
  6941  	pollPath string
  6942  }
  6943  
  6944  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  6945  //
  6946  // See documentation of Poll for error-handling information.
  6947  func (op *UpdateFeatureGroupOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  6948  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6949  	var resp aiplatformpb.FeatureGroup
  6950  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  6951  		return nil, err
  6952  	}
  6953  	return &resp, nil
  6954  }
  6955  
  6956  // Poll fetches the latest state of the long-running operation.
  6957  //
  6958  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  6959  //
  6960  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  6961  // the operation has completed with failure, the error is returned and op.Done will return true.
  6962  // If Poll succeeds and the operation has completed successfully,
  6963  // op.Done will return true, and the response of the operation is returned.
  6964  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  6965  func (op *UpdateFeatureGroupOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureGroup, error) {
  6966  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  6967  	var resp aiplatformpb.FeatureGroup
  6968  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  6969  		return nil, err
  6970  	}
  6971  	if !op.Done() {
  6972  		return nil, nil
  6973  	}
  6974  	return &resp, nil
  6975  }
  6976  
  6977  // Metadata returns metadata associated with the long-running operation.
  6978  // Metadata itself does not contact the server, but Poll does.
  6979  // To get the latest metadata, call this method after a successful call to Poll.
  6980  // If the metadata is not available, the returned metadata and error are both nil.
  6981  func (op *UpdateFeatureGroupOperation) Metadata() (*aiplatformpb.UpdateFeatureGroupOperationMetadata, error) {
  6982  	var meta aiplatformpb.UpdateFeatureGroupOperationMetadata
  6983  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  6984  		return nil, nil
  6985  	} else if err != nil {
  6986  		return nil, err
  6987  	}
  6988  	return &meta, nil
  6989  }
  6990  
  6991  // Done reports whether the long-running operation has completed.
  6992  func (op *UpdateFeatureGroupOperation) Done() bool {
  6993  	return op.lro.Done()
  6994  }
  6995  
  6996  // Name returns the name of the long-running operation.
  6997  // The name is assigned by the server and is unique within the service from which the operation is created.
  6998  func (op *UpdateFeatureGroupOperation) Name() string {
  6999  	return op.lro.Name()
  7000  }
  7001  
  7002  // UpdateFeatureMonitorOperation manages a long-running operation from UpdateFeatureMonitor.
  7003  type UpdateFeatureMonitorOperation struct {
  7004  	lro      *longrunning.Operation
  7005  	pollPath string
  7006  }
  7007  
  7008  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7009  //
  7010  // See documentation of Poll for error-handling information.
  7011  func (op *UpdateFeatureMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureMonitor, error) {
  7012  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7013  	var resp aiplatformpb.FeatureMonitor
  7014  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7015  		return nil, err
  7016  	}
  7017  	return &resp, nil
  7018  }
  7019  
  7020  // Poll fetches the latest state of the long-running operation.
  7021  //
  7022  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7023  //
  7024  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7025  // the operation has completed with failure, the error is returned and op.Done will return true.
  7026  // If Poll succeeds and the operation has completed successfully,
  7027  // op.Done will return true, and the response of the operation is returned.
  7028  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7029  func (op *UpdateFeatureMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureMonitor, error) {
  7030  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7031  	var resp aiplatformpb.FeatureMonitor
  7032  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7033  		return nil, err
  7034  	}
  7035  	if !op.Done() {
  7036  		return nil, nil
  7037  	}
  7038  	return &resp, nil
  7039  }
  7040  
  7041  // Metadata returns metadata associated with the long-running operation.
  7042  // Metadata itself does not contact the server, but Poll does.
  7043  // To get the latest metadata, call this method after a successful call to Poll.
  7044  // If the metadata is not available, the returned metadata and error are both nil.
  7045  func (op *UpdateFeatureMonitorOperation) Metadata() (*aiplatformpb.UpdateFeatureMonitorOperationMetadata, error) {
  7046  	var meta aiplatformpb.UpdateFeatureMonitorOperationMetadata
  7047  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7048  		return nil, nil
  7049  	} else if err != nil {
  7050  		return nil, err
  7051  	}
  7052  	return &meta, nil
  7053  }
  7054  
  7055  // Done reports whether the long-running operation has completed.
  7056  func (op *UpdateFeatureMonitorOperation) Done() bool {
  7057  	return op.lro.Done()
  7058  }
  7059  
  7060  // Name returns the name of the long-running operation.
  7061  // The name is assigned by the server and is unique within the service from which the operation is created.
  7062  func (op *UpdateFeatureMonitorOperation) Name() string {
  7063  	return op.lro.Name()
  7064  }
  7065  
  7066  // UpdateFeatureOnlineStoreOperation manages a long-running operation from UpdateFeatureOnlineStore.
  7067  type UpdateFeatureOnlineStoreOperation struct {
  7068  	lro      *longrunning.Operation
  7069  	pollPath string
  7070  }
  7071  
  7072  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7073  //
  7074  // See documentation of Poll for error-handling information.
  7075  func (op *UpdateFeatureOnlineStoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  7076  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7077  	var resp aiplatformpb.FeatureOnlineStore
  7078  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7079  		return nil, err
  7080  	}
  7081  	return &resp, nil
  7082  }
  7083  
  7084  // Poll fetches the latest state of the long-running operation.
  7085  //
  7086  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7087  //
  7088  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7089  // the operation has completed with failure, the error is returned and op.Done will return true.
  7090  // If Poll succeeds and the operation has completed successfully,
  7091  // op.Done will return true, and the response of the operation is returned.
  7092  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7093  func (op *UpdateFeatureOnlineStoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureOnlineStore, error) {
  7094  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7095  	var resp aiplatformpb.FeatureOnlineStore
  7096  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7097  		return nil, err
  7098  	}
  7099  	if !op.Done() {
  7100  		return nil, nil
  7101  	}
  7102  	return &resp, nil
  7103  }
  7104  
  7105  // Metadata returns metadata associated with the long-running operation.
  7106  // Metadata itself does not contact the server, but Poll does.
  7107  // To get the latest metadata, call this method after a successful call to Poll.
  7108  // If the metadata is not available, the returned metadata and error are both nil.
  7109  func (op *UpdateFeatureOnlineStoreOperation) Metadata() (*aiplatformpb.UpdateFeatureOnlineStoreOperationMetadata, error) {
  7110  	var meta aiplatformpb.UpdateFeatureOnlineStoreOperationMetadata
  7111  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7112  		return nil, nil
  7113  	} else if err != nil {
  7114  		return nil, err
  7115  	}
  7116  	return &meta, nil
  7117  }
  7118  
  7119  // Done reports whether the long-running operation has completed.
  7120  func (op *UpdateFeatureOnlineStoreOperation) Done() bool {
  7121  	return op.lro.Done()
  7122  }
  7123  
  7124  // Name returns the name of the long-running operation.
  7125  // The name is assigned by the server and is unique within the service from which the operation is created.
  7126  func (op *UpdateFeatureOnlineStoreOperation) Name() string {
  7127  	return op.lro.Name()
  7128  }
  7129  
  7130  // UpdateFeatureOperation manages a long-running operation from UpdateFeature.
  7131  type UpdateFeatureOperation struct {
  7132  	lro      *longrunning.Operation
  7133  	pollPath string
  7134  }
  7135  
  7136  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7137  //
  7138  // See documentation of Poll for error-handling information.
  7139  func (op *UpdateFeatureOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  7140  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7141  	var resp aiplatformpb.Feature
  7142  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7143  		return nil, err
  7144  	}
  7145  	return &resp, nil
  7146  }
  7147  
  7148  // Poll fetches the latest state of the long-running operation.
  7149  //
  7150  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7151  //
  7152  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7153  // the operation has completed with failure, the error is returned and op.Done will return true.
  7154  // If Poll succeeds and the operation has completed successfully,
  7155  // op.Done will return true, and the response of the operation is returned.
  7156  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7157  func (op *UpdateFeatureOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Feature, error) {
  7158  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7159  	var resp aiplatformpb.Feature
  7160  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7161  		return nil, err
  7162  	}
  7163  	if !op.Done() {
  7164  		return nil, nil
  7165  	}
  7166  	return &resp, nil
  7167  }
  7168  
  7169  // Metadata returns metadata associated with the long-running operation.
  7170  // Metadata itself does not contact the server, but Poll does.
  7171  // To get the latest metadata, call this method after a successful call to Poll.
  7172  // If the metadata is not available, the returned metadata and error are both nil.
  7173  func (op *UpdateFeatureOperation) Metadata() (*aiplatformpb.UpdateFeatureOperationMetadata, error) {
  7174  	var meta aiplatformpb.UpdateFeatureOperationMetadata
  7175  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7176  		return nil, nil
  7177  	} else if err != nil {
  7178  		return nil, err
  7179  	}
  7180  	return &meta, nil
  7181  }
  7182  
  7183  // Done reports whether the long-running operation has completed.
  7184  func (op *UpdateFeatureOperation) Done() bool {
  7185  	return op.lro.Done()
  7186  }
  7187  
  7188  // Name returns the name of the long-running operation.
  7189  // The name is assigned by the server and is unique within the service from which the operation is created.
  7190  func (op *UpdateFeatureOperation) Name() string {
  7191  	return op.lro.Name()
  7192  }
  7193  
  7194  // UpdateFeatureViewOperation manages a long-running operation from UpdateFeatureView.
  7195  type UpdateFeatureViewOperation struct {
  7196  	lro      *longrunning.Operation
  7197  	pollPath string
  7198  }
  7199  
  7200  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7201  //
  7202  // See documentation of Poll for error-handling information.
  7203  func (op *UpdateFeatureViewOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  7204  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7205  	var resp aiplatformpb.FeatureView
  7206  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7207  		return nil, err
  7208  	}
  7209  	return &resp, nil
  7210  }
  7211  
  7212  // Poll fetches the latest state of the long-running operation.
  7213  //
  7214  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7215  //
  7216  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7217  // the operation has completed with failure, the error is returned and op.Done will return true.
  7218  // If Poll succeeds and the operation has completed successfully,
  7219  // op.Done will return true, and the response of the operation is returned.
  7220  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7221  func (op *UpdateFeatureViewOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.FeatureView, error) {
  7222  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7223  	var resp aiplatformpb.FeatureView
  7224  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7225  		return nil, err
  7226  	}
  7227  	if !op.Done() {
  7228  		return nil, nil
  7229  	}
  7230  	return &resp, nil
  7231  }
  7232  
  7233  // Metadata returns metadata associated with the long-running operation.
  7234  // Metadata itself does not contact the server, but Poll does.
  7235  // To get the latest metadata, call this method after a successful call to Poll.
  7236  // If the metadata is not available, the returned metadata and error are both nil.
  7237  func (op *UpdateFeatureViewOperation) Metadata() (*aiplatformpb.UpdateFeatureViewOperationMetadata, error) {
  7238  	var meta aiplatformpb.UpdateFeatureViewOperationMetadata
  7239  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7240  		return nil, nil
  7241  	} else if err != nil {
  7242  		return nil, err
  7243  	}
  7244  	return &meta, nil
  7245  }
  7246  
  7247  // Done reports whether the long-running operation has completed.
  7248  func (op *UpdateFeatureViewOperation) Done() bool {
  7249  	return op.lro.Done()
  7250  }
  7251  
  7252  // Name returns the name of the long-running operation.
  7253  // The name is assigned by the server and is unique within the service from which the operation is created.
  7254  func (op *UpdateFeatureViewOperation) Name() string {
  7255  	return op.lro.Name()
  7256  }
  7257  
  7258  // UpdateFeaturestoreOperation manages a long-running operation from UpdateFeaturestore.
  7259  type UpdateFeaturestoreOperation struct {
  7260  	lro      *longrunning.Operation
  7261  	pollPath string
  7262  }
  7263  
  7264  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7265  //
  7266  // See documentation of Poll for error-handling information.
  7267  func (op *UpdateFeaturestoreOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  7268  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7269  	var resp aiplatformpb.Featurestore
  7270  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7271  		return nil, err
  7272  	}
  7273  	return &resp, nil
  7274  }
  7275  
  7276  // Poll fetches the latest state of the long-running operation.
  7277  //
  7278  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7279  //
  7280  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7281  // the operation has completed with failure, the error is returned and op.Done will return true.
  7282  // If Poll succeeds and the operation has completed successfully,
  7283  // op.Done will return true, and the response of the operation is returned.
  7284  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7285  func (op *UpdateFeaturestoreOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Featurestore, error) {
  7286  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7287  	var resp aiplatformpb.Featurestore
  7288  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7289  		return nil, err
  7290  	}
  7291  	if !op.Done() {
  7292  		return nil, nil
  7293  	}
  7294  	return &resp, nil
  7295  }
  7296  
  7297  // Metadata returns metadata associated with the long-running operation.
  7298  // Metadata itself does not contact the server, but Poll does.
  7299  // To get the latest metadata, call this method after a successful call to Poll.
  7300  // If the metadata is not available, the returned metadata and error are both nil.
  7301  func (op *UpdateFeaturestoreOperation) Metadata() (*aiplatformpb.UpdateFeaturestoreOperationMetadata, error) {
  7302  	var meta aiplatformpb.UpdateFeaturestoreOperationMetadata
  7303  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7304  		return nil, nil
  7305  	} else if err != nil {
  7306  		return nil, err
  7307  	}
  7308  	return &meta, nil
  7309  }
  7310  
  7311  // Done reports whether the long-running operation has completed.
  7312  func (op *UpdateFeaturestoreOperation) Done() bool {
  7313  	return op.lro.Done()
  7314  }
  7315  
  7316  // Name returns the name of the long-running operation.
  7317  // The name is assigned by the server and is unique within the service from which the operation is created.
  7318  func (op *UpdateFeaturestoreOperation) Name() string {
  7319  	return op.lro.Name()
  7320  }
  7321  
  7322  // UpdateIndexOperation manages a long-running operation from UpdateIndex.
  7323  type UpdateIndexOperation struct {
  7324  	lro      *longrunning.Operation
  7325  	pollPath string
  7326  }
  7327  
  7328  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7329  //
  7330  // See documentation of Poll for error-handling information.
  7331  func (op *UpdateIndexOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  7332  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7333  	var resp aiplatformpb.Index
  7334  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7335  		return nil, err
  7336  	}
  7337  	return &resp, nil
  7338  }
  7339  
  7340  // Poll fetches the latest state of the long-running operation.
  7341  //
  7342  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7343  //
  7344  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7345  // the operation has completed with failure, the error is returned and op.Done will return true.
  7346  // If Poll succeeds and the operation has completed successfully,
  7347  // op.Done will return true, and the response of the operation is returned.
  7348  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7349  func (op *UpdateIndexOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Index, error) {
  7350  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7351  	var resp aiplatformpb.Index
  7352  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7353  		return nil, err
  7354  	}
  7355  	if !op.Done() {
  7356  		return nil, nil
  7357  	}
  7358  	return &resp, nil
  7359  }
  7360  
  7361  // Metadata returns metadata associated with the long-running operation.
  7362  // Metadata itself does not contact the server, but Poll does.
  7363  // To get the latest metadata, call this method after a successful call to Poll.
  7364  // If the metadata is not available, the returned metadata and error are both nil.
  7365  func (op *UpdateIndexOperation) Metadata() (*aiplatformpb.UpdateIndexOperationMetadata, error) {
  7366  	var meta aiplatformpb.UpdateIndexOperationMetadata
  7367  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7368  		return nil, nil
  7369  	} else if err != nil {
  7370  		return nil, err
  7371  	}
  7372  	return &meta, nil
  7373  }
  7374  
  7375  // Done reports whether the long-running operation has completed.
  7376  func (op *UpdateIndexOperation) Done() bool {
  7377  	return op.lro.Done()
  7378  }
  7379  
  7380  // Name returns the name of the long-running operation.
  7381  // The name is assigned by the server and is unique within the service from which the operation is created.
  7382  func (op *UpdateIndexOperation) Name() string {
  7383  	return op.lro.Name()
  7384  }
  7385  
  7386  // UpdateMemoryOperation manages a long-running operation from UpdateMemory.
  7387  type UpdateMemoryOperation struct {
  7388  	lro      *longrunning.Operation
  7389  	pollPath string
  7390  }
  7391  
  7392  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7393  //
  7394  // See documentation of Poll for error-handling information.
  7395  func (op *UpdateMemoryOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Memory, error) {
  7396  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7397  	var resp aiplatformpb.Memory
  7398  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7399  		return nil, err
  7400  	}
  7401  	return &resp, nil
  7402  }
  7403  
  7404  // Poll fetches the latest state of the long-running operation.
  7405  //
  7406  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7407  //
  7408  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7409  // the operation has completed with failure, the error is returned and op.Done will return true.
  7410  // If Poll succeeds and the operation has completed successfully,
  7411  // op.Done will return true, and the response of the operation is returned.
  7412  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7413  func (op *UpdateMemoryOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Memory, error) {
  7414  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7415  	var resp aiplatformpb.Memory
  7416  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7417  		return nil, err
  7418  	}
  7419  	if !op.Done() {
  7420  		return nil, nil
  7421  	}
  7422  	return &resp, nil
  7423  }
  7424  
  7425  // Metadata returns metadata associated with the long-running operation.
  7426  // Metadata itself does not contact the server, but Poll does.
  7427  // To get the latest metadata, call this method after a successful call to Poll.
  7428  // If the metadata is not available, the returned metadata and error are both nil.
  7429  func (op *UpdateMemoryOperation) Metadata() (*aiplatformpb.UpdateMemoryOperationMetadata, error) {
  7430  	var meta aiplatformpb.UpdateMemoryOperationMetadata
  7431  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7432  		return nil, nil
  7433  	} else if err != nil {
  7434  		return nil, err
  7435  	}
  7436  	return &meta, nil
  7437  }
  7438  
  7439  // Done reports whether the long-running operation has completed.
  7440  func (op *UpdateMemoryOperation) Done() bool {
  7441  	return op.lro.Done()
  7442  }
  7443  
  7444  // Name returns the name of the long-running operation.
  7445  // The name is assigned by the server and is unique within the service from which the operation is created.
  7446  func (op *UpdateMemoryOperation) Name() string {
  7447  	return op.lro.Name()
  7448  }
  7449  
  7450  // UpdateModelDeploymentMonitoringJobOperation manages a long-running operation from UpdateModelDeploymentMonitoringJob.
  7451  type UpdateModelDeploymentMonitoringJobOperation struct {
  7452  	lro      *longrunning.Operation
  7453  	pollPath string
  7454  }
  7455  
  7456  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7457  //
  7458  // See documentation of Poll for error-handling information.
  7459  func (op *UpdateModelDeploymentMonitoringJobOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  7460  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7461  	var resp aiplatformpb.ModelDeploymentMonitoringJob
  7462  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7463  		return nil, err
  7464  	}
  7465  	return &resp, nil
  7466  }
  7467  
  7468  // Poll fetches the latest state of the long-running operation.
  7469  //
  7470  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7471  //
  7472  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7473  // the operation has completed with failure, the error is returned and op.Done will return true.
  7474  // If Poll succeeds and the operation has completed successfully,
  7475  // op.Done will return true, and the response of the operation is returned.
  7476  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7477  func (op *UpdateModelDeploymentMonitoringJobOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  7478  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7479  	var resp aiplatformpb.ModelDeploymentMonitoringJob
  7480  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7481  		return nil, err
  7482  	}
  7483  	if !op.Done() {
  7484  		return nil, nil
  7485  	}
  7486  	return &resp, nil
  7487  }
  7488  
  7489  // Metadata returns metadata associated with the long-running operation.
  7490  // Metadata itself does not contact the server, but Poll does.
  7491  // To get the latest metadata, call this method after a successful call to Poll.
  7492  // If the metadata is not available, the returned metadata and error are both nil.
  7493  func (op *UpdateModelDeploymentMonitoringJobOperation) Metadata() (*aiplatformpb.UpdateModelDeploymentMonitoringJobOperationMetadata, error) {
  7494  	var meta aiplatformpb.UpdateModelDeploymentMonitoringJobOperationMetadata
  7495  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7496  		return nil, nil
  7497  	} else if err != nil {
  7498  		return nil, err
  7499  	}
  7500  	return &meta, nil
  7501  }
  7502  
  7503  // Done reports whether the long-running operation has completed.
  7504  func (op *UpdateModelDeploymentMonitoringJobOperation) Done() bool {
  7505  	return op.lro.Done()
  7506  }
  7507  
  7508  // Name returns the name of the long-running operation.
  7509  // The name is assigned by the server and is unique within the service from which the operation is created.
  7510  func (op *UpdateModelDeploymentMonitoringJobOperation) Name() string {
  7511  	return op.lro.Name()
  7512  }
  7513  
  7514  // UpdateModelMonitorOperation manages a long-running operation from UpdateModelMonitor.
  7515  type UpdateModelMonitorOperation struct {
  7516  	lro      *longrunning.Operation
  7517  	pollPath string
  7518  }
  7519  
  7520  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7521  //
  7522  // See documentation of Poll for error-handling information.
  7523  func (op *UpdateModelMonitorOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelMonitor, error) {
  7524  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7525  	var resp aiplatformpb.ModelMonitor
  7526  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7527  		return nil, err
  7528  	}
  7529  	return &resp, nil
  7530  }
  7531  
  7532  // Poll fetches the latest state of the long-running operation.
  7533  //
  7534  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7535  //
  7536  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7537  // the operation has completed with failure, the error is returned and op.Done will return true.
  7538  // If Poll succeeds and the operation has completed successfully,
  7539  // op.Done will return true, and the response of the operation is returned.
  7540  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7541  func (op *UpdateModelMonitorOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ModelMonitor, error) {
  7542  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7543  	var resp aiplatformpb.ModelMonitor
  7544  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7545  		return nil, err
  7546  	}
  7547  	if !op.Done() {
  7548  		return nil, nil
  7549  	}
  7550  	return &resp, nil
  7551  }
  7552  
  7553  // Metadata returns metadata associated with the long-running operation.
  7554  // Metadata itself does not contact the server, but Poll does.
  7555  // To get the latest metadata, call this method after a successful call to Poll.
  7556  // If the metadata is not available, the returned metadata and error are both nil.
  7557  func (op *UpdateModelMonitorOperation) Metadata() (*aiplatformpb.UpdateModelMonitorOperationMetadata, error) {
  7558  	var meta aiplatformpb.UpdateModelMonitorOperationMetadata
  7559  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7560  		return nil, nil
  7561  	} else if err != nil {
  7562  		return nil, err
  7563  	}
  7564  	return &meta, nil
  7565  }
  7566  
  7567  // Done reports whether the long-running operation has completed.
  7568  func (op *UpdateModelMonitorOperation) Done() bool {
  7569  	return op.lro.Done()
  7570  }
  7571  
  7572  // Name returns the name of the long-running operation.
  7573  // The name is assigned by the server and is unique within the service from which the operation is created.
  7574  func (op *UpdateModelMonitorOperation) Name() string {
  7575  	return op.lro.Name()
  7576  }
  7577  
  7578  // UpdatePersistentResourceOperation manages a long-running operation from UpdatePersistentResource.
  7579  type UpdatePersistentResourceOperation struct {
  7580  	lro      *longrunning.Operation
  7581  	pollPath string
  7582  }
  7583  
  7584  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7585  //
  7586  // See documentation of Poll for error-handling information.
  7587  func (op *UpdatePersistentResourceOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  7588  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7589  	var resp aiplatformpb.PersistentResource
  7590  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7591  		return nil, err
  7592  	}
  7593  	return &resp, nil
  7594  }
  7595  
  7596  // Poll fetches the latest state of the long-running operation.
  7597  //
  7598  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7599  //
  7600  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7601  // the operation has completed with failure, the error is returned and op.Done will return true.
  7602  // If Poll succeeds and the operation has completed successfully,
  7603  // op.Done will return true, and the response of the operation is returned.
  7604  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7605  func (op *UpdatePersistentResourceOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.PersistentResource, error) {
  7606  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7607  	var resp aiplatformpb.PersistentResource
  7608  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7609  		return nil, err
  7610  	}
  7611  	if !op.Done() {
  7612  		return nil, nil
  7613  	}
  7614  	return &resp, nil
  7615  }
  7616  
  7617  // Metadata returns metadata associated with the long-running operation.
  7618  // Metadata itself does not contact the server, but Poll does.
  7619  // To get the latest metadata, call this method after a successful call to Poll.
  7620  // If the metadata is not available, the returned metadata and error are both nil.
  7621  func (op *UpdatePersistentResourceOperation) Metadata() (*aiplatformpb.UpdatePersistentResourceOperationMetadata, error) {
  7622  	var meta aiplatformpb.UpdatePersistentResourceOperationMetadata
  7623  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7624  		return nil, nil
  7625  	} else if err != nil {
  7626  		return nil, err
  7627  	}
  7628  	return &meta, nil
  7629  }
  7630  
  7631  // Done reports whether the long-running operation has completed.
  7632  func (op *UpdatePersistentResourceOperation) Done() bool {
  7633  	return op.lro.Done()
  7634  }
  7635  
  7636  // Name returns the name of the long-running operation.
  7637  // The name is assigned by the server and is unique within the service from which the operation is created.
  7638  func (op *UpdatePersistentResourceOperation) Name() string {
  7639  	return op.lro.Name()
  7640  }
  7641  
  7642  // UpdateRagCorpusOperation manages a long-running operation from UpdateRagCorpus.
  7643  type UpdateRagCorpusOperation struct {
  7644  	lro      *longrunning.Operation
  7645  	pollPath string
  7646  }
  7647  
  7648  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7649  //
  7650  // See documentation of Poll for error-handling information.
  7651  func (op *UpdateRagCorpusOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  7652  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7653  	var resp aiplatformpb.RagCorpus
  7654  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7655  		return nil, err
  7656  	}
  7657  	return &resp, nil
  7658  }
  7659  
  7660  // Poll fetches the latest state of the long-running operation.
  7661  //
  7662  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7663  //
  7664  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7665  // the operation has completed with failure, the error is returned and op.Done will return true.
  7666  // If Poll succeeds and the operation has completed successfully,
  7667  // op.Done will return true, and the response of the operation is returned.
  7668  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7669  func (op *UpdateRagCorpusOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagCorpus, error) {
  7670  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7671  	var resp aiplatformpb.RagCorpus
  7672  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7673  		return nil, err
  7674  	}
  7675  	if !op.Done() {
  7676  		return nil, nil
  7677  	}
  7678  	return &resp, nil
  7679  }
  7680  
  7681  // Metadata returns metadata associated with the long-running operation.
  7682  // Metadata itself does not contact the server, but Poll does.
  7683  // To get the latest metadata, call this method after a successful call to Poll.
  7684  // If the metadata is not available, the returned metadata and error are both nil.
  7685  func (op *UpdateRagCorpusOperation) Metadata() (*aiplatformpb.UpdateRagCorpusOperationMetadata, error) {
  7686  	var meta aiplatformpb.UpdateRagCorpusOperationMetadata
  7687  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7688  		return nil, nil
  7689  	} else if err != nil {
  7690  		return nil, err
  7691  	}
  7692  	return &meta, nil
  7693  }
  7694  
  7695  // Done reports whether the long-running operation has completed.
  7696  func (op *UpdateRagCorpusOperation) Done() bool {
  7697  	return op.lro.Done()
  7698  }
  7699  
  7700  // Name returns the name of the long-running operation.
  7701  // The name is assigned by the server and is unique within the service from which the operation is created.
  7702  func (op *UpdateRagCorpusOperation) Name() string {
  7703  	return op.lro.Name()
  7704  }
  7705  
  7706  // UpdateRagEngineConfigOperation manages a long-running operation from UpdateRagEngineConfig.
  7707  type UpdateRagEngineConfigOperation struct {
  7708  	lro      *longrunning.Operation
  7709  	pollPath string
  7710  }
  7711  
  7712  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7713  //
  7714  // See documentation of Poll for error-handling information.
  7715  func (op *UpdateRagEngineConfigOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagEngineConfig, error) {
  7716  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7717  	var resp aiplatformpb.RagEngineConfig
  7718  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7719  		return nil, err
  7720  	}
  7721  	return &resp, nil
  7722  }
  7723  
  7724  // Poll fetches the latest state of the long-running operation.
  7725  //
  7726  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7727  //
  7728  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7729  // the operation has completed with failure, the error is returned and op.Done will return true.
  7730  // If Poll succeeds and the operation has completed successfully,
  7731  // op.Done will return true, and the response of the operation is returned.
  7732  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7733  func (op *UpdateRagEngineConfigOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.RagEngineConfig, error) {
  7734  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7735  	var resp aiplatformpb.RagEngineConfig
  7736  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7737  		return nil, err
  7738  	}
  7739  	if !op.Done() {
  7740  		return nil, nil
  7741  	}
  7742  	return &resp, nil
  7743  }
  7744  
  7745  // Metadata returns metadata associated with the long-running operation.
  7746  // Metadata itself does not contact the server, but Poll does.
  7747  // To get the latest metadata, call this method after a successful call to Poll.
  7748  // If the metadata is not available, the returned metadata and error are both nil.
  7749  func (op *UpdateRagEngineConfigOperation) Metadata() (*aiplatformpb.UpdateRagEngineConfigOperationMetadata, error) {
  7750  	var meta aiplatformpb.UpdateRagEngineConfigOperationMetadata
  7751  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7752  		return nil, nil
  7753  	} else if err != nil {
  7754  		return nil, err
  7755  	}
  7756  	return &meta, nil
  7757  }
  7758  
  7759  // Done reports whether the long-running operation has completed.
  7760  func (op *UpdateRagEngineConfigOperation) Done() bool {
  7761  	return op.lro.Done()
  7762  }
  7763  
  7764  // Name returns the name of the long-running operation.
  7765  // The name is assigned by the server and is unique within the service from which the operation is created.
  7766  func (op *UpdateRagEngineConfigOperation) Name() string {
  7767  	return op.lro.Name()
  7768  }
  7769  
  7770  // UpdateReasoningEngineOperation manages a long-running operation from UpdateReasoningEngine.
  7771  type UpdateReasoningEngineOperation struct {
  7772  	lro      *longrunning.Operation
  7773  	pollPath string
  7774  }
  7775  
  7776  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7777  //
  7778  // See documentation of Poll for error-handling information.
  7779  func (op *UpdateReasoningEngineOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  7780  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7781  	var resp aiplatformpb.ReasoningEngine
  7782  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7783  		return nil, err
  7784  	}
  7785  	return &resp, nil
  7786  }
  7787  
  7788  // Poll fetches the latest state of the long-running operation.
  7789  //
  7790  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7791  //
  7792  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7793  // the operation has completed with failure, the error is returned and op.Done will return true.
  7794  // If Poll succeeds and the operation has completed successfully,
  7795  // op.Done will return true, and the response of the operation is returned.
  7796  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7797  func (op *UpdateReasoningEngineOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.ReasoningEngine, error) {
  7798  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7799  	var resp aiplatformpb.ReasoningEngine
  7800  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7801  		return nil, err
  7802  	}
  7803  	if !op.Done() {
  7804  		return nil, nil
  7805  	}
  7806  	return &resp, nil
  7807  }
  7808  
  7809  // Metadata returns metadata associated with the long-running operation.
  7810  // Metadata itself does not contact the server, but Poll does.
  7811  // To get the latest metadata, call this method after a successful call to Poll.
  7812  // If the metadata is not available, the returned metadata and error are both nil.
  7813  func (op *UpdateReasoningEngineOperation) Metadata() (*aiplatformpb.UpdateReasoningEngineOperationMetadata, error) {
  7814  	var meta aiplatformpb.UpdateReasoningEngineOperationMetadata
  7815  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7816  		return nil, nil
  7817  	} else if err != nil {
  7818  		return nil, err
  7819  	}
  7820  	return &meta, nil
  7821  }
  7822  
  7823  // Done reports whether the long-running operation has completed.
  7824  func (op *UpdateReasoningEngineOperation) Done() bool {
  7825  	return op.lro.Done()
  7826  }
  7827  
  7828  // Name returns the name of the long-running operation.
  7829  // The name is assigned by the server and is unique within the service from which the operation is created.
  7830  func (op *UpdateReasoningEngineOperation) Name() string {
  7831  	return op.lro.Name()
  7832  }
  7833  
  7834  // UpdateSpecialistPoolOperation manages a long-running operation from UpdateSpecialistPool.
  7835  type UpdateSpecialistPoolOperation struct {
  7836  	lro      *longrunning.Operation
  7837  	pollPath string
  7838  }
  7839  
  7840  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7841  //
  7842  // See documentation of Poll for error-handling information.
  7843  func (op *UpdateSpecialistPoolOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  7844  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7845  	var resp aiplatformpb.SpecialistPool
  7846  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7847  		return nil, err
  7848  	}
  7849  	return &resp, nil
  7850  }
  7851  
  7852  // Poll fetches the latest state of the long-running operation.
  7853  //
  7854  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7855  //
  7856  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7857  // the operation has completed with failure, the error is returned and op.Done will return true.
  7858  // If Poll succeeds and the operation has completed successfully,
  7859  // op.Done will return true, and the response of the operation is returned.
  7860  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7861  func (op *UpdateSpecialistPoolOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.SpecialistPool, error) {
  7862  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7863  	var resp aiplatformpb.SpecialistPool
  7864  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7865  		return nil, err
  7866  	}
  7867  	if !op.Done() {
  7868  		return nil, nil
  7869  	}
  7870  	return &resp, nil
  7871  }
  7872  
  7873  // Metadata returns metadata associated with the long-running operation.
  7874  // Metadata itself does not contact the server, but Poll does.
  7875  // To get the latest metadata, call this method after a successful call to Poll.
  7876  // If the metadata is not available, the returned metadata and error are both nil.
  7877  func (op *UpdateSpecialistPoolOperation) Metadata() (*aiplatformpb.UpdateSpecialistPoolOperationMetadata, error) {
  7878  	var meta aiplatformpb.UpdateSpecialistPoolOperationMetadata
  7879  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7880  		return nil, nil
  7881  	} else if err != nil {
  7882  		return nil, err
  7883  	}
  7884  	return &meta, nil
  7885  }
  7886  
  7887  // Done reports whether the long-running operation has completed.
  7888  func (op *UpdateSpecialistPoolOperation) Done() bool {
  7889  	return op.lro.Done()
  7890  }
  7891  
  7892  // Name returns the name of the long-running operation.
  7893  // The name is assigned by the server and is unique within the service from which the operation is created.
  7894  func (op *UpdateSpecialistPoolOperation) Name() string {
  7895  	return op.lro.Name()
  7896  }
  7897  
  7898  // UpdateTensorboardOperation manages a long-running operation from UpdateTensorboard.
  7899  type UpdateTensorboardOperation struct {
  7900  	lro      *longrunning.Operation
  7901  	pollPath string
  7902  }
  7903  
  7904  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7905  //
  7906  // See documentation of Poll for error-handling information.
  7907  func (op *UpdateTensorboardOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  7908  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7909  	var resp aiplatformpb.Tensorboard
  7910  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7911  		return nil, err
  7912  	}
  7913  	return &resp, nil
  7914  }
  7915  
  7916  // Poll fetches the latest state of the long-running operation.
  7917  //
  7918  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7919  //
  7920  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7921  // the operation has completed with failure, the error is returned and op.Done will return true.
  7922  // If Poll succeeds and the operation has completed successfully,
  7923  // op.Done will return true, and the response of the operation is returned.
  7924  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7925  func (op *UpdateTensorboardOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.Tensorboard, error) {
  7926  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7927  	var resp aiplatformpb.Tensorboard
  7928  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7929  		return nil, err
  7930  	}
  7931  	if !op.Done() {
  7932  		return nil, nil
  7933  	}
  7934  	return &resp, nil
  7935  }
  7936  
  7937  // Metadata returns metadata associated with the long-running operation.
  7938  // Metadata itself does not contact the server, but Poll does.
  7939  // To get the latest metadata, call this method after a successful call to Poll.
  7940  // If the metadata is not available, the returned metadata and error are both nil.
  7941  func (op *UpdateTensorboardOperation) Metadata() (*aiplatformpb.UpdateTensorboardOperationMetadata, error) {
  7942  	var meta aiplatformpb.UpdateTensorboardOperationMetadata
  7943  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  7944  		return nil, nil
  7945  	} else if err != nil {
  7946  		return nil, err
  7947  	}
  7948  	return &meta, nil
  7949  }
  7950  
  7951  // Done reports whether the long-running operation has completed.
  7952  func (op *UpdateTensorboardOperation) Done() bool {
  7953  	return op.lro.Done()
  7954  }
  7955  
  7956  // Name returns the name of the long-running operation.
  7957  // The name is assigned by the server and is unique within the service from which the operation is created.
  7958  func (op *UpdateTensorboardOperation) Name() string {
  7959  	return op.lro.Name()
  7960  }
  7961  
  7962  // UpgradeNotebookRuntimeOperation manages a long-running operation from UpgradeNotebookRuntime.
  7963  type UpgradeNotebookRuntimeOperation struct {
  7964  	lro      *longrunning.Operation
  7965  	pollPath string
  7966  }
  7967  
  7968  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  7969  //
  7970  // See documentation of Poll for error-handling information.
  7971  func (op *UpgradeNotebookRuntimeOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpgradeNotebookRuntimeResponse, error) {
  7972  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7973  	var resp aiplatformpb.UpgradeNotebookRuntimeResponse
  7974  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  7975  		return nil, err
  7976  	}
  7977  	return &resp, nil
  7978  }
  7979  
  7980  // Poll fetches the latest state of the long-running operation.
  7981  //
  7982  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  7983  //
  7984  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  7985  // the operation has completed with failure, the error is returned and op.Done will return true.
  7986  // If Poll succeeds and the operation has completed successfully,
  7987  // op.Done will return true, and the response of the operation is returned.
  7988  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  7989  func (op *UpgradeNotebookRuntimeOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UpgradeNotebookRuntimeResponse, error) {
  7990  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  7991  	var resp aiplatformpb.UpgradeNotebookRuntimeResponse
  7992  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  7993  		return nil, err
  7994  	}
  7995  	if !op.Done() {
  7996  		return nil, nil
  7997  	}
  7998  	return &resp, nil
  7999  }
  8000  
  8001  // Metadata returns metadata associated with the long-running operation.
  8002  // Metadata itself does not contact the server, but Poll does.
  8003  // To get the latest metadata, call this method after a successful call to Poll.
  8004  // If the metadata is not available, the returned metadata and error are both nil.
  8005  func (op *UpgradeNotebookRuntimeOperation) Metadata() (*aiplatformpb.UpgradeNotebookRuntimeOperationMetadata, error) {
  8006  	var meta aiplatformpb.UpgradeNotebookRuntimeOperationMetadata
  8007  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  8008  		return nil, nil
  8009  	} else if err != nil {
  8010  		return nil, err
  8011  	}
  8012  	return &meta, nil
  8013  }
  8014  
  8015  // Done reports whether the long-running operation has completed.
  8016  func (op *UpgradeNotebookRuntimeOperation) Done() bool {
  8017  	return op.lro.Done()
  8018  }
  8019  
  8020  // Name returns the name of the long-running operation.
  8021  // The name is assigned by the server and is unique within the service from which the operation is created.
  8022  func (op *UpgradeNotebookRuntimeOperation) Name() string {
  8023  	return op.lro.Name()
  8024  }
  8025  
  8026  // UploadModelOperation manages a long-running operation from UploadModel.
  8027  type UploadModelOperation struct {
  8028  	lro      *longrunning.Operation
  8029  	pollPath string
  8030  }
  8031  
  8032  // Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
  8033  //
  8034  // See documentation of Poll for error-handling information.
  8035  func (op *UploadModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UploadModelResponse, error) {
  8036  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  8037  	var resp aiplatformpb.UploadModelResponse
  8038  	if err := op.lro.WaitWithInterval(ctx, &resp, time.Minute, opts...); err != nil {
  8039  		return nil, err
  8040  	}
  8041  	return &resp, nil
  8042  }
  8043  
  8044  // Poll fetches the latest state of the long-running operation.
  8045  //
  8046  // Poll also fetches the latest metadata, which can be retrieved by Metadata.
  8047  //
  8048  // If Poll fails, the error is returned and op is unmodified. If Poll succeeds and
  8049  // the operation has completed with failure, the error is returned and op.Done will return true.
  8050  // If Poll succeeds and the operation has completed successfully,
  8051  // op.Done will return true, and the response of the operation is returned.
  8052  // If Poll succeeds and the operation has not completed, the returned response and error are both nil.
  8053  func (op *UploadModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*aiplatformpb.UploadModelResponse, error) {
  8054  	opts = append([]gax.CallOption{gax.WithPath(op.pollPath)}, opts...)
  8055  	var resp aiplatformpb.UploadModelResponse
  8056  	if err := op.lro.Poll(ctx, &resp, opts...); err != nil {
  8057  		return nil, err
  8058  	}
  8059  	if !op.Done() {
  8060  		return nil, nil
  8061  	}
  8062  	return &resp, nil
  8063  }
  8064  
  8065  // Metadata returns metadata associated with the long-running operation.
  8066  // Metadata itself does not contact the server, but Poll does.
  8067  // To get the latest metadata, call this method after a successful call to Poll.
  8068  // If the metadata is not available, the returned metadata and error are both nil.
  8069  func (op *UploadModelOperation) Metadata() (*aiplatformpb.UploadModelOperationMetadata, error) {
  8070  	var meta aiplatformpb.UploadModelOperationMetadata
  8071  	if err := op.lro.Metadata(&meta); err == longrunning.ErrNoMetadata {
  8072  		return nil, nil
  8073  	} else if err != nil {
  8074  		return nil, err
  8075  	}
  8076  	return &meta, nil
  8077  }
  8078  
  8079  // Done reports whether the long-running operation has completed.
  8080  func (op *UploadModelOperation) Done() bool {
  8081  	return op.lro.Done()
  8082  }
  8083  
  8084  // Name returns the name of the long-running operation.
  8085  // The name is assigned by the server and is unique within the service from which the operation is created.
  8086  func (op *UploadModelOperation) Name() string {
  8087  	return op.lro.Name()
  8088  }
  8089  
  8090  // AnnotationIterator manages a stream of *aiplatformpb.Annotation.
  8091  type AnnotationIterator struct {
  8092  	items    []*aiplatformpb.Annotation
  8093  	pageInfo *iterator.PageInfo
  8094  	nextFunc func() error
  8095  
  8096  	// Response is the raw response for the current page.
  8097  	// It must be cast to the RPC response type.
  8098  	// Calling Next() or InternalFetch() updates this value.
  8099  	Response interface{}
  8100  
  8101  	// InternalFetch is for use by the Google Cloud Libraries only.
  8102  	// It is not part of the stable interface of this package.
  8103  	//
  8104  	// InternalFetch returns results from a single call to the underlying RPC.
  8105  	// The number of results is no greater than pageSize.
  8106  	// If there are no more results, nextPageToken is empty and err is nil.
  8107  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Annotation, nextPageToken string, err error)
  8108  }
  8109  
  8110  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8111  func (it *AnnotationIterator) PageInfo() *iterator.PageInfo {
  8112  	return it.pageInfo
  8113  }
  8114  
  8115  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8116  // results. Once Next returns Done, all subsequent calls will return Done.
  8117  func (it *AnnotationIterator) Next() (*aiplatformpb.Annotation, error) {
  8118  	var item *aiplatformpb.Annotation
  8119  	if err := it.nextFunc(); err != nil {
  8120  		return item, err
  8121  	}
  8122  	item = it.items[0]
  8123  	it.items = it.items[1:]
  8124  	return item, nil
  8125  }
  8126  
  8127  func (it *AnnotationIterator) bufLen() int {
  8128  	return len(it.items)
  8129  }
  8130  
  8131  func (it *AnnotationIterator) takeBuf() interface{} {
  8132  	b := it.items
  8133  	it.items = nil
  8134  	return b
  8135  }
  8136  
  8137  // ArtifactIterator manages a stream of *aiplatformpb.Artifact.
  8138  type ArtifactIterator struct {
  8139  	items    []*aiplatformpb.Artifact
  8140  	pageInfo *iterator.PageInfo
  8141  	nextFunc func() error
  8142  
  8143  	// Response is the raw response for the current page.
  8144  	// It must be cast to the RPC response type.
  8145  	// Calling Next() or InternalFetch() updates this value.
  8146  	Response interface{}
  8147  
  8148  	// InternalFetch is for use by the Google Cloud Libraries only.
  8149  	// It is not part of the stable interface of this package.
  8150  	//
  8151  	// InternalFetch returns results from a single call to the underlying RPC.
  8152  	// The number of results is no greater than pageSize.
  8153  	// If there are no more results, nextPageToken is empty and err is nil.
  8154  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Artifact, nextPageToken string, err error)
  8155  }
  8156  
  8157  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8158  func (it *ArtifactIterator) PageInfo() *iterator.PageInfo {
  8159  	return it.pageInfo
  8160  }
  8161  
  8162  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8163  // results. Once Next returns Done, all subsequent calls will return Done.
  8164  func (it *ArtifactIterator) Next() (*aiplatformpb.Artifact, error) {
  8165  	var item *aiplatformpb.Artifact
  8166  	if err := it.nextFunc(); err != nil {
  8167  		return item, err
  8168  	}
  8169  	item = it.items[0]
  8170  	it.items = it.items[1:]
  8171  	return item, nil
  8172  }
  8173  
  8174  func (it *ArtifactIterator) bufLen() int {
  8175  	return len(it.items)
  8176  }
  8177  
  8178  func (it *ArtifactIterator) takeBuf() interface{} {
  8179  	b := it.items
  8180  	it.items = nil
  8181  	return b
  8182  }
  8183  
  8184  // BatchPredictionJobIterator manages a stream of *aiplatformpb.BatchPredictionJob.
  8185  type BatchPredictionJobIterator struct {
  8186  	items    []*aiplatformpb.BatchPredictionJob
  8187  	pageInfo *iterator.PageInfo
  8188  	nextFunc func() error
  8189  
  8190  	// Response is the raw response for the current page.
  8191  	// It must be cast to the RPC response type.
  8192  	// Calling Next() or InternalFetch() updates this value.
  8193  	Response interface{}
  8194  
  8195  	// InternalFetch is for use by the Google Cloud Libraries only.
  8196  	// It is not part of the stable interface of this package.
  8197  	//
  8198  	// InternalFetch returns results from a single call to the underlying RPC.
  8199  	// The number of results is no greater than pageSize.
  8200  	// If there are no more results, nextPageToken is empty and err is nil.
  8201  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.BatchPredictionJob, nextPageToken string, err error)
  8202  }
  8203  
  8204  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8205  func (it *BatchPredictionJobIterator) PageInfo() *iterator.PageInfo {
  8206  	return it.pageInfo
  8207  }
  8208  
  8209  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8210  // results. Once Next returns Done, all subsequent calls will return Done.
  8211  func (it *BatchPredictionJobIterator) Next() (*aiplatformpb.BatchPredictionJob, error) {
  8212  	var item *aiplatformpb.BatchPredictionJob
  8213  	if err := it.nextFunc(); err != nil {
  8214  		return item, err
  8215  	}
  8216  	item = it.items[0]
  8217  	it.items = it.items[1:]
  8218  	return item, nil
  8219  }
  8220  
  8221  func (it *BatchPredictionJobIterator) bufLen() int {
  8222  	return len(it.items)
  8223  }
  8224  
  8225  func (it *BatchPredictionJobIterator) takeBuf() interface{} {
  8226  	b := it.items
  8227  	it.items = nil
  8228  	return b
  8229  }
  8230  
  8231  // CachedContentIterator manages a stream of *aiplatformpb.CachedContent.
  8232  type CachedContentIterator struct {
  8233  	items    []*aiplatformpb.CachedContent
  8234  	pageInfo *iterator.PageInfo
  8235  	nextFunc func() error
  8236  
  8237  	// Response is the raw response for the current page.
  8238  	// It must be cast to the RPC response type.
  8239  	// Calling Next() or InternalFetch() updates this value.
  8240  	Response interface{}
  8241  
  8242  	// InternalFetch is for use by the Google Cloud Libraries only.
  8243  	// It is not part of the stable interface of this package.
  8244  	//
  8245  	// InternalFetch returns results from a single call to the underlying RPC.
  8246  	// The number of results is no greater than pageSize.
  8247  	// If there are no more results, nextPageToken is empty and err is nil.
  8248  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.CachedContent, nextPageToken string, err error)
  8249  }
  8250  
  8251  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8252  func (it *CachedContentIterator) PageInfo() *iterator.PageInfo {
  8253  	return it.pageInfo
  8254  }
  8255  
  8256  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8257  // results. Once Next returns Done, all subsequent calls will return Done.
  8258  func (it *CachedContentIterator) Next() (*aiplatformpb.CachedContent, error) {
  8259  	var item *aiplatformpb.CachedContent
  8260  	if err := it.nextFunc(); err != nil {
  8261  		return item, err
  8262  	}
  8263  	item = it.items[0]
  8264  	it.items = it.items[1:]
  8265  	return item, nil
  8266  }
  8267  
  8268  func (it *CachedContentIterator) bufLen() int {
  8269  	return len(it.items)
  8270  }
  8271  
  8272  func (it *CachedContentIterator) takeBuf() interface{} {
  8273  	b := it.items
  8274  	it.items = nil
  8275  	return b
  8276  }
  8277  
  8278  // ContextIterator manages a stream of *aiplatformpb.Context.
  8279  type ContextIterator struct {
  8280  	items    []*aiplatformpb.Context
  8281  	pageInfo *iterator.PageInfo
  8282  	nextFunc func() error
  8283  
  8284  	// Response is the raw response for the current page.
  8285  	// It must be cast to the RPC response type.
  8286  	// Calling Next() or InternalFetch() updates this value.
  8287  	Response interface{}
  8288  
  8289  	// InternalFetch is for use by the Google Cloud Libraries only.
  8290  	// It is not part of the stable interface of this package.
  8291  	//
  8292  	// InternalFetch returns results from a single call to the underlying RPC.
  8293  	// The number of results is no greater than pageSize.
  8294  	// If there are no more results, nextPageToken is empty and err is nil.
  8295  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Context, nextPageToken string, err error)
  8296  }
  8297  
  8298  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8299  func (it *ContextIterator) PageInfo() *iterator.PageInfo {
  8300  	return it.pageInfo
  8301  }
  8302  
  8303  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8304  // results. Once Next returns Done, all subsequent calls will return Done.
  8305  func (it *ContextIterator) Next() (*aiplatformpb.Context, error) {
  8306  	var item *aiplatformpb.Context
  8307  	if err := it.nextFunc(); err != nil {
  8308  		return item, err
  8309  	}
  8310  	item = it.items[0]
  8311  	it.items = it.items[1:]
  8312  	return item, nil
  8313  }
  8314  
  8315  func (it *ContextIterator) bufLen() int {
  8316  	return len(it.items)
  8317  }
  8318  
  8319  func (it *ContextIterator) takeBuf() interface{} {
  8320  	b := it.items
  8321  	it.items = nil
  8322  	return b
  8323  }
  8324  
  8325  // CustomJobIterator manages a stream of *aiplatformpb.CustomJob.
  8326  type CustomJobIterator struct {
  8327  	items    []*aiplatformpb.CustomJob
  8328  	pageInfo *iterator.PageInfo
  8329  	nextFunc func() error
  8330  
  8331  	// Response is the raw response for the current page.
  8332  	// It must be cast to the RPC response type.
  8333  	// Calling Next() or InternalFetch() updates this value.
  8334  	Response interface{}
  8335  
  8336  	// InternalFetch is for use by the Google Cloud Libraries only.
  8337  	// It is not part of the stable interface of this package.
  8338  	//
  8339  	// InternalFetch returns results from a single call to the underlying RPC.
  8340  	// The number of results is no greater than pageSize.
  8341  	// If there are no more results, nextPageToken is empty and err is nil.
  8342  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.CustomJob, nextPageToken string, err error)
  8343  }
  8344  
  8345  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8346  func (it *CustomJobIterator) PageInfo() *iterator.PageInfo {
  8347  	return it.pageInfo
  8348  }
  8349  
  8350  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8351  // results. Once Next returns Done, all subsequent calls will return Done.
  8352  func (it *CustomJobIterator) Next() (*aiplatformpb.CustomJob, error) {
  8353  	var item *aiplatformpb.CustomJob
  8354  	if err := it.nextFunc(); err != nil {
  8355  		return item, err
  8356  	}
  8357  	item = it.items[0]
  8358  	it.items = it.items[1:]
  8359  	return item, nil
  8360  }
  8361  
  8362  func (it *CustomJobIterator) bufLen() int {
  8363  	return len(it.items)
  8364  }
  8365  
  8366  func (it *CustomJobIterator) takeBuf() interface{} {
  8367  	b := it.items
  8368  	it.items = nil
  8369  	return b
  8370  }
  8371  
  8372  // DataItemIterator manages a stream of *aiplatformpb.DataItem.
  8373  type DataItemIterator struct {
  8374  	items    []*aiplatformpb.DataItem
  8375  	pageInfo *iterator.PageInfo
  8376  	nextFunc func() error
  8377  
  8378  	// Response is the raw response for the current page.
  8379  	// It must be cast to the RPC response type.
  8380  	// Calling Next() or InternalFetch() updates this value.
  8381  	Response interface{}
  8382  
  8383  	// InternalFetch is for use by the Google Cloud Libraries only.
  8384  	// It is not part of the stable interface of this package.
  8385  	//
  8386  	// InternalFetch returns results from a single call to the underlying RPC.
  8387  	// The number of results is no greater than pageSize.
  8388  	// If there are no more results, nextPageToken is empty and err is nil.
  8389  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataItem, nextPageToken string, err error)
  8390  }
  8391  
  8392  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8393  func (it *DataItemIterator) PageInfo() *iterator.PageInfo {
  8394  	return it.pageInfo
  8395  }
  8396  
  8397  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8398  // results. Once Next returns Done, all subsequent calls will return Done.
  8399  func (it *DataItemIterator) Next() (*aiplatformpb.DataItem, error) {
  8400  	var item *aiplatformpb.DataItem
  8401  	if err := it.nextFunc(); err != nil {
  8402  		return item, err
  8403  	}
  8404  	item = it.items[0]
  8405  	it.items = it.items[1:]
  8406  	return item, nil
  8407  }
  8408  
  8409  func (it *DataItemIterator) bufLen() int {
  8410  	return len(it.items)
  8411  }
  8412  
  8413  func (it *DataItemIterator) takeBuf() interface{} {
  8414  	b := it.items
  8415  	it.items = nil
  8416  	return b
  8417  }
  8418  
  8419  // DataItemViewIterator manages a stream of *aiplatformpb.DataItemView.
  8420  type DataItemViewIterator struct {
  8421  	items    []*aiplatformpb.DataItemView
  8422  	pageInfo *iterator.PageInfo
  8423  	nextFunc func() error
  8424  
  8425  	// Response is the raw response for the current page.
  8426  	// It must be cast to the RPC response type.
  8427  	// Calling Next() or InternalFetch() updates this value.
  8428  	Response interface{}
  8429  
  8430  	// InternalFetch is for use by the Google Cloud Libraries only.
  8431  	// It is not part of the stable interface of this package.
  8432  	//
  8433  	// InternalFetch returns results from a single call to the underlying RPC.
  8434  	// The number of results is no greater than pageSize.
  8435  	// If there are no more results, nextPageToken is empty and err is nil.
  8436  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataItemView, nextPageToken string, err error)
  8437  }
  8438  
  8439  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8440  func (it *DataItemViewIterator) PageInfo() *iterator.PageInfo {
  8441  	return it.pageInfo
  8442  }
  8443  
  8444  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8445  // results. Once Next returns Done, all subsequent calls will return Done.
  8446  func (it *DataItemViewIterator) Next() (*aiplatformpb.DataItemView, error) {
  8447  	var item *aiplatformpb.DataItemView
  8448  	if err := it.nextFunc(); err != nil {
  8449  		return item, err
  8450  	}
  8451  	item = it.items[0]
  8452  	it.items = it.items[1:]
  8453  	return item, nil
  8454  }
  8455  
  8456  func (it *DataItemViewIterator) bufLen() int {
  8457  	return len(it.items)
  8458  }
  8459  
  8460  func (it *DataItemViewIterator) takeBuf() interface{} {
  8461  	b := it.items
  8462  	it.items = nil
  8463  	return b
  8464  }
  8465  
  8466  // DataLabelingJobIterator manages a stream of *aiplatformpb.DataLabelingJob.
  8467  type DataLabelingJobIterator struct {
  8468  	items    []*aiplatformpb.DataLabelingJob
  8469  	pageInfo *iterator.PageInfo
  8470  	nextFunc func() error
  8471  
  8472  	// Response is the raw response for the current page.
  8473  	// It must be cast to the RPC response type.
  8474  	// Calling Next() or InternalFetch() updates this value.
  8475  	Response interface{}
  8476  
  8477  	// InternalFetch is for use by the Google Cloud Libraries only.
  8478  	// It is not part of the stable interface of this package.
  8479  	//
  8480  	// InternalFetch returns results from a single call to the underlying RPC.
  8481  	// The number of results is no greater than pageSize.
  8482  	// If there are no more results, nextPageToken is empty and err is nil.
  8483  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DataLabelingJob, nextPageToken string, err error)
  8484  }
  8485  
  8486  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8487  func (it *DataLabelingJobIterator) PageInfo() *iterator.PageInfo {
  8488  	return it.pageInfo
  8489  }
  8490  
  8491  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8492  // results. Once Next returns Done, all subsequent calls will return Done.
  8493  func (it *DataLabelingJobIterator) Next() (*aiplatformpb.DataLabelingJob, error) {
  8494  	var item *aiplatformpb.DataLabelingJob
  8495  	if err := it.nextFunc(); err != nil {
  8496  		return item, err
  8497  	}
  8498  	item = it.items[0]
  8499  	it.items = it.items[1:]
  8500  	return item, nil
  8501  }
  8502  
  8503  func (it *DataLabelingJobIterator) bufLen() int {
  8504  	return len(it.items)
  8505  }
  8506  
  8507  func (it *DataLabelingJobIterator) takeBuf() interface{} {
  8508  	b := it.items
  8509  	it.items = nil
  8510  	return b
  8511  }
  8512  
  8513  // DatasetIterator manages a stream of *aiplatformpb.Dataset.
  8514  type DatasetIterator struct {
  8515  	items    []*aiplatformpb.Dataset
  8516  	pageInfo *iterator.PageInfo
  8517  	nextFunc func() error
  8518  
  8519  	// Response is the raw response for the current page.
  8520  	// It must be cast to the RPC response type.
  8521  	// Calling Next() or InternalFetch() updates this value.
  8522  	Response interface{}
  8523  
  8524  	// InternalFetch is for use by the Google Cloud Libraries only.
  8525  	// It is not part of the stable interface of this package.
  8526  	//
  8527  	// InternalFetch returns results from a single call to the underlying RPC.
  8528  	// The number of results is no greater than pageSize.
  8529  	// If there are no more results, nextPageToken is empty and err is nil.
  8530  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Dataset, nextPageToken string, err error)
  8531  }
  8532  
  8533  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8534  func (it *DatasetIterator) PageInfo() *iterator.PageInfo {
  8535  	return it.pageInfo
  8536  }
  8537  
  8538  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8539  // results. Once Next returns Done, all subsequent calls will return Done.
  8540  func (it *DatasetIterator) Next() (*aiplatformpb.Dataset, error) {
  8541  	var item *aiplatformpb.Dataset
  8542  	if err := it.nextFunc(); err != nil {
  8543  		return item, err
  8544  	}
  8545  	item = it.items[0]
  8546  	it.items = it.items[1:]
  8547  	return item, nil
  8548  }
  8549  
  8550  func (it *DatasetIterator) bufLen() int {
  8551  	return len(it.items)
  8552  }
  8553  
  8554  func (it *DatasetIterator) takeBuf() interface{} {
  8555  	b := it.items
  8556  	it.items = nil
  8557  	return b
  8558  }
  8559  
  8560  // DatasetVersionIterator manages a stream of *aiplatformpb.DatasetVersion.
  8561  type DatasetVersionIterator struct {
  8562  	items    []*aiplatformpb.DatasetVersion
  8563  	pageInfo *iterator.PageInfo
  8564  	nextFunc func() error
  8565  
  8566  	// Response is the raw response for the current page.
  8567  	// It must be cast to the RPC response type.
  8568  	// Calling Next() or InternalFetch() updates this value.
  8569  	Response interface{}
  8570  
  8571  	// InternalFetch is for use by the Google Cloud Libraries only.
  8572  	// It is not part of the stable interface of this package.
  8573  	//
  8574  	// InternalFetch returns results from a single call to the underlying RPC.
  8575  	// The number of results is no greater than pageSize.
  8576  	// If there are no more results, nextPageToken is empty and err is nil.
  8577  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DatasetVersion, nextPageToken string, err error)
  8578  }
  8579  
  8580  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8581  func (it *DatasetVersionIterator) PageInfo() *iterator.PageInfo {
  8582  	return it.pageInfo
  8583  }
  8584  
  8585  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8586  // results. Once Next returns Done, all subsequent calls will return Done.
  8587  func (it *DatasetVersionIterator) Next() (*aiplatformpb.DatasetVersion, error) {
  8588  	var item *aiplatformpb.DatasetVersion
  8589  	if err := it.nextFunc(); err != nil {
  8590  		return item, err
  8591  	}
  8592  	item = it.items[0]
  8593  	it.items = it.items[1:]
  8594  	return item, nil
  8595  }
  8596  
  8597  func (it *DatasetVersionIterator) bufLen() int {
  8598  	return len(it.items)
  8599  }
  8600  
  8601  func (it *DatasetVersionIterator) takeBuf() interface{} {
  8602  	b := it.items
  8603  	it.items = nil
  8604  	return b
  8605  }
  8606  
  8607  // DeployedModelIterator manages a stream of *aiplatformpb.DeployedModel.
  8608  type DeployedModelIterator struct {
  8609  	items    []*aiplatformpb.DeployedModel
  8610  	pageInfo *iterator.PageInfo
  8611  	nextFunc func() error
  8612  
  8613  	// Response is the raw response for the current page.
  8614  	// It must be cast to the RPC response type.
  8615  	// Calling Next() or InternalFetch() updates this value.
  8616  	Response interface{}
  8617  
  8618  	// InternalFetch is for use by the Google Cloud Libraries only.
  8619  	// It is not part of the stable interface of this package.
  8620  	//
  8621  	// InternalFetch returns results from a single call to the underlying RPC.
  8622  	// The number of results is no greater than pageSize.
  8623  	// If there are no more results, nextPageToken is empty and err is nil.
  8624  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DeployedModel, nextPageToken string, err error)
  8625  }
  8626  
  8627  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8628  func (it *DeployedModelIterator) PageInfo() *iterator.PageInfo {
  8629  	return it.pageInfo
  8630  }
  8631  
  8632  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8633  // results. Once Next returns Done, all subsequent calls will return Done.
  8634  func (it *DeployedModelIterator) Next() (*aiplatformpb.DeployedModel, error) {
  8635  	var item *aiplatformpb.DeployedModel
  8636  	if err := it.nextFunc(); err != nil {
  8637  		return item, err
  8638  	}
  8639  	item = it.items[0]
  8640  	it.items = it.items[1:]
  8641  	return item, nil
  8642  }
  8643  
  8644  func (it *DeployedModelIterator) bufLen() int {
  8645  	return len(it.items)
  8646  }
  8647  
  8648  func (it *DeployedModelIterator) takeBuf() interface{} {
  8649  	b := it.items
  8650  	it.items = nil
  8651  	return b
  8652  }
  8653  
  8654  // DeploymentResourcePoolIterator manages a stream of *aiplatformpb.DeploymentResourcePool.
  8655  type DeploymentResourcePoolIterator struct {
  8656  	items    []*aiplatformpb.DeploymentResourcePool
  8657  	pageInfo *iterator.PageInfo
  8658  	nextFunc func() error
  8659  
  8660  	// Response is the raw response for the current page.
  8661  	// It must be cast to the RPC response type.
  8662  	// Calling Next() or InternalFetch() updates this value.
  8663  	Response interface{}
  8664  
  8665  	// InternalFetch is for use by the Google Cloud Libraries only.
  8666  	// It is not part of the stable interface of this package.
  8667  	//
  8668  	// InternalFetch returns results from a single call to the underlying RPC.
  8669  	// The number of results is no greater than pageSize.
  8670  	// If there are no more results, nextPageToken is empty and err is nil.
  8671  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.DeploymentResourcePool, nextPageToken string, err error)
  8672  }
  8673  
  8674  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8675  func (it *DeploymentResourcePoolIterator) PageInfo() *iterator.PageInfo {
  8676  	return it.pageInfo
  8677  }
  8678  
  8679  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8680  // results. Once Next returns Done, all subsequent calls will return Done.
  8681  func (it *DeploymentResourcePoolIterator) Next() (*aiplatformpb.DeploymentResourcePool, error) {
  8682  	var item *aiplatformpb.DeploymentResourcePool
  8683  	if err := it.nextFunc(); err != nil {
  8684  		return item, err
  8685  	}
  8686  	item = it.items[0]
  8687  	it.items = it.items[1:]
  8688  	return item, nil
  8689  }
  8690  
  8691  func (it *DeploymentResourcePoolIterator) bufLen() int {
  8692  	return len(it.items)
  8693  }
  8694  
  8695  func (it *DeploymentResourcePoolIterator) takeBuf() interface{} {
  8696  	b := it.items
  8697  	it.items = nil
  8698  	return b
  8699  }
  8700  
  8701  // EndpointIterator manages a stream of *aiplatformpb.Endpoint.
  8702  type EndpointIterator struct {
  8703  	items    []*aiplatformpb.Endpoint
  8704  	pageInfo *iterator.PageInfo
  8705  	nextFunc func() error
  8706  
  8707  	// Response is the raw response for the current page.
  8708  	// It must be cast to the RPC response type.
  8709  	// Calling Next() or InternalFetch() updates this value.
  8710  	Response interface{}
  8711  
  8712  	// InternalFetch is for use by the Google Cloud Libraries only.
  8713  	// It is not part of the stable interface of this package.
  8714  	//
  8715  	// InternalFetch returns results from a single call to the underlying RPC.
  8716  	// The number of results is no greater than pageSize.
  8717  	// If there are no more results, nextPageToken is empty and err is nil.
  8718  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Endpoint, nextPageToken string, err error)
  8719  }
  8720  
  8721  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8722  func (it *EndpointIterator) PageInfo() *iterator.PageInfo {
  8723  	return it.pageInfo
  8724  }
  8725  
  8726  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8727  // results. Once Next returns Done, all subsequent calls will return Done.
  8728  func (it *EndpointIterator) Next() (*aiplatformpb.Endpoint, error) {
  8729  	var item *aiplatformpb.Endpoint
  8730  	if err := it.nextFunc(); err != nil {
  8731  		return item, err
  8732  	}
  8733  	item = it.items[0]
  8734  	it.items = it.items[1:]
  8735  	return item, nil
  8736  }
  8737  
  8738  func (it *EndpointIterator) bufLen() int {
  8739  	return len(it.items)
  8740  }
  8741  
  8742  func (it *EndpointIterator) takeBuf() interface{} {
  8743  	b := it.items
  8744  	it.items = nil
  8745  	return b
  8746  }
  8747  
  8748  // EntityTypeIterator manages a stream of *aiplatformpb.EntityType.
  8749  type EntityTypeIterator struct {
  8750  	items    []*aiplatformpb.EntityType
  8751  	pageInfo *iterator.PageInfo
  8752  	nextFunc func() error
  8753  
  8754  	// Response is the raw response for the current page.
  8755  	// It must be cast to the RPC response type.
  8756  	// Calling Next() or InternalFetch() updates this value.
  8757  	Response interface{}
  8758  
  8759  	// InternalFetch is for use by the Google Cloud Libraries only.
  8760  	// It is not part of the stable interface of this package.
  8761  	//
  8762  	// InternalFetch returns results from a single call to the underlying RPC.
  8763  	// The number of results is no greater than pageSize.
  8764  	// If there are no more results, nextPageToken is empty and err is nil.
  8765  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.EntityType, nextPageToken string, err error)
  8766  }
  8767  
  8768  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8769  func (it *EntityTypeIterator) PageInfo() *iterator.PageInfo {
  8770  	return it.pageInfo
  8771  }
  8772  
  8773  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8774  // results. Once Next returns Done, all subsequent calls will return Done.
  8775  func (it *EntityTypeIterator) Next() (*aiplatformpb.EntityType, error) {
  8776  	var item *aiplatformpb.EntityType
  8777  	if err := it.nextFunc(); err != nil {
  8778  		return item, err
  8779  	}
  8780  	item = it.items[0]
  8781  	it.items = it.items[1:]
  8782  	return item, nil
  8783  }
  8784  
  8785  func (it *EntityTypeIterator) bufLen() int {
  8786  	return len(it.items)
  8787  }
  8788  
  8789  func (it *EntityTypeIterator) takeBuf() interface{} {
  8790  	b := it.items
  8791  	it.items = nil
  8792  	return b
  8793  }
  8794  
  8795  // ExampleIterator manages a stream of *aiplatformpb.Example.
  8796  type ExampleIterator struct {
  8797  	items    []*aiplatformpb.Example
  8798  	pageInfo *iterator.PageInfo
  8799  	nextFunc func() error
  8800  
  8801  	// Response is the raw response for the current page.
  8802  	// It must be cast to the RPC response type.
  8803  	// Calling Next() or InternalFetch() updates this value.
  8804  	Response interface{}
  8805  
  8806  	// InternalFetch is for use by the Google Cloud Libraries only.
  8807  	// It is not part of the stable interface of this package.
  8808  	//
  8809  	// InternalFetch returns results from a single call to the underlying RPC.
  8810  	// The number of results is no greater than pageSize.
  8811  	// If there are no more results, nextPageToken is empty and err is nil.
  8812  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Example, nextPageToken string, err error)
  8813  }
  8814  
  8815  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8816  func (it *ExampleIterator) PageInfo() *iterator.PageInfo {
  8817  	return it.pageInfo
  8818  }
  8819  
  8820  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8821  // results. Once Next returns Done, all subsequent calls will return Done.
  8822  func (it *ExampleIterator) Next() (*aiplatformpb.Example, error) {
  8823  	var item *aiplatformpb.Example
  8824  	if err := it.nextFunc(); err != nil {
  8825  		return item, err
  8826  	}
  8827  	item = it.items[0]
  8828  	it.items = it.items[1:]
  8829  	return item, nil
  8830  }
  8831  
  8832  func (it *ExampleIterator) bufLen() int {
  8833  	return len(it.items)
  8834  }
  8835  
  8836  func (it *ExampleIterator) takeBuf() interface{} {
  8837  	b := it.items
  8838  	it.items = nil
  8839  	return b
  8840  }
  8841  
  8842  // ExampleStoreIterator manages a stream of *aiplatformpb.ExampleStore.
  8843  type ExampleStoreIterator struct {
  8844  	items    []*aiplatformpb.ExampleStore
  8845  	pageInfo *iterator.PageInfo
  8846  	nextFunc func() error
  8847  
  8848  	// Response is the raw response for the current page.
  8849  	// It must be cast to the RPC response type.
  8850  	// Calling Next() or InternalFetch() updates this value.
  8851  	Response interface{}
  8852  
  8853  	// InternalFetch is for use by the Google Cloud Libraries only.
  8854  	// It is not part of the stable interface of this package.
  8855  	//
  8856  	// InternalFetch returns results from a single call to the underlying RPC.
  8857  	// The number of results is no greater than pageSize.
  8858  	// If there are no more results, nextPageToken is empty and err is nil.
  8859  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ExampleStore, nextPageToken string, err error)
  8860  }
  8861  
  8862  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8863  func (it *ExampleStoreIterator) PageInfo() *iterator.PageInfo {
  8864  	return it.pageInfo
  8865  }
  8866  
  8867  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8868  // results. Once Next returns Done, all subsequent calls will return Done.
  8869  func (it *ExampleStoreIterator) Next() (*aiplatformpb.ExampleStore, error) {
  8870  	var item *aiplatformpb.ExampleStore
  8871  	if err := it.nextFunc(); err != nil {
  8872  		return item, err
  8873  	}
  8874  	item = it.items[0]
  8875  	it.items = it.items[1:]
  8876  	return item, nil
  8877  }
  8878  
  8879  func (it *ExampleStoreIterator) bufLen() int {
  8880  	return len(it.items)
  8881  }
  8882  
  8883  func (it *ExampleStoreIterator) takeBuf() interface{} {
  8884  	b := it.items
  8885  	it.items = nil
  8886  	return b
  8887  }
  8888  
  8889  // ExecutionIterator manages a stream of *aiplatformpb.Execution.
  8890  type ExecutionIterator struct {
  8891  	items    []*aiplatformpb.Execution
  8892  	pageInfo *iterator.PageInfo
  8893  	nextFunc func() error
  8894  
  8895  	// Response is the raw response for the current page.
  8896  	// It must be cast to the RPC response type.
  8897  	// Calling Next() or InternalFetch() updates this value.
  8898  	Response interface{}
  8899  
  8900  	// InternalFetch is for use by the Google Cloud Libraries only.
  8901  	// It is not part of the stable interface of this package.
  8902  	//
  8903  	// InternalFetch returns results from a single call to the underlying RPC.
  8904  	// The number of results is no greater than pageSize.
  8905  	// If there are no more results, nextPageToken is empty and err is nil.
  8906  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Execution, nextPageToken string, err error)
  8907  }
  8908  
  8909  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8910  func (it *ExecutionIterator) PageInfo() *iterator.PageInfo {
  8911  	return it.pageInfo
  8912  }
  8913  
  8914  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8915  // results. Once Next returns Done, all subsequent calls will return Done.
  8916  func (it *ExecutionIterator) Next() (*aiplatformpb.Execution, error) {
  8917  	var item *aiplatformpb.Execution
  8918  	if err := it.nextFunc(); err != nil {
  8919  		return item, err
  8920  	}
  8921  	item = it.items[0]
  8922  	it.items = it.items[1:]
  8923  	return item, nil
  8924  }
  8925  
  8926  func (it *ExecutionIterator) bufLen() int {
  8927  	return len(it.items)
  8928  }
  8929  
  8930  func (it *ExecutionIterator) takeBuf() interface{} {
  8931  	b := it.items
  8932  	it.items = nil
  8933  	return b
  8934  }
  8935  
  8936  // ExtensionIterator manages a stream of *aiplatformpb.Extension.
  8937  type ExtensionIterator struct {
  8938  	items    []*aiplatformpb.Extension
  8939  	pageInfo *iterator.PageInfo
  8940  	nextFunc func() error
  8941  
  8942  	// Response is the raw response for the current page.
  8943  	// It must be cast to the RPC response type.
  8944  	// Calling Next() or InternalFetch() updates this value.
  8945  	Response interface{}
  8946  
  8947  	// InternalFetch is for use by the Google Cloud Libraries only.
  8948  	// It is not part of the stable interface of this package.
  8949  	//
  8950  	// InternalFetch returns results from a single call to the underlying RPC.
  8951  	// The number of results is no greater than pageSize.
  8952  	// If there are no more results, nextPageToken is empty and err is nil.
  8953  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Extension, nextPageToken string, err error)
  8954  }
  8955  
  8956  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  8957  func (it *ExtensionIterator) PageInfo() *iterator.PageInfo {
  8958  	return it.pageInfo
  8959  }
  8960  
  8961  // Next returns the next result. Its second return value is iterator.Done if there are no more
  8962  // results. Once Next returns Done, all subsequent calls will return Done.
  8963  func (it *ExtensionIterator) Next() (*aiplatformpb.Extension, error) {
  8964  	var item *aiplatformpb.Extension
  8965  	if err := it.nextFunc(); err != nil {
  8966  		return item, err
  8967  	}
  8968  	item = it.items[0]
  8969  	it.items = it.items[1:]
  8970  	return item, nil
  8971  }
  8972  
  8973  func (it *ExtensionIterator) bufLen() int {
  8974  	return len(it.items)
  8975  }
  8976  
  8977  func (it *ExtensionIterator) takeBuf() interface{} {
  8978  	b := it.items
  8979  	it.items = nil
  8980  	return b
  8981  }
  8982  
  8983  // FeatureGroupIterator manages a stream of *aiplatformpb.FeatureGroup.
  8984  type FeatureGroupIterator struct {
  8985  	items    []*aiplatformpb.FeatureGroup
  8986  	pageInfo *iterator.PageInfo
  8987  	nextFunc func() error
  8988  
  8989  	// Response is the raw response for the current page.
  8990  	// It must be cast to the RPC response type.
  8991  	// Calling Next() or InternalFetch() updates this value.
  8992  	Response interface{}
  8993  
  8994  	// InternalFetch is for use by the Google Cloud Libraries only.
  8995  	// It is not part of the stable interface of this package.
  8996  	//
  8997  	// InternalFetch returns results from a single call to the underlying RPC.
  8998  	// The number of results is no greater than pageSize.
  8999  	// If there are no more results, nextPageToken is empty and err is nil.
  9000  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureGroup, nextPageToken string, err error)
  9001  }
  9002  
  9003  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9004  func (it *FeatureGroupIterator) PageInfo() *iterator.PageInfo {
  9005  	return it.pageInfo
  9006  }
  9007  
  9008  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9009  // results. Once Next returns Done, all subsequent calls will return Done.
  9010  func (it *FeatureGroupIterator) Next() (*aiplatformpb.FeatureGroup, error) {
  9011  	var item *aiplatformpb.FeatureGroup
  9012  	if err := it.nextFunc(); err != nil {
  9013  		return item, err
  9014  	}
  9015  	item = it.items[0]
  9016  	it.items = it.items[1:]
  9017  	return item, nil
  9018  }
  9019  
  9020  func (it *FeatureGroupIterator) bufLen() int {
  9021  	return len(it.items)
  9022  }
  9023  
  9024  func (it *FeatureGroupIterator) takeBuf() interface{} {
  9025  	b := it.items
  9026  	it.items = nil
  9027  	return b
  9028  }
  9029  
  9030  // FeatureIterator manages a stream of *aiplatformpb.Feature.
  9031  type FeatureIterator struct {
  9032  	items    []*aiplatformpb.Feature
  9033  	pageInfo *iterator.PageInfo
  9034  	nextFunc func() error
  9035  
  9036  	// Response is the raw response for the current page.
  9037  	// It must be cast to the RPC response type.
  9038  	// Calling Next() or InternalFetch() updates this value.
  9039  	Response interface{}
  9040  
  9041  	// InternalFetch is for use by the Google Cloud Libraries only.
  9042  	// It is not part of the stable interface of this package.
  9043  	//
  9044  	// InternalFetch returns results from a single call to the underlying RPC.
  9045  	// The number of results is no greater than pageSize.
  9046  	// If there are no more results, nextPageToken is empty and err is nil.
  9047  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Feature, nextPageToken string, err error)
  9048  }
  9049  
  9050  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9051  func (it *FeatureIterator) PageInfo() *iterator.PageInfo {
  9052  	return it.pageInfo
  9053  }
  9054  
  9055  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9056  // results. Once Next returns Done, all subsequent calls will return Done.
  9057  func (it *FeatureIterator) Next() (*aiplatformpb.Feature, error) {
  9058  	var item *aiplatformpb.Feature
  9059  	if err := it.nextFunc(); err != nil {
  9060  		return item, err
  9061  	}
  9062  	item = it.items[0]
  9063  	it.items = it.items[1:]
  9064  	return item, nil
  9065  }
  9066  
  9067  func (it *FeatureIterator) bufLen() int {
  9068  	return len(it.items)
  9069  }
  9070  
  9071  func (it *FeatureIterator) takeBuf() interface{} {
  9072  	b := it.items
  9073  	it.items = nil
  9074  	return b
  9075  }
  9076  
  9077  // FeatureMonitorIterator manages a stream of *aiplatformpb.FeatureMonitor.
  9078  type FeatureMonitorIterator struct {
  9079  	items    []*aiplatformpb.FeatureMonitor
  9080  	pageInfo *iterator.PageInfo
  9081  	nextFunc func() error
  9082  
  9083  	// Response is the raw response for the current page.
  9084  	// It must be cast to the RPC response type.
  9085  	// Calling Next() or InternalFetch() updates this value.
  9086  	Response interface{}
  9087  
  9088  	// InternalFetch is for use by the Google Cloud Libraries only.
  9089  	// It is not part of the stable interface of this package.
  9090  	//
  9091  	// InternalFetch returns results from a single call to the underlying RPC.
  9092  	// The number of results is no greater than pageSize.
  9093  	// If there are no more results, nextPageToken is empty and err is nil.
  9094  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureMonitor, nextPageToken string, err error)
  9095  }
  9096  
  9097  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9098  func (it *FeatureMonitorIterator) PageInfo() *iterator.PageInfo {
  9099  	return it.pageInfo
  9100  }
  9101  
  9102  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9103  // results. Once Next returns Done, all subsequent calls will return Done.
  9104  func (it *FeatureMonitorIterator) Next() (*aiplatformpb.FeatureMonitor, error) {
  9105  	var item *aiplatformpb.FeatureMonitor
  9106  	if err := it.nextFunc(); err != nil {
  9107  		return item, err
  9108  	}
  9109  	item = it.items[0]
  9110  	it.items = it.items[1:]
  9111  	return item, nil
  9112  }
  9113  
  9114  func (it *FeatureMonitorIterator) bufLen() int {
  9115  	return len(it.items)
  9116  }
  9117  
  9118  func (it *FeatureMonitorIterator) takeBuf() interface{} {
  9119  	b := it.items
  9120  	it.items = nil
  9121  	return b
  9122  }
  9123  
  9124  // FeatureMonitorJobIterator manages a stream of *aiplatformpb.FeatureMonitorJob.
  9125  type FeatureMonitorJobIterator struct {
  9126  	items    []*aiplatformpb.FeatureMonitorJob
  9127  	pageInfo *iterator.PageInfo
  9128  	nextFunc func() error
  9129  
  9130  	// Response is the raw response for the current page.
  9131  	// It must be cast to the RPC response type.
  9132  	// Calling Next() or InternalFetch() updates this value.
  9133  	Response interface{}
  9134  
  9135  	// InternalFetch is for use by the Google Cloud Libraries only.
  9136  	// It is not part of the stable interface of this package.
  9137  	//
  9138  	// InternalFetch returns results from a single call to the underlying RPC.
  9139  	// The number of results is no greater than pageSize.
  9140  	// If there are no more results, nextPageToken is empty and err is nil.
  9141  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureMonitorJob, nextPageToken string, err error)
  9142  }
  9143  
  9144  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9145  func (it *FeatureMonitorJobIterator) PageInfo() *iterator.PageInfo {
  9146  	return it.pageInfo
  9147  }
  9148  
  9149  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9150  // results. Once Next returns Done, all subsequent calls will return Done.
  9151  func (it *FeatureMonitorJobIterator) Next() (*aiplatformpb.FeatureMonitorJob, error) {
  9152  	var item *aiplatformpb.FeatureMonitorJob
  9153  	if err := it.nextFunc(); err != nil {
  9154  		return item, err
  9155  	}
  9156  	item = it.items[0]
  9157  	it.items = it.items[1:]
  9158  	return item, nil
  9159  }
  9160  
  9161  func (it *FeatureMonitorJobIterator) bufLen() int {
  9162  	return len(it.items)
  9163  }
  9164  
  9165  func (it *FeatureMonitorJobIterator) takeBuf() interface{} {
  9166  	b := it.items
  9167  	it.items = nil
  9168  	return b
  9169  }
  9170  
  9171  // FeatureOnlineStoreIterator manages a stream of *aiplatformpb.FeatureOnlineStore.
  9172  type FeatureOnlineStoreIterator struct {
  9173  	items    []*aiplatformpb.FeatureOnlineStore
  9174  	pageInfo *iterator.PageInfo
  9175  	nextFunc func() error
  9176  
  9177  	// Response is the raw response for the current page.
  9178  	// It must be cast to the RPC response type.
  9179  	// Calling Next() or InternalFetch() updates this value.
  9180  	Response interface{}
  9181  
  9182  	// InternalFetch is for use by the Google Cloud Libraries only.
  9183  	// It is not part of the stable interface of this package.
  9184  	//
  9185  	// InternalFetch returns results from a single call to the underlying RPC.
  9186  	// The number of results is no greater than pageSize.
  9187  	// If there are no more results, nextPageToken is empty and err is nil.
  9188  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureOnlineStore, nextPageToken string, err error)
  9189  }
  9190  
  9191  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9192  func (it *FeatureOnlineStoreIterator) PageInfo() *iterator.PageInfo {
  9193  	return it.pageInfo
  9194  }
  9195  
  9196  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9197  // results. Once Next returns Done, all subsequent calls will return Done.
  9198  func (it *FeatureOnlineStoreIterator) Next() (*aiplatformpb.FeatureOnlineStore, error) {
  9199  	var item *aiplatformpb.FeatureOnlineStore
  9200  	if err := it.nextFunc(); err != nil {
  9201  		return item, err
  9202  	}
  9203  	item = it.items[0]
  9204  	it.items = it.items[1:]
  9205  	return item, nil
  9206  }
  9207  
  9208  func (it *FeatureOnlineStoreIterator) bufLen() int {
  9209  	return len(it.items)
  9210  }
  9211  
  9212  func (it *FeatureOnlineStoreIterator) takeBuf() interface{} {
  9213  	b := it.items
  9214  	it.items = nil
  9215  	return b
  9216  }
  9217  
  9218  // FeatureViewIterator manages a stream of *aiplatformpb.FeatureView.
  9219  type FeatureViewIterator struct {
  9220  	items    []*aiplatformpb.FeatureView
  9221  	pageInfo *iterator.PageInfo
  9222  	nextFunc func() error
  9223  
  9224  	// Response is the raw response for the current page.
  9225  	// It must be cast to the RPC response type.
  9226  	// Calling Next() or InternalFetch() updates this value.
  9227  	Response interface{}
  9228  
  9229  	// InternalFetch is for use by the Google Cloud Libraries only.
  9230  	// It is not part of the stable interface of this package.
  9231  	//
  9232  	// InternalFetch returns results from a single call to the underlying RPC.
  9233  	// The number of results is no greater than pageSize.
  9234  	// If there are no more results, nextPageToken is empty and err is nil.
  9235  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureView, nextPageToken string, err error)
  9236  }
  9237  
  9238  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9239  func (it *FeatureViewIterator) PageInfo() *iterator.PageInfo {
  9240  	return it.pageInfo
  9241  }
  9242  
  9243  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9244  // results. Once Next returns Done, all subsequent calls will return Done.
  9245  func (it *FeatureViewIterator) Next() (*aiplatformpb.FeatureView, error) {
  9246  	var item *aiplatformpb.FeatureView
  9247  	if err := it.nextFunc(); err != nil {
  9248  		return item, err
  9249  	}
  9250  	item = it.items[0]
  9251  	it.items = it.items[1:]
  9252  	return item, nil
  9253  }
  9254  
  9255  func (it *FeatureViewIterator) bufLen() int {
  9256  	return len(it.items)
  9257  }
  9258  
  9259  func (it *FeatureViewIterator) takeBuf() interface{} {
  9260  	b := it.items
  9261  	it.items = nil
  9262  	return b
  9263  }
  9264  
  9265  // FeatureViewSyncIterator manages a stream of *aiplatformpb.FeatureViewSync.
  9266  type FeatureViewSyncIterator struct {
  9267  	items    []*aiplatformpb.FeatureViewSync
  9268  	pageInfo *iterator.PageInfo
  9269  	nextFunc func() error
  9270  
  9271  	// Response is the raw response for the current page.
  9272  	// It must be cast to the RPC response type.
  9273  	// Calling Next() or InternalFetch() updates this value.
  9274  	Response interface{}
  9275  
  9276  	// InternalFetch is for use by the Google Cloud Libraries only.
  9277  	// It is not part of the stable interface of this package.
  9278  	//
  9279  	// InternalFetch returns results from a single call to the underlying RPC.
  9280  	// The number of results is no greater than pageSize.
  9281  	// If there are no more results, nextPageToken is empty and err is nil.
  9282  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.FeatureViewSync, nextPageToken string, err error)
  9283  }
  9284  
  9285  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9286  func (it *FeatureViewSyncIterator) PageInfo() *iterator.PageInfo {
  9287  	return it.pageInfo
  9288  }
  9289  
  9290  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9291  // results. Once Next returns Done, all subsequent calls will return Done.
  9292  func (it *FeatureViewSyncIterator) Next() (*aiplatformpb.FeatureViewSync, error) {
  9293  	var item *aiplatformpb.FeatureViewSync
  9294  	if err := it.nextFunc(); err != nil {
  9295  		return item, err
  9296  	}
  9297  	item = it.items[0]
  9298  	it.items = it.items[1:]
  9299  	return item, nil
  9300  }
  9301  
  9302  func (it *FeatureViewSyncIterator) bufLen() int {
  9303  	return len(it.items)
  9304  }
  9305  
  9306  func (it *FeatureViewSyncIterator) takeBuf() interface{} {
  9307  	b := it.items
  9308  	it.items = nil
  9309  	return b
  9310  }
  9311  
  9312  // FeaturestoreIterator manages a stream of *aiplatformpb.Featurestore.
  9313  type FeaturestoreIterator struct {
  9314  	items    []*aiplatformpb.Featurestore
  9315  	pageInfo *iterator.PageInfo
  9316  	nextFunc func() error
  9317  
  9318  	// Response is the raw response for the current page.
  9319  	// It must be cast to the RPC response type.
  9320  	// Calling Next() or InternalFetch() updates this value.
  9321  	Response interface{}
  9322  
  9323  	// InternalFetch is for use by the Google Cloud Libraries only.
  9324  	// It is not part of the stable interface of this package.
  9325  	//
  9326  	// InternalFetch returns results from a single call to the underlying RPC.
  9327  	// The number of results is no greater than pageSize.
  9328  	// If there are no more results, nextPageToken is empty and err is nil.
  9329  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Featurestore, nextPageToken string, err error)
  9330  }
  9331  
  9332  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9333  func (it *FeaturestoreIterator) PageInfo() *iterator.PageInfo {
  9334  	return it.pageInfo
  9335  }
  9336  
  9337  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9338  // results. Once Next returns Done, all subsequent calls will return Done.
  9339  func (it *FeaturestoreIterator) Next() (*aiplatformpb.Featurestore, error) {
  9340  	var item *aiplatformpb.Featurestore
  9341  	if err := it.nextFunc(); err != nil {
  9342  		return item, err
  9343  	}
  9344  	item = it.items[0]
  9345  	it.items = it.items[1:]
  9346  	return item, nil
  9347  }
  9348  
  9349  func (it *FeaturestoreIterator) bufLen() int {
  9350  	return len(it.items)
  9351  }
  9352  
  9353  func (it *FeaturestoreIterator) takeBuf() interface{} {
  9354  	b := it.items
  9355  	it.items = nil
  9356  	return b
  9357  }
  9358  
  9359  // HyperparameterTuningJobIterator manages a stream of *aiplatformpb.HyperparameterTuningJob.
  9360  type HyperparameterTuningJobIterator struct {
  9361  	items    []*aiplatformpb.HyperparameterTuningJob
  9362  	pageInfo *iterator.PageInfo
  9363  	nextFunc func() error
  9364  
  9365  	// Response is the raw response for the current page.
  9366  	// It must be cast to the RPC response type.
  9367  	// Calling Next() or InternalFetch() updates this value.
  9368  	Response interface{}
  9369  
  9370  	// InternalFetch is for use by the Google Cloud Libraries only.
  9371  	// It is not part of the stable interface of this package.
  9372  	//
  9373  	// InternalFetch returns results from a single call to the underlying RPC.
  9374  	// The number of results is no greater than pageSize.
  9375  	// If there are no more results, nextPageToken is empty and err is nil.
  9376  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.HyperparameterTuningJob, nextPageToken string, err error)
  9377  }
  9378  
  9379  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9380  func (it *HyperparameterTuningJobIterator) PageInfo() *iterator.PageInfo {
  9381  	return it.pageInfo
  9382  }
  9383  
  9384  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9385  // results. Once Next returns Done, all subsequent calls will return Done.
  9386  func (it *HyperparameterTuningJobIterator) Next() (*aiplatformpb.HyperparameterTuningJob, error) {
  9387  	var item *aiplatformpb.HyperparameterTuningJob
  9388  	if err := it.nextFunc(); err != nil {
  9389  		return item, err
  9390  	}
  9391  	item = it.items[0]
  9392  	it.items = it.items[1:]
  9393  	return item, nil
  9394  }
  9395  
  9396  func (it *HyperparameterTuningJobIterator) bufLen() int {
  9397  	return len(it.items)
  9398  }
  9399  
  9400  func (it *HyperparameterTuningJobIterator) takeBuf() interface{} {
  9401  	b := it.items
  9402  	it.items = nil
  9403  	return b
  9404  }
  9405  
  9406  // IndexEndpointIterator manages a stream of *aiplatformpb.IndexEndpoint.
  9407  type IndexEndpointIterator struct {
  9408  	items    []*aiplatformpb.IndexEndpoint
  9409  	pageInfo *iterator.PageInfo
  9410  	nextFunc func() error
  9411  
  9412  	// Response is the raw response for the current page.
  9413  	// It must be cast to the RPC response type.
  9414  	// Calling Next() or InternalFetch() updates this value.
  9415  	Response interface{}
  9416  
  9417  	// InternalFetch is for use by the Google Cloud Libraries only.
  9418  	// It is not part of the stable interface of this package.
  9419  	//
  9420  	// InternalFetch returns results from a single call to the underlying RPC.
  9421  	// The number of results is no greater than pageSize.
  9422  	// If there are no more results, nextPageToken is empty and err is nil.
  9423  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.IndexEndpoint, nextPageToken string, err error)
  9424  }
  9425  
  9426  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9427  func (it *IndexEndpointIterator) PageInfo() *iterator.PageInfo {
  9428  	return it.pageInfo
  9429  }
  9430  
  9431  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9432  // results. Once Next returns Done, all subsequent calls will return Done.
  9433  func (it *IndexEndpointIterator) Next() (*aiplatformpb.IndexEndpoint, error) {
  9434  	var item *aiplatformpb.IndexEndpoint
  9435  	if err := it.nextFunc(); err != nil {
  9436  		return item, err
  9437  	}
  9438  	item = it.items[0]
  9439  	it.items = it.items[1:]
  9440  	return item, nil
  9441  }
  9442  
  9443  func (it *IndexEndpointIterator) bufLen() int {
  9444  	return len(it.items)
  9445  }
  9446  
  9447  func (it *IndexEndpointIterator) takeBuf() interface{} {
  9448  	b := it.items
  9449  	it.items = nil
  9450  	return b
  9451  }
  9452  
  9453  // IndexIterator manages a stream of *aiplatformpb.Index.
  9454  type IndexIterator struct {
  9455  	items    []*aiplatformpb.Index
  9456  	pageInfo *iterator.PageInfo
  9457  	nextFunc func() error
  9458  
  9459  	// Response is the raw response for the current page.
  9460  	// It must be cast to the RPC response type.
  9461  	// Calling Next() or InternalFetch() updates this value.
  9462  	Response interface{}
  9463  
  9464  	// InternalFetch is for use by the Google Cloud Libraries only.
  9465  	// It is not part of the stable interface of this package.
  9466  	//
  9467  	// InternalFetch returns results from a single call to the underlying RPC.
  9468  	// The number of results is no greater than pageSize.
  9469  	// If there are no more results, nextPageToken is empty and err is nil.
  9470  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Index, nextPageToken string, err error)
  9471  }
  9472  
  9473  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9474  func (it *IndexIterator) PageInfo() *iterator.PageInfo {
  9475  	return it.pageInfo
  9476  }
  9477  
  9478  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9479  // results. Once Next returns Done, all subsequent calls will return Done.
  9480  func (it *IndexIterator) Next() (*aiplatformpb.Index, error) {
  9481  	var item *aiplatformpb.Index
  9482  	if err := it.nextFunc(); err != nil {
  9483  		return item, err
  9484  	}
  9485  	item = it.items[0]
  9486  	it.items = it.items[1:]
  9487  	return item, nil
  9488  }
  9489  
  9490  func (it *IndexIterator) bufLen() int {
  9491  	return len(it.items)
  9492  }
  9493  
  9494  func (it *IndexIterator) takeBuf() interface{} {
  9495  	b := it.items
  9496  	it.items = nil
  9497  	return b
  9498  }
  9499  
  9500  // LocationIterator manages a stream of *locationpb.Location.
  9501  type LocationIterator struct {
  9502  	items    []*locationpb.Location
  9503  	pageInfo *iterator.PageInfo
  9504  	nextFunc func() error
  9505  
  9506  	// Response is the raw response for the current page.
  9507  	// It must be cast to the RPC response type.
  9508  	// Calling Next() or InternalFetch() updates this value.
  9509  	Response interface{}
  9510  
  9511  	// InternalFetch is for use by the Google Cloud Libraries only.
  9512  	// It is not part of the stable interface of this package.
  9513  	//
  9514  	// InternalFetch returns results from a single call to the underlying RPC.
  9515  	// The number of results is no greater than pageSize.
  9516  	// If there are no more results, nextPageToken is empty and err is nil.
  9517  	InternalFetch func(pageSize int, pageToken string) (results []*locationpb.Location, nextPageToken string, err error)
  9518  }
  9519  
  9520  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9521  func (it *LocationIterator) PageInfo() *iterator.PageInfo {
  9522  	return it.pageInfo
  9523  }
  9524  
  9525  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9526  // results. Once Next returns Done, all subsequent calls will return Done.
  9527  func (it *LocationIterator) Next() (*locationpb.Location, error) {
  9528  	var item *locationpb.Location
  9529  	if err := it.nextFunc(); err != nil {
  9530  		return item, err
  9531  	}
  9532  	item = it.items[0]
  9533  	it.items = it.items[1:]
  9534  	return item, nil
  9535  }
  9536  
  9537  func (it *LocationIterator) bufLen() int {
  9538  	return len(it.items)
  9539  }
  9540  
  9541  func (it *LocationIterator) takeBuf() interface{} {
  9542  	b := it.items
  9543  	it.items = nil
  9544  	return b
  9545  }
  9546  
  9547  // MemoryIterator manages a stream of *aiplatformpb.Memory.
  9548  type MemoryIterator struct {
  9549  	items    []*aiplatformpb.Memory
  9550  	pageInfo *iterator.PageInfo
  9551  	nextFunc func() error
  9552  
  9553  	// Response is the raw response for the current page.
  9554  	// It must be cast to the RPC response type.
  9555  	// Calling Next() or InternalFetch() updates this value.
  9556  	Response interface{}
  9557  
  9558  	// InternalFetch is for use by the Google Cloud Libraries only.
  9559  	// It is not part of the stable interface of this package.
  9560  	//
  9561  	// InternalFetch returns results from a single call to the underlying RPC.
  9562  	// The number of results is no greater than pageSize.
  9563  	// If there are no more results, nextPageToken is empty and err is nil.
  9564  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Memory, nextPageToken string, err error)
  9565  }
  9566  
  9567  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9568  func (it *MemoryIterator) PageInfo() *iterator.PageInfo {
  9569  	return it.pageInfo
  9570  }
  9571  
  9572  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9573  // results. Once Next returns Done, all subsequent calls will return Done.
  9574  func (it *MemoryIterator) Next() (*aiplatformpb.Memory, error) {
  9575  	var item *aiplatformpb.Memory
  9576  	if err := it.nextFunc(); err != nil {
  9577  		return item, err
  9578  	}
  9579  	item = it.items[0]
  9580  	it.items = it.items[1:]
  9581  	return item, nil
  9582  }
  9583  
  9584  func (it *MemoryIterator) bufLen() int {
  9585  	return len(it.items)
  9586  }
  9587  
  9588  func (it *MemoryIterator) takeBuf() interface{} {
  9589  	b := it.items
  9590  	it.items = nil
  9591  	return b
  9592  }
  9593  
  9594  // MetadataSchemaIterator manages a stream of *aiplatformpb.MetadataSchema.
  9595  type MetadataSchemaIterator struct {
  9596  	items    []*aiplatformpb.MetadataSchema
  9597  	pageInfo *iterator.PageInfo
  9598  	nextFunc func() error
  9599  
  9600  	// Response is the raw response for the current page.
  9601  	// It must be cast to the RPC response type.
  9602  	// Calling Next() or InternalFetch() updates this value.
  9603  	Response interface{}
  9604  
  9605  	// InternalFetch is for use by the Google Cloud Libraries only.
  9606  	// It is not part of the stable interface of this package.
  9607  	//
  9608  	// InternalFetch returns results from a single call to the underlying RPC.
  9609  	// The number of results is no greater than pageSize.
  9610  	// If there are no more results, nextPageToken is empty and err is nil.
  9611  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MetadataSchema, nextPageToken string, err error)
  9612  }
  9613  
  9614  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9615  func (it *MetadataSchemaIterator) PageInfo() *iterator.PageInfo {
  9616  	return it.pageInfo
  9617  }
  9618  
  9619  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9620  // results. Once Next returns Done, all subsequent calls will return Done.
  9621  func (it *MetadataSchemaIterator) Next() (*aiplatformpb.MetadataSchema, error) {
  9622  	var item *aiplatformpb.MetadataSchema
  9623  	if err := it.nextFunc(); err != nil {
  9624  		return item, err
  9625  	}
  9626  	item = it.items[0]
  9627  	it.items = it.items[1:]
  9628  	return item, nil
  9629  }
  9630  
  9631  func (it *MetadataSchemaIterator) bufLen() int {
  9632  	return len(it.items)
  9633  }
  9634  
  9635  func (it *MetadataSchemaIterator) takeBuf() interface{} {
  9636  	b := it.items
  9637  	it.items = nil
  9638  	return b
  9639  }
  9640  
  9641  // MetadataStoreIterator manages a stream of *aiplatformpb.MetadataStore.
  9642  type MetadataStoreIterator struct {
  9643  	items    []*aiplatformpb.MetadataStore
  9644  	pageInfo *iterator.PageInfo
  9645  	nextFunc func() error
  9646  
  9647  	// Response is the raw response for the current page.
  9648  	// It must be cast to the RPC response type.
  9649  	// Calling Next() or InternalFetch() updates this value.
  9650  	Response interface{}
  9651  
  9652  	// InternalFetch is for use by the Google Cloud Libraries only.
  9653  	// It is not part of the stable interface of this package.
  9654  	//
  9655  	// InternalFetch returns results from a single call to the underlying RPC.
  9656  	// The number of results is no greater than pageSize.
  9657  	// If there are no more results, nextPageToken is empty and err is nil.
  9658  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MetadataStore, nextPageToken string, err error)
  9659  }
  9660  
  9661  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9662  func (it *MetadataStoreIterator) PageInfo() *iterator.PageInfo {
  9663  	return it.pageInfo
  9664  }
  9665  
  9666  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9667  // results. Once Next returns Done, all subsequent calls will return Done.
  9668  func (it *MetadataStoreIterator) Next() (*aiplatformpb.MetadataStore, error) {
  9669  	var item *aiplatformpb.MetadataStore
  9670  	if err := it.nextFunc(); err != nil {
  9671  		return item, err
  9672  	}
  9673  	item = it.items[0]
  9674  	it.items = it.items[1:]
  9675  	return item, nil
  9676  }
  9677  
  9678  func (it *MetadataStoreIterator) bufLen() int {
  9679  	return len(it.items)
  9680  }
  9681  
  9682  func (it *MetadataStoreIterator) takeBuf() interface{} {
  9683  	b := it.items
  9684  	it.items = nil
  9685  	return b
  9686  }
  9687  
  9688  // MigratableResourceIterator manages a stream of *aiplatformpb.MigratableResource.
  9689  type MigratableResourceIterator struct {
  9690  	items    []*aiplatformpb.MigratableResource
  9691  	pageInfo *iterator.PageInfo
  9692  	nextFunc func() error
  9693  
  9694  	// Response is the raw response for the current page.
  9695  	// It must be cast to the RPC response type.
  9696  	// Calling Next() or InternalFetch() updates this value.
  9697  	Response interface{}
  9698  
  9699  	// InternalFetch is for use by the Google Cloud Libraries only.
  9700  	// It is not part of the stable interface of this package.
  9701  	//
  9702  	// InternalFetch returns results from a single call to the underlying RPC.
  9703  	// The number of results is no greater than pageSize.
  9704  	// If there are no more results, nextPageToken is empty and err is nil.
  9705  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.MigratableResource, nextPageToken string, err error)
  9706  }
  9707  
  9708  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9709  func (it *MigratableResourceIterator) PageInfo() *iterator.PageInfo {
  9710  	return it.pageInfo
  9711  }
  9712  
  9713  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9714  // results. Once Next returns Done, all subsequent calls will return Done.
  9715  func (it *MigratableResourceIterator) Next() (*aiplatformpb.MigratableResource, error) {
  9716  	var item *aiplatformpb.MigratableResource
  9717  	if err := it.nextFunc(); err != nil {
  9718  		return item, err
  9719  	}
  9720  	item = it.items[0]
  9721  	it.items = it.items[1:]
  9722  	return item, nil
  9723  }
  9724  
  9725  func (it *MigratableResourceIterator) bufLen() int {
  9726  	return len(it.items)
  9727  }
  9728  
  9729  func (it *MigratableResourceIterator) takeBuf() interface{} {
  9730  	b := it.items
  9731  	it.items = nil
  9732  	return b
  9733  }
  9734  
  9735  // ModelDeploymentMonitoringJobIterator manages a stream of *aiplatformpb.ModelDeploymentMonitoringJob.
  9736  type ModelDeploymentMonitoringJobIterator struct {
  9737  	items    []*aiplatformpb.ModelDeploymentMonitoringJob
  9738  	pageInfo *iterator.PageInfo
  9739  	nextFunc func() error
  9740  
  9741  	// Response is the raw response for the current page.
  9742  	// It must be cast to the RPC response type.
  9743  	// Calling Next() or InternalFetch() updates this value.
  9744  	Response interface{}
  9745  
  9746  	// InternalFetch is for use by the Google Cloud Libraries only.
  9747  	// It is not part of the stable interface of this package.
  9748  	//
  9749  	// InternalFetch returns results from a single call to the underlying RPC.
  9750  	// The number of results is no greater than pageSize.
  9751  	// If there are no more results, nextPageToken is empty and err is nil.
  9752  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelDeploymentMonitoringJob, nextPageToken string, err error)
  9753  }
  9754  
  9755  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9756  func (it *ModelDeploymentMonitoringJobIterator) PageInfo() *iterator.PageInfo {
  9757  	return it.pageInfo
  9758  }
  9759  
  9760  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9761  // results. Once Next returns Done, all subsequent calls will return Done.
  9762  func (it *ModelDeploymentMonitoringJobIterator) Next() (*aiplatformpb.ModelDeploymentMonitoringJob, error) {
  9763  	var item *aiplatformpb.ModelDeploymentMonitoringJob
  9764  	if err := it.nextFunc(); err != nil {
  9765  		return item, err
  9766  	}
  9767  	item = it.items[0]
  9768  	it.items = it.items[1:]
  9769  	return item, nil
  9770  }
  9771  
  9772  func (it *ModelDeploymentMonitoringJobIterator) bufLen() int {
  9773  	return len(it.items)
  9774  }
  9775  
  9776  func (it *ModelDeploymentMonitoringJobIterator) takeBuf() interface{} {
  9777  	b := it.items
  9778  	it.items = nil
  9779  	return b
  9780  }
  9781  
  9782  // ModelEvaluationIterator manages a stream of *aiplatformpb.ModelEvaluation.
  9783  type ModelEvaluationIterator struct {
  9784  	items    []*aiplatformpb.ModelEvaluation
  9785  	pageInfo *iterator.PageInfo
  9786  	nextFunc func() error
  9787  
  9788  	// Response is the raw response for the current page.
  9789  	// It must be cast to the RPC response type.
  9790  	// Calling Next() or InternalFetch() updates this value.
  9791  	Response interface{}
  9792  
  9793  	// InternalFetch is for use by the Google Cloud Libraries only.
  9794  	// It is not part of the stable interface of this package.
  9795  	//
  9796  	// InternalFetch returns results from a single call to the underlying RPC.
  9797  	// The number of results is no greater than pageSize.
  9798  	// If there are no more results, nextPageToken is empty and err is nil.
  9799  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelEvaluation, nextPageToken string, err error)
  9800  }
  9801  
  9802  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9803  func (it *ModelEvaluationIterator) PageInfo() *iterator.PageInfo {
  9804  	return it.pageInfo
  9805  }
  9806  
  9807  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9808  // results. Once Next returns Done, all subsequent calls will return Done.
  9809  func (it *ModelEvaluationIterator) Next() (*aiplatformpb.ModelEvaluation, error) {
  9810  	var item *aiplatformpb.ModelEvaluation
  9811  	if err := it.nextFunc(); err != nil {
  9812  		return item, err
  9813  	}
  9814  	item = it.items[0]
  9815  	it.items = it.items[1:]
  9816  	return item, nil
  9817  }
  9818  
  9819  func (it *ModelEvaluationIterator) bufLen() int {
  9820  	return len(it.items)
  9821  }
  9822  
  9823  func (it *ModelEvaluationIterator) takeBuf() interface{} {
  9824  	b := it.items
  9825  	it.items = nil
  9826  	return b
  9827  }
  9828  
  9829  // ModelEvaluationSliceIterator manages a stream of *aiplatformpb.ModelEvaluationSlice.
  9830  type ModelEvaluationSliceIterator struct {
  9831  	items    []*aiplatformpb.ModelEvaluationSlice
  9832  	pageInfo *iterator.PageInfo
  9833  	nextFunc func() error
  9834  
  9835  	// Response is the raw response for the current page.
  9836  	// It must be cast to the RPC response type.
  9837  	// Calling Next() or InternalFetch() updates this value.
  9838  	Response interface{}
  9839  
  9840  	// InternalFetch is for use by the Google Cloud Libraries only.
  9841  	// It is not part of the stable interface of this package.
  9842  	//
  9843  	// InternalFetch returns results from a single call to the underlying RPC.
  9844  	// The number of results is no greater than pageSize.
  9845  	// If there are no more results, nextPageToken is empty and err is nil.
  9846  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelEvaluationSlice, nextPageToken string, err error)
  9847  }
  9848  
  9849  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9850  func (it *ModelEvaluationSliceIterator) PageInfo() *iterator.PageInfo {
  9851  	return it.pageInfo
  9852  }
  9853  
  9854  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9855  // results. Once Next returns Done, all subsequent calls will return Done.
  9856  func (it *ModelEvaluationSliceIterator) Next() (*aiplatformpb.ModelEvaluationSlice, error) {
  9857  	var item *aiplatformpb.ModelEvaluationSlice
  9858  	if err := it.nextFunc(); err != nil {
  9859  		return item, err
  9860  	}
  9861  	item = it.items[0]
  9862  	it.items = it.items[1:]
  9863  	return item, nil
  9864  }
  9865  
  9866  func (it *ModelEvaluationSliceIterator) bufLen() int {
  9867  	return len(it.items)
  9868  }
  9869  
  9870  func (it *ModelEvaluationSliceIterator) takeBuf() interface{} {
  9871  	b := it.items
  9872  	it.items = nil
  9873  	return b
  9874  }
  9875  
  9876  // ModelIterator manages a stream of *aiplatformpb.Model.
  9877  type ModelIterator struct {
  9878  	items    []*aiplatformpb.Model
  9879  	pageInfo *iterator.PageInfo
  9880  	nextFunc func() error
  9881  
  9882  	// Response is the raw response for the current page.
  9883  	// It must be cast to the RPC response type.
  9884  	// Calling Next() or InternalFetch() updates this value.
  9885  	Response interface{}
  9886  
  9887  	// InternalFetch is for use by the Google Cloud Libraries only.
  9888  	// It is not part of the stable interface of this package.
  9889  	//
  9890  	// InternalFetch returns results from a single call to the underlying RPC.
  9891  	// The number of results is no greater than pageSize.
  9892  	// If there are no more results, nextPageToken is empty and err is nil.
  9893  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Model, nextPageToken string, err error)
  9894  }
  9895  
  9896  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9897  func (it *ModelIterator) PageInfo() *iterator.PageInfo {
  9898  	return it.pageInfo
  9899  }
  9900  
  9901  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9902  // results. Once Next returns Done, all subsequent calls will return Done.
  9903  func (it *ModelIterator) Next() (*aiplatformpb.Model, error) {
  9904  	var item *aiplatformpb.Model
  9905  	if err := it.nextFunc(); err != nil {
  9906  		return item, err
  9907  	}
  9908  	item = it.items[0]
  9909  	it.items = it.items[1:]
  9910  	return item, nil
  9911  }
  9912  
  9913  func (it *ModelIterator) bufLen() int {
  9914  	return len(it.items)
  9915  }
  9916  
  9917  func (it *ModelIterator) takeBuf() interface{} {
  9918  	b := it.items
  9919  	it.items = nil
  9920  	return b
  9921  }
  9922  
  9923  // ModelMonitorIterator manages a stream of *aiplatformpb.ModelMonitor.
  9924  type ModelMonitorIterator struct {
  9925  	items    []*aiplatformpb.ModelMonitor
  9926  	pageInfo *iterator.PageInfo
  9927  	nextFunc func() error
  9928  
  9929  	// Response is the raw response for the current page.
  9930  	// It must be cast to the RPC response type.
  9931  	// Calling Next() or InternalFetch() updates this value.
  9932  	Response interface{}
  9933  
  9934  	// InternalFetch is for use by the Google Cloud Libraries only.
  9935  	// It is not part of the stable interface of this package.
  9936  	//
  9937  	// InternalFetch returns results from a single call to the underlying RPC.
  9938  	// The number of results is no greater than pageSize.
  9939  	// If there are no more results, nextPageToken is empty and err is nil.
  9940  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitor, nextPageToken string, err error)
  9941  }
  9942  
  9943  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9944  func (it *ModelMonitorIterator) PageInfo() *iterator.PageInfo {
  9945  	return it.pageInfo
  9946  }
  9947  
  9948  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9949  // results. Once Next returns Done, all subsequent calls will return Done.
  9950  func (it *ModelMonitorIterator) Next() (*aiplatformpb.ModelMonitor, error) {
  9951  	var item *aiplatformpb.ModelMonitor
  9952  	if err := it.nextFunc(); err != nil {
  9953  		return item, err
  9954  	}
  9955  	item = it.items[0]
  9956  	it.items = it.items[1:]
  9957  	return item, nil
  9958  }
  9959  
  9960  func (it *ModelMonitorIterator) bufLen() int {
  9961  	return len(it.items)
  9962  }
  9963  
  9964  func (it *ModelMonitorIterator) takeBuf() interface{} {
  9965  	b := it.items
  9966  	it.items = nil
  9967  	return b
  9968  }
  9969  
  9970  // ModelMonitoringAlertIterator manages a stream of *aiplatformpb.ModelMonitoringAlert.
  9971  type ModelMonitoringAlertIterator struct {
  9972  	items    []*aiplatformpb.ModelMonitoringAlert
  9973  	pageInfo *iterator.PageInfo
  9974  	nextFunc func() error
  9975  
  9976  	// Response is the raw response for the current page.
  9977  	// It must be cast to the RPC response type.
  9978  	// Calling Next() or InternalFetch() updates this value.
  9979  	Response interface{}
  9980  
  9981  	// InternalFetch is for use by the Google Cloud Libraries only.
  9982  	// It is not part of the stable interface of this package.
  9983  	//
  9984  	// InternalFetch returns results from a single call to the underlying RPC.
  9985  	// The number of results is no greater than pageSize.
  9986  	// If there are no more results, nextPageToken is empty and err is nil.
  9987  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitoringAlert, nextPageToken string, err error)
  9988  }
  9989  
  9990  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
  9991  func (it *ModelMonitoringAlertIterator) PageInfo() *iterator.PageInfo {
  9992  	return it.pageInfo
  9993  }
  9994  
  9995  // Next returns the next result. Its second return value is iterator.Done if there are no more
  9996  // results. Once Next returns Done, all subsequent calls will return Done.
  9997  func (it *ModelMonitoringAlertIterator) Next() (*aiplatformpb.ModelMonitoringAlert, error) {
  9998  	var item *aiplatformpb.ModelMonitoringAlert
  9999  	if err := it.nextFunc(); err != nil {
 10000  		return item, err
 10001  	}
 10002  	item = it.items[0]
 10003  	it.items = it.items[1:]
 10004  	return item, nil
 10005  }
 10006  
 10007  func (it *ModelMonitoringAlertIterator) bufLen() int {
 10008  	return len(it.items)
 10009  }
 10010  
 10011  func (it *ModelMonitoringAlertIterator) takeBuf() interface{} {
 10012  	b := it.items
 10013  	it.items = nil
 10014  	return b
 10015  }
 10016  
 10017  // ModelMonitoringJobIterator manages a stream of *aiplatformpb.ModelMonitoringJob.
 10018  type ModelMonitoringJobIterator struct {
 10019  	items    []*aiplatformpb.ModelMonitoringJob
 10020  	pageInfo *iterator.PageInfo
 10021  	nextFunc func() error
 10022  
 10023  	// Response is the raw response for the current page.
 10024  	// It must be cast to the RPC response type.
 10025  	// Calling Next() or InternalFetch() updates this value.
 10026  	Response interface{}
 10027  
 10028  	// InternalFetch is for use by the Google Cloud Libraries only.
 10029  	// It is not part of the stable interface of this package.
 10030  	//
 10031  	// InternalFetch returns results from a single call to the underlying RPC.
 10032  	// The number of results is no greater than pageSize.
 10033  	// If there are no more results, nextPageToken is empty and err is nil.
 10034  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitoringJob, nextPageToken string, err error)
 10035  }
 10036  
 10037  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10038  func (it *ModelMonitoringJobIterator) PageInfo() *iterator.PageInfo {
 10039  	return it.pageInfo
 10040  }
 10041  
 10042  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10043  // results. Once Next returns Done, all subsequent calls will return Done.
 10044  func (it *ModelMonitoringJobIterator) Next() (*aiplatformpb.ModelMonitoringJob, error) {
 10045  	var item *aiplatformpb.ModelMonitoringJob
 10046  	if err := it.nextFunc(); err != nil {
 10047  		return item, err
 10048  	}
 10049  	item = it.items[0]
 10050  	it.items = it.items[1:]
 10051  	return item, nil
 10052  }
 10053  
 10054  func (it *ModelMonitoringJobIterator) bufLen() int {
 10055  	return len(it.items)
 10056  }
 10057  
 10058  func (it *ModelMonitoringJobIterator) takeBuf() interface{} {
 10059  	b := it.items
 10060  	it.items = nil
 10061  	return b
 10062  }
 10063  
 10064  // ModelMonitoringStatsAnomaliesIterator manages a stream of *aiplatformpb.ModelMonitoringStatsAnomalies.
 10065  type ModelMonitoringStatsAnomaliesIterator struct {
 10066  	items    []*aiplatformpb.ModelMonitoringStatsAnomalies
 10067  	pageInfo *iterator.PageInfo
 10068  	nextFunc func() error
 10069  
 10070  	// Response is the raw response for the current page.
 10071  	// It must be cast to the RPC response type.
 10072  	// Calling Next() or InternalFetch() updates this value.
 10073  	Response interface{}
 10074  
 10075  	// InternalFetch is for use by the Google Cloud Libraries only.
 10076  	// It is not part of the stable interface of this package.
 10077  	//
 10078  	// InternalFetch returns results from a single call to the underlying RPC.
 10079  	// The number of results is no greater than pageSize.
 10080  	// If there are no more results, nextPageToken is empty and err is nil.
 10081  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitoringStatsAnomalies, nextPageToken string, err error)
 10082  }
 10083  
 10084  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10085  func (it *ModelMonitoringStatsAnomaliesIterator) PageInfo() *iterator.PageInfo {
 10086  	return it.pageInfo
 10087  }
 10088  
 10089  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10090  // results. Once Next returns Done, all subsequent calls will return Done.
 10091  func (it *ModelMonitoringStatsAnomaliesIterator) Next() (*aiplatformpb.ModelMonitoringStatsAnomalies, error) {
 10092  	var item *aiplatformpb.ModelMonitoringStatsAnomalies
 10093  	if err := it.nextFunc(); err != nil {
 10094  		return item, err
 10095  	}
 10096  	item = it.items[0]
 10097  	it.items = it.items[1:]
 10098  	return item, nil
 10099  }
 10100  
 10101  func (it *ModelMonitoringStatsAnomaliesIterator) bufLen() int {
 10102  	return len(it.items)
 10103  }
 10104  
 10105  func (it *ModelMonitoringStatsAnomaliesIterator) takeBuf() interface{} {
 10106  	b := it.items
 10107  	it.items = nil
 10108  	return b
 10109  }
 10110  
 10111  // ModelMonitoringStatsIterator manages a stream of *aiplatformpb.ModelMonitoringStats.
 10112  type ModelMonitoringStatsIterator struct {
 10113  	items    []*aiplatformpb.ModelMonitoringStats
 10114  	pageInfo *iterator.PageInfo
 10115  	nextFunc func() error
 10116  
 10117  	// Response is the raw response for the current page.
 10118  	// It must be cast to the RPC response type.
 10119  	// Calling Next() or InternalFetch() updates this value.
 10120  	Response interface{}
 10121  
 10122  	// InternalFetch is for use by the Google Cloud Libraries only.
 10123  	// It is not part of the stable interface of this package.
 10124  	//
 10125  	// InternalFetch returns results from a single call to the underlying RPC.
 10126  	// The number of results is no greater than pageSize.
 10127  	// If there are no more results, nextPageToken is empty and err is nil.
 10128  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelMonitoringStats, nextPageToken string, err error)
 10129  }
 10130  
 10131  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10132  func (it *ModelMonitoringStatsIterator) PageInfo() *iterator.PageInfo {
 10133  	return it.pageInfo
 10134  }
 10135  
 10136  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10137  // results. Once Next returns Done, all subsequent calls will return Done.
 10138  func (it *ModelMonitoringStatsIterator) Next() (*aiplatformpb.ModelMonitoringStats, error) {
 10139  	var item *aiplatformpb.ModelMonitoringStats
 10140  	if err := it.nextFunc(); err != nil {
 10141  		return item, err
 10142  	}
 10143  	item = it.items[0]
 10144  	it.items = it.items[1:]
 10145  	return item, nil
 10146  }
 10147  
 10148  func (it *ModelMonitoringStatsIterator) bufLen() int {
 10149  	return len(it.items)
 10150  }
 10151  
 10152  func (it *ModelMonitoringStatsIterator) takeBuf() interface{} {
 10153  	b := it.items
 10154  	it.items = nil
 10155  	return b
 10156  }
 10157  
 10158  // ModelVersionCheckpointIterator manages a stream of *aiplatformpb.ModelVersionCheckpoint.
 10159  type ModelVersionCheckpointIterator struct {
 10160  	items    []*aiplatformpb.ModelVersionCheckpoint
 10161  	pageInfo *iterator.PageInfo
 10162  	nextFunc func() error
 10163  
 10164  	// Response is the raw response for the current page.
 10165  	// It must be cast to the RPC response type.
 10166  	// Calling Next() or InternalFetch() updates this value.
 10167  	Response interface{}
 10168  
 10169  	// InternalFetch is for use by the Google Cloud Libraries only.
 10170  	// It is not part of the stable interface of this package.
 10171  	//
 10172  	// InternalFetch returns results from a single call to the underlying RPC.
 10173  	// The number of results is no greater than pageSize.
 10174  	// If there are no more results, nextPageToken is empty and err is nil.
 10175  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ModelVersionCheckpoint, nextPageToken string, err error)
 10176  }
 10177  
 10178  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10179  func (it *ModelVersionCheckpointIterator) PageInfo() *iterator.PageInfo {
 10180  	return it.pageInfo
 10181  }
 10182  
 10183  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10184  // results. Once Next returns Done, all subsequent calls will return Done.
 10185  func (it *ModelVersionCheckpointIterator) Next() (*aiplatformpb.ModelVersionCheckpoint, error) {
 10186  	var item *aiplatformpb.ModelVersionCheckpoint
 10187  	if err := it.nextFunc(); err != nil {
 10188  		return item, err
 10189  	}
 10190  	item = it.items[0]
 10191  	it.items = it.items[1:]
 10192  	return item, nil
 10193  }
 10194  
 10195  func (it *ModelVersionCheckpointIterator) bufLen() int {
 10196  	return len(it.items)
 10197  }
 10198  
 10199  func (it *ModelVersionCheckpointIterator) takeBuf() interface{} {
 10200  	b := it.items
 10201  	it.items = nil
 10202  	return b
 10203  }
 10204  
 10205  // NasJobIterator manages a stream of *aiplatformpb.NasJob.
 10206  type NasJobIterator struct {
 10207  	items    []*aiplatformpb.NasJob
 10208  	pageInfo *iterator.PageInfo
 10209  	nextFunc func() error
 10210  
 10211  	// Response is the raw response for the current page.
 10212  	// It must be cast to the RPC response type.
 10213  	// Calling Next() or InternalFetch() updates this value.
 10214  	Response interface{}
 10215  
 10216  	// InternalFetch is for use by the Google Cloud Libraries only.
 10217  	// It is not part of the stable interface of this package.
 10218  	//
 10219  	// InternalFetch returns results from a single call to the underlying RPC.
 10220  	// The number of results is no greater than pageSize.
 10221  	// If there are no more results, nextPageToken is empty and err is nil.
 10222  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NasJob, nextPageToken string, err error)
 10223  }
 10224  
 10225  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10226  func (it *NasJobIterator) PageInfo() *iterator.PageInfo {
 10227  	return it.pageInfo
 10228  }
 10229  
 10230  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10231  // results. Once Next returns Done, all subsequent calls will return Done.
 10232  func (it *NasJobIterator) Next() (*aiplatformpb.NasJob, error) {
 10233  	var item *aiplatformpb.NasJob
 10234  	if err := it.nextFunc(); err != nil {
 10235  		return item, err
 10236  	}
 10237  	item = it.items[0]
 10238  	it.items = it.items[1:]
 10239  	return item, nil
 10240  }
 10241  
 10242  func (it *NasJobIterator) bufLen() int {
 10243  	return len(it.items)
 10244  }
 10245  
 10246  func (it *NasJobIterator) takeBuf() interface{} {
 10247  	b := it.items
 10248  	it.items = nil
 10249  	return b
 10250  }
 10251  
 10252  // NasTrialDetailIterator manages a stream of *aiplatformpb.NasTrialDetail.
 10253  type NasTrialDetailIterator struct {
 10254  	items    []*aiplatformpb.NasTrialDetail
 10255  	pageInfo *iterator.PageInfo
 10256  	nextFunc func() error
 10257  
 10258  	// Response is the raw response for the current page.
 10259  	// It must be cast to the RPC response type.
 10260  	// Calling Next() or InternalFetch() updates this value.
 10261  	Response interface{}
 10262  
 10263  	// InternalFetch is for use by the Google Cloud Libraries only.
 10264  	// It is not part of the stable interface of this package.
 10265  	//
 10266  	// InternalFetch returns results from a single call to the underlying RPC.
 10267  	// The number of results is no greater than pageSize.
 10268  	// If there are no more results, nextPageToken is empty and err is nil.
 10269  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NasTrialDetail, nextPageToken string, err error)
 10270  }
 10271  
 10272  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10273  func (it *NasTrialDetailIterator) PageInfo() *iterator.PageInfo {
 10274  	return it.pageInfo
 10275  }
 10276  
 10277  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10278  // results. Once Next returns Done, all subsequent calls will return Done.
 10279  func (it *NasTrialDetailIterator) Next() (*aiplatformpb.NasTrialDetail, error) {
 10280  	var item *aiplatformpb.NasTrialDetail
 10281  	if err := it.nextFunc(); err != nil {
 10282  		return item, err
 10283  	}
 10284  	item = it.items[0]
 10285  	it.items = it.items[1:]
 10286  	return item, nil
 10287  }
 10288  
 10289  func (it *NasTrialDetailIterator) bufLen() int {
 10290  	return len(it.items)
 10291  }
 10292  
 10293  func (it *NasTrialDetailIterator) takeBuf() interface{} {
 10294  	b := it.items
 10295  	it.items = nil
 10296  	return b
 10297  }
 10298  
 10299  // NotebookExecutionJobIterator manages a stream of *aiplatformpb.NotebookExecutionJob.
 10300  type NotebookExecutionJobIterator struct {
 10301  	items    []*aiplatformpb.NotebookExecutionJob
 10302  	pageInfo *iterator.PageInfo
 10303  	nextFunc func() error
 10304  
 10305  	// Response is the raw response for the current page.
 10306  	// It must be cast to the RPC response type.
 10307  	// Calling Next() or InternalFetch() updates this value.
 10308  	Response interface{}
 10309  
 10310  	// InternalFetch is for use by the Google Cloud Libraries only.
 10311  	// It is not part of the stable interface of this package.
 10312  	//
 10313  	// InternalFetch returns results from a single call to the underlying RPC.
 10314  	// The number of results is no greater than pageSize.
 10315  	// If there are no more results, nextPageToken is empty and err is nil.
 10316  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookExecutionJob, nextPageToken string, err error)
 10317  }
 10318  
 10319  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10320  func (it *NotebookExecutionJobIterator) PageInfo() *iterator.PageInfo {
 10321  	return it.pageInfo
 10322  }
 10323  
 10324  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10325  // results. Once Next returns Done, all subsequent calls will return Done.
 10326  func (it *NotebookExecutionJobIterator) Next() (*aiplatformpb.NotebookExecutionJob, error) {
 10327  	var item *aiplatformpb.NotebookExecutionJob
 10328  	if err := it.nextFunc(); err != nil {
 10329  		return item, err
 10330  	}
 10331  	item = it.items[0]
 10332  	it.items = it.items[1:]
 10333  	return item, nil
 10334  }
 10335  
 10336  func (it *NotebookExecutionJobIterator) bufLen() int {
 10337  	return len(it.items)
 10338  }
 10339  
 10340  func (it *NotebookExecutionJobIterator) takeBuf() interface{} {
 10341  	b := it.items
 10342  	it.items = nil
 10343  	return b
 10344  }
 10345  
 10346  // NotebookRuntimeIterator manages a stream of *aiplatformpb.NotebookRuntime.
 10347  type NotebookRuntimeIterator struct {
 10348  	items    []*aiplatformpb.NotebookRuntime
 10349  	pageInfo *iterator.PageInfo
 10350  	nextFunc func() error
 10351  
 10352  	// Response is the raw response for the current page.
 10353  	// It must be cast to the RPC response type.
 10354  	// Calling Next() or InternalFetch() updates this value.
 10355  	Response interface{}
 10356  
 10357  	// InternalFetch is for use by the Google Cloud Libraries only.
 10358  	// It is not part of the stable interface of this package.
 10359  	//
 10360  	// InternalFetch returns results from a single call to the underlying RPC.
 10361  	// The number of results is no greater than pageSize.
 10362  	// If there are no more results, nextPageToken is empty and err is nil.
 10363  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookRuntime, nextPageToken string, err error)
 10364  }
 10365  
 10366  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10367  func (it *NotebookRuntimeIterator) PageInfo() *iterator.PageInfo {
 10368  	return it.pageInfo
 10369  }
 10370  
 10371  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10372  // results. Once Next returns Done, all subsequent calls will return Done.
 10373  func (it *NotebookRuntimeIterator) Next() (*aiplatformpb.NotebookRuntime, error) {
 10374  	var item *aiplatformpb.NotebookRuntime
 10375  	if err := it.nextFunc(); err != nil {
 10376  		return item, err
 10377  	}
 10378  	item = it.items[0]
 10379  	it.items = it.items[1:]
 10380  	return item, nil
 10381  }
 10382  
 10383  func (it *NotebookRuntimeIterator) bufLen() int {
 10384  	return len(it.items)
 10385  }
 10386  
 10387  func (it *NotebookRuntimeIterator) takeBuf() interface{} {
 10388  	b := it.items
 10389  	it.items = nil
 10390  	return b
 10391  }
 10392  
 10393  // NotebookRuntimeTemplateIterator manages a stream of *aiplatformpb.NotebookRuntimeTemplate.
 10394  type NotebookRuntimeTemplateIterator struct {
 10395  	items    []*aiplatformpb.NotebookRuntimeTemplate
 10396  	pageInfo *iterator.PageInfo
 10397  	nextFunc func() error
 10398  
 10399  	// Response is the raw response for the current page.
 10400  	// It must be cast to the RPC response type.
 10401  	// Calling Next() or InternalFetch() updates this value.
 10402  	Response interface{}
 10403  
 10404  	// InternalFetch is for use by the Google Cloud Libraries only.
 10405  	// It is not part of the stable interface of this package.
 10406  	//
 10407  	// InternalFetch returns results from a single call to the underlying RPC.
 10408  	// The number of results is no greater than pageSize.
 10409  	// If there are no more results, nextPageToken is empty and err is nil.
 10410  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.NotebookRuntimeTemplate, nextPageToken string, err error)
 10411  }
 10412  
 10413  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10414  func (it *NotebookRuntimeTemplateIterator) PageInfo() *iterator.PageInfo {
 10415  	return it.pageInfo
 10416  }
 10417  
 10418  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10419  // results. Once Next returns Done, all subsequent calls will return Done.
 10420  func (it *NotebookRuntimeTemplateIterator) Next() (*aiplatformpb.NotebookRuntimeTemplate, error) {
 10421  	var item *aiplatformpb.NotebookRuntimeTemplate
 10422  	if err := it.nextFunc(); err != nil {
 10423  		return item, err
 10424  	}
 10425  	item = it.items[0]
 10426  	it.items = it.items[1:]
 10427  	return item, nil
 10428  }
 10429  
 10430  func (it *NotebookRuntimeTemplateIterator) bufLen() int {
 10431  	return len(it.items)
 10432  }
 10433  
 10434  func (it *NotebookRuntimeTemplateIterator) takeBuf() interface{} {
 10435  	b := it.items
 10436  	it.items = nil
 10437  	return b
 10438  }
 10439  
 10440  // OperationIterator manages a stream of *longrunningpb.Operation.
 10441  type OperationIterator struct {
 10442  	items    []*longrunningpb.Operation
 10443  	pageInfo *iterator.PageInfo
 10444  	nextFunc func() error
 10445  
 10446  	// Response is the raw response for the current page.
 10447  	// It must be cast to the RPC response type.
 10448  	// Calling Next() or InternalFetch() updates this value.
 10449  	Response interface{}
 10450  
 10451  	// InternalFetch is for use by the Google Cloud Libraries only.
 10452  	// It is not part of the stable interface of this package.
 10453  	//
 10454  	// InternalFetch returns results from a single call to the underlying RPC.
 10455  	// The number of results is no greater than pageSize.
 10456  	// If there are no more results, nextPageToken is empty and err is nil.
 10457  	InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
 10458  }
 10459  
 10460  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10461  func (it *OperationIterator) PageInfo() *iterator.PageInfo {
 10462  	return it.pageInfo
 10463  }
 10464  
 10465  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10466  // results. Once Next returns Done, all subsequent calls will return Done.
 10467  func (it *OperationIterator) Next() (*longrunningpb.Operation, error) {
 10468  	var item *longrunningpb.Operation
 10469  	if err := it.nextFunc(); err != nil {
 10470  		return item, err
 10471  	}
 10472  	item = it.items[0]
 10473  	it.items = it.items[1:]
 10474  	return item, nil
 10475  }
 10476  
 10477  func (it *OperationIterator) bufLen() int {
 10478  	return len(it.items)
 10479  }
 10480  
 10481  func (it *OperationIterator) takeBuf() interface{} {
 10482  	b := it.items
 10483  	it.items = nil
 10484  	return b
 10485  }
 10486  
 10487  // PersistentResourceIterator manages a stream of *aiplatformpb.PersistentResource.
 10488  type PersistentResourceIterator struct {
 10489  	items    []*aiplatformpb.PersistentResource
 10490  	pageInfo *iterator.PageInfo
 10491  	nextFunc func() error
 10492  
 10493  	// Response is the raw response for the current page.
 10494  	// It must be cast to the RPC response type.
 10495  	// Calling Next() or InternalFetch() updates this value.
 10496  	Response interface{}
 10497  
 10498  	// InternalFetch is for use by the Google Cloud Libraries only.
 10499  	// It is not part of the stable interface of this package.
 10500  	//
 10501  	// InternalFetch returns results from a single call to the underlying RPC.
 10502  	// The number of results is no greater than pageSize.
 10503  	// If there are no more results, nextPageToken is empty and err is nil.
 10504  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.PersistentResource, nextPageToken string, err error)
 10505  }
 10506  
 10507  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10508  func (it *PersistentResourceIterator) PageInfo() *iterator.PageInfo {
 10509  	return it.pageInfo
 10510  }
 10511  
 10512  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10513  // results. Once Next returns Done, all subsequent calls will return Done.
 10514  func (it *PersistentResourceIterator) Next() (*aiplatformpb.PersistentResource, error) {
 10515  	var item *aiplatformpb.PersistentResource
 10516  	if err := it.nextFunc(); err != nil {
 10517  		return item, err
 10518  	}
 10519  	item = it.items[0]
 10520  	it.items = it.items[1:]
 10521  	return item, nil
 10522  }
 10523  
 10524  func (it *PersistentResourceIterator) bufLen() int {
 10525  	return len(it.items)
 10526  }
 10527  
 10528  func (it *PersistentResourceIterator) takeBuf() interface{} {
 10529  	b := it.items
 10530  	it.items = nil
 10531  	return b
 10532  }
 10533  
 10534  // PipelineJobIterator manages a stream of *aiplatformpb.PipelineJob.
 10535  type PipelineJobIterator struct {
 10536  	items    []*aiplatformpb.PipelineJob
 10537  	pageInfo *iterator.PageInfo
 10538  	nextFunc func() error
 10539  
 10540  	// Response is the raw response for the current page.
 10541  	// It must be cast to the RPC response type.
 10542  	// Calling Next() or InternalFetch() updates this value.
 10543  	Response interface{}
 10544  
 10545  	// InternalFetch is for use by the Google Cloud Libraries only.
 10546  	// It is not part of the stable interface of this package.
 10547  	//
 10548  	// InternalFetch returns results from a single call to the underlying RPC.
 10549  	// The number of results is no greater than pageSize.
 10550  	// If there are no more results, nextPageToken is empty and err is nil.
 10551  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.PipelineJob, nextPageToken string, err error)
 10552  }
 10553  
 10554  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10555  func (it *PipelineJobIterator) PageInfo() *iterator.PageInfo {
 10556  	return it.pageInfo
 10557  }
 10558  
 10559  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10560  // results. Once Next returns Done, all subsequent calls will return Done.
 10561  func (it *PipelineJobIterator) Next() (*aiplatformpb.PipelineJob, error) {
 10562  	var item *aiplatformpb.PipelineJob
 10563  	if err := it.nextFunc(); err != nil {
 10564  		return item, err
 10565  	}
 10566  	item = it.items[0]
 10567  	it.items = it.items[1:]
 10568  	return item, nil
 10569  }
 10570  
 10571  func (it *PipelineJobIterator) bufLen() int {
 10572  	return len(it.items)
 10573  }
 10574  
 10575  func (it *PipelineJobIterator) takeBuf() interface{} {
 10576  	b := it.items
 10577  	it.items = nil
 10578  	return b
 10579  }
 10580  
 10581  // PublisherModelIterator manages a stream of *aiplatformpb.PublisherModel.
 10582  type PublisherModelIterator struct {
 10583  	items    []*aiplatformpb.PublisherModel
 10584  	pageInfo *iterator.PageInfo
 10585  	nextFunc func() error
 10586  
 10587  	// Response is the raw response for the current page.
 10588  	// It must be cast to the RPC response type.
 10589  	// Calling Next() or InternalFetch() updates this value.
 10590  	Response interface{}
 10591  
 10592  	// InternalFetch is for use by the Google Cloud Libraries only.
 10593  	// It is not part of the stable interface of this package.
 10594  	//
 10595  	// InternalFetch returns results from a single call to the underlying RPC.
 10596  	// The number of results is no greater than pageSize.
 10597  	// If there are no more results, nextPageToken is empty and err is nil.
 10598  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.PublisherModel, nextPageToken string, err error)
 10599  }
 10600  
 10601  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10602  func (it *PublisherModelIterator) PageInfo() *iterator.PageInfo {
 10603  	return it.pageInfo
 10604  }
 10605  
 10606  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10607  // results. Once Next returns Done, all subsequent calls will return Done.
 10608  func (it *PublisherModelIterator) Next() (*aiplatformpb.PublisherModel, error) {
 10609  	var item *aiplatformpb.PublisherModel
 10610  	if err := it.nextFunc(); err != nil {
 10611  		return item, err
 10612  	}
 10613  	item = it.items[0]
 10614  	it.items = it.items[1:]
 10615  	return item, nil
 10616  }
 10617  
 10618  func (it *PublisherModelIterator) bufLen() int {
 10619  	return len(it.items)
 10620  }
 10621  
 10622  func (it *PublisherModelIterator) takeBuf() interface{} {
 10623  	b := it.items
 10624  	it.items = nil
 10625  	return b
 10626  }
 10627  
 10628  // RagCorpusIterator manages a stream of *aiplatformpb.RagCorpus.
 10629  type RagCorpusIterator struct {
 10630  	items    []*aiplatformpb.RagCorpus
 10631  	pageInfo *iterator.PageInfo
 10632  	nextFunc func() error
 10633  
 10634  	// Response is the raw response for the current page.
 10635  	// It must be cast to the RPC response type.
 10636  	// Calling Next() or InternalFetch() updates this value.
 10637  	Response interface{}
 10638  
 10639  	// InternalFetch is for use by the Google Cloud Libraries only.
 10640  	// It is not part of the stable interface of this package.
 10641  	//
 10642  	// InternalFetch returns results from a single call to the underlying RPC.
 10643  	// The number of results is no greater than pageSize.
 10644  	// If there are no more results, nextPageToken is empty and err is nil.
 10645  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.RagCorpus, nextPageToken string, err error)
 10646  }
 10647  
 10648  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10649  func (it *RagCorpusIterator) PageInfo() *iterator.PageInfo {
 10650  	return it.pageInfo
 10651  }
 10652  
 10653  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10654  // results. Once Next returns Done, all subsequent calls will return Done.
 10655  func (it *RagCorpusIterator) Next() (*aiplatformpb.RagCorpus, error) {
 10656  	var item *aiplatformpb.RagCorpus
 10657  	if err := it.nextFunc(); err != nil {
 10658  		return item, err
 10659  	}
 10660  	item = it.items[0]
 10661  	it.items = it.items[1:]
 10662  	return item, nil
 10663  }
 10664  
 10665  func (it *RagCorpusIterator) bufLen() int {
 10666  	return len(it.items)
 10667  }
 10668  
 10669  func (it *RagCorpusIterator) takeBuf() interface{} {
 10670  	b := it.items
 10671  	it.items = nil
 10672  	return b
 10673  }
 10674  
 10675  // RagFileIterator manages a stream of *aiplatformpb.RagFile.
 10676  type RagFileIterator struct {
 10677  	items    []*aiplatformpb.RagFile
 10678  	pageInfo *iterator.PageInfo
 10679  	nextFunc func() error
 10680  
 10681  	// Response is the raw response for the current page.
 10682  	// It must be cast to the RPC response type.
 10683  	// Calling Next() or InternalFetch() updates this value.
 10684  	Response interface{}
 10685  
 10686  	// InternalFetch is for use by the Google Cloud Libraries only.
 10687  	// It is not part of the stable interface of this package.
 10688  	//
 10689  	// InternalFetch returns results from a single call to the underlying RPC.
 10690  	// The number of results is no greater than pageSize.
 10691  	// If there are no more results, nextPageToken is empty and err is nil.
 10692  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.RagFile, nextPageToken string, err error)
 10693  }
 10694  
 10695  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10696  func (it *RagFileIterator) PageInfo() *iterator.PageInfo {
 10697  	return it.pageInfo
 10698  }
 10699  
 10700  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10701  // results. Once Next returns Done, all subsequent calls will return Done.
 10702  func (it *RagFileIterator) Next() (*aiplatformpb.RagFile, error) {
 10703  	var item *aiplatformpb.RagFile
 10704  	if err := it.nextFunc(); err != nil {
 10705  		return item, err
 10706  	}
 10707  	item = it.items[0]
 10708  	it.items = it.items[1:]
 10709  	return item, nil
 10710  }
 10711  
 10712  func (it *RagFileIterator) bufLen() int {
 10713  	return len(it.items)
 10714  }
 10715  
 10716  func (it *RagFileIterator) takeBuf() interface{} {
 10717  	b := it.items
 10718  	it.items = nil
 10719  	return b
 10720  }
 10721  
 10722  // ReasoningEngineIterator manages a stream of *aiplatformpb.ReasoningEngine.
 10723  type ReasoningEngineIterator struct {
 10724  	items    []*aiplatformpb.ReasoningEngine
 10725  	pageInfo *iterator.PageInfo
 10726  	nextFunc func() error
 10727  
 10728  	// Response is the raw response for the current page.
 10729  	// It must be cast to the RPC response type.
 10730  	// Calling Next() or InternalFetch() updates this value.
 10731  	Response interface{}
 10732  
 10733  	// InternalFetch is for use by the Google Cloud Libraries only.
 10734  	// It is not part of the stable interface of this package.
 10735  	//
 10736  	// InternalFetch returns results from a single call to the underlying RPC.
 10737  	// The number of results is no greater than pageSize.
 10738  	// If there are no more results, nextPageToken is empty and err is nil.
 10739  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.ReasoningEngine, nextPageToken string, err error)
 10740  }
 10741  
 10742  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10743  func (it *ReasoningEngineIterator) PageInfo() *iterator.PageInfo {
 10744  	return it.pageInfo
 10745  }
 10746  
 10747  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10748  // results. Once Next returns Done, all subsequent calls will return Done.
 10749  func (it *ReasoningEngineIterator) Next() (*aiplatformpb.ReasoningEngine, error) {
 10750  	var item *aiplatformpb.ReasoningEngine
 10751  	if err := it.nextFunc(); err != nil {
 10752  		return item, err
 10753  	}
 10754  	item = it.items[0]
 10755  	it.items = it.items[1:]
 10756  	return item, nil
 10757  }
 10758  
 10759  func (it *ReasoningEngineIterator) bufLen() int {
 10760  	return len(it.items)
 10761  }
 10762  
 10763  func (it *ReasoningEngineIterator) takeBuf() interface{} {
 10764  	b := it.items
 10765  	it.items = nil
 10766  	return b
 10767  }
 10768  
 10769  // SavedQueryIterator manages a stream of *aiplatformpb.SavedQuery.
 10770  type SavedQueryIterator struct {
 10771  	items    []*aiplatformpb.SavedQuery
 10772  	pageInfo *iterator.PageInfo
 10773  	nextFunc func() error
 10774  
 10775  	// Response is the raw response for the current page.
 10776  	// It must be cast to the RPC response type.
 10777  	// Calling Next() or InternalFetch() updates this value.
 10778  	Response interface{}
 10779  
 10780  	// InternalFetch is for use by the Google Cloud Libraries only.
 10781  	// It is not part of the stable interface of this package.
 10782  	//
 10783  	// InternalFetch returns results from a single call to the underlying RPC.
 10784  	// The number of results is no greater than pageSize.
 10785  	// If there are no more results, nextPageToken is empty and err is nil.
 10786  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.SavedQuery, nextPageToken string, err error)
 10787  }
 10788  
 10789  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10790  func (it *SavedQueryIterator) PageInfo() *iterator.PageInfo {
 10791  	return it.pageInfo
 10792  }
 10793  
 10794  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10795  // results. Once Next returns Done, all subsequent calls will return Done.
 10796  func (it *SavedQueryIterator) Next() (*aiplatformpb.SavedQuery, error) {
 10797  	var item *aiplatformpb.SavedQuery
 10798  	if err := it.nextFunc(); err != nil {
 10799  		return item, err
 10800  	}
 10801  	item = it.items[0]
 10802  	it.items = it.items[1:]
 10803  	return item, nil
 10804  }
 10805  
 10806  func (it *SavedQueryIterator) bufLen() int {
 10807  	return len(it.items)
 10808  }
 10809  
 10810  func (it *SavedQueryIterator) takeBuf() interface{} {
 10811  	b := it.items
 10812  	it.items = nil
 10813  	return b
 10814  }
 10815  
 10816  // ScheduleIterator manages a stream of *aiplatformpb.Schedule.
 10817  type ScheduleIterator struct {
 10818  	items    []*aiplatformpb.Schedule
 10819  	pageInfo *iterator.PageInfo
 10820  	nextFunc func() error
 10821  
 10822  	// Response is the raw response for the current page.
 10823  	// It must be cast to the RPC response type.
 10824  	// Calling Next() or InternalFetch() updates this value.
 10825  	Response interface{}
 10826  
 10827  	// InternalFetch is for use by the Google Cloud Libraries only.
 10828  	// It is not part of the stable interface of this package.
 10829  	//
 10830  	// InternalFetch returns results from a single call to the underlying RPC.
 10831  	// The number of results is no greater than pageSize.
 10832  	// If there are no more results, nextPageToken is empty and err is nil.
 10833  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Schedule, nextPageToken string, err error)
 10834  }
 10835  
 10836  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10837  func (it *ScheduleIterator) PageInfo() *iterator.PageInfo {
 10838  	return it.pageInfo
 10839  }
 10840  
 10841  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10842  // results. Once Next returns Done, all subsequent calls will return Done.
 10843  func (it *ScheduleIterator) Next() (*aiplatformpb.Schedule, error) {
 10844  	var item *aiplatformpb.Schedule
 10845  	if err := it.nextFunc(); err != nil {
 10846  		return item, err
 10847  	}
 10848  	item = it.items[0]
 10849  	it.items = it.items[1:]
 10850  	return item, nil
 10851  }
 10852  
 10853  func (it *ScheduleIterator) bufLen() int {
 10854  	return len(it.items)
 10855  }
 10856  
 10857  func (it *ScheduleIterator) takeBuf() interface{} {
 10858  	b := it.items
 10859  	it.items = nil
 10860  	return b
 10861  }
 10862  
 10863  // SessionEventIterator manages a stream of *aiplatformpb.SessionEvent.
 10864  type SessionEventIterator struct {
 10865  	items    []*aiplatformpb.SessionEvent
 10866  	pageInfo *iterator.PageInfo
 10867  	nextFunc func() error
 10868  
 10869  	// Response is the raw response for the current page.
 10870  	// It must be cast to the RPC response type.
 10871  	// Calling Next() or InternalFetch() updates this value.
 10872  	Response interface{}
 10873  
 10874  	// InternalFetch is for use by the Google Cloud Libraries only.
 10875  	// It is not part of the stable interface of this package.
 10876  	//
 10877  	// InternalFetch returns results from a single call to the underlying RPC.
 10878  	// The number of results is no greater than pageSize.
 10879  	// If there are no more results, nextPageToken is empty and err is nil.
 10880  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.SessionEvent, nextPageToken string, err error)
 10881  }
 10882  
 10883  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10884  func (it *SessionEventIterator) PageInfo() *iterator.PageInfo {
 10885  	return it.pageInfo
 10886  }
 10887  
 10888  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10889  // results. Once Next returns Done, all subsequent calls will return Done.
 10890  func (it *SessionEventIterator) Next() (*aiplatformpb.SessionEvent, error) {
 10891  	var item *aiplatformpb.SessionEvent
 10892  	if err := it.nextFunc(); err != nil {
 10893  		return item, err
 10894  	}
 10895  	item = it.items[0]
 10896  	it.items = it.items[1:]
 10897  	return item, nil
 10898  }
 10899  
 10900  func (it *SessionEventIterator) bufLen() int {
 10901  	return len(it.items)
 10902  }
 10903  
 10904  func (it *SessionEventIterator) takeBuf() interface{} {
 10905  	b := it.items
 10906  	it.items = nil
 10907  	return b
 10908  }
 10909  
 10910  // SessionIterator manages a stream of *aiplatformpb.Session.
 10911  type SessionIterator struct {
 10912  	items    []*aiplatformpb.Session
 10913  	pageInfo *iterator.PageInfo
 10914  	nextFunc func() error
 10915  
 10916  	// Response is the raw response for the current page.
 10917  	// It must be cast to the RPC response type.
 10918  	// Calling Next() or InternalFetch() updates this value.
 10919  	Response interface{}
 10920  
 10921  	// InternalFetch is for use by the Google Cloud Libraries only.
 10922  	// It is not part of the stable interface of this package.
 10923  	//
 10924  	// InternalFetch returns results from a single call to the underlying RPC.
 10925  	// The number of results is no greater than pageSize.
 10926  	// If there are no more results, nextPageToken is empty and err is nil.
 10927  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Session, nextPageToken string, err error)
 10928  }
 10929  
 10930  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10931  func (it *SessionIterator) PageInfo() *iterator.PageInfo {
 10932  	return it.pageInfo
 10933  }
 10934  
 10935  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10936  // results. Once Next returns Done, all subsequent calls will return Done.
 10937  func (it *SessionIterator) Next() (*aiplatformpb.Session, error) {
 10938  	var item *aiplatformpb.Session
 10939  	if err := it.nextFunc(); err != nil {
 10940  		return item, err
 10941  	}
 10942  	item = it.items[0]
 10943  	it.items = it.items[1:]
 10944  	return item, nil
 10945  }
 10946  
 10947  func (it *SessionIterator) bufLen() int {
 10948  	return len(it.items)
 10949  }
 10950  
 10951  func (it *SessionIterator) takeBuf() interface{} {
 10952  	b := it.items
 10953  	it.items = nil
 10954  	return b
 10955  }
 10956  
 10957  // SpecialistPoolIterator manages a stream of *aiplatformpb.SpecialistPool.
 10958  type SpecialistPoolIterator struct {
 10959  	items    []*aiplatformpb.SpecialistPool
 10960  	pageInfo *iterator.PageInfo
 10961  	nextFunc func() error
 10962  
 10963  	// Response is the raw response for the current page.
 10964  	// It must be cast to the RPC response type.
 10965  	// Calling Next() or InternalFetch() updates this value.
 10966  	Response interface{}
 10967  
 10968  	// InternalFetch is for use by the Google Cloud Libraries only.
 10969  	// It is not part of the stable interface of this package.
 10970  	//
 10971  	// InternalFetch returns results from a single call to the underlying RPC.
 10972  	// The number of results is no greater than pageSize.
 10973  	// If there are no more results, nextPageToken is empty and err is nil.
 10974  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.SpecialistPool, nextPageToken string, err error)
 10975  }
 10976  
 10977  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 10978  func (it *SpecialistPoolIterator) PageInfo() *iterator.PageInfo {
 10979  	return it.pageInfo
 10980  }
 10981  
 10982  // Next returns the next result. Its second return value is iterator.Done if there are no more
 10983  // results. Once Next returns Done, all subsequent calls will return Done.
 10984  func (it *SpecialistPoolIterator) Next() (*aiplatformpb.SpecialistPool, error) {
 10985  	var item *aiplatformpb.SpecialistPool
 10986  	if err := it.nextFunc(); err != nil {
 10987  		return item, err
 10988  	}
 10989  	item = it.items[0]
 10990  	it.items = it.items[1:]
 10991  	return item, nil
 10992  }
 10993  
 10994  func (it *SpecialistPoolIterator) bufLen() int {
 10995  	return len(it.items)
 10996  }
 10997  
 10998  func (it *SpecialistPoolIterator) takeBuf() interface{} {
 10999  	b := it.items
 11000  	it.items = nil
 11001  	return b
 11002  }
 11003  
 11004  // StudyIterator manages a stream of *aiplatformpb.Study.
 11005  type StudyIterator struct {
 11006  	items    []*aiplatformpb.Study
 11007  	pageInfo *iterator.PageInfo
 11008  	nextFunc func() error
 11009  
 11010  	// Response is the raw response for the current page.
 11011  	// It must be cast to the RPC response type.
 11012  	// Calling Next() or InternalFetch() updates this value.
 11013  	Response interface{}
 11014  
 11015  	// InternalFetch is for use by the Google Cloud Libraries only.
 11016  	// It is not part of the stable interface of this package.
 11017  	//
 11018  	// InternalFetch returns results from a single call to the underlying RPC.
 11019  	// The number of results is no greater than pageSize.
 11020  	// If there are no more results, nextPageToken is empty and err is nil.
 11021  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Study, nextPageToken string, err error)
 11022  }
 11023  
 11024  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11025  func (it *StudyIterator) PageInfo() *iterator.PageInfo {
 11026  	return it.pageInfo
 11027  }
 11028  
 11029  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11030  // results. Once Next returns Done, all subsequent calls will return Done.
 11031  func (it *StudyIterator) Next() (*aiplatformpb.Study, error) {
 11032  	var item *aiplatformpb.Study
 11033  	if err := it.nextFunc(); err != nil {
 11034  		return item, err
 11035  	}
 11036  	item = it.items[0]
 11037  	it.items = it.items[1:]
 11038  	return item, nil
 11039  }
 11040  
 11041  func (it *StudyIterator) bufLen() int {
 11042  	return len(it.items)
 11043  }
 11044  
 11045  func (it *StudyIterator) takeBuf() interface{} {
 11046  	b := it.items
 11047  	it.items = nil
 11048  	return b
 11049  }
 11050  
 11051  // TensorboardExperimentIterator manages a stream of *aiplatformpb.TensorboardExperiment.
 11052  type TensorboardExperimentIterator struct {
 11053  	items    []*aiplatformpb.TensorboardExperiment
 11054  	pageInfo *iterator.PageInfo
 11055  	nextFunc func() error
 11056  
 11057  	// Response is the raw response for the current page.
 11058  	// It must be cast to the RPC response type.
 11059  	// Calling Next() or InternalFetch() updates this value.
 11060  	Response interface{}
 11061  
 11062  	// InternalFetch is for use by the Google Cloud Libraries only.
 11063  	// It is not part of the stable interface of this package.
 11064  	//
 11065  	// InternalFetch returns results from a single call to the underlying RPC.
 11066  	// The number of results is no greater than pageSize.
 11067  	// If there are no more results, nextPageToken is empty and err is nil.
 11068  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardExperiment, nextPageToken string, err error)
 11069  }
 11070  
 11071  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11072  func (it *TensorboardExperimentIterator) PageInfo() *iterator.PageInfo {
 11073  	return it.pageInfo
 11074  }
 11075  
 11076  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11077  // results. Once Next returns Done, all subsequent calls will return Done.
 11078  func (it *TensorboardExperimentIterator) Next() (*aiplatformpb.TensorboardExperiment, error) {
 11079  	var item *aiplatformpb.TensorboardExperiment
 11080  	if err := it.nextFunc(); err != nil {
 11081  		return item, err
 11082  	}
 11083  	item = it.items[0]
 11084  	it.items = it.items[1:]
 11085  	return item, nil
 11086  }
 11087  
 11088  func (it *TensorboardExperimentIterator) bufLen() int {
 11089  	return len(it.items)
 11090  }
 11091  
 11092  func (it *TensorboardExperimentIterator) takeBuf() interface{} {
 11093  	b := it.items
 11094  	it.items = nil
 11095  	return b
 11096  }
 11097  
 11098  // TensorboardIterator manages a stream of *aiplatformpb.Tensorboard.
 11099  type TensorboardIterator struct {
 11100  	items    []*aiplatformpb.Tensorboard
 11101  	pageInfo *iterator.PageInfo
 11102  	nextFunc func() error
 11103  
 11104  	// Response is the raw response for the current page.
 11105  	// It must be cast to the RPC response type.
 11106  	// Calling Next() or InternalFetch() updates this value.
 11107  	Response interface{}
 11108  
 11109  	// InternalFetch is for use by the Google Cloud Libraries only.
 11110  	// It is not part of the stable interface of this package.
 11111  	//
 11112  	// InternalFetch returns results from a single call to the underlying RPC.
 11113  	// The number of results is no greater than pageSize.
 11114  	// If there are no more results, nextPageToken is empty and err is nil.
 11115  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Tensorboard, nextPageToken string, err error)
 11116  }
 11117  
 11118  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11119  func (it *TensorboardIterator) PageInfo() *iterator.PageInfo {
 11120  	return it.pageInfo
 11121  }
 11122  
 11123  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11124  // results. Once Next returns Done, all subsequent calls will return Done.
 11125  func (it *TensorboardIterator) Next() (*aiplatformpb.Tensorboard, error) {
 11126  	var item *aiplatformpb.Tensorboard
 11127  	if err := it.nextFunc(); err != nil {
 11128  		return item, err
 11129  	}
 11130  	item = it.items[0]
 11131  	it.items = it.items[1:]
 11132  	return item, nil
 11133  }
 11134  
 11135  func (it *TensorboardIterator) bufLen() int {
 11136  	return len(it.items)
 11137  }
 11138  
 11139  func (it *TensorboardIterator) takeBuf() interface{} {
 11140  	b := it.items
 11141  	it.items = nil
 11142  	return b
 11143  }
 11144  
 11145  // TensorboardRunIterator manages a stream of *aiplatformpb.TensorboardRun.
 11146  type TensorboardRunIterator struct {
 11147  	items    []*aiplatformpb.TensorboardRun
 11148  	pageInfo *iterator.PageInfo
 11149  	nextFunc func() error
 11150  
 11151  	// Response is the raw response for the current page.
 11152  	// It must be cast to the RPC response type.
 11153  	// Calling Next() or InternalFetch() updates this value.
 11154  	Response interface{}
 11155  
 11156  	// InternalFetch is for use by the Google Cloud Libraries only.
 11157  	// It is not part of the stable interface of this package.
 11158  	//
 11159  	// InternalFetch returns results from a single call to the underlying RPC.
 11160  	// The number of results is no greater than pageSize.
 11161  	// If there are no more results, nextPageToken is empty and err is nil.
 11162  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardRun, nextPageToken string, err error)
 11163  }
 11164  
 11165  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11166  func (it *TensorboardRunIterator) PageInfo() *iterator.PageInfo {
 11167  	return it.pageInfo
 11168  }
 11169  
 11170  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11171  // results. Once Next returns Done, all subsequent calls will return Done.
 11172  func (it *TensorboardRunIterator) Next() (*aiplatformpb.TensorboardRun, error) {
 11173  	var item *aiplatformpb.TensorboardRun
 11174  	if err := it.nextFunc(); err != nil {
 11175  		return item, err
 11176  	}
 11177  	item = it.items[0]
 11178  	it.items = it.items[1:]
 11179  	return item, nil
 11180  }
 11181  
 11182  func (it *TensorboardRunIterator) bufLen() int {
 11183  	return len(it.items)
 11184  }
 11185  
 11186  func (it *TensorboardRunIterator) takeBuf() interface{} {
 11187  	b := it.items
 11188  	it.items = nil
 11189  	return b
 11190  }
 11191  
 11192  // TensorboardTimeSeriesIterator manages a stream of *aiplatformpb.TensorboardTimeSeries.
 11193  type TensorboardTimeSeriesIterator struct {
 11194  	items    []*aiplatformpb.TensorboardTimeSeries
 11195  	pageInfo *iterator.PageInfo
 11196  	nextFunc func() error
 11197  
 11198  	// Response is the raw response for the current page.
 11199  	// It must be cast to the RPC response type.
 11200  	// Calling Next() or InternalFetch() updates this value.
 11201  	Response interface{}
 11202  
 11203  	// InternalFetch is for use by the Google Cloud Libraries only.
 11204  	// It is not part of the stable interface of this package.
 11205  	//
 11206  	// InternalFetch returns results from a single call to the underlying RPC.
 11207  	// The number of results is no greater than pageSize.
 11208  	// If there are no more results, nextPageToken is empty and err is nil.
 11209  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TensorboardTimeSeries, nextPageToken string, err error)
 11210  }
 11211  
 11212  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11213  func (it *TensorboardTimeSeriesIterator) PageInfo() *iterator.PageInfo {
 11214  	return it.pageInfo
 11215  }
 11216  
 11217  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11218  // results. Once Next returns Done, all subsequent calls will return Done.
 11219  func (it *TensorboardTimeSeriesIterator) Next() (*aiplatformpb.TensorboardTimeSeries, error) {
 11220  	var item *aiplatformpb.TensorboardTimeSeries
 11221  	if err := it.nextFunc(); err != nil {
 11222  		return item, err
 11223  	}
 11224  	item = it.items[0]
 11225  	it.items = it.items[1:]
 11226  	return item, nil
 11227  }
 11228  
 11229  func (it *TensorboardTimeSeriesIterator) bufLen() int {
 11230  	return len(it.items)
 11231  }
 11232  
 11233  func (it *TensorboardTimeSeriesIterator) takeBuf() interface{} {
 11234  	b := it.items
 11235  	it.items = nil
 11236  	return b
 11237  }
 11238  
 11239  // TimeSeriesDataPointIterator manages a stream of *aiplatformpb.TimeSeriesDataPoint.
 11240  type TimeSeriesDataPointIterator struct {
 11241  	items    []*aiplatformpb.TimeSeriesDataPoint
 11242  	pageInfo *iterator.PageInfo
 11243  	nextFunc func() error
 11244  
 11245  	// Response is the raw response for the current page.
 11246  	// It must be cast to the RPC response type.
 11247  	// Calling Next() or InternalFetch() updates this value.
 11248  	Response interface{}
 11249  
 11250  	// InternalFetch is for use by the Google Cloud Libraries only.
 11251  	// It is not part of the stable interface of this package.
 11252  	//
 11253  	// InternalFetch returns results from a single call to the underlying RPC.
 11254  	// The number of results is no greater than pageSize.
 11255  	// If there are no more results, nextPageToken is empty and err is nil.
 11256  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TimeSeriesDataPoint, nextPageToken string, err error)
 11257  }
 11258  
 11259  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11260  func (it *TimeSeriesDataPointIterator) PageInfo() *iterator.PageInfo {
 11261  	return it.pageInfo
 11262  }
 11263  
 11264  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11265  // results. Once Next returns Done, all subsequent calls will return Done.
 11266  func (it *TimeSeriesDataPointIterator) Next() (*aiplatformpb.TimeSeriesDataPoint, error) {
 11267  	var item *aiplatformpb.TimeSeriesDataPoint
 11268  	if err := it.nextFunc(); err != nil {
 11269  		return item, err
 11270  	}
 11271  	item = it.items[0]
 11272  	it.items = it.items[1:]
 11273  	return item, nil
 11274  }
 11275  
 11276  func (it *TimeSeriesDataPointIterator) bufLen() int {
 11277  	return len(it.items)
 11278  }
 11279  
 11280  func (it *TimeSeriesDataPointIterator) takeBuf() interface{} {
 11281  	b := it.items
 11282  	it.items = nil
 11283  	return b
 11284  }
 11285  
 11286  // TrainingPipelineIterator manages a stream of *aiplatformpb.TrainingPipeline.
 11287  type TrainingPipelineIterator struct {
 11288  	items    []*aiplatformpb.TrainingPipeline
 11289  	pageInfo *iterator.PageInfo
 11290  	nextFunc func() error
 11291  
 11292  	// Response is the raw response for the current page.
 11293  	// It must be cast to the RPC response type.
 11294  	// Calling Next() or InternalFetch() updates this value.
 11295  	Response interface{}
 11296  
 11297  	// InternalFetch is for use by the Google Cloud Libraries only.
 11298  	// It is not part of the stable interface of this package.
 11299  	//
 11300  	// InternalFetch returns results from a single call to the underlying RPC.
 11301  	// The number of results is no greater than pageSize.
 11302  	// If there are no more results, nextPageToken is empty and err is nil.
 11303  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TrainingPipeline, nextPageToken string, err error)
 11304  }
 11305  
 11306  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11307  func (it *TrainingPipelineIterator) PageInfo() *iterator.PageInfo {
 11308  	return it.pageInfo
 11309  }
 11310  
 11311  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11312  // results. Once Next returns Done, all subsequent calls will return Done.
 11313  func (it *TrainingPipelineIterator) Next() (*aiplatformpb.TrainingPipeline, error) {
 11314  	var item *aiplatformpb.TrainingPipeline
 11315  	if err := it.nextFunc(); err != nil {
 11316  		return item, err
 11317  	}
 11318  	item = it.items[0]
 11319  	it.items = it.items[1:]
 11320  	return item, nil
 11321  }
 11322  
 11323  func (it *TrainingPipelineIterator) bufLen() int {
 11324  	return len(it.items)
 11325  }
 11326  
 11327  func (it *TrainingPipelineIterator) takeBuf() interface{} {
 11328  	b := it.items
 11329  	it.items = nil
 11330  	return b
 11331  }
 11332  
 11333  // TrialIterator manages a stream of *aiplatformpb.Trial.
 11334  type TrialIterator struct {
 11335  	items    []*aiplatformpb.Trial
 11336  	pageInfo *iterator.PageInfo
 11337  	nextFunc func() error
 11338  
 11339  	// Response is the raw response for the current page.
 11340  	// It must be cast to the RPC response type.
 11341  	// Calling Next() or InternalFetch() updates this value.
 11342  	Response interface{}
 11343  
 11344  	// InternalFetch is for use by the Google Cloud Libraries only.
 11345  	// It is not part of the stable interface of this package.
 11346  	//
 11347  	// InternalFetch returns results from a single call to the underlying RPC.
 11348  	// The number of results is no greater than pageSize.
 11349  	// If there are no more results, nextPageToken is empty and err is nil.
 11350  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.Trial, nextPageToken string, err error)
 11351  }
 11352  
 11353  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11354  func (it *TrialIterator) PageInfo() *iterator.PageInfo {
 11355  	return it.pageInfo
 11356  }
 11357  
 11358  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11359  // results. Once Next returns Done, all subsequent calls will return Done.
 11360  func (it *TrialIterator) Next() (*aiplatformpb.Trial, error) {
 11361  	var item *aiplatformpb.Trial
 11362  	if err := it.nextFunc(); err != nil {
 11363  		return item, err
 11364  	}
 11365  	item = it.items[0]
 11366  	it.items = it.items[1:]
 11367  	return item, nil
 11368  }
 11369  
 11370  func (it *TrialIterator) bufLen() int {
 11371  	return len(it.items)
 11372  }
 11373  
 11374  func (it *TrialIterator) takeBuf() interface{} {
 11375  	b := it.items
 11376  	it.items = nil
 11377  	return b
 11378  }
 11379  
 11380  // TuningJobIterator manages a stream of *aiplatformpb.TuningJob.
 11381  type TuningJobIterator struct {
 11382  	items    []*aiplatformpb.TuningJob
 11383  	pageInfo *iterator.PageInfo
 11384  	nextFunc func() error
 11385  
 11386  	// Response is the raw response for the current page.
 11387  	// It must be cast to the RPC response type.
 11388  	// Calling Next() or InternalFetch() updates this value.
 11389  	Response interface{}
 11390  
 11391  	// InternalFetch is for use by the Google Cloud Libraries only.
 11392  	// It is not part of the stable interface of this package.
 11393  	//
 11394  	// InternalFetch returns results from a single call to the underlying RPC.
 11395  	// The number of results is no greater than pageSize.
 11396  	// If there are no more results, nextPageToken is empty and err is nil.
 11397  	InternalFetch func(pageSize int, pageToken string) (results []*aiplatformpb.TuningJob, nextPageToken string, err error)
 11398  }
 11399  
 11400  // PageInfo supports pagination. See the [google.golang.org/api/iterator] package for details.
 11401  func (it *TuningJobIterator) PageInfo() *iterator.PageInfo {
 11402  	return it.pageInfo
 11403  }
 11404  
 11405  // Next returns the next result. Its second return value is iterator.Done if there are no more
 11406  // results. Once Next returns Done, all subsequent calls will return Done.
 11407  func (it *TuningJobIterator) Next() (*aiplatformpb.TuningJob, error) {
 11408  	var item *aiplatformpb.TuningJob
 11409  	if err := it.nextFunc(); err != nil {
 11410  		return item, err
 11411  	}
 11412  	item = it.items[0]
 11413  	it.items = it.items[1:]
 11414  	return item, nil
 11415  }
 11416  
 11417  func (it *TuningJobIterator) bufLen() int {
 11418  	return len(it.items)
 11419  }
 11420  
 11421  func (it *TuningJobIterator) takeBuf() interface{} {
 11422  	b := it.items
 11423  	it.items = nil
 11424  	return b
 11425  }