...

Source file src/google.golang.org/api/datalabeling/v1beta1/datalabeling-gen.go

Documentation: google.golang.org/api/datalabeling/v1beta1

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package datalabeling provides access to the Data Labeling API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/data-labeling/docs/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/datalabeling/v1beta1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	datalabelingService, err := datalabeling.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	datalabelingService, err := datalabeling.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	datalabelingService, err := datalabeling.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package datalabeling // import "google.golang.org/api/datalabeling/v1beta1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "datalabeling:v1beta1"
    90  const apiName = "datalabeling"
    91  const apiVersion = "v1beta1"
    92  const basePath = "https://datalabeling.googleapis.com/"
    93  const basePathTemplate = "https://datalabeling.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://datalabeling.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.AnnotationSpecSets = NewProjectsAnnotationSpecSetsService(s)
   160  	rs.Datasets = NewProjectsDatasetsService(s)
   161  	rs.EvaluationJobs = NewProjectsEvaluationJobsService(s)
   162  	rs.Evaluations = NewProjectsEvaluationsService(s)
   163  	rs.Instructions = NewProjectsInstructionsService(s)
   164  	rs.Operations = NewProjectsOperationsService(s)
   165  	return rs
   166  }
   167  
   168  type ProjectsService struct {
   169  	s *Service
   170  
   171  	AnnotationSpecSets *ProjectsAnnotationSpecSetsService
   172  
   173  	Datasets *ProjectsDatasetsService
   174  
   175  	EvaluationJobs *ProjectsEvaluationJobsService
   176  
   177  	Evaluations *ProjectsEvaluationsService
   178  
   179  	Instructions *ProjectsInstructionsService
   180  
   181  	Operations *ProjectsOperationsService
   182  }
   183  
   184  func NewProjectsAnnotationSpecSetsService(s *Service) *ProjectsAnnotationSpecSetsService {
   185  	rs := &ProjectsAnnotationSpecSetsService{s: s}
   186  	return rs
   187  }
   188  
   189  type ProjectsAnnotationSpecSetsService struct {
   190  	s *Service
   191  }
   192  
   193  func NewProjectsDatasetsService(s *Service) *ProjectsDatasetsService {
   194  	rs := &ProjectsDatasetsService{s: s}
   195  	rs.AnnotatedDatasets = NewProjectsDatasetsAnnotatedDatasetsService(s)
   196  	rs.DataItems = NewProjectsDatasetsDataItemsService(s)
   197  	rs.Evaluations = NewProjectsDatasetsEvaluationsService(s)
   198  	rs.Image = NewProjectsDatasetsImageService(s)
   199  	rs.Text = NewProjectsDatasetsTextService(s)
   200  	rs.Video = NewProjectsDatasetsVideoService(s)
   201  	return rs
   202  }
   203  
   204  type ProjectsDatasetsService struct {
   205  	s *Service
   206  
   207  	AnnotatedDatasets *ProjectsDatasetsAnnotatedDatasetsService
   208  
   209  	DataItems *ProjectsDatasetsDataItemsService
   210  
   211  	Evaluations *ProjectsDatasetsEvaluationsService
   212  
   213  	Image *ProjectsDatasetsImageService
   214  
   215  	Text *ProjectsDatasetsTextService
   216  
   217  	Video *ProjectsDatasetsVideoService
   218  }
   219  
   220  func NewProjectsDatasetsAnnotatedDatasetsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsService {
   221  	rs := &ProjectsDatasetsAnnotatedDatasetsService{s: s}
   222  	rs.DataItems = NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s)
   223  	rs.Examples = NewProjectsDatasetsAnnotatedDatasetsExamplesService(s)
   224  	rs.FeedbackThreads = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s)
   225  	return rs
   226  }
   227  
   228  type ProjectsDatasetsAnnotatedDatasetsService struct {
   229  	s *Service
   230  
   231  	DataItems *ProjectsDatasetsAnnotatedDatasetsDataItemsService
   232  
   233  	Examples *ProjectsDatasetsAnnotatedDatasetsExamplesService
   234  
   235  	FeedbackThreads *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService
   236  }
   237  
   238  func NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsDataItemsService {
   239  	rs := &ProjectsDatasetsAnnotatedDatasetsDataItemsService{s: s}
   240  	return rs
   241  }
   242  
   243  type ProjectsDatasetsAnnotatedDatasetsDataItemsService struct {
   244  	s *Service
   245  }
   246  
   247  func NewProjectsDatasetsAnnotatedDatasetsExamplesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsExamplesService {
   248  	rs := &ProjectsDatasetsAnnotatedDatasetsExamplesService{s: s}
   249  	return rs
   250  }
   251  
   252  type ProjectsDatasetsAnnotatedDatasetsExamplesService struct {
   253  	s *Service
   254  }
   255  
   256  func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService {
   257  	rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService{s: s}
   258  	rs.FeedbackMessages = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s)
   259  	return rs
   260  }
   261  
   262  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService struct {
   263  	s *Service
   264  
   265  	FeedbackMessages *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService
   266  }
   267  
   268  func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService {
   269  	rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService{s: s}
   270  	return rs
   271  }
   272  
   273  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService struct {
   274  	s *Service
   275  }
   276  
   277  func NewProjectsDatasetsDataItemsService(s *Service) *ProjectsDatasetsDataItemsService {
   278  	rs := &ProjectsDatasetsDataItemsService{s: s}
   279  	return rs
   280  }
   281  
   282  type ProjectsDatasetsDataItemsService struct {
   283  	s *Service
   284  }
   285  
   286  func NewProjectsDatasetsEvaluationsService(s *Service) *ProjectsDatasetsEvaluationsService {
   287  	rs := &ProjectsDatasetsEvaluationsService{s: s}
   288  	rs.ExampleComparisons = NewProjectsDatasetsEvaluationsExampleComparisonsService(s)
   289  	return rs
   290  }
   291  
   292  type ProjectsDatasetsEvaluationsService struct {
   293  	s *Service
   294  
   295  	ExampleComparisons *ProjectsDatasetsEvaluationsExampleComparisonsService
   296  }
   297  
   298  func NewProjectsDatasetsEvaluationsExampleComparisonsService(s *Service) *ProjectsDatasetsEvaluationsExampleComparisonsService {
   299  	rs := &ProjectsDatasetsEvaluationsExampleComparisonsService{s: s}
   300  	return rs
   301  }
   302  
   303  type ProjectsDatasetsEvaluationsExampleComparisonsService struct {
   304  	s *Service
   305  }
   306  
   307  func NewProjectsDatasetsImageService(s *Service) *ProjectsDatasetsImageService {
   308  	rs := &ProjectsDatasetsImageService{s: s}
   309  	return rs
   310  }
   311  
   312  type ProjectsDatasetsImageService struct {
   313  	s *Service
   314  }
   315  
   316  func NewProjectsDatasetsTextService(s *Service) *ProjectsDatasetsTextService {
   317  	rs := &ProjectsDatasetsTextService{s: s}
   318  	return rs
   319  }
   320  
   321  type ProjectsDatasetsTextService struct {
   322  	s *Service
   323  }
   324  
   325  func NewProjectsDatasetsVideoService(s *Service) *ProjectsDatasetsVideoService {
   326  	rs := &ProjectsDatasetsVideoService{s: s}
   327  	return rs
   328  }
   329  
   330  type ProjectsDatasetsVideoService struct {
   331  	s *Service
   332  }
   333  
   334  func NewProjectsEvaluationJobsService(s *Service) *ProjectsEvaluationJobsService {
   335  	rs := &ProjectsEvaluationJobsService{s: s}
   336  	return rs
   337  }
   338  
   339  type ProjectsEvaluationJobsService struct {
   340  	s *Service
   341  }
   342  
   343  func NewProjectsEvaluationsService(s *Service) *ProjectsEvaluationsService {
   344  	rs := &ProjectsEvaluationsService{s: s}
   345  	return rs
   346  }
   347  
   348  type ProjectsEvaluationsService struct {
   349  	s *Service
   350  }
   351  
   352  func NewProjectsInstructionsService(s *Service) *ProjectsInstructionsService {
   353  	rs := &ProjectsInstructionsService{s: s}
   354  	return rs
   355  }
   356  
   357  type ProjectsInstructionsService struct {
   358  	s *Service
   359  }
   360  
   361  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   362  	rs := &ProjectsOperationsService{s: s}
   363  	return rs
   364  }
   365  
   366  type ProjectsOperationsService struct {
   367  	s *Service
   368  }
   369  
   370  // GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata: Metadata of a
   371  // CreateInstruction operation.
   372  type GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata struct {
   373  	// CreateTime: Timestamp when create instruction request was created.
   374  	CreateTime string `json:"createTime,omitempty"`
   375  	// Instruction: The name of the created Instruction.
   376  	// projects/{project_id}/instructions/{instruction_id}
   377  	Instruction string `json:"instruction,omitempty"`
   378  	// PartialFailures: Partial failures encountered. E.g. single files that
   379  	// couldn't be read. Status details field will contain standard GCP error
   380  	// details.
   381  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
   382  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   383  	// unconditionally include in API requests. By default, fields with empty or
   384  	// default values are omitted from API requests. See
   385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   386  	// details.
   387  	ForceSendFields []string `json:"-"`
   388  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   389  	// requests with the JSON null value. By default, fields with empty values are
   390  	// omitted from API requests. See
   391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   392  	NullFields []string `json:"-"`
   393  }
   394  
   395  func (s *GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
   396  	type NoMethod GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata
   397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   398  }
   399  
   400  // GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata: Metadata of an
   401  // ExportData operation.
   402  type GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata struct {
   403  	// AnnotatedDataset: Output only. The name of annotated dataset in format
   404  	// "projects/*/datasets/*/annotatedDatasets/*".
   405  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
   406  	// CreateTime: Output only. Timestamp when export dataset request was created.
   407  	CreateTime string `json:"createTime,omitempty"`
   408  	// Dataset: Output only. The name of dataset to be exported.
   409  	// "projects/*/datasets/*"
   410  	Dataset string `json:"dataset,omitempty"`
   411  	// PartialFailures: Output only. Partial failures encountered. E.g. single
   412  	// files that couldn't be read. Status details field will contain standard GCP
   413  	// error details.
   414  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
   415  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
   416  	// unconditionally include in API requests. By default, fields with empty or
   417  	// default values are omitted from API requests. See
   418  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   419  	// details.
   420  	ForceSendFields []string `json:"-"`
   421  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
   422  	// API requests with the JSON null value. By default, fields with empty values
   423  	// are omitted from API requests. See
   424  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   425  	NullFields []string `json:"-"`
   426  }
   427  
   428  func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
   429  	type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata
   430  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   431  }
   432  
   433  // GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse: Response used
   434  // for ExportDataset longrunning operation.
   435  type GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse struct {
   436  	// AnnotatedDataset: Output only. The name of annotated dataset in format
   437  	// "projects/*/datasets/*/annotatedDatasets/*".
   438  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
   439  	// Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*"
   440  	Dataset string `json:"dataset,omitempty"`
   441  	// ExportCount: Output only. Number of examples exported successfully.
   442  	ExportCount int64 `json:"exportCount,omitempty"`
   443  	// LabelStats: Output only. Statistic infos of labels in the exported dataset.
   444  	LabelStats *GoogleCloudDatalabelingV1alpha1LabelStats `json:"labelStats,omitempty"`
   445  	// OutputConfig: Output only. output_config in the ExportData request.
   446  	OutputConfig *GoogleCloudDatalabelingV1alpha1OutputConfig `json:"outputConfig,omitempty"`
   447  	// TotalCount: Output only. Total number of examples requested to export
   448  	TotalCount int64 `json:"totalCount,omitempty"`
   449  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
   450  	// unconditionally include in API requests. By default, fields with empty or
   451  	// default values are omitted from API requests. See
   452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   453  	// details.
   454  	ForceSendFields []string `json:"-"`
   455  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
   456  	// API requests with the JSON null value. By default, fields with empty values
   457  	// are omitted from API requests. See
   458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   459  	NullFields []string `json:"-"`
   460  }
   461  
   462  func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
   463  	type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse
   464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   465  }
   466  
   467  // GoogleCloudDatalabelingV1alpha1GcsDestination: Export destination of the
   468  // data.Only gcs path is allowed in output_uri.
   469  type GoogleCloudDatalabelingV1alpha1GcsDestination struct {
   470  	// MimeType: Required. The format of the gcs destination. Only "text/csv" and
   471  	// "application/json" are supported.
   472  	MimeType string `json:"mimeType,omitempty"`
   473  	// OutputUri: Required. The output uri of destination file.
   474  	OutputUri string `json:"outputUri,omitempty"`
   475  	// ForceSendFields is a list of field names (e.g. "MimeType") to
   476  	// unconditionally include in API requests. By default, fields with empty or
   477  	// default values are omitted from API requests. See
   478  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   479  	// details.
   480  	ForceSendFields []string `json:"-"`
   481  	// NullFields is a list of field names (e.g. "MimeType") to include in API
   482  	// requests with the JSON null value. By default, fields with empty values are
   483  	// omitted from API requests. See
   484  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   485  	NullFields []string `json:"-"`
   486  }
   487  
   488  func (s *GoogleCloudDatalabelingV1alpha1GcsDestination) MarshalJSON() ([]byte, error) {
   489  	type NoMethod GoogleCloudDatalabelingV1alpha1GcsDestination
   490  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   491  }
   492  
   493  // GoogleCloudDatalabelingV1alpha1GcsFolderDestination: Export folder
   494  // destination of the data.
   495  type GoogleCloudDatalabelingV1alpha1GcsFolderDestination struct {
   496  	// OutputFolderUri: Required. Cloud Storage directory to export data to.
   497  	OutputFolderUri string `json:"outputFolderUri,omitempty"`
   498  	// ForceSendFields is a list of field names (e.g. "OutputFolderUri") to
   499  	// unconditionally include in API requests. By default, fields with empty or
   500  	// default values are omitted from API requests. See
   501  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   502  	// details.
   503  	ForceSendFields []string `json:"-"`
   504  	// NullFields is a list of field names (e.g. "OutputFolderUri") to include in
   505  	// API requests with the JSON null value. By default, fields with empty values
   506  	// are omitted from API requests. See
   507  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   508  	NullFields []string `json:"-"`
   509  }
   510  
   511  func (s *GoogleCloudDatalabelingV1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
   512  	type NoMethod GoogleCloudDatalabelingV1alpha1GcsFolderDestination
   513  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   514  }
   515  
   516  // GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig: Configuration for how
   517  // human labeling task should be done.
   518  type GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig struct {
   519  	// AnnotatedDatasetDescription: Optional. A human-readable description for
   520  	// AnnotatedDataset. The description can be up to 10000 characters long.
   521  	AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
   522  	// AnnotatedDatasetDisplayName: Required. A human-readable name for
   523  	// AnnotatedDataset defined by users. Maximum of 64 characters .
   524  	AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
   525  	// ContributorEmails: Optional. If you want your own labeling contributors to
   526  	// manage and work on this labeling request, you can set these contributors
   527  	// here. We will give them access to the question types in crowdcompute. Note
   528  	// that these emails must be registered in crowdcompute worker UI:
   529  	// https://crowd-compute.appspot.com/
   530  	ContributorEmails []string `json:"contributorEmails,omitempty"`
   531  	// Instruction: Required. Instruction resource name.
   532  	Instruction string `json:"instruction,omitempty"`
   533  	// LabelGroup: Optional. A human-readable label used to logically group
   534  	// labeling tasks. This string must match the regular expression
   535  	// `[a-zA-Z\\d_-]{0,128}`.
   536  	LabelGroup string `json:"labelGroup,omitempty"`
   537  	// LanguageCode: Optional. The Language of this question, as a BCP-47
   538  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only
   539  	// need to set this when task is language related. For example, French text
   540  	// classification.
   541  	LanguageCode string `json:"languageCode,omitempty"`
   542  	// QuestionDuration: Optional. Maximum duration for contributors to answer a
   543  	// question. Maximum is 3600 seconds. Default is 3600 seconds.
   544  	QuestionDuration string `json:"questionDuration,omitempty"`
   545  	// ReplicaCount: Optional. Replication of questions. Each question will be sent
   546  	// to up to this number of contributors to label. Aggregated answers will be
   547  	// returned. Default is set to 1. For image related labeling, valid values are
   548  	// 1, 3, 5.
   549  	ReplicaCount int64 `json:"replicaCount,omitempty"`
   550  	// UserEmailAddress: Email of the user who started the labeling task and should
   551  	// be notified by email. If empty no notification will be sent.
   552  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
   553  	// ForceSendFields is a list of field names (e.g.
   554  	// "AnnotatedDatasetDescription") to unconditionally include in API requests.
   555  	// By default, fields with empty or default values are omitted from API
   556  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
   557  	// for more details.
   558  	ForceSendFields []string `json:"-"`
   559  	// NullFields is a list of field names (e.g. "AnnotatedDatasetDescription") to
   560  	// include in API requests with the JSON null value. By default, fields with
   561  	// empty values are omitted from API requests. See
   562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   563  	NullFields []string `json:"-"`
   564  }
   565  
   566  func (s *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
   567  	type NoMethod GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig
   568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   569  }
   570  
   571  // GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata: Metadata of an
   572  // ImportData operation.
   573  type GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata struct {
   574  	// CreateTime: Output only. Timestamp when import dataset request was created.
   575  	CreateTime string `json:"createTime,omitempty"`
   576  	// Dataset: Output only. The name of imported dataset. "projects/*/datasets/*"
   577  	Dataset string `json:"dataset,omitempty"`
   578  	// PartialFailures: Output only. Partial failures encountered. E.g. single
   579  	// files that couldn't be read. Status details field will contain standard GCP
   580  	// error details.
   581  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
   582  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
   583  	// unconditionally include in API requests. By default, fields with empty or
   584  	// default values are omitted from API requests. See
   585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   586  	// details.
   587  	ForceSendFields []string `json:"-"`
   588  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
   589  	// requests with the JSON null value. By default, fields with empty values are
   590  	// omitted from API requests. See
   591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   592  	NullFields []string `json:"-"`
   593  }
   594  
   595  func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
   596  	type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata
   597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   598  }
   599  
   600  // GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse: Response used
   601  // for ImportData longrunning operation.
   602  type GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse struct {
   603  	// Dataset: Ouptut only. The name of imported dataset.
   604  	Dataset string `json:"dataset,omitempty"`
   605  	// ImportCount: Output only. Number of examples imported successfully.
   606  	ImportCount int64 `json:"importCount,omitempty"`
   607  	// TotalCount: Output only. Total number of examples requested to import
   608  	TotalCount int64 `json:"totalCount,omitempty"`
   609  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
   610  	// include in API requests. By default, fields with empty or default values are
   611  	// omitted from API requests. See
   612  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   613  	// details.
   614  	ForceSendFields []string `json:"-"`
   615  	// NullFields is a list of field names (e.g. "Dataset") to include in API
   616  	// requests with the JSON null value. By default, fields with empty values are
   617  	// omitted from API requests. See
   618  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   619  	NullFields []string `json:"-"`
   620  }
   621  
   622  func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
   623  	type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse
   624  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   625  }
   626  
   627  // GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata:
   628  // Details of a LabelImageBoundingBox operation metadata.
   629  type GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata struct {
   630  	// BasicConfig: Basic human annotation config used in labeling request.
   631  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   632  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   633  	// unconditionally include in API requests. By default, fields with empty or
   634  	// default values are omitted from API requests. See
   635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   636  	// details.
   637  	ForceSendFields []string `json:"-"`
   638  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   639  	// requests with the JSON null value. By default, fields with empty values are
   640  	// omitted from API requests. See
   641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   642  	NullFields []string `json:"-"`
   643  }
   644  
   645  func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
   646  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata
   647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   648  }
   649  
   650  // GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata:
   651  // Details of LabelImageBoundingPoly operation metadata.
   652  type GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata struct {
   653  	// BasicConfig: Basic human annotation config used in labeling request.
   654  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   655  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   656  	// unconditionally include in API requests. By default, fields with empty or
   657  	// default values are omitted from API requests. See
   658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   659  	// details.
   660  	ForceSendFields []string `json:"-"`
   661  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   662  	// requests with the JSON null value. By default, fields with empty values are
   663  	// omitted from API requests. See
   664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   665  	NullFields []string `json:"-"`
   666  }
   667  
   668  func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
   669  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata
   670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   671  }
   672  
   673  // GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata:
   674  // Metadata of a LabelImageClassification operation.
   675  type GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata struct {
   676  	// BasicConfig: Basic human annotation config used in labeling request.
   677  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   678  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   679  	// unconditionally include in API requests. By default, fields with empty or
   680  	// default values are omitted from API requests. See
   681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   682  	// details.
   683  	ForceSendFields []string `json:"-"`
   684  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   685  	// requests with the JSON null value. By default, fields with empty values are
   686  	// omitted from API requests. See
   687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   688  	NullFields []string `json:"-"`
   689  }
   690  
   691  func (s *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
   692  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata
   693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   694  }
   695  
   696  // GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata
   697  // : Details of a LabelImageOrientedBoundingBox operation metadata.
   698  type GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
   699  	// BasicConfig: Basic human annotation config.
   700  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   701  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   702  	// unconditionally include in API requests. By default, fields with empty or
   703  	// default values are omitted from API requests. See
   704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   705  	// details.
   706  	ForceSendFields []string `json:"-"`
   707  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   708  	// requests with the JSON null value. By default, fields with empty values are
   709  	// omitted from API requests. See
   710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   711  	NullFields []string `json:"-"`
   712  }
   713  
   714  func (s *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
   715  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata
   716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   717  }
   718  
   719  // GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata: Details
   720  // of LabelImagePolyline operation metadata.
   721  type GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata struct {
   722  	// BasicConfig: Basic human annotation config used in labeling request.
   723  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   724  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   725  	// unconditionally include in API requests. By default, fields with empty or
   726  	// default values are omitted from API requests. See
   727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   728  	// details.
   729  	ForceSendFields []string `json:"-"`
   730  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   731  	// requests with the JSON null value. By default, fields with empty values are
   732  	// omitted from API requests. See
   733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   734  	NullFields []string `json:"-"`
   735  }
   736  
   737  func (s *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
   738  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata
   739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   740  }
   741  
   742  // GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata:
   743  // Details of a LabelImageSegmentation operation metadata.
   744  type GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata struct {
   745  	// BasicConfig: Basic human annotation config.
   746  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   747  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   748  	// unconditionally include in API requests. By default, fields with empty or
   749  	// default values are omitted from API requests. See
   750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   751  	// details.
   752  	ForceSendFields []string `json:"-"`
   753  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   754  	// requests with the JSON null value. By default, fields with empty values are
   755  	// omitted from API requests. See
   756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   757  	NullFields []string `json:"-"`
   758  }
   759  
   760  func (s *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
   761  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata
   762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   763  }
   764  
   765  // GoogleCloudDatalabelingV1alpha1LabelOperationMetadata: Metadata of a
   766  // labeling operation, such as LabelImage or LabelVideo. Next tag: 23
   767  type GoogleCloudDatalabelingV1alpha1LabelOperationMetadata struct {
   768  	// AnnotatedDataset: Output only. The name of annotated dataset in format
   769  	// "projects/*/datasets/*/annotatedDatasets/*".
   770  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
   771  	// CreateTime: Output only. Timestamp when labeling request was created.
   772  	CreateTime string `json:"createTime,omitempty"`
   773  	// Dataset: Output only. The name of dataset to be labeled.
   774  	// "projects/*/datasets/*"
   775  	Dataset string `json:"dataset,omitempty"`
   776  	// ImageBoundingBoxDetails: Details of label image bounding box operation.
   777  	ImageBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
   778  	// ImageBoundingPolyDetails: Details of label image bounding poly operation.
   779  	ImageBoundingPolyDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
   780  	// ImageClassificationDetails: Details of label image classification operation.
   781  	ImageClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
   782  	// ImageOrientedBoundingBoxDetails: Details of label image oriented bounding
   783  	// box operation.
   784  	ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
   785  	// ImagePolylineDetails: Details of label image polyline operation.
   786  	ImagePolylineDetails *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
   787  	// ImageSegmentationDetails: Details of label image segmentation operation.
   788  	ImageSegmentationDetails *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
   789  	// PartialFailures: Output only. Partial failures encountered. E.g. single
   790  	// files that couldn't be read. Status details field will contain standard GCP
   791  	// error details.
   792  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
   793  	// ProgressPercent: Output only. Progress of label operation. Range: [0, 100].
   794  	ProgressPercent int64 `json:"progressPercent,omitempty"`
   795  	// TextClassificationDetails: Details of label text classification operation.
   796  	TextClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
   797  	// TextEntityExtractionDetails: Details of label text entity extraction
   798  	// operation.
   799  	TextEntityExtractionDetails *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
   800  	// VideoClassificationDetails: Details of label video classification operation.
   801  	VideoClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
   802  	// VideoEventDetails: Details of label video event operation.
   803  	VideoEventDetails *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
   804  	// VideoObjectDetectionDetails: Details of label video object detection
   805  	// operation.
   806  	VideoObjectDetectionDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
   807  	// VideoObjectTrackingDetails: Details of label video object tracking
   808  	// operation.
   809  	VideoObjectTrackingDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
   810  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
   811  	// unconditionally include in API requests. By default, fields with empty or
   812  	// default values are omitted from API requests. See
   813  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   814  	// details.
   815  	ForceSendFields []string `json:"-"`
   816  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
   817  	// API requests with the JSON null value. By default, fields with empty values
   818  	// are omitted from API requests. See
   819  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   820  	NullFields []string `json:"-"`
   821  }
   822  
   823  func (s *GoogleCloudDatalabelingV1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
   824  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelOperationMetadata
   825  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   826  }
   827  
   828  // GoogleCloudDatalabelingV1alpha1LabelStats: Statistics about annotation
   829  // specs.
   830  type GoogleCloudDatalabelingV1alpha1LabelStats struct {
   831  	// ExampleCount: Map of each annotation spec's example count. Key is the
   832  	// annotation spec name and value is the number of examples for that annotation
   833  	// spec. If the annotated dataset does not have annotation spec, the map will
   834  	// return a pair where the key is empty string and value is the total number of
   835  	// annotations.
   836  	ExampleCount map[string]string `json:"exampleCount,omitempty"`
   837  	// ForceSendFields is a list of field names (e.g. "ExampleCount") to
   838  	// unconditionally include in API requests. By default, fields with empty or
   839  	// default values are omitted from API requests. See
   840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   841  	// details.
   842  	ForceSendFields []string `json:"-"`
   843  	// NullFields is a list of field names (e.g. "ExampleCount") to include in API
   844  	// requests with the JSON null value. By default, fields with empty values are
   845  	// omitted from API requests. See
   846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   847  	NullFields []string `json:"-"`
   848  }
   849  
   850  func (s *GoogleCloudDatalabelingV1alpha1LabelStats) MarshalJSON() ([]byte, error) {
   851  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelStats
   852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   853  }
   854  
   855  // GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata:
   856  // Details of a LabelTextClassification operation metadata.
   857  type GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata struct {
   858  	// BasicConfig: Basic human annotation config used in labeling request.
   859  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   860  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   861  	// unconditionally include in API requests. By default, fields with empty or
   862  	// default values are omitted from API requests. See
   863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   864  	// details.
   865  	ForceSendFields []string `json:"-"`
   866  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   867  	// requests with the JSON null value. By default, fields with empty values are
   868  	// omitted from API requests. See
   869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   870  	NullFields []string `json:"-"`
   871  }
   872  
   873  func (s *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
   874  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata
   875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   876  }
   877  
   878  // GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata:
   879  // Details of a LabelTextEntityExtraction operation metadata.
   880  type GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata struct {
   881  	// BasicConfig: Basic human annotation config used in labeling request.
   882  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   883  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   884  	// unconditionally include in API requests. By default, fields with empty or
   885  	// default values are omitted from API requests. See
   886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   887  	// details.
   888  	ForceSendFields []string `json:"-"`
   889  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   890  	// requests with the JSON null value. By default, fields with empty values are
   891  	// omitted from API requests. See
   892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   893  	NullFields []string `json:"-"`
   894  }
   895  
   896  func (s *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
   897  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata
   898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   899  }
   900  
   901  // GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata:
   902  // Details of a LabelVideoClassification operation metadata.
   903  type GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata struct {
   904  	// BasicConfig: Basic human annotation config used in labeling request.
   905  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   906  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   907  	// unconditionally include in API requests. By default, fields with empty or
   908  	// default values are omitted from API requests. See
   909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   910  	// details.
   911  	ForceSendFields []string `json:"-"`
   912  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   913  	// requests with the JSON null value. By default, fields with empty values are
   914  	// omitted from API requests. See
   915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   916  	NullFields []string `json:"-"`
   917  }
   918  
   919  func (s *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
   920  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata
   921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   922  }
   923  
   924  // GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata: Details of
   925  // a LabelVideoEvent operation metadata.
   926  type GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata struct {
   927  	// BasicConfig: Basic human annotation config used in labeling request.
   928  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   929  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   930  	// unconditionally include in API requests. By default, fields with empty or
   931  	// default values are omitted from API requests. See
   932  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   933  	// details.
   934  	ForceSendFields []string `json:"-"`
   935  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   936  	// requests with the JSON null value. By default, fields with empty values are
   937  	// omitted from API requests. See
   938  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   939  	NullFields []string `json:"-"`
   940  }
   941  
   942  func (s *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
   943  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata
   944  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   945  }
   946  
   947  // GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata:
   948  // Details of a LabelVideoObjectDetection operation metadata.
   949  type GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata struct {
   950  	// BasicConfig: Basic human annotation config used in labeling request.
   951  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   952  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   953  	// unconditionally include in API requests. By default, fields with empty or
   954  	// default values are omitted from API requests. See
   955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   956  	// details.
   957  	ForceSendFields []string `json:"-"`
   958  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   959  	// requests with the JSON null value. By default, fields with empty values are
   960  	// omitted from API requests. See
   961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   962  	NullFields []string `json:"-"`
   963  }
   964  
   965  func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
   966  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata
   967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   968  }
   969  
   970  // GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata:
   971  // Details of a LabelVideoObjectTracking operation metadata.
   972  type GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata struct {
   973  	// BasicConfig: Basic human annotation config used in labeling request.
   974  	BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
   975  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
   976  	// unconditionally include in API requests. By default, fields with empty or
   977  	// default values are omitted from API requests. See
   978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   979  	// details.
   980  	ForceSendFields []string `json:"-"`
   981  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
   982  	// requests with the JSON null value. By default, fields with empty values are
   983  	// omitted from API requests. See
   984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   985  	NullFields []string `json:"-"`
   986  }
   987  
   988  func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
   989  	type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata
   990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   991  }
   992  
   993  // GoogleCloudDatalabelingV1alpha1OutputConfig: The configuration of output
   994  // data.
   995  type GoogleCloudDatalabelingV1alpha1OutputConfig struct {
   996  	// GcsDestination: Output to a file in Cloud Storage. Should be used for
   997  	// labeling output other than image segmentation.
   998  	GcsDestination *GoogleCloudDatalabelingV1alpha1GcsDestination `json:"gcsDestination,omitempty"`
   999  	// GcsFolderDestination: Output to a folder in Cloud Storage. Should be used
  1000  	// for image segmentation or document de-identification labeling outputs.
  1001  	GcsFolderDestination *GoogleCloudDatalabelingV1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
  1002  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  1003  	// unconditionally include in API requests. By default, fields with empty or
  1004  	// default values are omitted from API requests. See
  1005  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1006  	// details.
  1007  	ForceSendFields []string `json:"-"`
  1008  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  1009  	// API requests with the JSON null value. By default, fields with empty values
  1010  	// are omitted from API requests. See
  1011  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1012  	NullFields []string `json:"-"`
  1013  }
  1014  
  1015  func (s *GoogleCloudDatalabelingV1alpha1OutputConfig) MarshalJSON() ([]byte, error) {
  1016  	type NoMethod GoogleCloudDatalabelingV1alpha1OutputConfig
  1017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1018  }
  1019  
  1020  // GoogleCloudDatalabelingV1beta1AnnotatedDataset: AnnotatedDataset is a set
  1021  // holding annotations for data in a Dataset. Each labeling task will generate
  1022  // an AnnotatedDataset under the Dataset that the task is requested for.
  1023  type GoogleCloudDatalabelingV1beta1AnnotatedDataset struct {
  1024  	// AnnotationSource: Output only. Source of the annotation.
  1025  	//
  1026  	// Possible values:
  1027  	//   "ANNOTATION_SOURCE_UNSPECIFIED"
  1028  	//   "OPERATOR" - Answer is provided by a human contributor.
  1029  	AnnotationSource string `json:"annotationSource,omitempty"`
  1030  	// AnnotationType: Output only. Type of the annotation. It is specified when
  1031  	// starting labeling task.
  1032  	//
  1033  	// Possible values:
  1034  	//   "ANNOTATION_TYPE_UNSPECIFIED"
  1035  	//   "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in an
  1036  	// image. Allowed for continuous evaluation.
  1037  	//   "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an image. A
  1038  	// form of image object detection. Allowed for continuous evaluation.
  1039  	//   "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. The box
  1040  	// does not have to be parallel to horizontal line.
  1041  	//   "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an image.
  1042  	//   "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image.
  1043  	//   "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an image.
  1044  	//   "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification annotations in
  1045  	// video shots.
  1046  	//   "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking annotation.
  1047  	//   "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection annotation.
  1048  	//   "VIDEO_EVENT_ANNOTATION" - Video event annotation.
  1049  	//   "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed for
  1050  	// continuous evaluation.
  1051  	//   "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text.
  1052  	//   "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. Allowed for
  1053  	// continuous evaluation.
  1054  	AnnotationType string `json:"annotationType,omitempty"`
  1055  	// BlockingResources: Output only. The names of any related resources that are
  1056  	// blocking changes to the annotated dataset.
  1057  	BlockingResources []string `json:"blockingResources,omitempty"`
  1058  	// CompletedExampleCount: Output only. Number of examples that have annotation
  1059  	// in the annotated dataset.
  1060  	CompletedExampleCount int64 `json:"completedExampleCount,omitempty,string"`
  1061  	// CreateTime: Output only. Time the AnnotatedDataset was created.
  1062  	CreateTime string `json:"createTime,omitempty"`
  1063  	// Description: Output only. The description of the AnnotatedDataset. It is
  1064  	// specified in HumanAnnotationConfig when user starts a labeling task. Maximum
  1065  	// of 10000 characters.
  1066  	Description string `json:"description,omitempty"`
  1067  	// DisplayName: Output only. The display name of the AnnotatedDataset. It is
  1068  	// specified in HumanAnnotationConfig when user starts a labeling task. Maximum
  1069  	// of 64 characters.
  1070  	DisplayName string `json:"displayName,omitempty"`
  1071  	// ExampleCount: Output only. Number of examples in the annotated dataset.
  1072  	ExampleCount int64 `json:"exampleCount,omitempty,string"`
  1073  	// LabelStats: Output only. Per label statistics.
  1074  	LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"`
  1075  	// Metadata: Output only. Additional information about AnnotatedDataset.
  1076  	Metadata *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata `json:"metadata,omitempty"`
  1077  	// Name: Output only. AnnotatedDataset resource name in format of:
  1078  	// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  1079  	// {annotated_dataset_id}
  1080  	Name string `json:"name,omitempty"`
  1081  
  1082  	// ServerResponse contains the HTTP response code and headers from the server.
  1083  	googleapi.ServerResponse `json:"-"`
  1084  	// ForceSendFields is a list of field names (e.g. "AnnotationSource") to
  1085  	// unconditionally include in API requests. By default, fields with empty or
  1086  	// default values are omitted from API requests. See
  1087  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1088  	// details.
  1089  	ForceSendFields []string `json:"-"`
  1090  	// NullFields is a list of field names (e.g. "AnnotationSource") to include in
  1091  	// API requests with the JSON null value. By default, fields with empty values
  1092  	// are omitted from API requests. See
  1093  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1094  	NullFields []string `json:"-"`
  1095  }
  1096  
  1097  func (s *GoogleCloudDatalabelingV1beta1AnnotatedDataset) MarshalJSON() ([]byte, error) {
  1098  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDataset
  1099  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1100  }
  1101  
  1102  // GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata: Metadata on
  1103  // AnnotatedDataset.
  1104  type GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata struct {
  1105  	// BoundingPolyConfig: Configuration for image bounding box and bounding poly
  1106  	// task.
  1107  	BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
  1108  	// EventConfig: Configuration for video event labeling task.
  1109  	EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"`
  1110  	// HumanAnnotationConfig: HumanAnnotationConfig used when requesting the human
  1111  	// labeling task for this AnnotatedDataset.
  1112  	HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"`
  1113  	// ImageClassificationConfig: Configuration for image classification task.
  1114  	ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
  1115  	// ObjectDetectionConfig: Configuration for video object detection task.
  1116  	ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"`
  1117  	// ObjectTrackingConfig: Configuration for video object tracking task.
  1118  	ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"`
  1119  	// PolylineConfig: Configuration for image polyline task.
  1120  	PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"`
  1121  	// SegmentationConfig: Configuration for image segmentation task.
  1122  	SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"`
  1123  	// TextClassificationConfig: Configuration for text classification task.
  1124  	TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
  1125  	// TextEntityExtractionConfig: Configuration for text entity extraction task.
  1126  	TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"`
  1127  	// VideoClassificationConfig: Configuration for video classification task.
  1128  	VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"`
  1129  	// ForceSendFields is a list of field names (e.g. "BoundingPolyConfig") to
  1130  	// unconditionally include in API requests. By default, fields with empty or
  1131  	// default values are omitted from API requests. See
  1132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1133  	// details.
  1134  	ForceSendFields []string `json:"-"`
  1135  	// NullFields is a list of field names (e.g. "BoundingPolyConfig") to include
  1136  	// in API requests with the JSON null value. By default, fields with empty
  1137  	// values are omitted from API requests. See
  1138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1139  	NullFields []string `json:"-"`
  1140  }
  1141  
  1142  func (s *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata) MarshalJSON() ([]byte, error) {
  1143  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata
  1144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1145  }
  1146  
  1147  // GoogleCloudDatalabelingV1beta1Annotation: Annotation for Example. Each
  1148  // example may have one or more annotations. For example in image
  1149  // classification problem, each image might have one or more labels. We call
  1150  // labels binded with this image an Annotation.
  1151  type GoogleCloudDatalabelingV1beta1Annotation struct {
  1152  	// AnnotationMetadata: Output only. Annotation metadata, including information
  1153  	// like votes for labels.
  1154  	AnnotationMetadata *GoogleCloudDatalabelingV1beta1AnnotationMetadata `json:"annotationMetadata,omitempty"`
  1155  	// AnnotationSentiment: Output only. Sentiment for this annotation.
  1156  	//
  1157  	// Possible values:
  1158  	//   "ANNOTATION_SENTIMENT_UNSPECIFIED"
  1159  	//   "NEGATIVE" - This annotation describes negatively about the data.
  1160  	//   "POSITIVE" - This label describes positively about the data.
  1161  	AnnotationSentiment string `json:"annotationSentiment,omitempty"`
  1162  	// AnnotationSource: Output only. The source of the annotation.
  1163  	//
  1164  	// Possible values:
  1165  	//   "ANNOTATION_SOURCE_UNSPECIFIED"
  1166  	//   "OPERATOR" - Answer is provided by a human contributor.
  1167  	AnnotationSource string `json:"annotationSource,omitempty"`
  1168  	// AnnotationValue: Output only. This is the actual annotation value, e.g
  1169  	// classification, bounding box values are stored here.
  1170  	AnnotationValue *GoogleCloudDatalabelingV1beta1AnnotationValue `json:"annotationValue,omitempty"`
  1171  	// Name: Output only. Unique name of this annotation, format is:
  1172  	// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_data
  1173  	// set}/examples/{example_id}/annotations/{annotation_id}
  1174  	Name string `json:"name,omitempty"`
  1175  	// ForceSendFields is a list of field names (e.g. "AnnotationMetadata") to
  1176  	// unconditionally include in API requests. By default, fields with empty or
  1177  	// default values are omitted from API requests. See
  1178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1179  	// details.
  1180  	ForceSendFields []string `json:"-"`
  1181  	// NullFields is a list of field names (e.g. "AnnotationMetadata") to include
  1182  	// in API requests with the JSON null value. By default, fields with empty
  1183  	// values are omitted from API requests. See
  1184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1185  	NullFields []string `json:"-"`
  1186  }
  1187  
  1188  func (s *GoogleCloudDatalabelingV1beta1Annotation) MarshalJSON() ([]byte, error) {
  1189  	type NoMethod GoogleCloudDatalabelingV1beta1Annotation
  1190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1191  }
  1192  
  1193  // GoogleCloudDatalabelingV1beta1AnnotationMetadata: Additional information
  1194  // associated with the annotation.
  1195  type GoogleCloudDatalabelingV1beta1AnnotationMetadata struct {
  1196  	// OperatorMetadata: Metadata related to human labeling.
  1197  	OperatorMetadata *GoogleCloudDatalabelingV1beta1OperatorMetadata `json:"operatorMetadata,omitempty"`
  1198  	// ForceSendFields is a list of field names (e.g. "OperatorMetadata") to
  1199  	// unconditionally include in API requests. By default, fields with empty or
  1200  	// default values are omitted from API requests. See
  1201  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1202  	// details.
  1203  	ForceSendFields []string `json:"-"`
  1204  	// NullFields is a list of field names (e.g. "OperatorMetadata") to include in
  1205  	// API requests with the JSON null value. By default, fields with empty values
  1206  	// are omitted from API requests. See
  1207  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1208  	NullFields []string `json:"-"`
  1209  }
  1210  
  1211  func (s *GoogleCloudDatalabelingV1beta1AnnotationMetadata) MarshalJSON() ([]byte, error) {
  1212  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotationMetadata
  1213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1214  }
  1215  
  1216  // GoogleCloudDatalabelingV1beta1AnnotationSpec: Container of information
  1217  // related to one possible annotation that can be used in a labeling task. For
  1218  // example, an image classification task where images are labeled as `dog` or
  1219  // `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for
  1220  // `cat`.
  1221  type GoogleCloudDatalabelingV1beta1AnnotationSpec struct {
  1222  	// Description: Optional. User-provided description of the annotation
  1223  	// specification. The description can be up to 10,000 characters long.
  1224  	Description string `json:"description,omitempty"`
  1225  	// DisplayName: Required. The display name of the AnnotationSpec. Maximum of 64
  1226  	// characters.
  1227  	DisplayName string `json:"displayName,omitempty"`
  1228  	// Index: Output only. This is the integer index of the AnnotationSpec. The
  1229  	// index for the whole AnnotationSpecSet is sequential starting from 0. For
  1230  	// example, an AnnotationSpecSet with classes `dog` and `cat`, might contain
  1231  	// one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one
  1232  	// AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially
  1233  	// useful for model training as it encodes the string labels into numeric
  1234  	// values.
  1235  	Index int64 `json:"index,omitempty"`
  1236  	// ForceSendFields is a list of field names (e.g. "Description") to
  1237  	// unconditionally include in API requests. By default, fields with empty or
  1238  	// default values are omitted from API requests. See
  1239  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1240  	// details.
  1241  	ForceSendFields []string `json:"-"`
  1242  	// NullFields is a list of field names (e.g. "Description") to include in API
  1243  	// requests with the JSON null value. By default, fields with empty values are
  1244  	// omitted from API requests. See
  1245  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1246  	NullFields []string `json:"-"`
  1247  }
  1248  
  1249  func (s *GoogleCloudDatalabelingV1beta1AnnotationSpec) MarshalJSON() ([]byte, error) {
  1250  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpec
  1251  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1252  }
  1253  
  1254  // GoogleCloudDatalabelingV1beta1AnnotationSpecSet: An AnnotationSpecSet is a
  1255  // collection of label definitions. For example, in image classification tasks,
  1256  // you define a set of possible labels for images as an AnnotationSpecSet. An
  1257  // AnnotationSpecSet is immutable upon creation.
  1258  type GoogleCloudDatalabelingV1beta1AnnotationSpecSet struct {
  1259  	// AnnotationSpecs: Required. The array of AnnotationSpecs that you define when
  1260  	// you create the AnnotationSpecSet. These are the possible labels for the
  1261  	// labeling task.
  1262  	AnnotationSpecs []*GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpecs,omitempty"`
  1263  	// BlockingResources: Output only. The names of any related resources that are
  1264  	// blocking changes to the annotation spec set.
  1265  	BlockingResources []string `json:"blockingResources,omitempty"`
  1266  	// Description: Optional. User-provided description of the annotation
  1267  	// specification set. The description can be up to 10,000 characters long.
  1268  	Description string `json:"description,omitempty"`
  1269  	// DisplayName: Required. The display name for AnnotationSpecSet that you
  1270  	// define when you create it. Maximum of 64 characters.
  1271  	DisplayName string `json:"displayName,omitempty"`
  1272  	// Name: Output only. The AnnotationSpecSet resource name in the following
  1273  	// format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
  1274  	Name string `json:"name,omitempty"`
  1275  
  1276  	// ServerResponse contains the HTTP response code and headers from the server.
  1277  	googleapi.ServerResponse `json:"-"`
  1278  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecs") to
  1279  	// unconditionally include in API requests. By default, fields with empty or
  1280  	// default values are omitted from API requests. See
  1281  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1282  	// details.
  1283  	ForceSendFields []string `json:"-"`
  1284  	// NullFields is a list of field names (e.g. "AnnotationSpecs") to include in
  1285  	// API requests with the JSON null value. By default, fields with empty values
  1286  	// are omitted from API requests. See
  1287  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1288  	NullFields []string `json:"-"`
  1289  }
  1290  
  1291  func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSet) MarshalJSON() ([]byte, error) {
  1292  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSet
  1293  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1294  }
  1295  
  1296  // GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig: Annotation spec set
  1297  // with the setting of allowing multi labels or not.
  1298  type GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig struct {
  1299  	// AllowMultiLabel: Optional. If allow_multi_label is true, contributors are
  1300  	// able to choose multiple labels from one annotation spec set.
  1301  	AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
  1302  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  1303  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  1304  	// ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to
  1305  	// unconditionally include in API requests. By default, fields with empty or
  1306  	// default values are omitted from API requests. See
  1307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1308  	// details.
  1309  	ForceSendFields []string `json:"-"`
  1310  	// NullFields is a list of field names (e.g. "AllowMultiLabel") to include in
  1311  	// API requests with the JSON null value. By default, fields with empty values
  1312  	// are omitted from API requests. See
  1313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1314  	NullFields []string `json:"-"`
  1315  }
  1316  
  1317  func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig) MarshalJSON() ([]byte, error) {
  1318  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig
  1319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1320  }
  1321  
  1322  // GoogleCloudDatalabelingV1beta1AnnotationValue: Annotation value for an
  1323  // example.
  1324  type GoogleCloudDatalabelingV1beta1AnnotationValue struct {
  1325  	// ImageBoundingPolyAnnotation: Annotation value for image bounding box,
  1326  	// oriented bounding box and polygon cases.
  1327  	ImageBoundingPolyAnnotation *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation `json:"imageBoundingPolyAnnotation,omitempty"`
  1328  	// ImageClassificationAnnotation: Annotation value for image classification
  1329  	// case.
  1330  	ImageClassificationAnnotation *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation `json:"imageClassificationAnnotation,omitempty"`
  1331  	// ImagePolylineAnnotation: Annotation value for image polyline cases. Polyline
  1332  	// here is different from BoundingPoly. It is formed by line segments connected
  1333  	// to each other but not closed form(Bounding Poly). The line segments can
  1334  	// cross each other.
  1335  	ImagePolylineAnnotation *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation `json:"imagePolylineAnnotation,omitempty"`
  1336  	// ImageSegmentationAnnotation: Annotation value for image segmentation.
  1337  	ImageSegmentationAnnotation *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation `json:"imageSegmentationAnnotation,omitempty"`
  1338  	// TextClassificationAnnotation: Annotation value for text classification case.
  1339  	TextClassificationAnnotation *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation `json:"textClassificationAnnotation,omitempty"`
  1340  	// TextEntityExtractionAnnotation: Annotation value for text entity extraction
  1341  	// case.
  1342  	TextEntityExtractionAnnotation *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation `json:"textEntityExtractionAnnotation,omitempty"`
  1343  	// VideoClassificationAnnotation: Annotation value for video classification
  1344  	// case.
  1345  	VideoClassificationAnnotation *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation `json:"videoClassificationAnnotation,omitempty"`
  1346  	// VideoEventAnnotation: Annotation value for video event case.
  1347  	VideoEventAnnotation *GoogleCloudDatalabelingV1beta1VideoEventAnnotation `json:"videoEventAnnotation,omitempty"`
  1348  	// VideoObjectTrackingAnnotation: Annotation value for video object detection
  1349  	// and tracking case.
  1350  	VideoObjectTrackingAnnotation *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation `json:"videoObjectTrackingAnnotation,omitempty"`
  1351  	// ForceSendFields is a list of field names (e.g.
  1352  	// "ImageBoundingPolyAnnotation") to unconditionally include in API requests.
  1353  	// By default, fields with empty or default values are omitted from API
  1354  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  1355  	// for more details.
  1356  	ForceSendFields []string `json:"-"`
  1357  	// NullFields is a list of field names (e.g. "ImageBoundingPolyAnnotation") to
  1358  	// include in API requests with the JSON null value. By default, fields with
  1359  	// empty values are omitted from API requests. See
  1360  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1361  	NullFields []string `json:"-"`
  1362  }
  1363  
  1364  func (s *GoogleCloudDatalabelingV1beta1AnnotationValue) MarshalJSON() ([]byte, error) {
  1365  	type NoMethod GoogleCloudDatalabelingV1beta1AnnotationValue
  1366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1367  }
  1368  
  1369  // GoogleCloudDatalabelingV1beta1Attempt: Records a failed evaluation job run.
  1370  type GoogleCloudDatalabelingV1beta1Attempt struct {
  1371  	AttemptTime string `json:"attemptTime,omitempty"`
  1372  	// PartialFailures: Details of errors that occurred.
  1373  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  1374  	// ForceSendFields is a list of field names (e.g. "AttemptTime") to
  1375  	// unconditionally include in API requests. By default, fields with empty or
  1376  	// default values are omitted from API requests. See
  1377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1378  	// details.
  1379  	ForceSendFields []string `json:"-"`
  1380  	// NullFields is a list of field names (e.g. "AttemptTime") to include in API
  1381  	// requests with the JSON null value. By default, fields with empty values are
  1382  	// omitted from API requests. See
  1383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1384  	NullFields []string `json:"-"`
  1385  }
  1386  
  1387  func (s *GoogleCloudDatalabelingV1beta1Attempt) MarshalJSON() ([]byte, error) {
  1388  	type NoMethod GoogleCloudDatalabelingV1beta1Attempt
  1389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1390  }
  1391  
  1392  // GoogleCloudDatalabelingV1beta1BigQuerySource: The BigQuery location for
  1393  // input data. If used in an EvaluationJob, this is where the service saves the
  1394  // prediction input and output sampled from the model version.
  1395  type GoogleCloudDatalabelingV1beta1BigQuerySource struct {
  1396  	// InputUri: Required. BigQuery URI to a table, up to 2,000 characters long. If
  1397  	// you specify the URI of a table that does not exist, Data Labeling Service
  1398  	// creates a table at the URI with the correct schema when you create your
  1399  	// EvaluationJob. If you specify the URI of a table that already exists, it
  1400  	// must have the correct schema
  1401  	// (/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the
  1402  	// table URI in the following format: "bq://{your_project_id}/
  1403  	// {your_dataset_name}/{your_table_name}" Learn more
  1404  	// (/ml-engine/docs/continuous-evaluation/create-job#table-schema).
  1405  	InputUri string `json:"inputUri,omitempty"`
  1406  	// ForceSendFields is a list of field names (e.g. "InputUri") to
  1407  	// unconditionally include in API requests. By default, fields with empty or
  1408  	// default values are omitted from API requests. See
  1409  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1410  	// details.
  1411  	ForceSendFields []string `json:"-"`
  1412  	// NullFields is a list of field names (e.g. "InputUri") to include in API
  1413  	// requests with the JSON null value. By default, fields with empty values are
  1414  	// omitted from API requests. See
  1415  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1416  	NullFields []string `json:"-"`
  1417  }
  1418  
  1419  func (s *GoogleCloudDatalabelingV1beta1BigQuerySource) MarshalJSON() ([]byte, error) {
  1420  	type NoMethod GoogleCloudDatalabelingV1beta1BigQuerySource
  1421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1422  }
  1423  
  1424  // GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions: Options
  1425  // regarding evaluation between bounding boxes.
  1426  type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions struct {
  1427  	// IouThreshold: Minimum intersection-over-union (IOU)
  1428  	// (/vision/automl/object-detection/docs/evaluate#intersection-over-union)
  1429  	// required for 2 bounding boxes to be considered a match. This must be a
  1430  	// number between 0 and 1.
  1431  	IouThreshold float64 `json:"iouThreshold,omitempty"`
  1432  	// ForceSendFields is a list of field names (e.g. "IouThreshold") to
  1433  	// unconditionally include in API requests. By default, fields with empty or
  1434  	// default values are omitted from API requests. See
  1435  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1436  	// details.
  1437  	ForceSendFields []string `json:"-"`
  1438  	// NullFields is a list of field names (e.g. "IouThreshold") to include in API
  1439  	// requests with the JSON null value. By default, fields with empty values are
  1440  	// omitted from API requests. See
  1441  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1442  	NullFields []string `json:"-"`
  1443  }
  1444  
  1445  func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) MarshalJSON() ([]byte, error) {
  1446  	type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions
  1447  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1448  }
  1449  
  1450  func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) UnmarshalJSON(data []byte) error {
  1451  	type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions
  1452  	var s1 struct {
  1453  		IouThreshold gensupport.JSONFloat64 `json:"iouThreshold"`
  1454  		*NoMethod
  1455  	}
  1456  	s1.NoMethod = (*NoMethod)(s)
  1457  	if err := json.Unmarshal(data, &s1); err != nil {
  1458  		return err
  1459  	}
  1460  	s.IouThreshold = float64(s1.IouThreshold)
  1461  	return nil
  1462  }
  1463  
  1464  // GoogleCloudDatalabelingV1beta1BoundingPoly: A bounding polygon in the image.
  1465  type GoogleCloudDatalabelingV1beta1BoundingPoly struct {
  1466  	// Vertices: The bounding polygon vertices.
  1467  	Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"`
  1468  	// ForceSendFields is a list of field names (e.g. "Vertices") to
  1469  	// unconditionally include in API requests. By default, fields with empty or
  1470  	// default values are omitted from API requests. See
  1471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1472  	// details.
  1473  	ForceSendFields []string `json:"-"`
  1474  	// NullFields is a list of field names (e.g. "Vertices") to include in API
  1475  	// requests with the JSON null value. By default, fields with empty values are
  1476  	// omitted from API requests. See
  1477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1478  	NullFields []string `json:"-"`
  1479  }
  1480  
  1481  func (s *GoogleCloudDatalabelingV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
  1482  	type NoMethod GoogleCloudDatalabelingV1beta1BoundingPoly
  1483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1484  }
  1485  
  1486  // GoogleCloudDatalabelingV1beta1BoundingPolyConfig: Config for image bounding
  1487  // poly (and bounding box) human labeling task.
  1488  type GoogleCloudDatalabelingV1beta1BoundingPolyConfig struct {
  1489  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  1490  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  1491  	// InstructionMessage: Optional. Instruction message showed on contributors UI.
  1492  	InstructionMessage string `json:"instructionMessage,omitempty"`
  1493  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  1494  	// unconditionally include in API requests. By default, fields with empty or
  1495  	// default values are omitted from API requests. See
  1496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1497  	// details.
  1498  	ForceSendFields []string `json:"-"`
  1499  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  1500  	// API requests with the JSON null value. By default, fields with empty values
  1501  	// are omitted from API requests. See
  1502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1503  	NullFields []string `json:"-"`
  1504  }
  1505  
  1506  func (s *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) MarshalJSON() ([]byte, error) {
  1507  	type NoMethod GoogleCloudDatalabelingV1beta1BoundingPolyConfig
  1508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1509  }
  1510  
  1511  // GoogleCloudDatalabelingV1beta1ClassificationMetadata: Metadata for
  1512  // classification annotations.
  1513  type GoogleCloudDatalabelingV1beta1ClassificationMetadata struct {
  1514  	// IsMultiLabel: Whether the classification task is multi-label or not.
  1515  	IsMultiLabel bool `json:"isMultiLabel,omitempty"`
  1516  	// ForceSendFields is a list of field names (e.g. "IsMultiLabel") to
  1517  	// unconditionally include in API requests. By default, fields with empty or
  1518  	// default values are omitted from API requests. See
  1519  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1520  	// details.
  1521  	ForceSendFields []string `json:"-"`
  1522  	// NullFields is a list of field names (e.g. "IsMultiLabel") to include in API
  1523  	// requests with the JSON null value. By default, fields with empty values are
  1524  	// omitted from API requests. See
  1525  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1526  	NullFields []string `json:"-"`
  1527  }
  1528  
  1529  func (s *GoogleCloudDatalabelingV1beta1ClassificationMetadata) MarshalJSON() ([]byte, error) {
  1530  	type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetadata
  1531  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1532  }
  1533  
  1534  // GoogleCloudDatalabelingV1beta1ClassificationMetrics: Metrics calculated for
  1535  // a classification model.
  1536  type GoogleCloudDatalabelingV1beta1ClassificationMetrics struct {
  1537  	// ConfusionMatrix: Confusion matrix of predicted labels vs. ground truth
  1538  	// labels.
  1539  	ConfusionMatrix *GoogleCloudDatalabelingV1beta1ConfusionMatrix `json:"confusionMatrix,omitempty"`
  1540  	// PrCurve: Precision-recall curve based on ground truth labels, predicted
  1541  	// labels, and scores for the predicted labels.
  1542  	PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"`
  1543  	// ForceSendFields is a list of field names (e.g. "ConfusionMatrix") to
  1544  	// unconditionally include in API requests. By default, fields with empty or
  1545  	// default values are omitted from API requests. See
  1546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1547  	// details.
  1548  	ForceSendFields []string `json:"-"`
  1549  	// NullFields is a list of field names (e.g. "ConfusionMatrix") to include in
  1550  	// API requests with the JSON null value. By default, fields with empty values
  1551  	// are omitted from API requests. See
  1552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1553  	NullFields []string `json:"-"`
  1554  }
  1555  
  1556  func (s *GoogleCloudDatalabelingV1beta1ClassificationMetrics) MarshalJSON() ([]byte, error) {
  1557  	type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetrics
  1558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1559  }
  1560  
  1561  type GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry struct {
  1562  	// ConfidenceThreshold: Threshold used for this entry. For classification
  1563  	// tasks, this is a classification threshold: a predicted label is categorized
  1564  	// as positive or negative (in the context of this point on the PR curve) based
  1565  	// on whether the label's score meets this threshold. For image object
  1566  	// detection (bounding box) tasks, this is the intersection-over-union (IOU)
  1567  	// (/vision/automl/object-detection/docs/evaluate#intersection-over-union)
  1568  	// threshold for the context of this point on the PR curve.
  1569  	ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
  1570  	// F1Score: Harmonic mean of recall and precision.
  1571  	F1Score float64 `json:"f1Score,omitempty"`
  1572  	// F1ScoreAt1: The harmonic mean of recall_at1 and precision_at1.
  1573  	F1ScoreAt1 float64 `json:"f1ScoreAt1,omitempty"`
  1574  	// F1ScoreAt5: The harmonic mean of recall_at5 and precision_at5.
  1575  	F1ScoreAt5 float64 `json:"f1ScoreAt5,omitempty"`
  1576  	// Precision: Precision value.
  1577  	Precision float64 `json:"precision,omitempty"`
  1578  	// PrecisionAt1: Precision value for entries with label that has highest score.
  1579  	PrecisionAt1 float64 `json:"precisionAt1,omitempty"`
  1580  	// PrecisionAt5: Precision value for entries with label that has highest 5
  1581  	// scores.
  1582  	PrecisionAt5 float64 `json:"precisionAt5,omitempty"`
  1583  	// Recall: Recall value.
  1584  	Recall float64 `json:"recall,omitempty"`
  1585  	// RecallAt1: Recall value for entries with label that has highest score.
  1586  	RecallAt1 float64 `json:"recallAt1,omitempty"`
  1587  	// RecallAt5: Recall value for entries with label that has highest 5 scores.
  1588  	RecallAt5 float64 `json:"recallAt5,omitempty"`
  1589  	// ForceSendFields is a list of field names (e.g. "ConfidenceThreshold") to
  1590  	// unconditionally include in API requests. By default, fields with empty or
  1591  	// default values are omitted from API requests. See
  1592  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1593  	// details.
  1594  	ForceSendFields []string `json:"-"`
  1595  	// NullFields is a list of field names (e.g. "ConfidenceThreshold") to include
  1596  	// in API requests with the JSON null value. By default, fields with empty
  1597  	// values are omitted from API requests. See
  1598  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1599  	NullFields []string `json:"-"`
  1600  }
  1601  
  1602  func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) MarshalJSON() ([]byte, error) {
  1603  	type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry
  1604  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1605  }
  1606  
  1607  func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) UnmarshalJSON(data []byte) error {
  1608  	type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry
  1609  	var s1 struct {
  1610  		ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
  1611  		F1Score             gensupport.JSONFloat64 `json:"f1Score"`
  1612  		F1ScoreAt1          gensupport.JSONFloat64 `json:"f1ScoreAt1"`
  1613  		F1ScoreAt5          gensupport.JSONFloat64 `json:"f1ScoreAt5"`
  1614  		Precision           gensupport.JSONFloat64 `json:"precision"`
  1615  		PrecisionAt1        gensupport.JSONFloat64 `json:"precisionAt1"`
  1616  		PrecisionAt5        gensupport.JSONFloat64 `json:"precisionAt5"`
  1617  		Recall              gensupport.JSONFloat64 `json:"recall"`
  1618  		RecallAt1           gensupport.JSONFloat64 `json:"recallAt1"`
  1619  		RecallAt5           gensupport.JSONFloat64 `json:"recallAt5"`
  1620  		*NoMethod
  1621  	}
  1622  	s1.NoMethod = (*NoMethod)(s)
  1623  	if err := json.Unmarshal(data, &s1); err != nil {
  1624  		return err
  1625  	}
  1626  	s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
  1627  	s.F1Score = float64(s1.F1Score)
  1628  	s.F1ScoreAt1 = float64(s1.F1ScoreAt1)
  1629  	s.F1ScoreAt5 = float64(s1.F1ScoreAt5)
  1630  	s.Precision = float64(s1.Precision)
  1631  	s.PrecisionAt1 = float64(s1.PrecisionAt1)
  1632  	s.PrecisionAt5 = float64(s1.PrecisionAt5)
  1633  	s.Recall = float64(s1.Recall)
  1634  	s.RecallAt1 = float64(s1.RecallAt1)
  1635  	s.RecallAt5 = float64(s1.RecallAt5)
  1636  	return nil
  1637  }
  1638  
  1639  // GoogleCloudDatalabelingV1beta1ConfusionMatrix: Confusion matrix of the model
  1640  // running the classification. Only applicable when the metrics entry
  1641  // aggregates multiple labels. Not applicable when the entry is for a single
  1642  // label.
  1643  type GoogleCloudDatalabelingV1beta1ConfusionMatrix struct {
  1644  	Row []*GoogleCloudDatalabelingV1beta1Row `json:"row,omitempty"`
  1645  	// ForceSendFields is a list of field names (e.g. "Row") to unconditionally
  1646  	// include in API requests. By default, fields with empty or default values are
  1647  	// omitted from API requests. See
  1648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1649  	// details.
  1650  	ForceSendFields []string `json:"-"`
  1651  	// NullFields is a list of field names (e.g. "Row") to include in API requests
  1652  	// with the JSON null value. By default, fields with empty values are omitted
  1653  	// from API requests. See
  1654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1655  	NullFields []string `json:"-"`
  1656  }
  1657  
  1658  func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrix) MarshalJSON() ([]byte, error) {
  1659  	type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrix
  1660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1661  }
  1662  
  1663  type GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry struct {
  1664  	// AnnotationSpec: The annotation spec of a predicted label.
  1665  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  1666  	// ItemCount: Number of items predicted to have this label. (The ground truth
  1667  	// label for these items is the `Row.annotationSpec` of this entry's parent.)
  1668  	ItemCount int64 `json:"itemCount,omitempty"`
  1669  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  1670  	// unconditionally include in API requests. By default, fields with empty or
  1671  	// default values are omitted from API requests. See
  1672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1673  	// details.
  1674  	ForceSendFields []string `json:"-"`
  1675  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  1676  	// API requests with the JSON null value. By default, fields with empty values
  1677  	// are omitted from API requests. See
  1678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1679  	NullFields []string `json:"-"`
  1680  }
  1681  
  1682  func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry) MarshalJSON() ([]byte, error) {
  1683  	type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry
  1684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1685  }
  1686  
  1687  // GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest: Request
  1688  // message for CreateAnnotationSpecSet.
  1689  type GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest struct {
  1690  	// AnnotationSpecSet: Required. Annotation spec set to create. Annotation specs
  1691  	// must be included. Only one annotation spec will be accepted for annotation
  1692  	// specs with same display_name.
  1693  	AnnotationSpecSet *GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSet,omitempty"`
  1694  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  1695  	// unconditionally include in API requests. By default, fields with empty or
  1696  	// default values are omitted from API requests. See
  1697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1698  	// details.
  1699  	ForceSendFields []string `json:"-"`
  1700  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  1701  	// API requests with the JSON null value. By default, fields with empty values
  1702  	// are omitted from API requests. See
  1703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1704  	NullFields []string `json:"-"`
  1705  }
  1706  
  1707  func (s *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) MarshalJSON() ([]byte, error) {
  1708  	type NoMethod GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest
  1709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1710  }
  1711  
  1712  // GoogleCloudDatalabelingV1beta1CreateDatasetRequest: Request message for
  1713  // CreateDataset.
  1714  type GoogleCloudDatalabelingV1beta1CreateDatasetRequest struct {
  1715  	// Dataset: Required. The dataset to be created.
  1716  	Dataset *GoogleCloudDatalabelingV1beta1Dataset `json:"dataset,omitempty"`
  1717  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
  1718  	// include in API requests. By default, fields with empty or default values are
  1719  	// omitted from API requests. See
  1720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1721  	// details.
  1722  	ForceSendFields []string `json:"-"`
  1723  	// NullFields is a list of field names (e.g. "Dataset") to include in API
  1724  	// requests with the JSON null value. By default, fields with empty values are
  1725  	// omitted from API requests. See
  1726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1727  	NullFields []string `json:"-"`
  1728  }
  1729  
  1730  func (s *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) MarshalJSON() ([]byte, error) {
  1731  	type NoMethod GoogleCloudDatalabelingV1beta1CreateDatasetRequest
  1732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1733  }
  1734  
  1735  // GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest: Request message
  1736  // for CreateEvaluationJob.
  1737  type GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest struct {
  1738  	// Job: Required. The evaluation job to create.
  1739  	Job *GoogleCloudDatalabelingV1beta1EvaluationJob `json:"job,omitempty"`
  1740  	// ForceSendFields is a list of field names (e.g. "Job") to unconditionally
  1741  	// include in API requests. By default, fields with empty or default values are
  1742  	// omitted from API requests. See
  1743  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1744  	// details.
  1745  	ForceSendFields []string `json:"-"`
  1746  	// NullFields is a list of field names (e.g. "Job") to include in API requests
  1747  	// with the JSON null value. By default, fields with empty values are omitted
  1748  	// from API requests. See
  1749  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1750  	NullFields []string `json:"-"`
  1751  }
  1752  
  1753  func (s *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) MarshalJSON() ([]byte, error) {
  1754  	type NoMethod GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest
  1755  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1756  }
  1757  
  1758  // GoogleCloudDatalabelingV1beta1CreateInstructionMetadata: Metadata of a
  1759  // CreateInstruction operation.
  1760  type GoogleCloudDatalabelingV1beta1CreateInstructionMetadata struct {
  1761  	// CreateTime: Timestamp when create instruction request was created.
  1762  	CreateTime string `json:"createTime,omitempty"`
  1763  	// Instruction: The name of the created Instruction.
  1764  	// projects/{project_id}/instructions/{instruction_id}
  1765  	Instruction string `json:"instruction,omitempty"`
  1766  	// PartialFailures: Partial failures encountered. E.g. single files that
  1767  	// couldn't be read. Status details field will contain standard GCP error
  1768  	// details.
  1769  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  1770  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1771  	// unconditionally include in API requests. By default, fields with empty or
  1772  	// default values are omitted from API requests. See
  1773  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1774  	// details.
  1775  	ForceSendFields []string `json:"-"`
  1776  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1777  	// requests with the JSON null value. By default, fields with empty values are
  1778  	// omitted from API requests. See
  1779  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1780  	NullFields []string `json:"-"`
  1781  }
  1782  
  1783  func (s *GoogleCloudDatalabelingV1beta1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
  1784  	type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionMetadata
  1785  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1786  }
  1787  
  1788  // GoogleCloudDatalabelingV1beta1CreateInstructionRequest: Request message for
  1789  // CreateInstruction.
  1790  type GoogleCloudDatalabelingV1beta1CreateInstructionRequest struct {
  1791  	// Instruction: Required. Instruction of how to perform the labeling task.
  1792  	Instruction *GoogleCloudDatalabelingV1beta1Instruction `json:"instruction,omitempty"`
  1793  	// ForceSendFields is a list of field names (e.g. "Instruction") to
  1794  	// unconditionally include in API requests. By default, fields with empty or
  1795  	// default values are omitted from API requests. See
  1796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1797  	// details.
  1798  	ForceSendFields []string `json:"-"`
  1799  	// NullFields is a list of field names (e.g. "Instruction") to include in API
  1800  	// requests with the JSON null value. By default, fields with empty values are
  1801  	// omitted from API requests. See
  1802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1803  	NullFields []string `json:"-"`
  1804  }
  1805  
  1806  func (s *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) MarshalJSON() ([]byte, error) {
  1807  	type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionRequest
  1808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1809  }
  1810  
  1811  // GoogleCloudDatalabelingV1beta1CsvInstruction: Deprecated: this instruction
  1812  // format is not supported any more. Instruction from a CSV file.
  1813  type GoogleCloudDatalabelingV1beta1CsvInstruction struct {
  1814  	// GcsFileUri: CSV file for the instruction. Only gcs path is allowed.
  1815  	GcsFileUri string `json:"gcsFileUri,omitempty"`
  1816  	// ForceSendFields is a list of field names (e.g. "GcsFileUri") to
  1817  	// unconditionally include in API requests. By default, fields with empty or
  1818  	// default values are omitted from API requests. See
  1819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1820  	// details.
  1821  	ForceSendFields []string `json:"-"`
  1822  	// NullFields is a list of field names (e.g. "GcsFileUri") to include in API
  1823  	// requests with the JSON null value. By default, fields with empty values are
  1824  	// omitted from API requests. See
  1825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1826  	NullFields []string `json:"-"`
  1827  }
  1828  
  1829  func (s *GoogleCloudDatalabelingV1beta1CsvInstruction) MarshalJSON() ([]byte, error) {
  1830  	type NoMethod GoogleCloudDatalabelingV1beta1CsvInstruction
  1831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1832  }
  1833  
  1834  // GoogleCloudDatalabelingV1beta1DataItem: DataItem is a piece of data, without
  1835  // annotation. For example, an image.
  1836  type GoogleCloudDatalabelingV1beta1DataItem struct {
  1837  	// ImagePayload: The image payload, a container of the image bytes/uri.
  1838  	ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"`
  1839  	// Name: Output only. Name of the data item, in format of:
  1840  	// projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
  1841  	Name string `json:"name,omitempty"`
  1842  	// TextPayload: The text payload, a container of text content.
  1843  	TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"`
  1844  	// VideoPayload: The video payload, a container of the video uri.
  1845  	VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"`
  1846  
  1847  	// ServerResponse contains the HTTP response code and headers from the server.
  1848  	googleapi.ServerResponse `json:"-"`
  1849  	// ForceSendFields is a list of field names (e.g. "ImagePayload") to
  1850  	// unconditionally include in API requests. By default, fields with empty or
  1851  	// default values are omitted from API requests. See
  1852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1853  	// details.
  1854  	ForceSendFields []string `json:"-"`
  1855  	// NullFields is a list of field names (e.g. "ImagePayload") to include in API
  1856  	// requests with the JSON null value. By default, fields with empty values are
  1857  	// omitted from API requests. See
  1858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1859  	NullFields []string `json:"-"`
  1860  }
  1861  
  1862  func (s *GoogleCloudDatalabelingV1beta1DataItem) MarshalJSON() ([]byte, error) {
  1863  	type NoMethod GoogleCloudDatalabelingV1beta1DataItem
  1864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1865  }
  1866  
  1867  // GoogleCloudDatalabelingV1beta1Dataset: Dataset is the resource to hold your
  1868  // data. You can request multiple labeling tasks for a dataset while each one
  1869  // will generate an AnnotatedDataset.
  1870  type GoogleCloudDatalabelingV1beta1Dataset struct {
  1871  	// BlockingResources: Output only. The names of any related resources that are
  1872  	// blocking changes to the dataset.
  1873  	BlockingResources []string `json:"blockingResources,omitempty"`
  1874  	// CreateTime: Output only. Time the dataset is created.
  1875  	CreateTime string `json:"createTime,omitempty"`
  1876  	// DataItemCount: Output only. The number of data items in the dataset.
  1877  	DataItemCount int64 `json:"dataItemCount,omitempty,string"`
  1878  	// Description: Optional. User-provided description of the annotation
  1879  	// specification set. The description can be up to 10000 characters long.
  1880  	Description string `json:"description,omitempty"`
  1881  	// DisplayName: Required. The display name of the dataset. Maximum of 64
  1882  	// characters.
  1883  	DisplayName string `json:"displayName,omitempty"`
  1884  	// InputConfigs: Output only. This is populated with the original input configs
  1885  	// where ImportData is called. It is available only after the clients import
  1886  	// data to this dataset.
  1887  	InputConfigs []*GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfigs,omitempty"`
  1888  	// LastMigrateTime: Last time that the Dataset is migrated to AI Platform V2.
  1889  	// If any of the AnnotatedDataset is migrated, the last_migration_time in
  1890  	// Dataset is also updated.
  1891  	LastMigrateTime string `json:"lastMigrateTime,omitempty"`
  1892  	// Name: Output only. Dataset resource name, format is:
  1893  	// projects/{project_id}/datasets/{dataset_id}
  1894  	Name string `json:"name,omitempty"`
  1895  
  1896  	// ServerResponse contains the HTTP response code and headers from the server.
  1897  	googleapi.ServerResponse `json:"-"`
  1898  	// ForceSendFields is a list of field names (e.g. "BlockingResources") to
  1899  	// unconditionally include in API requests. By default, fields with empty or
  1900  	// default values are omitted from API requests. See
  1901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1902  	// details.
  1903  	ForceSendFields []string `json:"-"`
  1904  	// NullFields is a list of field names (e.g. "BlockingResources") to include in
  1905  	// API requests with the JSON null value. By default, fields with empty values
  1906  	// are omitted from API requests. See
  1907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1908  	NullFields []string `json:"-"`
  1909  }
  1910  
  1911  func (s *GoogleCloudDatalabelingV1beta1Dataset) MarshalJSON() ([]byte, error) {
  1912  	type NoMethod GoogleCloudDatalabelingV1beta1Dataset
  1913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1914  }
  1915  
  1916  // GoogleCloudDatalabelingV1beta1Evaluation: Describes an evaluation between a
  1917  // machine learning model's predictions and ground truth labels. Created when
  1918  // an EvaluationJob runs successfully.
  1919  type GoogleCloudDatalabelingV1beta1Evaluation struct {
  1920  	// AnnotationType: Output only. Type of task that the model version being
  1921  	// evaluated performs, as defined in the
  1922  	// evaluationJobConfig.inputConfig.annotationType field of the evaluation job
  1923  	// that created this evaluation.
  1924  	//
  1925  	// Possible values:
  1926  	//   "ANNOTATION_TYPE_UNSPECIFIED"
  1927  	//   "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in an
  1928  	// image. Allowed for continuous evaluation.
  1929  	//   "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an image. A
  1930  	// form of image object detection. Allowed for continuous evaluation.
  1931  	//   "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. The box
  1932  	// does not have to be parallel to horizontal line.
  1933  	//   "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an image.
  1934  	//   "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image.
  1935  	//   "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an image.
  1936  	//   "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification annotations in
  1937  	// video shots.
  1938  	//   "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking annotation.
  1939  	//   "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection annotation.
  1940  	//   "VIDEO_EVENT_ANNOTATION" - Video event annotation.
  1941  	//   "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed for
  1942  	// continuous evaluation.
  1943  	//   "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text.
  1944  	//   "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. Allowed for
  1945  	// continuous evaluation.
  1946  	AnnotationType string `json:"annotationType,omitempty"`
  1947  	// Config: Output only. Options used in the evaluation job that created this
  1948  	// evaluation.
  1949  	Config *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"config,omitempty"`
  1950  	// CreateTime: Output only. Timestamp for when this evaluation was created.
  1951  	CreateTime string `json:"createTime,omitempty"`
  1952  	// EvaluatedItemCount: Output only. The number of items in the ground truth
  1953  	// dataset that were used for this evaluation. Only populated when the
  1954  	// evaulation is for certain AnnotationTypes.
  1955  	EvaluatedItemCount int64 `json:"evaluatedItemCount,omitempty,string"`
  1956  	// EvaluationJobRunTime: Output only. Timestamp for when the evaluation job
  1957  	// that created this evaluation ran.
  1958  	EvaluationJobRunTime string `json:"evaluationJobRunTime,omitempty"`
  1959  	// EvaluationMetrics: Output only. Metrics comparing predictions to ground
  1960  	// truth labels.
  1961  	EvaluationMetrics *GoogleCloudDatalabelingV1beta1EvaluationMetrics `json:"evaluationMetrics,omitempty"`
  1962  	// Name: Output only. Resource name of an evaluation. The name has the
  1963  	// following format: "projects/{project_id}/datasets/{dataset_id}/evaluations/
  1964  	// {evaluation_id}'
  1965  	Name string `json:"name,omitempty"`
  1966  
  1967  	// ServerResponse contains the HTTP response code and headers from the server.
  1968  	googleapi.ServerResponse `json:"-"`
  1969  	// ForceSendFields is a list of field names (e.g. "AnnotationType") to
  1970  	// unconditionally include in API requests. By default, fields with empty or
  1971  	// default values are omitted from API requests. See
  1972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1973  	// details.
  1974  	ForceSendFields []string `json:"-"`
  1975  	// NullFields is a list of field names (e.g. "AnnotationType") to include in
  1976  	// API requests with the JSON null value. By default, fields with empty values
  1977  	// are omitted from API requests. See
  1978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1979  	NullFields []string `json:"-"`
  1980  }
  1981  
  1982  func (s *GoogleCloudDatalabelingV1beta1Evaluation) MarshalJSON() ([]byte, error) {
  1983  	type NoMethod GoogleCloudDatalabelingV1beta1Evaluation
  1984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1985  }
  1986  
  1987  // GoogleCloudDatalabelingV1beta1EvaluationConfig: Configuration details used
  1988  // for calculating evaluation metrics and creating an Evaluation.
  1989  type GoogleCloudDatalabelingV1beta1EvaluationConfig struct {
  1990  	// BoundingBoxEvaluationOptions: Only specify this field if the related model
  1991  	// performs image object detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes
  1992  	// how to evaluate bounding boxes.
  1993  	BoundingBoxEvaluationOptions *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions `json:"boundingBoxEvaluationOptions,omitempty"`
  1994  	// ForceSendFields is a list of field names (e.g.
  1995  	// "BoundingBoxEvaluationOptions") to unconditionally include in API requests.
  1996  	// By default, fields with empty or default values are omitted from API
  1997  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  1998  	// for more details.
  1999  	ForceSendFields []string `json:"-"`
  2000  	// NullFields is a list of field names (e.g. "BoundingBoxEvaluationOptions") to
  2001  	// include in API requests with the JSON null value. By default, fields with
  2002  	// empty values are omitted from API requests. See
  2003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2004  	NullFields []string `json:"-"`
  2005  }
  2006  
  2007  func (s *GoogleCloudDatalabelingV1beta1EvaluationConfig) MarshalJSON() ([]byte, error) {
  2008  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationConfig
  2009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2010  }
  2011  
  2012  // GoogleCloudDatalabelingV1beta1EvaluationJob: Defines an evaluation job that
  2013  // runs periodically to generate Evaluations. Creating an evaluation job
  2014  // (/ml-engine/docs/continuous-evaluation/create-job) is the starting point for
  2015  // using continuous evaluation.
  2016  type GoogleCloudDatalabelingV1beta1EvaluationJob struct {
  2017  	// AnnotationSpecSet: Required. Name of the AnnotationSpecSet describing all
  2018  	// the labels that your machine learning model outputs. You must create this
  2019  	// resource before you create an evaluation job and provide its name in the
  2020  	// following format:
  2021  	// "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"
  2022  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  2023  	// Attempts: Output only. Every time the evaluation job runs and an error
  2024  	// occurs, the failed attempt is appended to this array.
  2025  	Attempts []*GoogleCloudDatalabelingV1beta1Attempt `json:"attempts,omitempty"`
  2026  	// CreateTime: Output only. Timestamp of when this evaluation job was created.
  2027  	CreateTime string `json:"createTime,omitempty"`
  2028  	// Description: Required. Description of the job. The description can be up to
  2029  	// 25,000 characters long.
  2030  	Description string `json:"description,omitempty"`
  2031  	// EvaluationJobConfig: Required. Configuration details for the evaluation job.
  2032  	EvaluationJobConfig *GoogleCloudDatalabelingV1beta1EvaluationJobConfig `json:"evaluationJobConfig,omitempty"`
  2033  	// LabelMissingGroundTruth: Required. Whether you want Data Labeling Service to
  2034  	// provide ground truth labels for prediction input. If you want the service to
  2035  	// assign human labelers to annotate your data, set this to `true`. If you want
  2036  	// to provide your own ground truth labels in the evaluation job's BigQuery
  2037  	// table, set this to `false`.
  2038  	LabelMissingGroundTruth bool `json:"labelMissingGroundTruth,omitempty"`
  2039  	// ModelVersion: Required. The AI Platform Prediction model version
  2040  	// (/ml-engine/docs/prediction-overview) to be evaluated. Prediction input and
  2041  	// output is sampled from this model version. When creating an evaluation job,
  2042  	// specify the model version in the following format:
  2043  	// "projects/{project_id}/models/{model_name}/versions/{version_name}" There
  2044  	// can only be one evaluation job per model version.
  2045  	ModelVersion string `json:"modelVersion,omitempty"`
  2046  	// Name: Output only. After you create a job, Data Labeling Service assigns a
  2047  	// name to the job with the following format:
  2048  	// "projects/{project_id}/evaluationJobs/ {evaluation_job_id}"
  2049  	Name string `json:"name,omitempty"`
  2050  	// Schedule: Required. Describes the interval at which the job runs. This
  2051  	// interval must be at least 1 day, and it is rounded to the nearest day. For
  2052  	// example, if you specify a 50-hour interval, the job runs every 2 days. You
  2053  	// can provide the schedule in crontab format
  2054  	// (/scheduler/docs/configuring/cron-job-schedules) or in an English-like
  2055  	// format (/appengine/docs/standard/python/config/cronref#schedule_format).
  2056  	// Regardless of what you specify, the job will run at 10:00 AM UTC. Only the
  2057  	// interval from this schedule is used, not the specific time of day.
  2058  	Schedule string `json:"schedule,omitempty"`
  2059  	// State: Output only. Describes the current state of the job.
  2060  	//
  2061  	// Possible values:
  2062  	//   "STATE_UNSPECIFIED"
  2063  	//   "SCHEDULED" - The job is scheduled to run at the configured interval. You
  2064  	// can pause or delete the job. When the job is in this state, it samples
  2065  	// prediction input and output from your model version into your BigQuery table
  2066  	// as predictions occur.
  2067  	//   "RUNNING" - The job is currently running. When the job runs, Data Labeling
  2068  	// Service does several things: 1. If you have configured your job to use Data
  2069  	// Labeling Service for ground truth labeling, the service creates a Dataset
  2070  	// and a labeling task for all data sampled since the last time the job ran.
  2071  	// Human labelers provide ground truth labels for your data. Human labeling may
  2072  	// take hours, or even days, depending on how much data has been sampled. The
  2073  	// job remains in the `RUNNING` state during this time, and it can even be
  2074  	// running multiple times in parallel if it gets triggered again (for example
  2075  	// 24 hours later) before the earlier run has completed. When human labelers
  2076  	// have finished labeling the data, the next step occurs. If you have
  2077  	// configured your job to provide your own ground truth labels, Data Labeling
  2078  	// Service still creates a Dataset for newly sampled data, but it expects that
  2079  	// you have already added ground truth labels to the BigQuery table by this
  2080  	// time. The next step occurs immediately. 2. Data Labeling Service creates an
  2081  	// Evaluation by comparing your model version's predictions with the ground
  2082  	// truth labels. If the job remains in this state for a long time, it continues
  2083  	// to sample prediction data into your BigQuery table and will run again at the
  2084  	// next interval, even if it causes the job to run multiple times in parallel.
  2085  	//   "PAUSED" - The job is not sampling prediction input and output into your
  2086  	// BigQuery table and it will not run according to its schedule. You can resume
  2087  	// the job.
  2088  	//   "STOPPED" - The job has this state right before it is deleted.
  2089  	State string `json:"state,omitempty"`
  2090  
  2091  	// ServerResponse contains the HTTP response code and headers from the server.
  2092  	googleapi.ServerResponse `json:"-"`
  2093  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  2094  	// unconditionally include in API requests. By default, fields with empty or
  2095  	// default values are omitted from API requests. See
  2096  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2097  	// details.
  2098  	ForceSendFields []string `json:"-"`
  2099  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  2100  	// API requests with the JSON null value. By default, fields with empty values
  2101  	// are omitted from API requests. See
  2102  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2103  	NullFields []string `json:"-"`
  2104  }
  2105  
  2106  func (s *GoogleCloudDatalabelingV1beta1EvaluationJob) MarshalJSON() ([]byte, error) {
  2107  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJob
  2108  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2109  }
  2110  
  2111  // GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig: Provides details for
  2112  // how an evaluation job sends email alerts based on the results of a run.
  2113  type GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig struct {
  2114  	// Email: Required. An email address to send alerts to.
  2115  	Email string `json:"email,omitempty"`
  2116  	// MinAcceptableMeanAveragePrecision: Required. A number between 0 and 1 that
  2117  	// describes a minimum mean average precision threshold. When the evaluation
  2118  	// job runs, if it calculates that your model version's predictions from the
  2119  	// recent interval have meanAveragePrecision below this threshold, then it
  2120  	// sends an alert to your specified email.
  2121  	MinAcceptableMeanAveragePrecision float64 `json:"minAcceptableMeanAveragePrecision,omitempty"`
  2122  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  2123  	// include in API requests. By default, fields with empty or default values are
  2124  	// omitted from API requests. See
  2125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2126  	// details.
  2127  	ForceSendFields []string `json:"-"`
  2128  	// NullFields is a list of field names (e.g. "Email") to include in API
  2129  	// requests with the JSON null value. By default, fields with empty values are
  2130  	// omitted from API requests. See
  2131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2132  	NullFields []string `json:"-"`
  2133  }
  2134  
  2135  func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) MarshalJSON() ([]byte, error) {
  2136  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig
  2137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2138  }
  2139  
  2140  func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) UnmarshalJSON(data []byte) error {
  2141  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig
  2142  	var s1 struct {
  2143  		MinAcceptableMeanAveragePrecision gensupport.JSONFloat64 `json:"minAcceptableMeanAveragePrecision"`
  2144  		*NoMethod
  2145  	}
  2146  	s1.NoMethod = (*NoMethod)(s)
  2147  	if err := json.Unmarshal(data, &s1); err != nil {
  2148  		return err
  2149  	}
  2150  	s.MinAcceptableMeanAveragePrecision = float64(s1.MinAcceptableMeanAveragePrecision)
  2151  	return nil
  2152  }
  2153  
  2154  // GoogleCloudDatalabelingV1beta1EvaluationJobConfig: Configures specific
  2155  // details of how a continuous evaluation job works. Provide this configuration
  2156  // when you create an EvaluationJob.
  2157  type GoogleCloudDatalabelingV1beta1EvaluationJobConfig struct {
  2158  	// BigqueryImportKeys: Required. Prediction keys that tell Data Labeling
  2159  	// Service where to find the data for evaluation in your BigQuery table. When
  2160  	// the service samples prediction input and output from your model version and
  2161  	// saves it to BigQuery, the data gets stored as JSON strings in the BigQuery
  2162  	// table. These keys tell Data Labeling Service how to parse the JSON. You can
  2163  	// provide the following entries in this field: * `data_json_key`: the data key
  2164  	// for prediction input. You must provide either this key or
  2165  	// `reference_json_key`. * `reference_json_key`: the data reference key for
  2166  	// prediction input. You must provide either this key or `data_json_key`. *
  2167  	// `label_json_key`: the label key for prediction output. Required. *
  2168  	// `label_score_json_key`: the score key for prediction output. Required. *
  2169  	// `bounding_box_json_key`: the bounding box key for prediction output.
  2170  	// Required if your model version perform image object detection. Learn how to
  2171  	// configure prediction keys
  2172  	// (/ml-engine/docs/continuous-evaluation/create-job#prediction-keys).
  2173  	BigqueryImportKeys map[string]string `json:"bigqueryImportKeys,omitempty"`
  2174  	// BoundingPolyConfig: Specify this field if your model version performs image
  2175  	// object detection (bounding box detection). `annotationSpecSet` in this
  2176  	// configuration must match EvaluationJob.annotationSpecSet.
  2177  	BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
  2178  	// EvaluationConfig: Required. Details for calculating evaluation metrics and
  2179  	// creating Evaulations. If your model version performs image object detection,
  2180  	// you must specify the `boundingBoxEvaluationOptions` field within this
  2181  	// configuration. Otherwise, provide an empty object for this configuration.
  2182  	EvaluationConfig *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"evaluationConfig,omitempty"`
  2183  	// EvaluationJobAlertConfig: Optional. Configuration details for evaluation job
  2184  	// alerts. Specify this field if you want to receive email alerts if the
  2185  	// evaluation job finds that your predictions have low mean average precision
  2186  	// during a run.
  2187  	EvaluationJobAlertConfig *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig `json:"evaluationJobAlertConfig,omitempty"`
  2188  	// ExampleCount: Required. The maximum number of predictions to sample and save
  2189  	// to BigQuery during each evaluation interval. This limit overrides
  2190  	// `example_sample_percentage`: even if the service has not sampled enough
  2191  	// predictions to fulfill `example_sample_perecentage` during an interval, it
  2192  	// stops sampling predictions when it meets this limit.
  2193  	ExampleCount int64 `json:"exampleCount,omitempty"`
  2194  	// ExampleSamplePercentage: Required. Fraction of predictions to sample and
  2195  	// save to BigQuery during each evaluation interval. For example, 0.1 means 10%
  2196  	// of predictions served by your model version get saved to BigQuery.
  2197  	ExampleSamplePercentage float64 `json:"exampleSamplePercentage,omitempty"`
  2198  	// HumanAnnotationConfig: Optional. Details for human annotation of your data.
  2199  	// If you set labelMissingGroundTruth to `true` for this evaluation job, then
  2200  	// you must specify this field. If you plan to provide your own ground truth
  2201  	// labels, then omit this field. Note that you must create an Instruction
  2202  	// resource before you can specify this field. Provide the name of the
  2203  	// instruction resource in the `instruction` field within this configuration.
  2204  	HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"`
  2205  	// ImageClassificationConfig: Specify this field if your model version performs
  2206  	// image classification or general classification. `annotationSpecSet` in this
  2207  	// configuration must match EvaluationJob.annotationSpecSet. `allowMultiLabel`
  2208  	// in this configuration must match `classificationMetadata.isMultiLabel` in
  2209  	// input_config.
  2210  	ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
  2211  	// InputConfig: Rquired. Details for the sampled prediction input. Within this
  2212  	// configuration, there are requirements for several fields: * `dataType` must
  2213  	// be one of `IMAGE`, `TEXT`, or `GENERAL_DATA`. * `annotationType` must be one
  2214  	// of `IMAGE_CLASSIFICATION_ANNOTATION`, `TEXT_CLASSIFICATION_ANNOTATION`,
  2215  	// `GENERAL_CLASSIFICATION_ANNOTATION`, or `IMAGE_BOUNDING_BOX_ANNOTATION`
  2216  	// (image object detection). * If your machine learning model performs
  2217  	// classification, you must specify `classificationMetadata.isMultiLabel`. *
  2218  	// You must specify `bigquerySource` (not `gcsSource`).
  2219  	InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"`
  2220  	// TextClassificationConfig: Specify this field if your model version performs
  2221  	// text classification. `annotationSpecSet` in this configuration must match
  2222  	// EvaluationJob.annotationSpecSet. `allowMultiLabel` in this configuration
  2223  	// must match `classificationMetadata.isMultiLabel` in input_config.
  2224  	TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
  2225  	// ForceSendFields is a list of field names (e.g. "BigqueryImportKeys") to
  2226  	// unconditionally include in API requests. By default, fields with empty or
  2227  	// default values are omitted from API requests. See
  2228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2229  	// details.
  2230  	ForceSendFields []string `json:"-"`
  2231  	// NullFields is a list of field names (e.g. "BigqueryImportKeys") to include
  2232  	// in API requests with the JSON null value. By default, fields with empty
  2233  	// values are omitted from API requests. See
  2234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2235  	NullFields []string `json:"-"`
  2236  }
  2237  
  2238  func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) MarshalJSON() ([]byte, error) {
  2239  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig
  2240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2241  }
  2242  
  2243  func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) UnmarshalJSON(data []byte) error {
  2244  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig
  2245  	var s1 struct {
  2246  		ExampleSamplePercentage gensupport.JSONFloat64 `json:"exampleSamplePercentage"`
  2247  		*NoMethod
  2248  	}
  2249  	s1.NoMethod = (*NoMethod)(s)
  2250  	if err := json.Unmarshal(data, &s1); err != nil {
  2251  		return err
  2252  	}
  2253  	s.ExampleSamplePercentage = float64(s1.ExampleSamplePercentage)
  2254  	return nil
  2255  }
  2256  
  2257  type GoogleCloudDatalabelingV1beta1EvaluationMetrics struct {
  2258  	ClassificationMetrics  *GoogleCloudDatalabelingV1beta1ClassificationMetrics  `json:"classificationMetrics,omitempty"`
  2259  	ObjectDetectionMetrics *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics `json:"objectDetectionMetrics,omitempty"`
  2260  	// ForceSendFields is a list of field names (e.g. "ClassificationMetrics") to
  2261  	// unconditionally include in API requests. By default, fields with empty or
  2262  	// default values are omitted from API requests. See
  2263  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2264  	// details.
  2265  	ForceSendFields []string `json:"-"`
  2266  	// NullFields is a list of field names (e.g. "ClassificationMetrics") to
  2267  	// include in API requests with the JSON null value. By default, fields with
  2268  	// empty values are omitted from API requests. See
  2269  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2270  	NullFields []string `json:"-"`
  2271  }
  2272  
  2273  func (s *GoogleCloudDatalabelingV1beta1EvaluationMetrics) MarshalJSON() ([]byte, error) {
  2274  	type NoMethod GoogleCloudDatalabelingV1beta1EvaluationMetrics
  2275  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2276  }
  2277  
  2278  // GoogleCloudDatalabelingV1beta1EventConfig: Config for video event human
  2279  // labeling task.
  2280  type GoogleCloudDatalabelingV1beta1EventConfig struct {
  2281  	// AnnotationSpecSets: Required. The list of annotation spec set resource name.
  2282  	// Similar to video classification, we support selecting event from multiple
  2283  	// AnnotationSpecSet at the same time.
  2284  	AnnotationSpecSets []string `json:"annotationSpecSets,omitempty"`
  2285  	// ClipLength: Videos will be cut to smaller clips to make it easier for
  2286  	// labelers to work on. Users can configure is field in seconds, if not set,
  2287  	// default value is 60s.
  2288  	ClipLength int64 `json:"clipLength,omitempty"`
  2289  	// OverlapLength: The overlap length between different video clips. Users can
  2290  	// configure is field in seconds, if not set, default value is 1s.
  2291  	OverlapLength int64 `json:"overlapLength,omitempty"`
  2292  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSets") to
  2293  	// unconditionally include in API requests. By default, fields with empty or
  2294  	// default values are omitted from API requests. See
  2295  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2296  	// details.
  2297  	ForceSendFields []string `json:"-"`
  2298  	// NullFields is a list of field names (e.g. "AnnotationSpecSets") to include
  2299  	// in API requests with the JSON null value. By default, fields with empty
  2300  	// values are omitted from API requests. See
  2301  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2302  	NullFields []string `json:"-"`
  2303  }
  2304  
  2305  func (s *GoogleCloudDatalabelingV1beta1EventConfig) MarshalJSON() ([]byte, error) {
  2306  	type NoMethod GoogleCloudDatalabelingV1beta1EventConfig
  2307  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2308  }
  2309  
  2310  // GoogleCloudDatalabelingV1beta1Example: An Example is a piece of data and its
  2311  // annotation. For example, an image with label "house".
  2312  type GoogleCloudDatalabelingV1beta1Example struct {
  2313  	// Annotations: Output only. Annotations for the piece of data in Example. One
  2314  	// piece of data can have multiple annotations.
  2315  	Annotations []*GoogleCloudDatalabelingV1beta1Annotation `json:"annotations,omitempty"`
  2316  	// ImagePayload: The image payload, a container of the image bytes/uri.
  2317  	ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"`
  2318  	// Name: Output only. Name of the example, in format of:
  2319  	// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  2320  	// {annotated_dataset_id}/examples/{example_id}
  2321  	Name string `json:"name,omitempty"`
  2322  	// TextPayload: The text payload, a container of the text content.
  2323  	TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"`
  2324  	// VideoPayload: The video payload, a container of the video uri.
  2325  	VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"`
  2326  
  2327  	// ServerResponse contains the HTTP response code and headers from the server.
  2328  	googleapi.ServerResponse `json:"-"`
  2329  	// ForceSendFields is a list of field names (e.g. "Annotations") to
  2330  	// unconditionally include in API requests. By default, fields with empty or
  2331  	// default values are omitted from API requests. See
  2332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2333  	// details.
  2334  	ForceSendFields []string `json:"-"`
  2335  	// NullFields is a list of field names (e.g. "Annotations") to include in API
  2336  	// requests with the JSON null value. By default, fields with empty values are
  2337  	// omitted from API requests. See
  2338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2339  	NullFields []string `json:"-"`
  2340  }
  2341  
  2342  func (s *GoogleCloudDatalabelingV1beta1Example) MarshalJSON() ([]byte, error) {
  2343  	type NoMethod GoogleCloudDatalabelingV1beta1Example
  2344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2345  }
  2346  
  2347  // GoogleCloudDatalabelingV1beta1ExampleComparison: Example comparisons
  2348  // comparing ground truth output and predictions for a specific input.
  2349  type GoogleCloudDatalabelingV1beta1ExampleComparison struct {
  2350  	// GroundTruthExample: The ground truth output for the input.
  2351  	GroundTruthExample *GoogleCloudDatalabelingV1beta1Example `json:"groundTruthExample,omitempty"`
  2352  	// ModelCreatedExamples: Predictions by the model for the input.
  2353  	ModelCreatedExamples []*GoogleCloudDatalabelingV1beta1Example `json:"modelCreatedExamples,omitempty"`
  2354  	// ForceSendFields is a list of field names (e.g. "GroundTruthExample") to
  2355  	// unconditionally include in API requests. By default, fields with empty or
  2356  	// default values are omitted from API requests. See
  2357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2358  	// details.
  2359  	ForceSendFields []string `json:"-"`
  2360  	// NullFields is a list of field names (e.g. "GroundTruthExample") to include
  2361  	// in API requests with the JSON null value. By default, fields with empty
  2362  	// values are omitted from API requests. See
  2363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2364  	NullFields []string `json:"-"`
  2365  }
  2366  
  2367  func (s *GoogleCloudDatalabelingV1beta1ExampleComparison) MarshalJSON() ([]byte, error) {
  2368  	type NoMethod GoogleCloudDatalabelingV1beta1ExampleComparison
  2369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2370  }
  2371  
  2372  // GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata: Metadata of an
  2373  // ExportData operation.
  2374  type GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata struct {
  2375  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  2376  	// "projects/*/datasets/*/annotatedDatasets/*".
  2377  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  2378  	// CreateTime: Output only. Timestamp when export dataset request was created.
  2379  	CreateTime string `json:"createTime,omitempty"`
  2380  	// Dataset: Output only. The name of dataset to be exported.
  2381  	// "projects/*/datasets/*"
  2382  	Dataset string `json:"dataset,omitempty"`
  2383  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  2384  	// files that couldn't be read. Status details field will contain standard GCP
  2385  	// error details.
  2386  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  2387  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  2388  	// unconditionally include in API requests. By default, fields with empty or
  2389  	// default values are omitted from API requests. See
  2390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2391  	// details.
  2392  	ForceSendFields []string `json:"-"`
  2393  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  2394  	// API requests with the JSON null value. By default, fields with empty values
  2395  	// are omitted from API requests. See
  2396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2397  	NullFields []string `json:"-"`
  2398  }
  2399  
  2400  func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  2401  	type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata
  2402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2403  }
  2404  
  2405  // GoogleCloudDatalabelingV1beta1ExportDataOperationResponse: Response used for
  2406  // ExportDataset longrunning operation.
  2407  type GoogleCloudDatalabelingV1beta1ExportDataOperationResponse struct {
  2408  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  2409  	// "projects/*/datasets/*/annotatedDatasets/*".
  2410  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  2411  	// Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*"
  2412  	Dataset string `json:"dataset,omitempty"`
  2413  	// ExportCount: Output only. Number of examples exported successfully.
  2414  	ExportCount int64 `json:"exportCount,omitempty"`
  2415  	// LabelStats: Output only. Statistic infos of labels in the exported dataset.
  2416  	LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"`
  2417  	// OutputConfig: Output only. output_config in the ExportData request.
  2418  	OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"`
  2419  	// TotalCount: Output only. Total number of examples requested to export
  2420  	TotalCount int64 `json:"totalCount,omitempty"`
  2421  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  2422  	// unconditionally include in API requests. By default, fields with empty or
  2423  	// default values are omitted from API requests. See
  2424  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2425  	// details.
  2426  	ForceSendFields []string `json:"-"`
  2427  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  2428  	// API requests with the JSON null value. By default, fields with empty values
  2429  	// are omitted from API requests. See
  2430  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2431  	NullFields []string `json:"-"`
  2432  }
  2433  
  2434  func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
  2435  	type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationResponse
  2436  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2437  }
  2438  
  2439  // GoogleCloudDatalabelingV1beta1ExportDataRequest: Request message for
  2440  // ExportData API.
  2441  type GoogleCloudDatalabelingV1beta1ExportDataRequest struct {
  2442  	// AnnotatedDataset: Required. Annotated dataset resource name. DataItem in
  2443  	// Dataset and their annotations in specified annotated dataset will be
  2444  	// exported. It's in format of
  2445  	// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  2446  	// {annotated_dataset_id}
  2447  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  2448  	// Filter: Optional. Filter is not supported at this moment.
  2449  	Filter string `json:"filter,omitempty"`
  2450  	// OutputConfig: Required. Specify the output destination.
  2451  	OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"`
  2452  	// UserEmailAddress: Email of the user who started the export task and should
  2453  	// be notified by email. If empty no notification will be sent.
  2454  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
  2455  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  2456  	// unconditionally include in API requests. By default, fields with empty or
  2457  	// default values are omitted from API requests. See
  2458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2459  	// details.
  2460  	ForceSendFields []string `json:"-"`
  2461  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  2462  	// API requests with the JSON null value. By default, fields with empty values
  2463  	// are omitted from API requests. See
  2464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2465  	NullFields []string `json:"-"`
  2466  }
  2467  
  2468  func (s *GoogleCloudDatalabelingV1beta1ExportDataRequest) MarshalJSON() ([]byte, error) {
  2469  	type NoMethod GoogleCloudDatalabelingV1beta1ExportDataRequest
  2470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2471  }
  2472  
  2473  // GoogleCloudDatalabelingV1beta1FeedbackMessage: A feedback message inside a
  2474  // feedback thread.
  2475  type GoogleCloudDatalabelingV1beta1FeedbackMessage struct {
  2476  	// Body: String content of the feedback. Maximum of 10000 characters.
  2477  	Body string `json:"body,omitempty"`
  2478  	// CreateTime: Create time.
  2479  	CreateTime string `json:"createTime,omitempty"`
  2480  	// Image: The image storing this feedback if the feedback is an image
  2481  	// representing operator's comments.
  2482  	Image string `json:"image,omitempty"`
  2483  	// Name: Name of the feedback message in a feedback thread. Format:
  2484  	// 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_data
  2485  	// set_id}/feedbackThreads/{feedback_thread_id}/feedbackMessage/{feedback_messag
  2486  	// e_id}'
  2487  	Name                      string                                                   `json:"name,omitempty"`
  2488  	OperatorFeedbackMetadata  *GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata  `json:"operatorFeedbackMetadata,omitempty"`
  2489  	RequesterFeedbackMetadata *GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata `json:"requesterFeedbackMetadata,omitempty"`
  2490  
  2491  	// ServerResponse contains the HTTP response code and headers from the server.
  2492  	googleapi.ServerResponse `json:"-"`
  2493  	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
  2494  	// include in API requests. By default, fields with empty or default values are
  2495  	// omitted from API requests. See
  2496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2497  	// details.
  2498  	ForceSendFields []string `json:"-"`
  2499  	// NullFields is a list of field names (e.g. "Body") to include in API requests
  2500  	// with the JSON null value. By default, fields with empty values are omitted
  2501  	// from API requests. See
  2502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2503  	NullFields []string `json:"-"`
  2504  }
  2505  
  2506  func (s *GoogleCloudDatalabelingV1beta1FeedbackMessage) MarshalJSON() ([]byte, error) {
  2507  	type NoMethod GoogleCloudDatalabelingV1beta1FeedbackMessage
  2508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2509  }
  2510  
  2511  // GoogleCloudDatalabelingV1beta1FeedbackThread: A feedback thread of a certain
  2512  // labeling task on a certain annotated dataset.
  2513  type GoogleCloudDatalabelingV1beta1FeedbackThread struct {
  2514  	// FeedbackThreadMetadata: Metadata regarding the feedback thread.
  2515  	FeedbackThreadMetadata *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata `json:"feedbackThreadMetadata,omitempty"`
  2516  	// Name: Name of the feedback thread. Format:
  2517  	// 'project/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_data
  2518  	// set_id}/feedbackThreads/{feedback_thread_id}'
  2519  	Name string `json:"name,omitempty"`
  2520  
  2521  	// ServerResponse contains the HTTP response code and headers from the server.
  2522  	googleapi.ServerResponse `json:"-"`
  2523  	// ForceSendFields is a list of field names (e.g. "FeedbackThreadMetadata") to
  2524  	// unconditionally include in API requests. By default, fields with empty or
  2525  	// default values are omitted from API requests. See
  2526  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2527  	// details.
  2528  	ForceSendFields []string `json:"-"`
  2529  	// NullFields is a list of field names (e.g. "FeedbackThreadMetadata") to
  2530  	// include in API requests with the JSON null value. By default, fields with
  2531  	// empty values are omitted from API requests. See
  2532  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2533  	NullFields []string `json:"-"`
  2534  }
  2535  
  2536  func (s *GoogleCloudDatalabelingV1beta1FeedbackThread) MarshalJSON() ([]byte, error) {
  2537  	type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThread
  2538  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2539  }
  2540  
  2541  type GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata struct {
  2542  	// CreateTime: When the thread is created
  2543  	CreateTime string `json:"createTime,omitempty"`
  2544  	// LastUpdateTime: When the thread is last updated.
  2545  	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
  2546  	// Possible values:
  2547  	//   "FEEDBACK_THREAD_STATUS_UNSPECIFIED"
  2548  	//   "NEW" - Feedback thread is created with no reply;
  2549  	//   "REPLIED" - Feedback thread is replied at least once;
  2550  	Status string `json:"status,omitempty"`
  2551  	// Thumbnail: An image thumbnail of this thread.
  2552  	Thumbnail string `json:"thumbnail,omitempty"`
  2553  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2554  	// unconditionally include in API requests. By default, fields with empty or
  2555  	// default values are omitted from API requests. See
  2556  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2557  	// details.
  2558  	ForceSendFields []string `json:"-"`
  2559  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2560  	// requests with the JSON null value. By default, fields with empty values are
  2561  	// omitted from API requests. See
  2562  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2563  	NullFields []string `json:"-"`
  2564  }
  2565  
  2566  func (s *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata) MarshalJSON() ([]byte, error) {
  2567  	type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata
  2568  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2569  }
  2570  
  2571  // GoogleCloudDatalabelingV1beta1GcsDestination: Export destination of the
  2572  // data.Only gcs path is allowed in output_uri.
  2573  type GoogleCloudDatalabelingV1beta1GcsDestination struct {
  2574  	// MimeType: Required. The format of the gcs destination. Only "text/csv" and
  2575  	// "application/json" are supported.
  2576  	MimeType string `json:"mimeType,omitempty"`
  2577  	// OutputUri: Required. The output uri of destination file.
  2578  	OutputUri string `json:"outputUri,omitempty"`
  2579  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  2580  	// unconditionally include in API requests. By default, fields with empty or
  2581  	// default values are omitted from API requests. See
  2582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2583  	// details.
  2584  	ForceSendFields []string `json:"-"`
  2585  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  2586  	// requests with the JSON null value. By default, fields with empty values are
  2587  	// omitted from API requests. See
  2588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2589  	NullFields []string `json:"-"`
  2590  }
  2591  
  2592  func (s *GoogleCloudDatalabelingV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
  2593  	type NoMethod GoogleCloudDatalabelingV1beta1GcsDestination
  2594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2595  }
  2596  
  2597  // GoogleCloudDatalabelingV1beta1GcsFolderDestination: Export folder
  2598  // destination of the data.
  2599  type GoogleCloudDatalabelingV1beta1GcsFolderDestination struct {
  2600  	// OutputFolderUri: Required. Cloud Storage directory to export data to.
  2601  	OutputFolderUri string `json:"outputFolderUri,omitempty"`
  2602  	// ForceSendFields is a list of field names (e.g. "OutputFolderUri") to
  2603  	// unconditionally include in API requests. By default, fields with empty or
  2604  	// default values are omitted from API requests. See
  2605  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2606  	// details.
  2607  	ForceSendFields []string `json:"-"`
  2608  	// NullFields is a list of field names (e.g. "OutputFolderUri") to include in
  2609  	// API requests with the JSON null value. By default, fields with empty values
  2610  	// are omitted from API requests. See
  2611  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2612  	NullFields []string `json:"-"`
  2613  }
  2614  
  2615  func (s *GoogleCloudDatalabelingV1beta1GcsFolderDestination) MarshalJSON() ([]byte, error) {
  2616  	type NoMethod GoogleCloudDatalabelingV1beta1GcsFolderDestination
  2617  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2618  }
  2619  
  2620  // GoogleCloudDatalabelingV1beta1GcsSource: Source of the Cloud Storage file to
  2621  // be imported.
  2622  type GoogleCloudDatalabelingV1beta1GcsSource struct {
  2623  	// InputUri: Required. The input URI of source file. This must be a Cloud
  2624  	// Storage path (`gs://...`).
  2625  	InputUri string `json:"inputUri,omitempty"`
  2626  	// MimeType: Required. The format of the source file. Only "text/csv" is
  2627  	// supported.
  2628  	MimeType string `json:"mimeType,omitempty"`
  2629  	// ForceSendFields is a list of field names (e.g. "InputUri") to
  2630  	// unconditionally include in API requests. By default, fields with empty or
  2631  	// default values are omitted from API requests. See
  2632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2633  	// details.
  2634  	ForceSendFields []string `json:"-"`
  2635  	// NullFields is a list of field names (e.g. "InputUri") to include in API
  2636  	// requests with the JSON null value. By default, fields with empty values are
  2637  	// omitted from API requests. See
  2638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2639  	NullFields []string `json:"-"`
  2640  }
  2641  
  2642  func (s *GoogleCloudDatalabelingV1beta1GcsSource) MarshalJSON() ([]byte, error) {
  2643  	type NoMethod GoogleCloudDatalabelingV1beta1GcsSource
  2644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2645  }
  2646  
  2647  // GoogleCloudDatalabelingV1beta1HumanAnnotationConfig: Configuration for how
  2648  // human labeling task should be done.
  2649  type GoogleCloudDatalabelingV1beta1HumanAnnotationConfig struct {
  2650  	// AnnotatedDatasetDescription: Optional. A human-readable description for
  2651  	// AnnotatedDataset. The description can be up to 10000 characters long.
  2652  	AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
  2653  	// AnnotatedDatasetDisplayName: Required. A human-readable name for
  2654  	// AnnotatedDataset defined by users. Maximum of 64 characters .
  2655  	AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
  2656  	// ContributorEmails: Optional. If you want your own labeling contributors to
  2657  	// manage and work on this labeling request, you can set these contributors
  2658  	// here. We will give them access to the question types in crowdcompute. Note
  2659  	// that these emails must be registered in crowdcompute worker UI:
  2660  	// https://crowd-compute.appspot.com/
  2661  	ContributorEmails []string `json:"contributorEmails,omitempty"`
  2662  	// Instruction: Required. Instruction resource name.
  2663  	Instruction string `json:"instruction,omitempty"`
  2664  	// LabelGroup: Optional. A human-readable label used to logically group
  2665  	// labeling tasks. This string must match the regular expression
  2666  	// `[a-zA-Z\\d_-]{0,128}`.
  2667  	LabelGroup string `json:"labelGroup,omitempty"`
  2668  	// LanguageCode: Optional. The Language of this question, as a BCP-47
  2669  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only
  2670  	// need to set this when task is language related. For example, French text
  2671  	// classification.
  2672  	LanguageCode string `json:"languageCode,omitempty"`
  2673  	// QuestionDuration: Optional. Maximum duration for contributors to answer a
  2674  	// question. Maximum is 3600 seconds. Default is 3600 seconds.
  2675  	QuestionDuration string `json:"questionDuration,omitempty"`
  2676  	// ReplicaCount: Optional. Replication of questions. Each question will be sent
  2677  	// to up to this number of contributors to label. Aggregated answers will be
  2678  	// returned. Default is set to 1. For image related labeling, valid values are
  2679  	// 1, 3, 5.
  2680  	ReplicaCount int64 `json:"replicaCount,omitempty"`
  2681  	// UserEmailAddress: Email of the user who started the labeling task and should
  2682  	// be notified by email. If empty no notification will be sent.
  2683  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
  2684  	// ForceSendFields is a list of field names (e.g.
  2685  	// "AnnotatedDatasetDescription") to unconditionally include in API requests.
  2686  	// By default, fields with empty or default values are omitted from API
  2687  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  2688  	// for more details.
  2689  	ForceSendFields []string `json:"-"`
  2690  	// NullFields is a list of field names (e.g. "AnnotatedDatasetDescription") to
  2691  	// include in API requests with the JSON null value. By default, fields with
  2692  	// empty values are omitted from API requests. See
  2693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2694  	NullFields []string `json:"-"`
  2695  }
  2696  
  2697  func (s *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
  2698  	type NoMethod GoogleCloudDatalabelingV1beta1HumanAnnotationConfig
  2699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2700  }
  2701  
  2702  // GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation: Image bounding
  2703  // poly annotation. It represents a polygon including bounding box in the
  2704  // image.
  2705  type GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation struct {
  2706  	// AnnotationSpec: Label of object in this bounding polygon.
  2707  	AnnotationSpec         *GoogleCloudDatalabelingV1beta1AnnotationSpec         `json:"annotationSpec,omitempty"`
  2708  	BoundingPoly           *GoogleCloudDatalabelingV1beta1BoundingPoly           `json:"boundingPoly,omitempty"`
  2709  	NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"`
  2710  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  2711  	// unconditionally include in API requests. By default, fields with empty or
  2712  	// default values are omitted from API requests. See
  2713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2714  	// details.
  2715  	ForceSendFields []string `json:"-"`
  2716  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  2717  	// API requests with the JSON null value. By default, fields with empty values
  2718  	// are omitted from API requests. See
  2719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2720  	NullFields []string `json:"-"`
  2721  }
  2722  
  2723  func (s *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation) MarshalJSON() ([]byte, error) {
  2724  	type NoMethod GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
  2725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2726  }
  2727  
  2728  // GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation: Image
  2729  // classification annotation definition.
  2730  type GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation struct {
  2731  	// AnnotationSpec: Label of image.
  2732  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  2733  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  2734  	// unconditionally include in API requests. By default, fields with empty or
  2735  	// default values are omitted from API requests. See
  2736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2737  	// details.
  2738  	ForceSendFields []string `json:"-"`
  2739  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  2740  	// API requests with the JSON null value. By default, fields with empty values
  2741  	// are omitted from API requests. See
  2742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2743  	NullFields []string `json:"-"`
  2744  }
  2745  
  2746  func (s *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation) MarshalJSON() ([]byte, error) {
  2747  	type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation
  2748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2749  }
  2750  
  2751  // GoogleCloudDatalabelingV1beta1ImageClassificationConfig: Config for image
  2752  // classification human labeling task.
  2753  type GoogleCloudDatalabelingV1beta1ImageClassificationConfig struct {
  2754  	// AllowMultiLabel: Optional. If allow_multi_label is true, contributors are
  2755  	// able to choose multiple labels for one image.
  2756  	AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
  2757  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  2758  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  2759  	// AnswerAggregationType: Optional. The type of how to aggregate answers.
  2760  	//
  2761  	// Possible values:
  2762  	//   "STRING_AGGREGATION_TYPE_UNSPECIFIED"
  2763  	//   "MAJORITY_VOTE" - Majority vote to aggregate answers.
  2764  	//   "UNANIMOUS_VOTE" - Unanimous answers will be adopted.
  2765  	//   "NO_AGGREGATION" - Preserve all answers by crowd compute.
  2766  	AnswerAggregationType string `json:"answerAggregationType,omitempty"`
  2767  	// ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to
  2768  	// unconditionally include in API requests. By default, fields with empty or
  2769  	// default values are omitted from API requests. See
  2770  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2771  	// details.
  2772  	ForceSendFields []string `json:"-"`
  2773  	// NullFields is a list of field names (e.g. "AllowMultiLabel") to include in
  2774  	// API requests with the JSON null value. By default, fields with empty values
  2775  	// are omitted from API requests. See
  2776  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2777  	NullFields []string `json:"-"`
  2778  }
  2779  
  2780  func (s *GoogleCloudDatalabelingV1beta1ImageClassificationConfig) MarshalJSON() ([]byte, error) {
  2781  	type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationConfig
  2782  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2783  }
  2784  
  2785  // GoogleCloudDatalabelingV1beta1ImagePayload: Container of information about
  2786  // an image.
  2787  type GoogleCloudDatalabelingV1beta1ImagePayload struct {
  2788  	// ImageThumbnail: A byte string of a thumbnail image.
  2789  	ImageThumbnail string `json:"imageThumbnail,omitempty"`
  2790  	// ImageUri: Image uri from the user bucket.
  2791  	ImageUri string `json:"imageUri,omitempty"`
  2792  	// MimeType: Image format.
  2793  	MimeType string `json:"mimeType,omitempty"`
  2794  	// SignedUri: Signed uri of the image file in the service bucket.
  2795  	SignedUri string `json:"signedUri,omitempty"`
  2796  	// ForceSendFields is a list of field names (e.g. "ImageThumbnail") to
  2797  	// unconditionally include in API requests. By default, fields with empty or
  2798  	// default values are omitted from API requests. See
  2799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2800  	// details.
  2801  	ForceSendFields []string `json:"-"`
  2802  	// NullFields is a list of field names (e.g. "ImageThumbnail") to include in
  2803  	// API requests with the JSON null value. By default, fields with empty values
  2804  	// are omitted from API requests. See
  2805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2806  	NullFields []string `json:"-"`
  2807  }
  2808  
  2809  func (s *GoogleCloudDatalabelingV1beta1ImagePayload) MarshalJSON() ([]byte, error) {
  2810  	type NoMethod GoogleCloudDatalabelingV1beta1ImagePayload
  2811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2812  }
  2813  
  2814  // GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation: A polyline for the
  2815  // image annotation.
  2816  type GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation struct {
  2817  	// AnnotationSpec: Label of this polyline.
  2818  	AnnotationSpec     *GoogleCloudDatalabelingV1beta1AnnotationSpec     `json:"annotationSpec,omitempty"`
  2819  	NormalizedPolyline *GoogleCloudDatalabelingV1beta1NormalizedPolyline `json:"normalizedPolyline,omitempty"`
  2820  	Polyline           *GoogleCloudDatalabelingV1beta1Polyline           `json:"polyline,omitempty"`
  2821  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  2822  	// unconditionally include in API requests. By default, fields with empty or
  2823  	// default values are omitted from API requests. See
  2824  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2825  	// details.
  2826  	ForceSendFields []string `json:"-"`
  2827  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  2828  	// API requests with the JSON null value. By default, fields with empty values
  2829  	// are omitted from API requests. See
  2830  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2831  	NullFields []string `json:"-"`
  2832  }
  2833  
  2834  func (s *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation) MarshalJSON() ([]byte, error) {
  2835  	type NoMethod GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
  2836  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2837  }
  2838  
  2839  // GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation: Image
  2840  // segmentation annotation.
  2841  type GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation struct {
  2842  	// AnnotationColors: The mapping between rgb color and annotation spec. The key
  2843  	// is the rgb color represented in format of rgb(0, 0, 0). The value is the
  2844  	// AnnotationSpec.
  2845  	AnnotationColors map[string]GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationColors,omitempty"`
  2846  	// ImageBytes: A byte string of a full image's color map.
  2847  	ImageBytes string `json:"imageBytes,omitempty"`
  2848  	// MimeType: Image format.
  2849  	MimeType string `json:"mimeType,omitempty"`
  2850  	// ForceSendFields is a list of field names (e.g. "AnnotationColors") to
  2851  	// unconditionally include in API requests. By default, fields with empty or
  2852  	// default values are omitted from API requests. See
  2853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2854  	// details.
  2855  	ForceSendFields []string `json:"-"`
  2856  	// NullFields is a list of field names (e.g. "AnnotationColors") to include in
  2857  	// API requests with the JSON null value. By default, fields with empty values
  2858  	// are omitted from API requests. See
  2859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2860  	NullFields []string `json:"-"`
  2861  }
  2862  
  2863  func (s *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation) MarshalJSON() ([]byte, error) {
  2864  	type NoMethod GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
  2865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2866  }
  2867  
  2868  // GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata: Metadata of an
  2869  // ImportData operation.
  2870  type GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata struct {
  2871  	// CreateTime: Output only. Timestamp when import dataset request was created.
  2872  	CreateTime string `json:"createTime,omitempty"`
  2873  	// Dataset: Output only. The name of imported dataset. "projects/*/datasets/*"
  2874  	Dataset string `json:"dataset,omitempty"`
  2875  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  2876  	// files that couldn't be read. Status details field will contain standard GCP
  2877  	// error details.
  2878  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  2879  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2880  	// unconditionally include in API requests. By default, fields with empty or
  2881  	// default values are omitted from API requests. See
  2882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2883  	// details.
  2884  	ForceSendFields []string `json:"-"`
  2885  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2886  	// requests with the JSON null value. By default, fields with empty values are
  2887  	// omitted from API requests. See
  2888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2889  	NullFields []string `json:"-"`
  2890  }
  2891  
  2892  func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  2893  	type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata
  2894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2895  }
  2896  
  2897  // GoogleCloudDatalabelingV1beta1ImportDataOperationResponse: Response used for
  2898  // ImportData longrunning operation.
  2899  type GoogleCloudDatalabelingV1beta1ImportDataOperationResponse struct {
  2900  	// Dataset: Ouptut only. The name of imported dataset.
  2901  	Dataset string `json:"dataset,omitempty"`
  2902  	// ImportCount: Output only. Number of examples imported successfully.
  2903  	ImportCount int64 `json:"importCount,omitempty"`
  2904  	// TotalCount: Output only. Total number of examples requested to import
  2905  	TotalCount int64 `json:"totalCount,omitempty"`
  2906  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
  2907  	// include in API requests. By default, fields with empty or default values are
  2908  	// omitted from API requests. See
  2909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2910  	// details.
  2911  	ForceSendFields []string `json:"-"`
  2912  	// NullFields is a list of field names (e.g. "Dataset") to include in API
  2913  	// requests with the JSON null value. By default, fields with empty values are
  2914  	// omitted from API requests. See
  2915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2916  	NullFields []string `json:"-"`
  2917  }
  2918  
  2919  func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
  2920  	type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationResponse
  2921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2922  }
  2923  
  2924  // GoogleCloudDatalabelingV1beta1ImportDataRequest: Request message for
  2925  // ImportData API.
  2926  type GoogleCloudDatalabelingV1beta1ImportDataRequest struct {
  2927  	// InputConfig: Required. Specify the input source of the data.
  2928  	InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"`
  2929  	// UserEmailAddress: Email of the user who started the import task and should
  2930  	// be notified by email. If empty no notification will be sent.
  2931  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
  2932  	// ForceSendFields is a list of field names (e.g. "InputConfig") to
  2933  	// unconditionally include in API requests. By default, fields with empty or
  2934  	// default values are omitted from API requests. See
  2935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2936  	// details.
  2937  	ForceSendFields []string `json:"-"`
  2938  	// NullFields is a list of field names (e.g. "InputConfig") to include in API
  2939  	// requests with the JSON null value. By default, fields with empty values are
  2940  	// omitted from API requests. See
  2941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2942  	NullFields []string `json:"-"`
  2943  }
  2944  
  2945  func (s *GoogleCloudDatalabelingV1beta1ImportDataRequest) MarshalJSON() ([]byte, error) {
  2946  	type NoMethod GoogleCloudDatalabelingV1beta1ImportDataRequest
  2947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2948  }
  2949  
  2950  // GoogleCloudDatalabelingV1beta1InputConfig: The configuration of input data,
  2951  // including data type, location, etc.
  2952  type GoogleCloudDatalabelingV1beta1InputConfig struct {
  2953  	// AnnotationType: Optional. The type of annotation to be performed on this
  2954  	// data. You must specify this field if you are using this InputConfig in an
  2955  	// EvaluationJob.
  2956  	//
  2957  	// Possible values:
  2958  	//   "ANNOTATION_TYPE_UNSPECIFIED"
  2959  	//   "IMAGE_CLASSIFICATION_ANNOTATION" - Classification annotations in an
  2960  	// image. Allowed for continuous evaluation.
  2961  	//   "IMAGE_BOUNDING_BOX_ANNOTATION" - Bounding box annotations in an image. A
  2962  	// form of image object detection. Allowed for continuous evaluation.
  2963  	//   "IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION" - Oriented bounding box. The box
  2964  	// does not have to be parallel to horizontal line.
  2965  	//   "IMAGE_BOUNDING_POLY_ANNOTATION" - Bounding poly annotations in an image.
  2966  	//   "IMAGE_POLYLINE_ANNOTATION" - Polyline annotations in an image.
  2967  	//   "IMAGE_SEGMENTATION_ANNOTATION" - Segmentation annotations in an image.
  2968  	//   "VIDEO_SHOTS_CLASSIFICATION_ANNOTATION" - Classification annotations in
  2969  	// video shots.
  2970  	//   "VIDEO_OBJECT_TRACKING_ANNOTATION" - Video object tracking annotation.
  2971  	//   "VIDEO_OBJECT_DETECTION_ANNOTATION" - Video object detection annotation.
  2972  	//   "VIDEO_EVENT_ANNOTATION" - Video event annotation.
  2973  	//   "TEXT_CLASSIFICATION_ANNOTATION" - Classification for text. Allowed for
  2974  	// continuous evaluation.
  2975  	//   "TEXT_ENTITY_EXTRACTION_ANNOTATION" - Entity extraction for text.
  2976  	//   "GENERAL_CLASSIFICATION_ANNOTATION" - General classification. Allowed for
  2977  	// continuous evaluation.
  2978  	AnnotationType string `json:"annotationType,omitempty"`
  2979  	// BigquerySource: Source located in BigQuery. You must specify this field if
  2980  	// you are using this InputConfig in an EvaluationJob.
  2981  	BigquerySource *GoogleCloudDatalabelingV1beta1BigQuerySource `json:"bigquerySource,omitempty"`
  2982  	// ClassificationMetadata: Optional. Metadata about annotations for the input.
  2983  	// You must specify this field if you are using this InputConfig in an
  2984  	// EvaluationJob for a model version that performs classification.
  2985  	ClassificationMetadata *GoogleCloudDatalabelingV1beta1ClassificationMetadata `json:"classificationMetadata,omitempty"`
  2986  	// DataType: Required. Data type must be specifed when user tries to import
  2987  	// data.
  2988  	//
  2989  	// Possible values:
  2990  	//   "DATA_TYPE_UNSPECIFIED" - Data type is unspecified.
  2991  	//   "IMAGE" - Allowed for continuous evaluation.
  2992  	//   "VIDEO" - Video data type.
  2993  	//   "TEXT" - Allowed for continuous evaluation.
  2994  	//   "GENERAL_DATA" - Allowed for continuous evaluation.
  2995  	DataType string `json:"dataType,omitempty"`
  2996  	// GcsSource: Source located in Cloud Storage.
  2997  	GcsSource *GoogleCloudDatalabelingV1beta1GcsSource `json:"gcsSource,omitempty"`
  2998  	// TextMetadata: Required for text import, as language code must be specified.
  2999  	TextMetadata *GoogleCloudDatalabelingV1beta1TextMetadata `json:"textMetadata,omitempty"`
  3000  	// ForceSendFields is a list of field names (e.g. "AnnotationType") to
  3001  	// unconditionally include in API requests. By default, fields with empty or
  3002  	// default values are omitted from API requests. See
  3003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3004  	// details.
  3005  	ForceSendFields []string `json:"-"`
  3006  	// NullFields is a list of field names (e.g. "AnnotationType") to include in
  3007  	// API requests with the JSON null value. By default, fields with empty values
  3008  	// are omitted from API requests. See
  3009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3010  	NullFields []string `json:"-"`
  3011  }
  3012  
  3013  func (s *GoogleCloudDatalabelingV1beta1InputConfig) MarshalJSON() ([]byte, error) {
  3014  	type NoMethod GoogleCloudDatalabelingV1beta1InputConfig
  3015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3016  }
  3017  
  3018  // GoogleCloudDatalabelingV1beta1Instruction: Instruction of how to perform the
  3019  // labeling task for human operators. Currently only PDF instruction is
  3020  // supported.
  3021  type GoogleCloudDatalabelingV1beta1Instruction struct {
  3022  	// BlockingResources: Output only. The names of any related resources that are
  3023  	// blocking changes to the instruction.
  3024  	BlockingResources []string `json:"blockingResources,omitempty"`
  3025  	// CreateTime: Output only. Creation time of instruction.
  3026  	CreateTime string `json:"createTime,omitempty"`
  3027  	// CsvInstruction: Deprecated: this instruction format is not supported any
  3028  	// more. Instruction from a CSV file, such as for classification task. The CSV
  3029  	// file should have exact two columns, in the following format: * The first
  3030  	// column is labeled data, such as an image reference, text. * The second
  3031  	// column is comma separated labels associated with data.
  3032  	CsvInstruction *GoogleCloudDatalabelingV1beta1CsvInstruction `json:"csvInstruction,omitempty"`
  3033  	// DataType: Required. The data type of this instruction.
  3034  	//
  3035  	// Possible values:
  3036  	//   "DATA_TYPE_UNSPECIFIED" - Data type is unspecified.
  3037  	//   "IMAGE" - Allowed for continuous evaluation.
  3038  	//   "VIDEO" - Video data type.
  3039  	//   "TEXT" - Allowed for continuous evaluation.
  3040  	//   "GENERAL_DATA" - Allowed for continuous evaluation.
  3041  	DataType string `json:"dataType,omitempty"`
  3042  	// Description: Optional. User-provided description of the instruction. The
  3043  	// description can be up to 10000 characters long.
  3044  	Description string `json:"description,omitempty"`
  3045  	// DisplayName: Required. The display name of the instruction. Maximum of 64
  3046  	// characters.
  3047  	DisplayName string `json:"displayName,omitempty"`
  3048  	// Name: Output only. Instruction resource name, format:
  3049  	// projects/{project_id}/instructions/{instruction_id}
  3050  	Name string `json:"name,omitempty"`
  3051  	// PdfInstruction: Instruction from a PDF document. The PDF should be in a
  3052  	// Cloud Storage bucket.
  3053  	PdfInstruction *GoogleCloudDatalabelingV1beta1PdfInstruction `json:"pdfInstruction,omitempty"`
  3054  	// UpdateTime: Output only. Last update time of instruction.
  3055  	UpdateTime string `json:"updateTime,omitempty"`
  3056  
  3057  	// ServerResponse contains the HTTP response code and headers from the server.
  3058  	googleapi.ServerResponse `json:"-"`
  3059  	// ForceSendFields is a list of field names (e.g. "BlockingResources") to
  3060  	// unconditionally include in API requests. By default, fields with empty or
  3061  	// default values are omitted from API requests. See
  3062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3063  	// details.
  3064  	ForceSendFields []string `json:"-"`
  3065  	// NullFields is a list of field names (e.g. "BlockingResources") to include in
  3066  	// API requests with the JSON null value. By default, fields with empty values
  3067  	// are omitted from API requests. See
  3068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3069  	NullFields []string `json:"-"`
  3070  }
  3071  
  3072  func (s *GoogleCloudDatalabelingV1beta1Instruction) MarshalJSON() ([]byte, error) {
  3073  	type NoMethod GoogleCloudDatalabelingV1beta1Instruction
  3074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3075  }
  3076  
  3077  // GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata:
  3078  // Details of a LabelImageBoundingBox operation metadata.
  3079  type GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata struct {
  3080  	// BasicConfig: Basic human annotation config used in labeling request.
  3081  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3082  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3083  	// unconditionally include in API requests. By default, fields with empty or
  3084  	// default values are omitted from API requests. See
  3085  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3086  	// details.
  3087  	ForceSendFields []string `json:"-"`
  3088  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3089  	// requests with the JSON null value. By default, fields with empty values are
  3090  	// omitted from API requests. See
  3091  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3092  	NullFields []string `json:"-"`
  3093  }
  3094  
  3095  func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  3096  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata
  3097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3098  }
  3099  
  3100  // GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata:
  3101  // Details of LabelImageBoundingPoly operation metadata.
  3102  type GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata struct {
  3103  	// BasicConfig: Basic human annotation config used in labeling request.
  3104  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3105  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3106  	// unconditionally include in API requests. By default, fields with empty or
  3107  	// default values are omitted from API requests. See
  3108  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3109  	// details.
  3110  	ForceSendFields []string `json:"-"`
  3111  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3112  	// requests with the JSON null value. By default, fields with empty values are
  3113  	// omitted from API requests. See
  3114  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3115  	NullFields []string `json:"-"`
  3116  }
  3117  
  3118  func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
  3119  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata
  3120  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3121  }
  3122  
  3123  // GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata:
  3124  // Metadata of a LabelImageClassification operation.
  3125  type GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata struct {
  3126  	// BasicConfig: Basic human annotation config used in labeling request.
  3127  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3128  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3129  	// unconditionally include in API requests. By default, fields with empty or
  3130  	// default values are omitted from API requests. See
  3131  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3132  	// details.
  3133  	ForceSendFields []string `json:"-"`
  3134  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3135  	// requests with the JSON null value. By default, fields with empty values are
  3136  	// omitted from API requests. See
  3137  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3138  	NullFields []string `json:"-"`
  3139  }
  3140  
  3141  func (s *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  3142  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata
  3143  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3144  }
  3145  
  3146  // GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata:
  3147  //
  3148  //	Details of a LabelImageOrientedBoundingBox operation metadata.
  3149  type GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata struct {
  3150  	// BasicConfig: Basic human annotation config.
  3151  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3152  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3153  	// unconditionally include in API requests. By default, fields with empty or
  3154  	// default values are omitted from API requests. See
  3155  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3156  	// details.
  3157  	ForceSendFields []string `json:"-"`
  3158  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3159  	// requests with the JSON null value. By default, fields with empty values are
  3160  	// omitted from API requests. See
  3161  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3162  	NullFields []string `json:"-"`
  3163  }
  3164  
  3165  func (s *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  3166  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata
  3167  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3168  }
  3169  
  3170  // GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata: Details
  3171  // of LabelImagePolyline operation metadata.
  3172  type GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata struct {
  3173  	// BasicConfig: Basic human annotation config used in labeling request.
  3174  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3175  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3176  	// unconditionally include in API requests. By default, fields with empty or
  3177  	// default values are omitted from API requests. See
  3178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3179  	// details.
  3180  	ForceSendFields []string `json:"-"`
  3181  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3182  	// requests with the JSON null value. By default, fields with empty values are
  3183  	// omitted from API requests. See
  3184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3185  	NullFields []string `json:"-"`
  3186  }
  3187  
  3188  func (s *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
  3189  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata
  3190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3191  }
  3192  
  3193  // GoogleCloudDatalabelingV1beta1LabelImageRequest: Request message for
  3194  // starting an image labeling task.
  3195  type GoogleCloudDatalabelingV1beta1LabelImageRequest struct {
  3196  	// BasicConfig: Required. Basic human annotation config.
  3197  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3198  	// BoundingPolyConfig: Configuration for bounding box and bounding poly task.
  3199  	// One of image_classification_config, bounding_poly_config, polyline_config
  3200  	// and segmentation_config are required.
  3201  	BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
  3202  	// Feature: Required. The type of image labeling task.
  3203  	//
  3204  	// Possible values:
  3205  	//   "FEATURE_UNSPECIFIED"
  3206  	//   "CLASSIFICATION" - Label whole image with one or more of labels.
  3207  	//   "BOUNDING_BOX" - Label image with bounding boxes for labels.
  3208  	//   "ORIENTED_BOUNDING_BOX" - Label oriented bounding box. The box does not
  3209  	// have to be parallel to horizontal line.
  3210  	//   "BOUNDING_POLY" - Label images with bounding poly. A bounding poly is a
  3211  	// plane figure that is bounded by a finite chain of straight line segments
  3212  	// closing in a loop.
  3213  	//   "POLYLINE" - Label images with polyline. Polyline is formed by connected
  3214  	// line segments which are not in closed form.
  3215  	//   "SEGMENTATION" - Label images with segmentation. Segmentation is different
  3216  	// from bounding poly since it is more fine-grained, pixel level annotation.
  3217  	Feature string `json:"feature,omitempty"`
  3218  	// ImageClassificationConfig: Configuration for image classification task. One
  3219  	// of image_classification_config, bounding_poly_config, polyline_config and
  3220  	// segmentation_config are required.
  3221  	ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
  3222  	// PolylineConfig: Configuration for polyline task. One of
  3223  	// image_classification_config, bounding_poly_config, polyline_config and
  3224  	// segmentation_config are required.
  3225  	PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"`
  3226  	// SegmentationConfig: Configuration for segmentation task. One of
  3227  	// image_classification_config, bounding_poly_config, polyline_config and
  3228  	// segmentation_config are required.
  3229  	SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"`
  3230  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3231  	// unconditionally include in API requests. By default, fields with empty or
  3232  	// default values are omitted from API requests. See
  3233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3234  	// details.
  3235  	ForceSendFields []string `json:"-"`
  3236  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3237  	// requests with the JSON null value. By default, fields with empty values are
  3238  	// omitted from API requests. See
  3239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3240  	NullFields []string `json:"-"`
  3241  }
  3242  
  3243  func (s *GoogleCloudDatalabelingV1beta1LabelImageRequest) MarshalJSON() ([]byte, error) {
  3244  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageRequest
  3245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3246  }
  3247  
  3248  // GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata:
  3249  // Details of a LabelImageSegmentation operation metadata.
  3250  type GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata struct {
  3251  	// BasicConfig: Basic human annotation config.
  3252  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3253  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3254  	// unconditionally include in API requests. By default, fields with empty or
  3255  	// default values are omitted from API requests. See
  3256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3257  	// details.
  3258  	ForceSendFields []string `json:"-"`
  3259  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3260  	// requests with the JSON null value. By default, fields with empty values are
  3261  	// omitted from API requests. See
  3262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3263  	NullFields []string `json:"-"`
  3264  }
  3265  
  3266  func (s *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
  3267  	type NoMethod GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata
  3268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3269  }
  3270  
  3271  // GoogleCloudDatalabelingV1beta1LabelOperationMetadata: Metadata of a labeling
  3272  // operation, such as LabelImage or LabelVideo. Next tag: 23
  3273  type GoogleCloudDatalabelingV1beta1LabelOperationMetadata struct {
  3274  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  3275  	// "projects/*/datasets/*/annotatedDatasets/*".
  3276  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  3277  	// CreateTime: Output only. Timestamp when labeling request was created.
  3278  	CreateTime string `json:"createTime,omitempty"`
  3279  	// Dataset: Output only. The name of dataset to be labeled.
  3280  	// "projects/*/datasets/*"
  3281  	Dataset string `json:"dataset,omitempty"`
  3282  	// ImageBoundingBoxDetails: Details of label image bounding box operation.
  3283  	ImageBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
  3284  	// ImageBoundingPolyDetails: Details of label image bounding poly operation.
  3285  	ImageBoundingPolyDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
  3286  	// ImageClassificationDetails: Details of label image classification operation.
  3287  	ImageClassificationDetails *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
  3288  	// ImageOrientedBoundingBoxDetails: Details of label image oriented bounding
  3289  	// box operation.
  3290  	ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
  3291  	// ImagePolylineDetails: Details of label image polyline operation.
  3292  	ImagePolylineDetails *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
  3293  	// ImageSegmentationDetails: Details of label image segmentation operation.
  3294  	ImageSegmentationDetails *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
  3295  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  3296  	// files that couldn't be read. Status details field will contain standard GCP
  3297  	// error details.
  3298  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  3299  	// ProgressPercent: Output only. Progress of label operation. Range: [0, 100].
  3300  	ProgressPercent int64 `json:"progressPercent,omitempty"`
  3301  	// TextClassificationDetails: Details of label text classification operation.
  3302  	TextClassificationDetails *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
  3303  	// TextEntityExtractionDetails: Details of label text entity extraction
  3304  	// operation.
  3305  	TextEntityExtractionDetails *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
  3306  	// VideoClassificationDetails: Details of label video classification operation.
  3307  	VideoClassificationDetails *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
  3308  	// VideoEventDetails: Details of label video event operation.
  3309  	VideoEventDetails *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
  3310  	// VideoObjectDetectionDetails: Details of label video object detection
  3311  	// operation.
  3312  	VideoObjectDetectionDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
  3313  	// VideoObjectTrackingDetails: Details of label video object tracking
  3314  	// operation.
  3315  	VideoObjectTrackingDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
  3316  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  3317  	// unconditionally include in API requests. By default, fields with empty or
  3318  	// default values are omitted from API requests. See
  3319  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3320  	// details.
  3321  	ForceSendFields []string `json:"-"`
  3322  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  3323  	// API requests with the JSON null value. By default, fields with empty values
  3324  	// are omitted from API requests. See
  3325  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3326  	NullFields []string `json:"-"`
  3327  }
  3328  
  3329  func (s *GoogleCloudDatalabelingV1beta1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
  3330  	type NoMethod GoogleCloudDatalabelingV1beta1LabelOperationMetadata
  3331  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3332  }
  3333  
  3334  // GoogleCloudDatalabelingV1beta1LabelStats: Statistics about annotation specs.
  3335  type GoogleCloudDatalabelingV1beta1LabelStats struct {
  3336  	// ExampleCount: Map of each annotation spec's example count. Key is the
  3337  	// annotation spec name and value is the number of examples for that annotation
  3338  	// spec. If the annotated dataset does not have annotation spec, the map will
  3339  	// return a pair where the key is empty string and value is the total number of
  3340  	// annotations.
  3341  	ExampleCount map[string]string `json:"exampleCount,omitempty"`
  3342  	// ForceSendFields is a list of field names (e.g. "ExampleCount") to
  3343  	// unconditionally include in API requests. By default, fields with empty or
  3344  	// default values are omitted from API requests. See
  3345  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3346  	// details.
  3347  	ForceSendFields []string `json:"-"`
  3348  	// NullFields is a list of field names (e.g. "ExampleCount") to include in API
  3349  	// requests with the JSON null value. By default, fields with empty values are
  3350  	// omitted from API requests. See
  3351  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3352  	NullFields []string `json:"-"`
  3353  }
  3354  
  3355  func (s *GoogleCloudDatalabelingV1beta1LabelStats) MarshalJSON() ([]byte, error) {
  3356  	type NoMethod GoogleCloudDatalabelingV1beta1LabelStats
  3357  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3358  }
  3359  
  3360  // GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata:
  3361  // Details of a LabelTextClassification operation metadata.
  3362  type GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata struct {
  3363  	// BasicConfig: Basic human annotation config used in labeling request.
  3364  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3365  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3366  	// unconditionally include in API requests. By default, fields with empty or
  3367  	// default values are omitted from API requests. See
  3368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3369  	// details.
  3370  	ForceSendFields []string `json:"-"`
  3371  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3372  	// requests with the JSON null value. By default, fields with empty values are
  3373  	// omitted from API requests. See
  3374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3375  	NullFields []string `json:"-"`
  3376  }
  3377  
  3378  func (s *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  3379  	type NoMethod GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata
  3380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3381  }
  3382  
  3383  // GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata:
  3384  // Details of a LabelTextEntityExtraction operation metadata.
  3385  type GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata struct {
  3386  	// BasicConfig: Basic human annotation config used in labeling request.
  3387  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3388  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3389  	// unconditionally include in API requests. By default, fields with empty or
  3390  	// default values are omitted from API requests. See
  3391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3392  	// details.
  3393  	ForceSendFields []string `json:"-"`
  3394  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3395  	// requests with the JSON null value. By default, fields with empty values are
  3396  	// omitted from API requests. See
  3397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3398  	NullFields []string `json:"-"`
  3399  }
  3400  
  3401  func (s *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
  3402  	type NoMethod GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata
  3403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3404  }
  3405  
  3406  // GoogleCloudDatalabelingV1beta1LabelTextRequest: Request message for
  3407  // LabelText.
  3408  type GoogleCloudDatalabelingV1beta1LabelTextRequest struct {
  3409  	// BasicConfig: Required. Basic human annotation config.
  3410  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3411  	// Feature: Required. The type of text labeling task.
  3412  	//
  3413  	// Possible values:
  3414  	//   "FEATURE_UNSPECIFIED"
  3415  	//   "TEXT_CLASSIFICATION" - Label text content to one of more labels.
  3416  	//   "TEXT_ENTITY_EXTRACTION" - Label entities and their span in text.
  3417  	Feature string `json:"feature,omitempty"`
  3418  	// TextClassificationConfig: Configuration for text classification task. One of
  3419  	// text_classification_config and text_entity_extraction_config is required.
  3420  	TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
  3421  	// TextEntityExtractionConfig: Configuration for entity extraction task. One of
  3422  	// text_classification_config and text_entity_extraction_config is required.
  3423  	TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"`
  3424  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3425  	// unconditionally include in API requests. By default, fields with empty or
  3426  	// default values are omitted from API requests. See
  3427  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3428  	// details.
  3429  	ForceSendFields []string `json:"-"`
  3430  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3431  	// requests with the JSON null value. By default, fields with empty values are
  3432  	// omitted from API requests. See
  3433  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3434  	NullFields []string `json:"-"`
  3435  }
  3436  
  3437  func (s *GoogleCloudDatalabelingV1beta1LabelTextRequest) MarshalJSON() ([]byte, error) {
  3438  	type NoMethod GoogleCloudDatalabelingV1beta1LabelTextRequest
  3439  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3440  }
  3441  
  3442  // GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata:
  3443  // Details of a LabelVideoClassification operation metadata.
  3444  type GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata struct {
  3445  	// BasicConfig: Basic human annotation config used in labeling request.
  3446  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3447  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3448  	// unconditionally include in API requests. By default, fields with empty or
  3449  	// default values are omitted from API requests. See
  3450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3451  	// details.
  3452  	ForceSendFields []string `json:"-"`
  3453  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3454  	// requests with the JSON null value. By default, fields with empty values are
  3455  	// omitted from API requests. See
  3456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3457  	NullFields []string `json:"-"`
  3458  }
  3459  
  3460  func (s *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  3461  	type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata
  3462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3463  }
  3464  
  3465  // GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata: Details of a
  3466  // LabelVideoEvent operation metadata.
  3467  type GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata struct {
  3468  	// BasicConfig: Basic human annotation config used in labeling request.
  3469  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3470  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3471  	// unconditionally include in API requests. By default, fields with empty or
  3472  	// default values are omitted from API requests. See
  3473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3474  	// details.
  3475  	ForceSendFields []string `json:"-"`
  3476  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3477  	// requests with the JSON null value. By default, fields with empty values are
  3478  	// omitted from API requests. See
  3479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3480  	NullFields []string `json:"-"`
  3481  }
  3482  
  3483  func (s *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
  3484  	type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata
  3485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3486  }
  3487  
  3488  // GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata:
  3489  // Details of a LabelVideoObjectDetection operation metadata.
  3490  type GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata struct {
  3491  	// BasicConfig: Basic human annotation config used in labeling request.
  3492  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3493  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3494  	// unconditionally include in API requests. By default, fields with empty or
  3495  	// default values are omitted from API requests. See
  3496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3497  	// details.
  3498  	ForceSendFields []string `json:"-"`
  3499  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3500  	// requests with the JSON null value. By default, fields with empty values are
  3501  	// omitted from API requests. See
  3502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3503  	NullFields []string `json:"-"`
  3504  }
  3505  
  3506  func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
  3507  	type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata
  3508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3509  }
  3510  
  3511  // GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata:
  3512  // Details of a LabelVideoObjectTracking operation metadata.
  3513  type GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata struct {
  3514  	// BasicConfig: Basic human annotation config used in labeling request.
  3515  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3516  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3517  	// unconditionally include in API requests. By default, fields with empty or
  3518  	// default values are omitted from API requests. See
  3519  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3520  	// details.
  3521  	ForceSendFields []string `json:"-"`
  3522  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3523  	// requests with the JSON null value. By default, fields with empty values are
  3524  	// omitted from API requests. See
  3525  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3526  	NullFields []string `json:"-"`
  3527  }
  3528  
  3529  func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
  3530  	type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata
  3531  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3532  }
  3533  
  3534  // GoogleCloudDatalabelingV1beta1LabelVideoRequest: Request message for
  3535  // LabelVideo.
  3536  type GoogleCloudDatalabelingV1beta1LabelVideoRequest struct {
  3537  	// BasicConfig: Required. Basic human annotation config.
  3538  	BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  3539  	// EventConfig: Configuration for video event task. One of
  3540  	// video_classification_config, object_detection_config, object_tracking_config
  3541  	// and event_config is required.
  3542  	EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"`
  3543  	// Feature: Required. The type of video labeling task.
  3544  	//
  3545  	// Possible values:
  3546  	//   "FEATURE_UNSPECIFIED"
  3547  	//   "CLASSIFICATION" - Label whole video or video segment with one or more
  3548  	// labels.
  3549  	//   "OBJECT_DETECTION" - Label objects with bounding box on image frames
  3550  	// extracted from the video.
  3551  	//   "OBJECT_TRACKING" - Label and track objects in video.
  3552  	//   "EVENT" - Label the range of video for the specified events.
  3553  	Feature string `json:"feature,omitempty"`
  3554  	// ObjectDetectionConfig: Configuration for video object detection task. One of
  3555  	// video_classification_config, object_detection_config, object_tracking_config
  3556  	// and event_config is required.
  3557  	ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"`
  3558  	// ObjectTrackingConfig: Configuration for video object tracking task. One of
  3559  	// video_classification_config, object_detection_config, object_tracking_config
  3560  	// and event_config is required.
  3561  	ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"`
  3562  	// VideoClassificationConfig: Configuration for video classification task. One
  3563  	// of video_classification_config, object_detection_config,
  3564  	// object_tracking_config and event_config is required.
  3565  	VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"`
  3566  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  3567  	// unconditionally include in API requests. By default, fields with empty or
  3568  	// default values are omitted from API requests. See
  3569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3570  	// details.
  3571  	ForceSendFields []string `json:"-"`
  3572  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  3573  	// requests with the JSON null value. By default, fields with empty values are
  3574  	// omitted from API requests. See
  3575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3576  	NullFields []string `json:"-"`
  3577  }
  3578  
  3579  func (s *GoogleCloudDatalabelingV1beta1LabelVideoRequest) MarshalJSON() ([]byte, error) {
  3580  	type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoRequest
  3581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3582  }
  3583  
  3584  // GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse: Results of
  3585  // listing annotated datasets for a dataset.
  3586  type GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse struct {
  3587  	// AnnotatedDatasets: The list of annotated datasets to return.
  3588  	AnnotatedDatasets []*GoogleCloudDatalabelingV1beta1AnnotatedDataset `json:"annotatedDatasets,omitempty"`
  3589  	// NextPageToken: A token to retrieve next page of results.
  3590  	NextPageToken string `json:"nextPageToken,omitempty"`
  3591  
  3592  	// ServerResponse contains the HTTP response code and headers from the server.
  3593  	googleapi.ServerResponse `json:"-"`
  3594  	// ForceSendFields is a list of field names (e.g. "AnnotatedDatasets") to
  3595  	// unconditionally include in API requests. By default, fields with empty or
  3596  	// default values are omitted from API requests. See
  3597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3598  	// details.
  3599  	ForceSendFields []string `json:"-"`
  3600  	// NullFields is a list of field names (e.g. "AnnotatedDatasets") to include in
  3601  	// API requests with the JSON null value. By default, fields with empty values
  3602  	// are omitted from API requests. See
  3603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3604  	NullFields []string `json:"-"`
  3605  }
  3606  
  3607  func (s *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) MarshalJSON() ([]byte, error) {
  3608  	type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse
  3609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3610  }
  3611  
  3612  // GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse: Results of
  3613  // listing annotation spec set under a project.
  3614  type GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse struct {
  3615  	// AnnotationSpecSets: The list of annotation spec sets.
  3616  	AnnotationSpecSets []*GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSets,omitempty"`
  3617  	// NextPageToken: A token to retrieve next page of results.
  3618  	NextPageToken string `json:"nextPageToken,omitempty"`
  3619  
  3620  	// ServerResponse contains the HTTP response code and headers from the server.
  3621  	googleapi.ServerResponse `json:"-"`
  3622  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSets") to
  3623  	// unconditionally include in API requests. By default, fields with empty or
  3624  	// default values are omitted from API requests. See
  3625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3626  	// details.
  3627  	ForceSendFields []string `json:"-"`
  3628  	// NullFields is a list of field names (e.g. "AnnotationSpecSets") to include
  3629  	// in API requests with the JSON null value. By default, fields with empty
  3630  	// values are omitted from API requests. See
  3631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3632  	NullFields []string `json:"-"`
  3633  }
  3634  
  3635  func (s *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) MarshalJSON() ([]byte, error) {
  3636  	type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse
  3637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3638  }
  3639  
  3640  // GoogleCloudDatalabelingV1beta1ListDataItemsResponse: Results of listing data
  3641  // items in a dataset.
  3642  type GoogleCloudDatalabelingV1beta1ListDataItemsResponse struct {
  3643  	// DataItems: The list of data items to return.
  3644  	DataItems []*GoogleCloudDatalabelingV1beta1DataItem `json:"dataItems,omitempty"`
  3645  	// NextPageToken: A token to retrieve next page of results.
  3646  	NextPageToken string `json:"nextPageToken,omitempty"`
  3647  
  3648  	// ServerResponse contains the HTTP response code and headers from the server.
  3649  	googleapi.ServerResponse `json:"-"`
  3650  	// ForceSendFields is a list of field names (e.g. "DataItems") to
  3651  	// unconditionally include in API requests. By default, fields with empty or
  3652  	// default values are omitted from API requests. See
  3653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3654  	// details.
  3655  	ForceSendFields []string `json:"-"`
  3656  	// NullFields is a list of field names (e.g. "DataItems") to include in API
  3657  	// requests with the JSON null value. By default, fields with empty values are
  3658  	// omitted from API requests. See
  3659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3660  	NullFields []string `json:"-"`
  3661  }
  3662  
  3663  func (s *GoogleCloudDatalabelingV1beta1ListDataItemsResponse) MarshalJSON() ([]byte, error) {
  3664  	type NoMethod GoogleCloudDatalabelingV1beta1ListDataItemsResponse
  3665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3666  }
  3667  
  3668  // GoogleCloudDatalabelingV1beta1ListDatasetsResponse: Results of listing
  3669  // datasets within a project.
  3670  type GoogleCloudDatalabelingV1beta1ListDatasetsResponse struct {
  3671  	// Datasets: The list of datasets to return.
  3672  	Datasets []*GoogleCloudDatalabelingV1beta1Dataset `json:"datasets,omitempty"`
  3673  	// NextPageToken: A token to retrieve next page of results.
  3674  	NextPageToken string `json:"nextPageToken,omitempty"`
  3675  
  3676  	// ServerResponse contains the HTTP response code and headers from the server.
  3677  	googleapi.ServerResponse `json:"-"`
  3678  	// ForceSendFields is a list of field names (e.g. "Datasets") to
  3679  	// unconditionally include in API requests. By default, fields with empty or
  3680  	// default values are omitted from API requests. See
  3681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3682  	// details.
  3683  	ForceSendFields []string `json:"-"`
  3684  	// NullFields is a list of field names (e.g. "Datasets") to include in API
  3685  	// requests with the JSON null value. By default, fields with empty values are
  3686  	// omitted from API requests. See
  3687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3688  	NullFields []string `json:"-"`
  3689  }
  3690  
  3691  func (s *GoogleCloudDatalabelingV1beta1ListDatasetsResponse) MarshalJSON() ([]byte, error) {
  3692  	type NoMethod GoogleCloudDatalabelingV1beta1ListDatasetsResponse
  3693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3694  }
  3695  
  3696  // GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse: Results for
  3697  // listing evaluation jobs.
  3698  type GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse struct {
  3699  	// EvaluationJobs: The list of evaluation jobs to return.
  3700  	EvaluationJobs []*GoogleCloudDatalabelingV1beta1EvaluationJob `json:"evaluationJobs,omitempty"`
  3701  	// NextPageToken: A token to retrieve next page of results.
  3702  	NextPageToken string `json:"nextPageToken,omitempty"`
  3703  
  3704  	// ServerResponse contains the HTTP response code and headers from the server.
  3705  	googleapi.ServerResponse `json:"-"`
  3706  	// ForceSendFields is a list of field names (e.g. "EvaluationJobs") to
  3707  	// unconditionally include in API requests. By default, fields with empty or
  3708  	// default values are omitted from API requests. See
  3709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3710  	// details.
  3711  	ForceSendFields []string `json:"-"`
  3712  	// NullFields is a list of field names (e.g. "EvaluationJobs") to include in
  3713  	// API requests with the JSON null value. By default, fields with empty values
  3714  	// are omitted from API requests. See
  3715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3716  	NullFields []string `json:"-"`
  3717  }
  3718  
  3719  func (s *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) MarshalJSON() ([]byte, error) {
  3720  	type NoMethod GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse
  3721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3722  }
  3723  
  3724  // GoogleCloudDatalabelingV1beta1ListExamplesResponse: Results of listing
  3725  // Examples in and annotated dataset.
  3726  type GoogleCloudDatalabelingV1beta1ListExamplesResponse struct {
  3727  	// Examples: The list of examples to return.
  3728  	Examples []*GoogleCloudDatalabelingV1beta1Example `json:"examples,omitempty"`
  3729  	// NextPageToken: A token to retrieve next page of results.
  3730  	NextPageToken string `json:"nextPageToken,omitempty"`
  3731  
  3732  	// ServerResponse contains the HTTP response code and headers from the server.
  3733  	googleapi.ServerResponse `json:"-"`
  3734  	// ForceSendFields is a list of field names (e.g. "Examples") to
  3735  	// unconditionally include in API requests. By default, fields with empty or
  3736  	// default values are omitted from API requests. See
  3737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3738  	// details.
  3739  	ForceSendFields []string `json:"-"`
  3740  	// NullFields is a list of field names (e.g. "Examples") to include in API
  3741  	// requests with the JSON null value. By default, fields with empty values are
  3742  	// omitted from API requests. See
  3743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3744  	NullFields []string `json:"-"`
  3745  }
  3746  
  3747  func (s *GoogleCloudDatalabelingV1beta1ListExamplesResponse) MarshalJSON() ([]byte, error) {
  3748  	type NoMethod GoogleCloudDatalabelingV1beta1ListExamplesResponse
  3749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3750  }
  3751  
  3752  // GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse: Results for
  3753  // listing FeedbackMessages.
  3754  type GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse struct {
  3755  	// FeedbackMessages: The list of feedback messages to return.
  3756  	FeedbackMessages []*GoogleCloudDatalabelingV1beta1FeedbackMessage `json:"feedbackMessages,omitempty"`
  3757  	// NextPageToken: A token to retrieve next page of results.
  3758  	NextPageToken string `json:"nextPageToken,omitempty"`
  3759  
  3760  	// ServerResponse contains the HTTP response code and headers from the server.
  3761  	googleapi.ServerResponse `json:"-"`
  3762  	// ForceSendFields is a list of field names (e.g. "FeedbackMessages") to
  3763  	// unconditionally include in API requests. By default, fields with empty or
  3764  	// default values are omitted from API requests. See
  3765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3766  	// details.
  3767  	ForceSendFields []string `json:"-"`
  3768  	// NullFields is a list of field names (e.g. "FeedbackMessages") to include in
  3769  	// API requests with the JSON null value. By default, fields with empty values
  3770  	// are omitted from API requests. See
  3771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3772  	NullFields []string `json:"-"`
  3773  }
  3774  
  3775  func (s *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) MarshalJSON() ([]byte, error) {
  3776  	type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse
  3777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3778  }
  3779  
  3780  // GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse: Results for
  3781  // listing FeedbackThreads.
  3782  type GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse struct {
  3783  	// FeedbackThreads: The list of feedback threads to return.
  3784  	FeedbackThreads []*GoogleCloudDatalabelingV1beta1FeedbackThread `json:"feedbackThreads,omitempty"`
  3785  	// NextPageToken: A token to retrieve next page of results.
  3786  	NextPageToken string `json:"nextPageToken,omitempty"`
  3787  
  3788  	// ServerResponse contains the HTTP response code and headers from the server.
  3789  	googleapi.ServerResponse `json:"-"`
  3790  	// ForceSendFields is a list of field names (e.g. "FeedbackThreads") to
  3791  	// unconditionally include in API requests. By default, fields with empty or
  3792  	// default values are omitted from API requests. See
  3793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3794  	// details.
  3795  	ForceSendFields []string `json:"-"`
  3796  	// NullFields is a list of field names (e.g. "FeedbackThreads") to include in
  3797  	// API requests with the JSON null value. By default, fields with empty values
  3798  	// are omitted from API requests. See
  3799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3800  	NullFields []string `json:"-"`
  3801  }
  3802  
  3803  func (s *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) MarshalJSON() ([]byte, error) {
  3804  	type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse
  3805  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3806  }
  3807  
  3808  // GoogleCloudDatalabelingV1beta1ListInstructionsResponse: Results of listing
  3809  // instructions under a project.
  3810  type GoogleCloudDatalabelingV1beta1ListInstructionsResponse struct {
  3811  	// Instructions: The list of Instructions to return.
  3812  	Instructions []*GoogleCloudDatalabelingV1beta1Instruction `json:"instructions,omitempty"`
  3813  	// NextPageToken: A token to retrieve next page of results.
  3814  	NextPageToken string `json:"nextPageToken,omitempty"`
  3815  
  3816  	// ServerResponse contains the HTTP response code and headers from the server.
  3817  	googleapi.ServerResponse `json:"-"`
  3818  	// ForceSendFields is a list of field names (e.g. "Instructions") to
  3819  	// unconditionally include in API requests. By default, fields with empty or
  3820  	// default values are omitted from API requests. See
  3821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3822  	// details.
  3823  	ForceSendFields []string `json:"-"`
  3824  	// NullFields is a list of field names (e.g. "Instructions") to include in API
  3825  	// requests with the JSON null value. By default, fields with empty values are
  3826  	// omitted from API requests. See
  3827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3828  	NullFields []string `json:"-"`
  3829  }
  3830  
  3831  func (s *GoogleCloudDatalabelingV1beta1ListInstructionsResponse) MarshalJSON() ([]byte, error) {
  3832  	type NoMethod GoogleCloudDatalabelingV1beta1ListInstructionsResponse
  3833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3834  }
  3835  
  3836  // GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly: Normalized bounding
  3837  // polygon.
  3838  type GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly struct {
  3839  	// NormalizedVertices: The bounding polygon normalized vertices.
  3840  	NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
  3841  	// ForceSendFields is a list of field names (e.g. "NormalizedVertices") to
  3842  	// unconditionally include in API requests. By default, fields with empty or
  3843  	// default values are omitted from API requests. See
  3844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3845  	// details.
  3846  	ForceSendFields []string `json:"-"`
  3847  	// NullFields is a list of field names (e.g. "NormalizedVertices") to include
  3848  	// in API requests with the JSON null value. By default, fields with empty
  3849  	// values are omitted from API requests. See
  3850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3851  	NullFields []string `json:"-"`
  3852  }
  3853  
  3854  func (s *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
  3855  	type NoMethod GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly
  3856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3857  }
  3858  
  3859  // GoogleCloudDatalabelingV1beta1NormalizedPolyline: Normalized polyline.
  3860  type GoogleCloudDatalabelingV1beta1NormalizedPolyline struct {
  3861  	// NormalizedVertices: The normalized polyline vertices.
  3862  	NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
  3863  	// ForceSendFields is a list of field names (e.g. "NormalizedVertices") to
  3864  	// unconditionally include in API requests. By default, fields with empty or
  3865  	// default values are omitted from API requests. See
  3866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3867  	// details.
  3868  	ForceSendFields []string `json:"-"`
  3869  	// NullFields is a list of field names (e.g. "NormalizedVertices") to include
  3870  	// in API requests with the JSON null value. By default, fields with empty
  3871  	// values are omitted from API requests. See
  3872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3873  	NullFields []string `json:"-"`
  3874  }
  3875  
  3876  func (s *GoogleCloudDatalabelingV1beta1NormalizedPolyline) MarshalJSON() ([]byte, error) {
  3877  	type NoMethod GoogleCloudDatalabelingV1beta1NormalizedPolyline
  3878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3879  }
  3880  
  3881  // GoogleCloudDatalabelingV1beta1NormalizedVertex: A vertex represents a 2D
  3882  // point in the image. NOTE: the normalized vertex coordinates are relative to
  3883  // the original image and range from 0 to 1.
  3884  type GoogleCloudDatalabelingV1beta1NormalizedVertex struct {
  3885  	// X: X coordinate.
  3886  	X float64 `json:"x,omitempty"`
  3887  	// Y: Y coordinate.
  3888  	Y float64 `json:"y,omitempty"`
  3889  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  3890  	// include in API requests. By default, fields with empty or default values are
  3891  	// omitted from API requests. See
  3892  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3893  	// details.
  3894  	ForceSendFields []string `json:"-"`
  3895  	// NullFields is a list of field names (e.g. "X") to include in API requests
  3896  	// with the JSON null value. By default, fields with empty values are omitted
  3897  	// from API requests. See
  3898  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3899  	NullFields []string `json:"-"`
  3900  }
  3901  
  3902  func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
  3903  	type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex
  3904  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3905  }
  3906  
  3907  func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
  3908  	type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex
  3909  	var s1 struct {
  3910  		X gensupport.JSONFloat64 `json:"x"`
  3911  		Y gensupport.JSONFloat64 `json:"y"`
  3912  		*NoMethod
  3913  	}
  3914  	s1.NoMethod = (*NoMethod)(s)
  3915  	if err := json.Unmarshal(data, &s1); err != nil {
  3916  		return err
  3917  	}
  3918  	s.X = float64(s1.X)
  3919  	s.Y = float64(s1.Y)
  3920  	return nil
  3921  }
  3922  
  3923  // GoogleCloudDatalabelingV1beta1ObjectDetectionConfig: Config for video object
  3924  // detection human labeling task. Object detection will be conducted on the
  3925  // images extracted from the video, and those objects will be labeled with
  3926  // bounding boxes. User need to specify the number of images to be extracted
  3927  // per second as the extraction frame rate.
  3928  type GoogleCloudDatalabelingV1beta1ObjectDetectionConfig struct {
  3929  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  3930  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  3931  	// ExtractionFrameRate: Required. Number of frames per second to be extracted
  3932  	// from the video.
  3933  	ExtractionFrameRate float64 `json:"extractionFrameRate,omitempty"`
  3934  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  3935  	// unconditionally include in API requests. By default, fields with empty or
  3936  	// default values are omitted from API requests. See
  3937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3938  	// details.
  3939  	ForceSendFields []string `json:"-"`
  3940  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  3941  	// API requests with the JSON null value. By default, fields with empty values
  3942  	// are omitted from API requests. See
  3943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3944  	NullFields []string `json:"-"`
  3945  }
  3946  
  3947  func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) MarshalJSON() ([]byte, error) {
  3948  	type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig
  3949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3950  }
  3951  
  3952  func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) UnmarshalJSON(data []byte) error {
  3953  	type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig
  3954  	var s1 struct {
  3955  		ExtractionFrameRate gensupport.JSONFloat64 `json:"extractionFrameRate"`
  3956  		*NoMethod
  3957  	}
  3958  	s1.NoMethod = (*NoMethod)(s)
  3959  	if err := json.Unmarshal(data, &s1); err != nil {
  3960  		return err
  3961  	}
  3962  	s.ExtractionFrameRate = float64(s1.ExtractionFrameRate)
  3963  	return nil
  3964  }
  3965  
  3966  // GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics: Metrics calculated for
  3967  // an image object detection (bounding box) model.
  3968  type GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics struct {
  3969  	// PrCurve: Precision-recall curve.
  3970  	PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"`
  3971  	// ForceSendFields is a list of field names (e.g. "PrCurve") to unconditionally
  3972  	// include in API requests. By default, fields with empty or default values are
  3973  	// omitted from API requests. See
  3974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3975  	// details.
  3976  	ForceSendFields []string `json:"-"`
  3977  	// NullFields is a list of field names (e.g. "PrCurve") to include in API
  3978  	// requests with the JSON null value. By default, fields with empty values are
  3979  	// omitted from API requests. See
  3980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3981  	NullFields []string `json:"-"`
  3982  }
  3983  
  3984  func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics) MarshalJSON() ([]byte, error) {
  3985  	type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics
  3986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3987  }
  3988  
  3989  // GoogleCloudDatalabelingV1beta1ObjectTrackingConfig: Config for video object
  3990  // tracking human labeling task.
  3991  type GoogleCloudDatalabelingV1beta1ObjectTrackingConfig struct {
  3992  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  3993  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  3994  	// ClipLength: Videos will be cut to smaller clips to make it easier for
  3995  	// labelers to work on. Users can configure is field in seconds, if not set,
  3996  	// default value is 20s.
  3997  	ClipLength int64 `json:"clipLength,omitempty"`
  3998  	// OverlapLength: The overlap length between different video clips. Users can
  3999  	// configure is field in seconds, if not set, default value is 0.3s.
  4000  	OverlapLength int64 `json:"overlapLength,omitempty"`
  4001  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  4002  	// unconditionally include in API requests. By default, fields with empty or
  4003  	// default values are omitted from API requests. See
  4004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4005  	// details.
  4006  	ForceSendFields []string `json:"-"`
  4007  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  4008  	// API requests with the JSON null value. By default, fields with empty values
  4009  	// are omitted from API requests. See
  4010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4011  	NullFields []string `json:"-"`
  4012  }
  4013  
  4014  func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig) MarshalJSON() ([]byte, error) {
  4015  	type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingConfig
  4016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4017  }
  4018  
  4019  // GoogleCloudDatalabelingV1beta1ObjectTrackingFrame: Video frame level
  4020  // annotation for object detection and tracking.
  4021  type GoogleCloudDatalabelingV1beta1ObjectTrackingFrame struct {
  4022  	BoundingPoly           *GoogleCloudDatalabelingV1beta1BoundingPoly           `json:"boundingPoly,omitempty"`
  4023  	NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"`
  4024  	// TimeOffset: The time offset of this frame relative to the beginning of the
  4025  	// video.
  4026  	TimeOffset string `json:"timeOffset,omitempty"`
  4027  	// ForceSendFields is a list of field names (e.g. "BoundingPoly") to
  4028  	// unconditionally include in API requests. By default, fields with empty or
  4029  	// default values are omitted from API requests. See
  4030  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4031  	// details.
  4032  	ForceSendFields []string `json:"-"`
  4033  	// NullFields is a list of field names (e.g. "BoundingPoly") to include in API
  4034  	// requests with the JSON null value. By default, fields with empty values are
  4035  	// omitted from API requests. See
  4036  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4037  	NullFields []string `json:"-"`
  4038  }
  4039  
  4040  func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
  4041  	type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingFrame
  4042  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4043  }
  4044  
  4045  // GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata: Metadata describing
  4046  // the feedback from the operator.
  4047  type GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata struct {
  4048  }
  4049  
  4050  // GoogleCloudDatalabelingV1beta1OperatorMetadata: General information useful
  4051  // for labels coming from contributors.
  4052  type GoogleCloudDatalabelingV1beta1OperatorMetadata struct {
  4053  	// Comments: Comments from contributors.
  4054  	Comments []string `json:"comments,omitempty"`
  4055  	// LabelVotes: The total number of contributors that choose this label.
  4056  	LabelVotes int64 `json:"labelVotes,omitempty"`
  4057  	// Score: Confidence score corresponding to a label. For examle, if 3
  4058  	// contributors have answered the question and 2 of them agree on the final
  4059  	// label, the confidence score will be 0.67 (2/3).
  4060  	Score float64 `json:"score,omitempty"`
  4061  	// TotalVotes: The total number of contributors that answer this question.
  4062  	TotalVotes int64 `json:"totalVotes,omitempty"`
  4063  	// ForceSendFields is a list of field names (e.g. "Comments") to
  4064  	// unconditionally include in API requests. By default, fields with empty or
  4065  	// default values are omitted from API requests. See
  4066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4067  	// details.
  4068  	ForceSendFields []string `json:"-"`
  4069  	// NullFields is a list of field names (e.g. "Comments") to include in API
  4070  	// requests with the JSON null value. By default, fields with empty values are
  4071  	// omitted from API requests. See
  4072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4073  	NullFields []string `json:"-"`
  4074  }
  4075  
  4076  func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) MarshalJSON() ([]byte, error) {
  4077  	type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata
  4078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4079  }
  4080  
  4081  func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) UnmarshalJSON(data []byte) error {
  4082  	type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata
  4083  	var s1 struct {
  4084  		Score gensupport.JSONFloat64 `json:"score"`
  4085  		*NoMethod
  4086  	}
  4087  	s1.NoMethod = (*NoMethod)(s)
  4088  	if err := json.Unmarshal(data, &s1); err != nil {
  4089  		return err
  4090  	}
  4091  	s.Score = float64(s1.Score)
  4092  	return nil
  4093  }
  4094  
  4095  // GoogleCloudDatalabelingV1beta1OutputConfig: The configuration of output
  4096  // data.
  4097  type GoogleCloudDatalabelingV1beta1OutputConfig struct {
  4098  	// GcsDestination: Output to a file in Cloud Storage. Should be used for
  4099  	// labeling output other than image segmentation.
  4100  	GcsDestination *GoogleCloudDatalabelingV1beta1GcsDestination `json:"gcsDestination,omitempty"`
  4101  	// GcsFolderDestination: Output to a folder in Cloud Storage. Should be used
  4102  	// for image segmentation or document de-identification labeling outputs.
  4103  	GcsFolderDestination *GoogleCloudDatalabelingV1beta1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
  4104  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  4105  	// unconditionally include in API requests. By default, fields with empty or
  4106  	// default values are omitted from API requests. See
  4107  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4108  	// details.
  4109  	ForceSendFields []string `json:"-"`
  4110  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  4111  	// API requests with the JSON null value. By default, fields with empty values
  4112  	// are omitted from API requests. See
  4113  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4114  	NullFields []string `json:"-"`
  4115  }
  4116  
  4117  func (s *GoogleCloudDatalabelingV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
  4118  	type NoMethod GoogleCloudDatalabelingV1beta1OutputConfig
  4119  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4120  }
  4121  
  4122  // GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest: Request message for
  4123  // PauseEvaluationJob.
  4124  type GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest struct {
  4125  }
  4126  
  4127  // GoogleCloudDatalabelingV1beta1PdfInstruction: Instruction from a PDF file.
  4128  type GoogleCloudDatalabelingV1beta1PdfInstruction struct {
  4129  	// GcsFileUri: PDF file for the instruction. Only gcs path is allowed.
  4130  	GcsFileUri string `json:"gcsFileUri,omitempty"`
  4131  	// ForceSendFields is a list of field names (e.g. "GcsFileUri") to
  4132  	// unconditionally include in API requests. By default, fields with empty or
  4133  	// default values are omitted from API requests. See
  4134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4135  	// details.
  4136  	ForceSendFields []string `json:"-"`
  4137  	// NullFields is a list of field names (e.g. "GcsFileUri") to include in API
  4138  	// requests with the JSON null value. By default, fields with empty values are
  4139  	// omitted from API requests. See
  4140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4141  	NullFields []string `json:"-"`
  4142  }
  4143  
  4144  func (s *GoogleCloudDatalabelingV1beta1PdfInstruction) MarshalJSON() ([]byte, error) {
  4145  	type NoMethod GoogleCloudDatalabelingV1beta1PdfInstruction
  4146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4147  }
  4148  
  4149  // GoogleCloudDatalabelingV1beta1Polyline: A line with multiple line segments.
  4150  type GoogleCloudDatalabelingV1beta1Polyline struct {
  4151  	// Vertices: The polyline vertices.
  4152  	Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"`
  4153  	// ForceSendFields is a list of field names (e.g. "Vertices") to
  4154  	// unconditionally include in API requests. By default, fields with empty or
  4155  	// default values are omitted from API requests. See
  4156  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4157  	// details.
  4158  	ForceSendFields []string `json:"-"`
  4159  	// NullFields is a list of field names (e.g. "Vertices") to include in API
  4160  	// requests with the JSON null value. By default, fields with empty values are
  4161  	// omitted from API requests. See
  4162  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4163  	NullFields []string `json:"-"`
  4164  }
  4165  
  4166  func (s *GoogleCloudDatalabelingV1beta1Polyline) MarshalJSON() ([]byte, error) {
  4167  	type NoMethod GoogleCloudDatalabelingV1beta1Polyline
  4168  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4169  }
  4170  
  4171  // GoogleCloudDatalabelingV1beta1PolylineConfig: Config for image polyline
  4172  // human labeling task.
  4173  type GoogleCloudDatalabelingV1beta1PolylineConfig struct {
  4174  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  4175  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  4176  	// InstructionMessage: Optional. Instruction message showed on contributors UI.
  4177  	InstructionMessage string `json:"instructionMessage,omitempty"`
  4178  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  4179  	// unconditionally include in API requests. By default, fields with empty or
  4180  	// default values are omitted from API requests. See
  4181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4182  	// details.
  4183  	ForceSendFields []string `json:"-"`
  4184  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  4185  	// API requests with the JSON null value. By default, fields with empty values
  4186  	// are omitted from API requests. See
  4187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4188  	NullFields []string `json:"-"`
  4189  }
  4190  
  4191  func (s *GoogleCloudDatalabelingV1beta1PolylineConfig) MarshalJSON() ([]byte, error) {
  4192  	type NoMethod GoogleCloudDatalabelingV1beta1PolylineConfig
  4193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4194  }
  4195  
  4196  type GoogleCloudDatalabelingV1beta1PrCurve struct {
  4197  	// AnnotationSpec: The annotation spec of the label for which the
  4198  	// precision-recall curve calculated. If this field is empty, that means the
  4199  	// precision-recall curve is an aggregate curve for all labels.
  4200  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4201  	// AreaUnderCurve: Area under the precision-recall curve. Not to be confused
  4202  	// with area under a receiver operating characteristic (ROC) curve.
  4203  	AreaUnderCurve float64 `json:"areaUnderCurve,omitempty"`
  4204  	// ConfidenceMetricsEntries: Entries that make up the precision-recall graph.
  4205  	// Each entry is a "point" on the graph drawn for a different
  4206  	// `confidence_threshold`.
  4207  	ConfidenceMetricsEntries []*GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"`
  4208  	// MeanAveragePrecision: Mean average prcision of this curve.
  4209  	MeanAveragePrecision float64 `json:"meanAveragePrecision,omitempty"`
  4210  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4211  	// unconditionally include in API requests. By default, fields with empty or
  4212  	// default values are omitted from API requests. See
  4213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4214  	// details.
  4215  	ForceSendFields []string `json:"-"`
  4216  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4217  	// API requests with the JSON null value. By default, fields with empty values
  4218  	// are omitted from API requests. See
  4219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4220  	NullFields []string `json:"-"`
  4221  }
  4222  
  4223  func (s *GoogleCloudDatalabelingV1beta1PrCurve) MarshalJSON() ([]byte, error) {
  4224  	type NoMethod GoogleCloudDatalabelingV1beta1PrCurve
  4225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4226  }
  4227  
  4228  func (s *GoogleCloudDatalabelingV1beta1PrCurve) UnmarshalJSON(data []byte) error {
  4229  	type NoMethod GoogleCloudDatalabelingV1beta1PrCurve
  4230  	var s1 struct {
  4231  		AreaUnderCurve       gensupport.JSONFloat64 `json:"areaUnderCurve"`
  4232  		MeanAveragePrecision gensupport.JSONFloat64 `json:"meanAveragePrecision"`
  4233  		*NoMethod
  4234  	}
  4235  	s1.NoMethod = (*NoMethod)(s)
  4236  	if err := json.Unmarshal(data, &s1); err != nil {
  4237  		return err
  4238  	}
  4239  	s.AreaUnderCurve = float64(s1.AreaUnderCurve)
  4240  	s.MeanAveragePrecision = float64(s1.MeanAveragePrecision)
  4241  	return nil
  4242  }
  4243  
  4244  // GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata: Metadata describing
  4245  // the feedback from the labeling task requester.
  4246  type GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata struct {
  4247  }
  4248  
  4249  // GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest: Request message
  4250  // ResumeEvaluationJob.
  4251  type GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest struct {
  4252  }
  4253  
  4254  // GoogleCloudDatalabelingV1beta1Row: A row in the confusion matrix. Each entry
  4255  // in this row has the same ground truth label.
  4256  type GoogleCloudDatalabelingV1beta1Row struct {
  4257  	// AnnotationSpec: The annotation spec of the ground truth label for this row.
  4258  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4259  	// Entries: A list of the confusion matrix entries. One entry for each possible
  4260  	// predicted label.
  4261  	Entries []*GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry `json:"entries,omitempty"`
  4262  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4263  	// unconditionally include in API requests. By default, fields with empty or
  4264  	// default values are omitted from API requests. See
  4265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4266  	// details.
  4267  	ForceSendFields []string `json:"-"`
  4268  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4269  	// API requests with the JSON null value. By default, fields with empty values
  4270  	// are omitted from API requests. See
  4271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4272  	NullFields []string `json:"-"`
  4273  }
  4274  
  4275  func (s *GoogleCloudDatalabelingV1beta1Row) MarshalJSON() ([]byte, error) {
  4276  	type NoMethod GoogleCloudDatalabelingV1beta1Row
  4277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4278  }
  4279  
  4280  // GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse: Results of
  4281  // searching evaluations.
  4282  type GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse struct {
  4283  	// Evaluations: The list of evaluations matching the search.
  4284  	Evaluations []*GoogleCloudDatalabelingV1beta1Evaluation `json:"evaluations,omitempty"`
  4285  	// NextPageToken: A token to retrieve next page of results.
  4286  	NextPageToken string `json:"nextPageToken,omitempty"`
  4287  
  4288  	// ServerResponse contains the HTTP response code and headers from the server.
  4289  	googleapi.ServerResponse `json:"-"`
  4290  	// ForceSendFields is a list of field names (e.g. "Evaluations") to
  4291  	// unconditionally include in API requests. By default, fields with empty or
  4292  	// default values are omitted from API requests. See
  4293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4294  	// details.
  4295  	ForceSendFields []string `json:"-"`
  4296  	// NullFields is a list of field names (e.g. "Evaluations") to include in API
  4297  	// requests with the JSON null value. By default, fields with empty values are
  4298  	// omitted from API requests. See
  4299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4300  	NullFields []string `json:"-"`
  4301  }
  4302  
  4303  func (s *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) MarshalJSON() ([]byte, error) {
  4304  	type NoMethod GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse
  4305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4306  }
  4307  
  4308  // GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest: Request
  4309  // message of SearchExampleComparisons.
  4310  type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest struct {
  4311  	// PageSize: Optional. Requested page size. Server may return fewer results
  4312  	// than requested. Default value is 100.
  4313  	PageSize int64 `json:"pageSize,omitempty"`
  4314  	// PageToken: Optional. A token identifying a page of results for the server to
  4315  	// return. Typically obtained by the nextPageToken of the response to a
  4316  	// previous search rquest. If you don't specify this field, the API call
  4317  	// requests the first page of the search.
  4318  	PageToken string `json:"pageToken,omitempty"`
  4319  	// ForceSendFields is a list of field names (e.g. "PageSize") to
  4320  	// unconditionally include in API requests. By default, fields with empty or
  4321  	// default values are omitted from API requests. See
  4322  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4323  	// details.
  4324  	ForceSendFields []string `json:"-"`
  4325  	// NullFields is a list of field names (e.g. "PageSize") to include in API
  4326  	// requests with the JSON null value. By default, fields with empty values are
  4327  	// omitted from API requests. See
  4328  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4329  	NullFields []string `json:"-"`
  4330  }
  4331  
  4332  func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) MarshalJSON() ([]byte, error) {
  4333  	type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest
  4334  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4335  }
  4336  
  4337  // GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse: Results of
  4338  // searching example comparisons.
  4339  type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse struct {
  4340  	// ExampleComparisons: A list of example comparisons matching the search
  4341  	// criteria.
  4342  	ExampleComparisons []*GoogleCloudDatalabelingV1beta1ExampleComparison `json:"exampleComparisons,omitempty"`
  4343  	// NextPageToken: A token to retrieve next page of results.
  4344  	NextPageToken string `json:"nextPageToken,omitempty"`
  4345  
  4346  	// ServerResponse contains the HTTP response code and headers from the server.
  4347  	googleapi.ServerResponse `json:"-"`
  4348  	// ForceSendFields is a list of field names (e.g. "ExampleComparisons") to
  4349  	// unconditionally include in API requests. By default, fields with empty or
  4350  	// default values are omitted from API requests. See
  4351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4352  	// details.
  4353  	ForceSendFields []string `json:"-"`
  4354  	// NullFields is a list of field names (e.g. "ExampleComparisons") to include
  4355  	// in API requests with the JSON null value. By default, fields with empty
  4356  	// values are omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4358  	NullFields []string `json:"-"`
  4359  }
  4360  
  4361  func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) MarshalJSON() ([]byte, error) {
  4362  	type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse
  4363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4364  }
  4365  
  4366  // GoogleCloudDatalabelingV1beta1SegmentationConfig: Config for image
  4367  // segmentation
  4368  type GoogleCloudDatalabelingV1beta1SegmentationConfig struct {
  4369  	// AnnotationSpecSet: Required. Annotation spec set resource name. format:
  4370  	// projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
  4371  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  4372  	// InstructionMessage: Instruction message showed on labelers UI.
  4373  	InstructionMessage string `json:"instructionMessage,omitempty"`
  4374  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  4375  	// unconditionally include in API requests. By default, fields with empty or
  4376  	// default values are omitted from API requests. See
  4377  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4378  	// details.
  4379  	ForceSendFields []string `json:"-"`
  4380  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  4381  	// API requests with the JSON null value. By default, fields with empty values
  4382  	// are omitted from API requests. See
  4383  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4384  	NullFields []string `json:"-"`
  4385  }
  4386  
  4387  func (s *GoogleCloudDatalabelingV1beta1SegmentationConfig) MarshalJSON() ([]byte, error) {
  4388  	type NoMethod GoogleCloudDatalabelingV1beta1SegmentationConfig
  4389  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4390  }
  4391  
  4392  // GoogleCloudDatalabelingV1beta1SentimentConfig: Config for setting up
  4393  // sentiments.
  4394  type GoogleCloudDatalabelingV1beta1SentimentConfig struct {
  4395  	// EnableLabelSentimentSelection: If set to true, contributors will have the
  4396  	// option to select sentiment of the label they selected, to mark it as
  4397  	// negative or positive label. Default is false.
  4398  	EnableLabelSentimentSelection bool `json:"enableLabelSentimentSelection,omitempty"`
  4399  	// ForceSendFields is a list of field names (e.g.
  4400  	// "EnableLabelSentimentSelection") to unconditionally include in API requests.
  4401  	// By default, fields with empty or default values are omitted from API
  4402  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  4403  	// for more details.
  4404  	ForceSendFields []string `json:"-"`
  4405  	// NullFields is a list of field names (e.g. "EnableLabelSentimentSelection")
  4406  	// to include in API requests with the JSON null value. By default, fields with
  4407  	// empty values are omitted from API requests. See
  4408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4409  	NullFields []string `json:"-"`
  4410  }
  4411  
  4412  func (s *GoogleCloudDatalabelingV1beta1SentimentConfig) MarshalJSON() ([]byte, error) {
  4413  	type NoMethod GoogleCloudDatalabelingV1beta1SentimentConfig
  4414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4415  }
  4416  
  4417  // GoogleCloudDatalabelingV1beta1SequentialSegment: Start and end position in a
  4418  // sequence (e.g. text segment).
  4419  type GoogleCloudDatalabelingV1beta1SequentialSegment struct {
  4420  	// End: End position (exclusive).
  4421  	End int64 `json:"end,omitempty"`
  4422  	// Start: Start position (inclusive).
  4423  	Start int64 `json:"start,omitempty"`
  4424  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  4425  	// include in API requests. By default, fields with empty or default values are
  4426  	// omitted from API requests. See
  4427  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4428  	// details.
  4429  	ForceSendFields []string `json:"-"`
  4430  	// NullFields is a list of field names (e.g. "End") to include in API requests
  4431  	// with the JSON null value. By default, fields with empty values are omitted
  4432  	// from API requests. See
  4433  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4434  	NullFields []string `json:"-"`
  4435  }
  4436  
  4437  func (s *GoogleCloudDatalabelingV1beta1SequentialSegment) MarshalJSON() ([]byte, error) {
  4438  	type NoMethod GoogleCloudDatalabelingV1beta1SequentialSegment
  4439  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4440  }
  4441  
  4442  // GoogleCloudDatalabelingV1beta1TextClassificationAnnotation: Text
  4443  // classification annotation.
  4444  type GoogleCloudDatalabelingV1beta1TextClassificationAnnotation struct {
  4445  	// AnnotationSpec: Label of the text.
  4446  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4447  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4448  	// unconditionally include in API requests. By default, fields with empty or
  4449  	// default values are omitted from API requests. See
  4450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4451  	// details.
  4452  	ForceSendFields []string `json:"-"`
  4453  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4454  	// API requests with the JSON null value. By default, fields with empty values
  4455  	// are omitted from API requests. See
  4456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4457  	NullFields []string `json:"-"`
  4458  }
  4459  
  4460  func (s *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation) MarshalJSON() ([]byte, error) {
  4461  	type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
  4462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4463  }
  4464  
  4465  // GoogleCloudDatalabelingV1beta1TextClassificationConfig: Config for text
  4466  // classification human labeling task.
  4467  type GoogleCloudDatalabelingV1beta1TextClassificationConfig struct {
  4468  	// AllowMultiLabel: Optional. If allow_multi_label is true, contributors are
  4469  	// able to choose multiple labels for one text segment.
  4470  	AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
  4471  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  4472  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  4473  	// SentimentConfig: Optional. Configs for sentiment selection. We deprecate
  4474  	// sentiment analysis in data labeling side as it is incompatible with uCAIP.
  4475  	SentimentConfig *GoogleCloudDatalabelingV1beta1SentimentConfig `json:"sentimentConfig,omitempty"`
  4476  	// ForceSendFields is a list of field names (e.g. "AllowMultiLabel") to
  4477  	// unconditionally include in API requests. By default, fields with empty or
  4478  	// default values are omitted from API requests. See
  4479  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4480  	// details.
  4481  	ForceSendFields []string `json:"-"`
  4482  	// NullFields is a list of field names (e.g. "AllowMultiLabel") to include in
  4483  	// API requests with the JSON null value. By default, fields with empty values
  4484  	// are omitted from API requests. See
  4485  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4486  	NullFields []string `json:"-"`
  4487  }
  4488  
  4489  func (s *GoogleCloudDatalabelingV1beta1TextClassificationConfig) MarshalJSON() ([]byte, error) {
  4490  	type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationConfig
  4491  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4492  }
  4493  
  4494  // GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation: Text entity
  4495  // extraction annotation.
  4496  type GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation struct {
  4497  	// AnnotationSpec: Label of the text entities.
  4498  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4499  	// SequentialSegment: Position of the entity.
  4500  	SequentialSegment *GoogleCloudDatalabelingV1beta1SequentialSegment `json:"sequentialSegment,omitempty"`
  4501  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4502  	// unconditionally include in API requests. By default, fields with empty or
  4503  	// default values are omitted from API requests. See
  4504  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4505  	// details.
  4506  	ForceSendFields []string `json:"-"`
  4507  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4508  	// API requests with the JSON null value. By default, fields with empty values
  4509  	// are omitted from API requests. See
  4510  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4511  	NullFields []string `json:"-"`
  4512  }
  4513  
  4514  func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation) MarshalJSON() ([]byte, error) {
  4515  	type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation
  4516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4517  }
  4518  
  4519  // GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig: Config for text
  4520  // entity extraction human labeling task.
  4521  type GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig struct {
  4522  	// AnnotationSpecSet: Required. Annotation spec set resource name.
  4523  	AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
  4524  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSet") to
  4525  	// unconditionally include in API requests. By default, fields with empty or
  4526  	// default values are omitted from API requests. See
  4527  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4528  	// details.
  4529  	ForceSendFields []string `json:"-"`
  4530  	// NullFields is a list of field names (e.g. "AnnotationSpecSet") to include in
  4531  	// API requests with the JSON null value. By default, fields with empty values
  4532  	// are omitted from API requests. See
  4533  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4534  	NullFields []string `json:"-"`
  4535  }
  4536  
  4537  func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig) MarshalJSON() ([]byte, error) {
  4538  	type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig
  4539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4540  }
  4541  
  4542  // GoogleCloudDatalabelingV1beta1TextMetadata: Metadata for the text.
  4543  type GoogleCloudDatalabelingV1beta1TextMetadata struct {
  4544  	// LanguageCode: The language of this text, as a BCP-47
  4545  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US.
  4546  	LanguageCode string `json:"languageCode,omitempty"`
  4547  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
  4548  	// unconditionally include in API requests. By default, fields with empty or
  4549  	// default values are omitted from API requests. See
  4550  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4551  	// details.
  4552  	ForceSendFields []string `json:"-"`
  4553  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
  4554  	// requests with the JSON null value. By default, fields with empty values are
  4555  	// omitted from API requests. See
  4556  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4557  	NullFields []string `json:"-"`
  4558  }
  4559  
  4560  func (s *GoogleCloudDatalabelingV1beta1TextMetadata) MarshalJSON() ([]byte, error) {
  4561  	type NoMethod GoogleCloudDatalabelingV1beta1TextMetadata
  4562  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4563  }
  4564  
  4565  // GoogleCloudDatalabelingV1beta1TextPayload: Container of information about a
  4566  // piece of text.
  4567  type GoogleCloudDatalabelingV1beta1TextPayload struct {
  4568  	// TextContent: Text content.
  4569  	TextContent string `json:"textContent,omitempty"`
  4570  	// ForceSendFields is a list of field names (e.g. "TextContent") to
  4571  	// unconditionally include in API requests. By default, fields with empty or
  4572  	// default values are omitted from API requests. See
  4573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4574  	// details.
  4575  	ForceSendFields []string `json:"-"`
  4576  	// NullFields is a list of field names (e.g. "TextContent") to include in API
  4577  	// requests with the JSON null value. By default, fields with empty values are
  4578  	// omitted from API requests. See
  4579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4580  	NullFields []string `json:"-"`
  4581  }
  4582  
  4583  func (s *GoogleCloudDatalabelingV1beta1TextPayload) MarshalJSON() ([]byte, error) {
  4584  	type NoMethod GoogleCloudDatalabelingV1beta1TextPayload
  4585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4586  }
  4587  
  4588  // GoogleCloudDatalabelingV1beta1TimeSegment: A time period inside of an
  4589  // example that has a time dimension (e.g. video).
  4590  type GoogleCloudDatalabelingV1beta1TimeSegment struct {
  4591  	// EndTimeOffset: End of the time segment (exclusive), represented as the
  4592  	// duration since the example start.
  4593  	EndTimeOffset string `json:"endTimeOffset,omitempty"`
  4594  	// StartTimeOffset: Start of the time segment (inclusive), represented as the
  4595  	// duration since the example start.
  4596  	StartTimeOffset string `json:"startTimeOffset,omitempty"`
  4597  	// ForceSendFields is a list of field names (e.g. "EndTimeOffset") to
  4598  	// unconditionally include in API requests. By default, fields with empty or
  4599  	// default values are omitted from API requests. See
  4600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4601  	// details.
  4602  	ForceSendFields []string `json:"-"`
  4603  	// NullFields is a list of field names (e.g. "EndTimeOffset") to include in API
  4604  	// requests with the JSON null value. By default, fields with empty values are
  4605  	// omitted from API requests. See
  4606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4607  	NullFields []string `json:"-"`
  4608  }
  4609  
  4610  func (s *GoogleCloudDatalabelingV1beta1TimeSegment) MarshalJSON() ([]byte, error) {
  4611  	type NoMethod GoogleCloudDatalabelingV1beta1TimeSegment
  4612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4613  }
  4614  
  4615  // GoogleCloudDatalabelingV1beta1Vertex: A vertex represents a 2D point in the
  4616  // image. NOTE: the vertex coordinates are in the same scale as the original
  4617  // image.
  4618  type GoogleCloudDatalabelingV1beta1Vertex struct {
  4619  	// X: X coordinate.
  4620  	X int64 `json:"x,omitempty"`
  4621  	// Y: Y coordinate.
  4622  	Y int64 `json:"y,omitempty"`
  4623  	// ForceSendFields is a list of field names (e.g. "X") to unconditionally
  4624  	// include in API requests. By default, fields with empty or default values are
  4625  	// omitted from API requests. See
  4626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4627  	// details.
  4628  	ForceSendFields []string `json:"-"`
  4629  	// NullFields is a list of field names (e.g. "X") to include in API requests
  4630  	// with the JSON null value. By default, fields with empty values are omitted
  4631  	// from API requests. See
  4632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4633  	NullFields []string `json:"-"`
  4634  }
  4635  
  4636  func (s *GoogleCloudDatalabelingV1beta1Vertex) MarshalJSON() ([]byte, error) {
  4637  	type NoMethod GoogleCloudDatalabelingV1beta1Vertex
  4638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4639  }
  4640  
  4641  // GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation: Video
  4642  // classification annotation.
  4643  type GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation struct {
  4644  	// AnnotationSpec: Label of the segment specified by time_segment.
  4645  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4646  	// TimeSegment: The time segment of the video to which the annotation applies.
  4647  	TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
  4648  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4649  	// unconditionally include in API requests. By default, fields with empty or
  4650  	// default values are omitted from API requests. See
  4651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4652  	// details.
  4653  	ForceSendFields []string `json:"-"`
  4654  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4655  	// API requests with the JSON null value. By default, fields with empty values
  4656  	// are omitted from API requests. See
  4657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4658  	NullFields []string `json:"-"`
  4659  }
  4660  
  4661  func (s *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation) MarshalJSON() ([]byte, error) {
  4662  	type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation
  4663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4664  }
  4665  
  4666  // GoogleCloudDatalabelingV1beta1VideoClassificationConfig: Config for video
  4667  // classification human labeling task. Currently two types of video
  4668  // classification are supported: 1. Assign labels on the entire video. 2. Split
  4669  // the video into multiple video clips based on camera shot, and assign labels
  4670  // on each video clip.
  4671  type GoogleCloudDatalabelingV1beta1VideoClassificationConfig struct {
  4672  	// AnnotationSpecSetConfigs: Required. The list of annotation spec set configs.
  4673  	// Since watching a video clip takes much longer time than an image, we support
  4674  	// label with multiple AnnotationSpecSet at the same time. Labels in each
  4675  	// AnnotationSpecSet will be shown in a group to contributors. Contributors can
  4676  	// select one or more (depending on whether to allow multi label) from each
  4677  	// group.
  4678  	AnnotationSpecSetConfigs []*GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig `json:"annotationSpecSetConfigs,omitempty"`
  4679  	// ApplyShotDetection: Optional. Option to apply shot detection on the video.
  4680  	ApplyShotDetection bool `json:"applyShotDetection,omitempty"`
  4681  	// ForceSendFields is a list of field names (e.g. "AnnotationSpecSetConfigs")
  4682  	// to unconditionally include in API requests. By default, fields with empty or
  4683  	// default values are omitted from API requests. See
  4684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4685  	// details.
  4686  	ForceSendFields []string `json:"-"`
  4687  	// NullFields is a list of field names (e.g. "AnnotationSpecSetConfigs") to
  4688  	// include in API requests with the JSON null value. By default, fields with
  4689  	// empty values are omitted from API requests. See
  4690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4691  	NullFields []string `json:"-"`
  4692  }
  4693  
  4694  func (s *GoogleCloudDatalabelingV1beta1VideoClassificationConfig) MarshalJSON() ([]byte, error) {
  4695  	type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationConfig
  4696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4697  }
  4698  
  4699  // GoogleCloudDatalabelingV1beta1VideoEventAnnotation: Video event annotation.
  4700  type GoogleCloudDatalabelingV1beta1VideoEventAnnotation struct {
  4701  	// AnnotationSpec: Label of the event in this annotation.
  4702  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4703  	// TimeSegment: The time segment of the video to which the annotation applies.
  4704  	TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
  4705  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4706  	// unconditionally include in API requests. By default, fields with empty or
  4707  	// default values are omitted from API requests. See
  4708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4709  	// details.
  4710  	ForceSendFields []string `json:"-"`
  4711  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4712  	// API requests with the JSON null value. By default, fields with empty values
  4713  	// are omitted from API requests. See
  4714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4715  	NullFields []string `json:"-"`
  4716  }
  4717  
  4718  func (s *GoogleCloudDatalabelingV1beta1VideoEventAnnotation) MarshalJSON() ([]byte, error) {
  4719  	type NoMethod GoogleCloudDatalabelingV1beta1VideoEventAnnotation
  4720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4721  }
  4722  
  4723  // GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation: Video object
  4724  // tracking annotation.
  4725  type GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation struct {
  4726  	// AnnotationSpec: Label of the object tracked in this annotation.
  4727  	AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
  4728  	// ObjectTrackingFrames: The list of frames where this object track appears.
  4729  	ObjectTrackingFrames []*GoogleCloudDatalabelingV1beta1ObjectTrackingFrame `json:"objectTrackingFrames,omitempty"`
  4730  	// TimeSegment: The time segment of the video to which object tracking applies.
  4731  	TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
  4732  	// ForceSendFields is a list of field names (e.g. "AnnotationSpec") to
  4733  	// unconditionally include in API requests. By default, fields with empty or
  4734  	// default values are omitted from API requests. See
  4735  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4736  	// details.
  4737  	ForceSendFields []string `json:"-"`
  4738  	// NullFields is a list of field names (e.g. "AnnotationSpec") to include in
  4739  	// API requests with the JSON null value. By default, fields with empty values
  4740  	// are omitted from API requests. See
  4741  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4742  	NullFields []string `json:"-"`
  4743  }
  4744  
  4745  func (s *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
  4746  	type NoMethod GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation
  4747  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4748  }
  4749  
  4750  // GoogleCloudDatalabelingV1beta1VideoPayload: Container of information of a
  4751  // video.
  4752  type GoogleCloudDatalabelingV1beta1VideoPayload struct {
  4753  	// FrameRate: FPS of the video.
  4754  	FrameRate float64 `json:"frameRate,omitempty"`
  4755  	// MimeType: Video format.
  4756  	MimeType string `json:"mimeType,omitempty"`
  4757  	// SignedUri: Signed uri of the video file in the service bucket.
  4758  	SignedUri string `json:"signedUri,omitempty"`
  4759  	// VideoThumbnails: The list of video thumbnails.
  4760  	VideoThumbnails []*GoogleCloudDatalabelingV1beta1VideoThumbnail `json:"videoThumbnails,omitempty"`
  4761  	// VideoUri: Video uri from the user bucket.
  4762  	VideoUri string `json:"videoUri,omitempty"`
  4763  	// ForceSendFields is a list of field names (e.g. "FrameRate") to
  4764  	// unconditionally include in API requests. By default, fields with empty or
  4765  	// default values are omitted from API requests. See
  4766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4767  	// details.
  4768  	ForceSendFields []string `json:"-"`
  4769  	// NullFields is a list of field names (e.g. "FrameRate") to include in API
  4770  	// requests with the JSON null value. By default, fields with empty values are
  4771  	// omitted from API requests. See
  4772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4773  	NullFields []string `json:"-"`
  4774  }
  4775  
  4776  func (s *GoogleCloudDatalabelingV1beta1VideoPayload) MarshalJSON() ([]byte, error) {
  4777  	type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload
  4778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4779  }
  4780  
  4781  func (s *GoogleCloudDatalabelingV1beta1VideoPayload) UnmarshalJSON(data []byte) error {
  4782  	type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload
  4783  	var s1 struct {
  4784  		FrameRate gensupport.JSONFloat64 `json:"frameRate"`
  4785  		*NoMethod
  4786  	}
  4787  	s1.NoMethod = (*NoMethod)(s)
  4788  	if err := json.Unmarshal(data, &s1); err != nil {
  4789  		return err
  4790  	}
  4791  	s.FrameRate = float64(s1.FrameRate)
  4792  	return nil
  4793  }
  4794  
  4795  // GoogleCloudDatalabelingV1beta1VideoThumbnail: Container of information of a
  4796  // video thumbnail.
  4797  type GoogleCloudDatalabelingV1beta1VideoThumbnail struct {
  4798  	// Thumbnail: A byte string of the video frame.
  4799  	Thumbnail string `json:"thumbnail,omitempty"`
  4800  	// TimeOffset: Time offset relative to the beginning of the video,
  4801  	// corresponding to the video frame where the thumbnail has been extracted
  4802  	// from.
  4803  	TimeOffset string `json:"timeOffset,omitempty"`
  4804  	// ForceSendFields is a list of field names (e.g. "Thumbnail") to
  4805  	// unconditionally include in API requests. By default, fields with empty or
  4806  	// default values are omitted from API requests. See
  4807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4808  	// details.
  4809  	ForceSendFields []string `json:"-"`
  4810  	// NullFields is a list of field names (e.g. "Thumbnail") to include in API
  4811  	// requests with the JSON null value. By default, fields with empty values are
  4812  	// omitted from API requests. See
  4813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4814  	NullFields []string `json:"-"`
  4815  }
  4816  
  4817  func (s *GoogleCloudDatalabelingV1beta1VideoThumbnail) MarshalJSON() ([]byte, error) {
  4818  	type NoMethod GoogleCloudDatalabelingV1beta1VideoThumbnail
  4819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4820  }
  4821  
  4822  // GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata: Metadata of a
  4823  // CreateInstruction operation.
  4824  type GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata struct {
  4825  	// CreateTime: Timestamp when create instruction request was created.
  4826  	CreateTime string `json:"createTime,omitempty"`
  4827  	// Instruction: The name of the created Instruction.
  4828  	// projects/{project_id}/instructions/{instruction_id}
  4829  	Instruction string `json:"instruction,omitempty"`
  4830  	// PartialFailures: Partial failures encountered. E.g. single files that
  4831  	// couldn't be read. Status details field will contain standard GCP error
  4832  	// details.
  4833  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  4834  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4835  	// unconditionally include in API requests. By default, fields with empty or
  4836  	// default values are omitted from API requests. See
  4837  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4838  	// details.
  4839  	ForceSendFields []string `json:"-"`
  4840  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4841  	// requests with the JSON null value. By default, fields with empty values are
  4842  	// omitted from API requests. See
  4843  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4844  	NullFields []string `json:"-"`
  4845  }
  4846  
  4847  func (s *GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
  4848  	type NoMethod GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata
  4849  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4850  }
  4851  
  4852  // GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata: Metadata of an
  4853  // ExportData operation.
  4854  type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata struct {
  4855  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  4856  	// "projects/*/datasets/*/annotatedDatasets/*".
  4857  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  4858  	// CreateTime: Output only. Timestamp when export dataset request was created.
  4859  	CreateTime string `json:"createTime,omitempty"`
  4860  	// Dataset: Output only. The name of dataset to be exported.
  4861  	// "projects/*/datasets/*"
  4862  	Dataset string `json:"dataset,omitempty"`
  4863  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  4864  	// files that couldn't be read. Status details field will contain standard GCP
  4865  	// error details.
  4866  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  4867  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  4868  	// unconditionally include in API requests. By default, fields with empty or
  4869  	// default values are omitted from API requests. See
  4870  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4871  	// details.
  4872  	ForceSendFields []string `json:"-"`
  4873  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  4874  	// API requests with the JSON null value. By default, fields with empty values
  4875  	// are omitted from API requests. See
  4876  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4877  	NullFields []string `json:"-"`
  4878  }
  4879  
  4880  func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  4881  	type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata
  4882  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4883  }
  4884  
  4885  // GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse: Response used
  4886  // for ExportDataset longrunning operation.
  4887  type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse struct {
  4888  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  4889  	// "projects/*/datasets/*/annotatedDatasets/*".
  4890  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  4891  	// Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*"
  4892  	Dataset string `json:"dataset,omitempty"`
  4893  	// ExportCount: Output only. Number of examples exported successfully.
  4894  	ExportCount int64 `json:"exportCount,omitempty"`
  4895  	// LabelStats: Output only. Statistic infos of labels in the exported dataset.
  4896  	LabelStats *GoogleCloudDatalabelingV1p1alpha1LabelStats `json:"labelStats,omitempty"`
  4897  	// OutputConfig: Output only. output_config in the ExportData request.
  4898  	OutputConfig *GoogleCloudDatalabelingV1p1alpha1OutputConfig `json:"outputConfig,omitempty"`
  4899  	// TotalCount: Output only. Total number of examples requested to export
  4900  	TotalCount int64 `json:"totalCount,omitempty"`
  4901  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  4902  	// unconditionally include in API requests. By default, fields with empty or
  4903  	// default values are omitted from API requests. See
  4904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4905  	// details.
  4906  	ForceSendFields []string `json:"-"`
  4907  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  4908  	// API requests with the JSON null value. By default, fields with empty values
  4909  	// are omitted from API requests. See
  4910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4911  	NullFields []string `json:"-"`
  4912  }
  4913  
  4914  func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
  4915  	type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse
  4916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4917  }
  4918  
  4919  // GoogleCloudDatalabelingV1p1alpha1GcsDestination: Export destination of the
  4920  // data.Only gcs path is allowed in output_uri.
  4921  type GoogleCloudDatalabelingV1p1alpha1GcsDestination struct {
  4922  	// MimeType: Required. The format of the gcs destination. Only "text/csv" and
  4923  	// "application/json" are supported.
  4924  	MimeType string `json:"mimeType,omitempty"`
  4925  	// OutputUri: Required. The output uri of destination file.
  4926  	OutputUri string `json:"outputUri,omitempty"`
  4927  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  4928  	// unconditionally include in API requests. By default, fields with empty or
  4929  	// default values are omitted from API requests. See
  4930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4931  	// details.
  4932  	ForceSendFields []string `json:"-"`
  4933  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  4934  	// requests with the JSON null value. By default, fields with empty values are
  4935  	// omitted from API requests. See
  4936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4937  	NullFields []string `json:"-"`
  4938  }
  4939  
  4940  func (s *GoogleCloudDatalabelingV1p1alpha1GcsDestination) MarshalJSON() ([]byte, error) {
  4941  	type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsDestination
  4942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4943  }
  4944  
  4945  // GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination: Export folder
  4946  // destination of the data.
  4947  type GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination struct {
  4948  	// OutputFolderUri: Required. Cloud Storage directory to export data to.
  4949  	OutputFolderUri string `json:"outputFolderUri,omitempty"`
  4950  	// ForceSendFields is a list of field names (e.g. "OutputFolderUri") to
  4951  	// unconditionally include in API requests. By default, fields with empty or
  4952  	// default values are omitted from API requests. See
  4953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4954  	// details.
  4955  	ForceSendFields []string `json:"-"`
  4956  	// NullFields is a list of field names (e.g. "OutputFolderUri") to include in
  4957  	// API requests with the JSON null value. By default, fields with empty values
  4958  	// are omitted from API requests. See
  4959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4960  	NullFields []string `json:"-"`
  4961  }
  4962  
  4963  func (s *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
  4964  	type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination
  4965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4966  }
  4967  
  4968  // GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata:
  4969  // Metadata of an GenerateAnalysisReport operation.
  4970  type GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata struct {
  4971  	// CreateTime: Timestamp when generate report request was created.
  4972  	CreateTime string `json:"createTime,omitempty"`
  4973  	// Dataset: The name of the dataset for which the analysis report is generated.
  4974  	// Format: "projects/*/datasets/*"
  4975  	Dataset string `json:"dataset,omitempty"`
  4976  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4977  	// unconditionally include in API requests. By default, fields with empty or
  4978  	// default values are omitted from API requests. See
  4979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4980  	// details.
  4981  	ForceSendFields []string `json:"-"`
  4982  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4983  	// requests with the JSON null value. By default, fields with empty values are
  4984  	// omitted from API requests. See
  4985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4986  	NullFields []string `json:"-"`
  4987  }
  4988  
  4989  func (s *GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata) MarshalJSON() ([]byte, error) {
  4990  	type NoMethod GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata
  4991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4992  }
  4993  
  4994  // GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig: Configuration for
  4995  // how human labeling task should be done.
  4996  type GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig struct {
  4997  	// AnnotatedDatasetDescription: Optional. A human-readable description for
  4998  	// AnnotatedDataset. The description can be up to 10000 characters long.
  4999  	AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
  5000  	// AnnotatedDatasetDisplayName: Required. A human-readable name for
  5001  	// AnnotatedDataset defined by users. Maximum of 64 characters .
  5002  	AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
  5003  	// ContributorEmails: Optional. If you want your own labeling contributors to
  5004  	// manage and work on this labeling request, you can set these contributors
  5005  	// here. We will give them access to the question types in crowdcompute. Note
  5006  	// that these emails must be registered in crowdcompute worker UI:
  5007  	// https://crowd-compute.appspot.com/
  5008  	ContributorEmails []string `json:"contributorEmails,omitempty"`
  5009  	// Instruction: Required. Instruction resource name.
  5010  	Instruction string `json:"instruction,omitempty"`
  5011  	// LabelGroup: Optional. A human-readable label used to logically group
  5012  	// labeling tasks. This string must match the regular expression
  5013  	// `[a-zA-Z\\d_-]{0,128}`.
  5014  	LabelGroup string `json:"labelGroup,omitempty"`
  5015  	// LanguageCode: Optional. The Language of this question, as a BCP-47
  5016  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only
  5017  	// need to set this when task is language related. For example, French text
  5018  	// classification.
  5019  	LanguageCode string `json:"languageCode,omitempty"`
  5020  	// QuestionDuration: Optional. Maximum duration for contributors to answer a
  5021  	// question. Maximum is 3600 seconds. Default is 3600 seconds.
  5022  	QuestionDuration string `json:"questionDuration,omitempty"`
  5023  	// ReplicaCount: Optional. Replication of questions. Each question will be sent
  5024  	// to up to this number of contributors to label. Aggregated answers will be
  5025  	// returned. Default is set to 1. For image related labeling, valid values are
  5026  	// 1, 3, 5.
  5027  	ReplicaCount int64 `json:"replicaCount,omitempty"`
  5028  	// UserEmailAddress: Email of the user who started the labeling task and should
  5029  	// be notified by email. If empty no notification will be sent.
  5030  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
  5031  	// ForceSendFields is a list of field names (e.g.
  5032  	// "AnnotatedDatasetDescription") to unconditionally include in API requests.
  5033  	// By default, fields with empty or default values are omitted from API
  5034  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  5035  	// for more details.
  5036  	ForceSendFields []string `json:"-"`
  5037  	// NullFields is a list of field names (e.g. "AnnotatedDatasetDescription") to
  5038  	// include in API requests with the JSON null value. By default, fields with
  5039  	// empty values are omitted from API requests. See
  5040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5041  	NullFields []string `json:"-"`
  5042  }
  5043  
  5044  func (s *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
  5045  	type NoMethod GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig
  5046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5047  }
  5048  
  5049  // GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata: Metadata of an
  5050  // ImportData operation.
  5051  type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata struct {
  5052  	// CreateTime: Output only. Timestamp when import dataset request was created.
  5053  	CreateTime string `json:"createTime,omitempty"`
  5054  	// Dataset: Output only. The name of imported dataset. "projects/*/datasets/*"
  5055  	Dataset string `json:"dataset,omitempty"`
  5056  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  5057  	// files that couldn't be read. Status details field will contain standard GCP
  5058  	// error details.
  5059  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5060  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5061  	// unconditionally include in API requests. By default, fields with empty or
  5062  	// default values are omitted from API requests. See
  5063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5064  	// details.
  5065  	ForceSendFields []string `json:"-"`
  5066  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5067  	// requests with the JSON null value. By default, fields with empty values are
  5068  	// omitted from API requests. See
  5069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5070  	NullFields []string `json:"-"`
  5071  }
  5072  
  5073  func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  5074  	type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata
  5075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5076  }
  5077  
  5078  // GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse: Response used
  5079  // for ImportData longrunning operation.
  5080  type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse struct {
  5081  	// Dataset: Ouptut only. The name of imported dataset.
  5082  	Dataset string `json:"dataset,omitempty"`
  5083  	// ImportCount: Output only. Number of examples imported successfully.
  5084  	ImportCount int64 `json:"importCount,omitempty"`
  5085  	// TotalCount: Output only. Total number of examples requested to import
  5086  	TotalCount int64 `json:"totalCount,omitempty"`
  5087  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
  5088  	// include in API requests. By default, fields with empty or default values are
  5089  	// omitted from API requests. See
  5090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5091  	// details.
  5092  	ForceSendFields []string `json:"-"`
  5093  	// NullFields is a list of field names (e.g. "Dataset") to include in API
  5094  	// requests with the JSON null value. By default, fields with empty values are
  5095  	// omitted from API requests. See
  5096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5097  	NullFields []string `json:"-"`
  5098  }
  5099  
  5100  func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
  5101  	type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse
  5102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5103  }
  5104  
  5105  // GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata:
  5106  // Details of a LabelImageBoundingBox operation metadata.
  5107  type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata struct {
  5108  	// BasicConfig: Basic human annotation config used in labeling request.
  5109  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5110  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5111  	// unconditionally include in API requests. By default, fields with empty or
  5112  	// default values are omitted from API requests. See
  5113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5114  	// details.
  5115  	ForceSendFields []string `json:"-"`
  5116  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5117  	// requests with the JSON null value. By default, fields with empty values are
  5118  	// omitted from API requests. See
  5119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5120  	NullFields []string `json:"-"`
  5121  }
  5122  
  5123  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  5124  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata
  5125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5126  }
  5127  
  5128  // GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata:
  5129  // Details of LabelImageBoundingPoly operation metadata.
  5130  type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata struct {
  5131  	// BasicConfig: Basic human annotation config used in labeling request.
  5132  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5133  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5134  	// unconditionally include in API requests. By default, fields with empty or
  5135  	// default values are omitted from API requests. See
  5136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5137  	// details.
  5138  	ForceSendFields []string `json:"-"`
  5139  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5140  	// requests with the JSON null value. By default, fields with empty values are
  5141  	// omitted from API requests. See
  5142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5143  	NullFields []string `json:"-"`
  5144  }
  5145  
  5146  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
  5147  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata
  5148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5149  }
  5150  
  5151  // GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata:
  5152  // Metadata of a LabelImageClassification operation.
  5153  type GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata struct {
  5154  	// BasicConfig: Basic human annotation config used in labeling request.
  5155  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5156  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5157  	// unconditionally include in API requests. By default, fields with empty or
  5158  	// default values are omitted from API requests. See
  5159  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5160  	// details.
  5161  	ForceSendFields []string `json:"-"`
  5162  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5163  	// requests with the JSON null value. By default, fields with empty values are
  5164  	// omitted from API requests. See
  5165  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5166  	NullFields []string `json:"-"`
  5167  }
  5168  
  5169  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  5170  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata
  5171  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5172  }
  5173  
  5174  // GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetada
  5175  // ta: Details of a LabelImageOrientedBoundingBox operation metadata.
  5176  type GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
  5177  	// BasicConfig: Basic human annotation config.
  5178  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5179  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5180  	// unconditionally include in API requests. By default, fields with empty or
  5181  	// default values are omitted from API requests. See
  5182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5183  	// details.
  5184  	ForceSendFields []string `json:"-"`
  5185  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5186  	// requests with the JSON null value. By default, fields with empty values are
  5187  	// omitted from API requests. See
  5188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5189  	NullFields []string `json:"-"`
  5190  }
  5191  
  5192  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  5193  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata
  5194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5195  }
  5196  
  5197  // GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata:
  5198  // Details of LabelImagePolyline operation metadata.
  5199  type GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata struct {
  5200  	// BasicConfig: Basic human annotation config used in labeling request.
  5201  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5202  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5203  	// unconditionally include in API requests. By default, fields with empty or
  5204  	// default values are omitted from API requests. See
  5205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5206  	// details.
  5207  	ForceSendFields []string `json:"-"`
  5208  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5209  	// requests with the JSON null value. By default, fields with empty values are
  5210  	// omitted from API requests. See
  5211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5212  	NullFields []string `json:"-"`
  5213  }
  5214  
  5215  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
  5216  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata
  5217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5218  }
  5219  
  5220  // GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata:
  5221  // Details of a LabelImageSegmentation operation metadata.
  5222  type GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata struct {
  5223  	// BasicConfig: Basic human annotation config.
  5224  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5225  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5226  	// unconditionally include in API requests. By default, fields with empty or
  5227  	// default values are omitted from API requests. See
  5228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5229  	// details.
  5230  	ForceSendFields []string `json:"-"`
  5231  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5232  	// requests with the JSON null value. By default, fields with empty values are
  5233  	// omitted from API requests. See
  5234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5235  	NullFields []string `json:"-"`
  5236  }
  5237  
  5238  func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
  5239  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata
  5240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5241  }
  5242  
  5243  // GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata: Metadata of a
  5244  // labeling operation, such as LabelImage or LabelVideo. Next tag: 23
  5245  type GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata struct {
  5246  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  5247  	// "projects/*/datasets/*/annotatedDatasets/*".
  5248  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  5249  	// CreateTime: Output only. Timestamp when labeling request was created.
  5250  	CreateTime string `json:"createTime,omitempty"`
  5251  	// Dataset: Output only. The name of dataset to be labeled.
  5252  	// "projects/*/datasets/*"
  5253  	Dataset string `json:"dataset,omitempty"`
  5254  	// ImageBoundingBoxDetails: Details of label image bounding box operation.
  5255  	ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
  5256  	// ImageBoundingPolyDetails: Details of label image bounding poly operation.
  5257  	ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
  5258  	// ImageClassificationDetails: Details of label image classification operation.
  5259  	ImageClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
  5260  	// ImageOrientedBoundingBoxDetails: Details of label image oriented bounding
  5261  	// box operation.
  5262  	ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
  5263  	// ImagePolylineDetails: Details of label image polyline operation.
  5264  	ImagePolylineDetails *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
  5265  	// ImageSegmentationDetails: Details of label image segmentation operation.
  5266  	ImageSegmentationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
  5267  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  5268  	// files that couldn't be read. Status details field will contain standard GCP
  5269  	// error details.
  5270  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5271  	// ProgressPercent: Output only. Progress of label operation. Range: [0, 100].
  5272  	ProgressPercent int64 `json:"progressPercent,omitempty"`
  5273  	// TextClassificationDetails: Details of label text classification operation.
  5274  	TextClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
  5275  	// TextEntityExtractionDetails: Details of label text entity extraction
  5276  	// operation.
  5277  	TextEntityExtractionDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
  5278  	// VideoClassificationDetails: Details of label video classification operation.
  5279  	VideoClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
  5280  	// VideoEventDetails: Details of label video event operation.
  5281  	VideoEventDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
  5282  	// VideoObjectDetectionDetails: Details of label video object detection
  5283  	// operation.
  5284  	VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
  5285  	// VideoObjectTrackingDetails: Details of label video object tracking
  5286  	// operation.
  5287  	VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
  5288  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  5289  	// unconditionally include in API requests. By default, fields with empty or
  5290  	// default values are omitted from API requests. See
  5291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5292  	// details.
  5293  	ForceSendFields []string `json:"-"`
  5294  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  5295  	// API requests with the JSON null value. By default, fields with empty values
  5296  	// are omitted from API requests. See
  5297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5298  	NullFields []string `json:"-"`
  5299  }
  5300  
  5301  func (s *GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
  5302  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata
  5303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5304  }
  5305  
  5306  // GoogleCloudDatalabelingV1p1alpha1LabelStats: Statistics about annotation
  5307  // specs.
  5308  type GoogleCloudDatalabelingV1p1alpha1LabelStats struct {
  5309  	// ExampleCount: Map of each annotation spec's example count. Key is the
  5310  	// annotation spec name and value is the number of examples for that annotation
  5311  	// spec. If the annotated dataset does not have annotation spec, the map will
  5312  	// return a pair where the key is empty string and value is the total number of
  5313  	// annotations.
  5314  	ExampleCount map[string]string `json:"exampleCount,omitempty"`
  5315  	// ForceSendFields is a list of field names (e.g. "ExampleCount") to
  5316  	// unconditionally include in API requests. By default, fields with empty or
  5317  	// default values are omitted from API requests. See
  5318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5319  	// details.
  5320  	ForceSendFields []string `json:"-"`
  5321  	// NullFields is a list of field names (e.g. "ExampleCount") to include in API
  5322  	// requests with the JSON null value. By default, fields with empty values are
  5323  	// omitted from API requests. See
  5324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5325  	NullFields []string `json:"-"`
  5326  }
  5327  
  5328  func (s *GoogleCloudDatalabelingV1p1alpha1LabelStats) MarshalJSON() ([]byte, error) {
  5329  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelStats
  5330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5331  }
  5332  
  5333  // GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata:
  5334  // Details of a LabelTextClassification operation metadata.
  5335  type GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata struct {
  5336  	// BasicConfig: Basic human annotation config used in labeling request.
  5337  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5338  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5339  	// unconditionally include in API requests. By default, fields with empty or
  5340  	// default values are omitted from API requests. See
  5341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5342  	// details.
  5343  	ForceSendFields []string `json:"-"`
  5344  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5345  	// requests with the JSON null value. By default, fields with empty values are
  5346  	// omitted from API requests. See
  5347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5348  	NullFields []string `json:"-"`
  5349  }
  5350  
  5351  func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  5352  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata
  5353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5354  }
  5355  
  5356  // GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata:
  5357  // Details of a LabelTextEntityExtraction operation metadata.
  5358  type GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata struct {
  5359  	// BasicConfig: Basic human annotation config used in labeling request.
  5360  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5361  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5362  	// unconditionally include in API requests. By default, fields with empty or
  5363  	// default values are omitted from API requests. See
  5364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5365  	// details.
  5366  	ForceSendFields []string `json:"-"`
  5367  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5368  	// requests with the JSON null value. By default, fields with empty values are
  5369  	// omitted from API requests. See
  5370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5371  	NullFields []string `json:"-"`
  5372  }
  5373  
  5374  func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
  5375  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata
  5376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5377  }
  5378  
  5379  // GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata:
  5380  // Details of a LabelVideoClassification operation metadata.
  5381  type GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata struct {
  5382  	// BasicConfig: Basic human annotation config used in labeling request.
  5383  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5384  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5385  	// unconditionally include in API requests. By default, fields with empty or
  5386  	// default values are omitted from API requests. See
  5387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5388  	// details.
  5389  	ForceSendFields []string `json:"-"`
  5390  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5391  	// requests with the JSON null value. By default, fields with empty values are
  5392  	// omitted from API requests. See
  5393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5394  	NullFields []string `json:"-"`
  5395  }
  5396  
  5397  func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  5398  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata
  5399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5400  }
  5401  
  5402  // GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata: Details
  5403  // of a LabelVideoEvent operation metadata.
  5404  type GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata struct {
  5405  	// BasicConfig: Basic human annotation config used in labeling request.
  5406  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5407  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5408  	// unconditionally include in API requests. By default, fields with empty or
  5409  	// default values are omitted from API requests. See
  5410  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5411  	// details.
  5412  	ForceSendFields []string `json:"-"`
  5413  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5414  	// requests with the JSON null value. By default, fields with empty values are
  5415  	// omitted from API requests. See
  5416  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5417  	NullFields []string `json:"-"`
  5418  }
  5419  
  5420  func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
  5421  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata
  5422  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5423  }
  5424  
  5425  // GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata:
  5426  // Details of a LabelVideoObjectDetection operation metadata.
  5427  type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata struct {
  5428  	// BasicConfig: Basic human annotation config used in labeling request.
  5429  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5430  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5431  	// unconditionally include in API requests. By default, fields with empty or
  5432  	// default values are omitted from API requests. See
  5433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5434  	// details.
  5435  	ForceSendFields []string `json:"-"`
  5436  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5437  	// requests with the JSON null value. By default, fields with empty values are
  5438  	// omitted from API requests. See
  5439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5440  	NullFields []string `json:"-"`
  5441  }
  5442  
  5443  func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
  5444  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata
  5445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5446  }
  5447  
  5448  // GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata:
  5449  // Details of a LabelVideoObjectTracking operation metadata.
  5450  type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata struct {
  5451  	// BasicConfig: Basic human annotation config used in labeling request.
  5452  	BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5453  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5454  	// unconditionally include in API requests. By default, fields with empty or
  5455  	// default values are omitted from API requests. See
  5456  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5457  	// details.
  5458  	ForceSendFields []string `json:"-"`
  5459  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5460  	// requests with the JSON null value. By default, fields with empty values are
  5461  	// omitted from API requests. See
  5462  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5463  	NullFields []string `json:"-"`
  5464  }
  5465  
  5466  func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
  5467  	type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata
  5468  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5469  }
  5470  
  5471  // GoogleCloudDatalabelingV1p1alpha1OutputConfig: The configuration of output
  5472  // data.
  5473  type GoogleCloudDatalabelingV1p1alpha1OutputConfig struct {
  5474  	// GcsDestination: Output to a file in Cloud Storage. Should be used for
  5475  	// labeling output other than image segmentation.
  5476  	GcsDestination *GoogleCloudDatalabelingV1p1alpha1GcsDestination `json:"gcsDestination,omitempty"`
  5477  	// GcsFolderDestination: Output to a folder in Cloud Storage. Should be used
  5478  	// for image segmentation or document de-identification labeling outputs.
  5479  	GcsFolderDestination *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
  5480  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  5481  	// unconditionally include in API requests. By default, fields with empty or
  5482  	// default values are omitted from API requests. See
  5483  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5484  	// details.
  5485  	ForceSendFields []string `json:"-"`
  5486  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  5487  	// API requests with the JSON null value. By default, fields with empty values
  5488  	// are omitted from API requests. See
  5489  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5490  	NullFields []string `json:"-"`
  5491  }
  5492  
  5493  func (s *GoogleCloudDatalabelingV1p1alpha1OutputConfig) MarshalJSON() ([]byte, error) {
  5494  	type NoMethod GoogleCloudDatalabelingV1p1alpha1OutputConfig
  5495  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5496  }
  5497  
  5498  // GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata: Metadata of a
  5499  // CreateInstruction operation.
  5500  type GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata struct {
  5501  	// CreateTime: Timestamp when create instruction request was created.
  5502  	CreateTime string `json:"createTime,omitempty"`
  5503  	// Instruction: The name of the created Instruction.
  5504  	// projects/{project_id}/instructions/{instruction_id}
  5505  	Instruction string `json:"instruction,omitempty"`
  5506  	// PartialFailures: Partial failures encountered. E.g. single files that
  5507  	// couldn't be read. Status details field will contain standard GCP error
  5508  	// details.
  5509  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5510  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5511  	// unconditionally include in API requests. By default, fields with empty or
  5512  	// default values are omitted from API requests. See
  5513  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5514  	// details.
  5515  	ForceSendFields []string `json:"-"`
  5516  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5517  	// requests with the JSON null value. By default, fields with empty values are
  5518  	// omitted from API requests. See
  5519  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5520  	NullFields []string `json:"-"`
  5521  }
  5522  
  5523  func (s *GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
  5524  	type NoMethod GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata
  5525  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5526  }
  5527  
  5528  // GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata: Metadata of an
  5529  // ExportData operation.
  5530  type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata struct {
  5531  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  5532  	// "projects/*/datasets/*/annotatedDatasets/*".
  5533  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  5534  	// CreateTime: Output only. Timestamp when export dataset request was created.
  5535  	CreateTime string `json:"createTime,omitempty"`
  5536  	// Dataset: Output only. The name of dataset to be exported.
  5537  	// "projects/*/datasets/*"
  5538  	Dataset string `json:"dataset,omitempty"`
  5539  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  5540  	// files that couldn't be read. Status details field will contain standard GCP
  5541  	// error details.
  5542  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5543  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  5544  	// unconditionally include in API requests. By default, fields with empty or
  5545  	// default values are omitted from API requests. See
  5546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5547  	// details.
  5548  	ForceSendFields []string `json:"-"`
  5549  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  5550  	// API requests with the JSON null value. By default, fields with empty values
  5551  	// are omitted from API requests. See
  5552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5553  	NullFields []string `json:"-"`
  5554  }
  5555  
  5556  func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  5557  	type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata
  5558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5559  }
  5560  
  5561  // GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse: Response used
  5562  // for ExportDataset longrunning operation.
  5563  type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse struct {
  5564  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  5565  	// "projects/*/datasets/*/annotatedDatasets/*".
  5566  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  5567  	// Dataset: Ouptut only. The name of dataset. "projects/*/datasets/*"
  5568  	Dataset string `json:"dataset,omitempty"`
  5569  	// ExportCount: Output only. Number of examples exported successfully.
  5570  	ExportCount int64 `json:"exportCount,omitempty"`
  5571  	// LabelStats: Output only. Statistic infos of labels in the exported dataset.
  5572  	LabelStats *GoogleCloudDatalabelingV1p2alpha1LabelStats `json:"labelStats,omitempty"`
  5573  	// OutputConfig: Output only. output_config in the ExportData request.
  5574  	OutputConfig *GoogleCloudDatalabelingV1p2alpha1OutputConfig `json:"outputConfig,omitempty"`
  5575  	// TotalCount: Output only. Total number of examples requested to export
  5576  	TotalCount int64 `json:"totalCount,omitempty"`
  5577  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  5578  	// unconditionally include in API requests. By default, fields with empty or
  5579  	// default values are omitted from API requests. See
  5580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5581  	// details.
  5582  	ForceSendFields []string `json:"-"`
  5583  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  5584  	// API requests with the JSON null value. By default, fields with empty values
  5585  	// are omitted from API requests. See
  5586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5587  	NullFields []string `json:"-"`
  5588  }
  5589  
  5590  func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
  5591  	type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse
  5592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5593  }
  5594  
  5595  // GoogleCloudDatalabelingV1p2alpha1GcsDestination: Export destination of the
  5596  // data.Only gcs path is allowed in output_uri.
  5597  type GoogleCloudDatalabelingV1p2alpha1GcsDestination struct {
  5598  	// MimeType: Required. The format of the gcs destination. Only "text/csv" and
  5599  	// "application/json" are supported.
  5600  	MimeType string `json:"mimeType,omitempty"`
  5601  	// OutputUri: Required. The output uri of destination file.
  5602  	OutputUri string `json:"outputUri,omitempty"`
  5603  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  5604  	// unconditionally include in API requests. By default, fields with empty or
  5605  	// default values are omitted from API requests. See
  5606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5607  	// details.
  5608  	ForceSendFields []string `json:"-"`
  5609  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  5610  	// requests with the JSON null value. By default, fields with empty values are
  5611  	// omitted from API requests. See
  5612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5613  	NullFields []string `json:"-"`
  5614  }
  5615  
  5616  func (s *GoogleCloudDatalabelingV1p2alpha1GcsDestination) MarshalJSON() ([]byte, error) {
  5617  	type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsDestination
  5618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5619  }
  5620  
  5621  // GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination: Export folder
  5622  // destination of the data.
  5623  type GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination struct {
  5624  	// OutputFolderUri: Required. Cloud Storage directory to export data to.
  5625  	OutputFolderUri string `json:"outputFolderUri,omitempty"`
  5626  	// ForceSendFields is a list of field names (e.g. "OutputFolderUri") to
  5627  	// unconditionally include in API requests. By default, fields with empty or
  5628  	// default values are omitted from API requests. See
  5629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5630  	// details.
  5631  	ForceSendFields []string `json:"-"`
  5632  	// NullFields is a list of field names (e.g. "OutputFolderUri") to include in
  5633  	// API requests with the JSON null value. By default, fields with empty values
  5634  	// are omitted from API requests. See
  5635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5636  	NullFields []string `json:"-"`
  5637  }
  5638  
  5639  func (s *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
  5640  	type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination
  5641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5642  }
  5643  
  5644  // GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig: Configuration for
  5645  // how human labeling task should be done.
  5646  type GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig struct {
  5647  	// AnnotatedDatasetDescription: Optional. A human-readable description for
  5648  	// AnnotatedDataset. The description can be up to 10000 characters long.
  5649  	AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
  5650  	// AnnotatedDatasetDisplayName: Required. A human-readable name for
  5651  	// AnnotatedDataset defined by users. Maximum of 64 characters .
  5652  	AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
  5653  	// ContributorEmails: Optional. If you want your own labeling contributors to
  5654  	// manage and work on this labeling request, you can set these contributors
  5655  	// here. We will give them access to the question types in crowdcompute. Note
  5656  	// that these emails must be registered in crowdcompute worker UI:
  5657  	// https://crowd-compute.appspot.com/
  5658  	ContributorEmails []string `json:"contributorEmails,omitempty"`
  5659  	// Instruction: Required. Instruction resource name.
  5660  	Instruction string `json:"instruction,omitempty"`
  5661  	// LabelGroup: Optional. A human-readable label used to logically group
  5662  	// labeling tasks. This string must match the regular expression
  5663  	// `[a-zA-Z\\d_-]{0,128}`.
  5664  	LabelGroup string `json:"labelGroup,omitempty"`
  5665  	// LanguageCode: Optional. The Language of this question, as a BCP-47
  5666  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Default value is en-US. Only
  5667  	// need to set this when task is language related. For example, French text
  5668  	// classification.
  5669  	LanguageCode string `json:"languageCode,omitempty"`
  5670  	// QuestionDuration: Optional. Maximum duration for contributors to answer a
  5671  	// question. Maximum is 3600 seconds. Default is 3600 seconds.
  5672  	QuestionDuration string `json:"questionDuration,omitempty"`
  5673  	// ReplicaCount: Optional. Replication of questions. Each question will be sent
  5674  	// to up to this number of contributors to label. Aggregated answers will be
  5675  	// returned. Default is set to 1. For image related labeling, valid values are
  5676  	// 1, 3, 5.
  5677  	ReplicaCount int64 `json:"replicaCount,omitempty"`
  5678  	// UserEmailAddress: Email of the user who started the labeling task and should
  5679  	// be notified by email. If empty no notification will be sent.
  5680  	UserEmailAddress string `json:"userEmailAddress,omitempty"`
  5681  	// ForceSendFields is a list of field names (e.g.
  5682  	// "AnnotatedDatasetDescription") to unconditionally include in API requests.
  5683  	// By default, fields with empty or default values are omitted from API
  5684  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  5685  	// for more details.
  5686  	ForceSendFields []string `json:"-"`
  5687  	// NullFields is a list of field names (e.g. "AnnotatedDatasetDescription") to
  5688  	// include in API requests with the JSON null value. By default, fields with
  5689  	// empty values are omitted from API requests. See
  5690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5691  	NullFields []string `json:"-"`
  5692  }
  5693  
  5694  func (s *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
  5695  	type NoMethod GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
  5696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5697  }
  5698  
  5699  // GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata: Metadata of an
  5700  // ImportData operation.
  5701  type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata struct {
  5702  	// CreateTime: Output only. Timestamp when import dataset request was created.
  5703  	CreateTime string `json:"createTime,omitempty"`
  5704  	// Dataset: Output only. The name of imported dataset. "projects/*/datasets/*"
  5705  	Dataset string `json:"dataset,omitempty"`
  5706  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  5707  	// files that couldn't be read. Status details field will contain standard GCP
  5708  	// error details.
  5709  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5710  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5711  	// unconditionally include in API requests. By default, fields with empty or
  5712  	// default values are omitted from API requests. See
  5713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5714  	// details.
  5715  	ForceSendFields []string `json:"-"`
  5716  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5717  	// requests with the JSON null value. By default, fields with empty values are
  5718  	// omitted from API requests. See
  5719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5720  	NullFields []string `json:"-"`
  5721  }
  5722  
  5723  func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
  5724  	type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata
  5725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5726  }
  5727  
  5728  // GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse: Response used
  5729  // for ImportData longrunning operation.
  5730  type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse struct {
  5731  	// Dataset: Ouptut only. The name of imported dataset.
  5732  	Dataset string `json:"dataset,omitempty"`
  5733  	// ImportCount: Output only. Number of examples imported successfully.
  5734  	ImportCount int64 `json:"importCount,omitempty"`
  5735  	// TotalCount: Output only. Total number of examples requested to import
  5736  	TotalCount int64 `json:"totalCount,omitempty"`
  5737  	// ForceSendFields is a list of field names (e.g. "Dataset") to unconditionally
  5738  	// include in API requests. By default, fields with empty or default values are
  5739  	// omitted from API requests. See
  5740  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5741  	// details.
  5742  	ForceSendFields []string `json:"-"`
  5743  	// NullFields is a list of field names (e.g. "Dataset") to include in API
  5744  	// requests with the JSON null value. By default, fields with empty values are
  5745  	// omitted from API requests. See
  5746  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5747  	NullFields []string `json:"-"`
  5748  }
  5749  
  5750  func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
  5751  	type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse
  5752  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5753  }
  5754  
  5755  // GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata:
  5756  // Details of a LabelImageBoundingBox operation metadata.
  5757  type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata struct {
  5758  	// BasicConfig: Basic human annotation config used in labeling request.
  5759  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5760  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5761  	// unconditionally include in API requests. By default, fields with empty or
  5762  	// default values are omitted from API requests. See
  5763  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5764  	// details.
  5765  	ForceSendFields []string `json:"-"`
  5766  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5767  	// requests with the JSON null value. By default, fields with empty values are
  5768  	// omitted from API requests. See
  5769  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5770  	NullFields []string `json:"-"`
  5771  }
  5772  
  5773  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  5774  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata
  5775  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5776  }
  5777  
  5778  // GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata:
  5779  // Details of LabelImageBoundingPoly operation metadata.
  5780  type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata struct {
  5781  	// BasicConfig: Basic human annotation config used in labeling request.
  5782  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5783  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5784  	// unconditionally include in API requests. By default, fields with empty or
  5785  	// default values are omitted from API requests. See
  5786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5787  	// details.
  5788  	ForceSendFields []string `json:"-"`
  5789  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5790  	// requests with the JSON null value. By default, fields with empty values are
  5791  	// omitted from API requests. See
  5792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5793  	NullFields []string `json:"-"`
  5794  }
  5795  
  5796  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
  5797  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata
  5798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5799  }
  5800  
  5801  // GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata:
  5802  // Metadata of a LabelImageClassification operation.
  5803  type GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata struct {
  5804  	// BasicConfig: Basic human annotation config used in labeling request.
  5805  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5806  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5807  	// unconditionally include in API requests. By default, fields with empty or
  5808  	// default values are omitted from API requests. See
  5809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5810  	// details.
  5811  	ForceSendFields []string `json:"-"`
  5812  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5813  	// requests with the JSON null value. By default, fields with empty values are
  5814  	// omitted from API requests. See
  5815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5816  	NullFields []string `json:"-"`
  5817  }
  5818  
  5819  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  5820  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata
  5821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5822  }
  5823  
  5824  // GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetada
  5825  // ta: Details of a LabelImageOrientedBoundingBox operation metadata.
  5826  type GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
  5827  	// BasicConfig: Basic human annotation config.
  5828  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5829  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5830  	// unconditionally include in API requests. By default, fields with empty or
  5831  	// default values are omitted from API requests. See
  5832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5833  	// details.
  5834  	ForceSendFields []string `json:"-"`
  5835  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5836  	// requests with the JSON null value. By default, fields with empty values are
  5837  	// omitted from API requests. See
  5838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5839  	NullFields []string `json:"-"`
  5840  }
  5841  
  5842  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
  5843  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata
  5844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5845  }
  5846  
  5847  // GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata:
  5848  // Details of LabelImagePolyline operation metadata.
  5849  type GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata struct {
  5850  	// BasicConfig: Basic human annotation config used in labeling request.
  5851  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5852  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5853  	// unconditionally include in API requests. By default, fields with empty or
  5854  	// default values are omitted from API requests. See
  5855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5856  	// details.
  5857  	ForceSendFields []string `json:"-"`
  5858  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5859  	// requests with the JSON null value. By default, fields with empty values are
  5860  	// omitted from API requests. See
  5861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5862  	NullFields []string `json:"-"`
  5863  }
  5864  
  5865  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
  5866  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata
  5867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5868  }
  5869  
  5870  // GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata:
  5871  // Details of a LabelImageSegmentation operation metadata.
  5872  type GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata struct {
  5873  	// BasicConfig: Basic human annotation config.
  5874  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5875  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5876  	// unconditionally include in API requests. By default, fields with empty or
  5877  	// default values are omitted from API requests. See
  5878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5879  	// details.
  5880  	ForceSendFields []string `json:"-"`
  5881  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5882  	// requests with the JSON null value. By default, fields with empty values are
  5883  	// omitted from API requests. See
  5884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5885  	NullFields []string `json:"-"`
  5886  }
  5887  
  5888  func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
  5889  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata
  5890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5891  }
  5892  
  5893  // GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata: Metadata of a
  5894  // labeling operation, such as LabelImage or LabelVideo. Next tag: 23
  5895  type GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata struct {
  5896  	// AnnotatedDataset: Output only. The name of annotated dataset in format
  5897  	// "projects/*/datasets/*/annotatedDatasets/*".
  5898  	AnnotatedDataset string `json:"annotatedDataset,omitempty"`
  5899  	// CreateTime: Output only. Timestamp when labeling request was created.
  5900  	CreateTime string `json:"createTime,omitempty"`
  5901  	// Dataset: Output only. The name of dataset to be labeled.
  5902  	// "projects/*/datasets/*"
  5903  	Dataset string `json:"dataset,omitempty"`
  5904  	// ImageBoundingBoxDetails: Details of label image bounding box operation.
  5905  	ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
  5906  	// ImageBoundingPolyDetails: Details of label image bounding poly operation.
  5907  	ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
  5908  	// ImageClassificationDetails: Details of label image classification operation.
  5909  	ImageClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
  5910  	// ImageOrientedBoundingBoxDetails: Details of label image oriented bounding
  5911  	// box operation.
  5912  	ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
  5913  	// ImagePolylineDetails: Details of label image polyline operation.
  5914  	ImagePolylineDetails *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
  5915  	// ImageSegmentationDetails: Details of label image segmentation operation.
  5916  	ImageSegmentationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
  5917  	// PartialFailures: Output only. Partial failures encountered. E.g. single
  5918  	// files that couldn't be read. Status details field will contain standard GCP
  5919  	// error details.
  5920  	PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
  5921  	// ProgressPercent: Output only. Progress of label operation. Range: [0, 100].
  5922  	ProgressPercent int64 `json:"progressPercent,omitempty"`
  5923  	// TextClassificationDetails: Details of label text classification operation.
  5924  	TextClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
  5925  	// TextEntityExtractionDetails: Details of label text entity extraction
  5926  	// operation.
  5927  	TextEntityExtractionDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
  5928  	// VideoClassificationDetails: Details of label video classification operation.
  5929  	VideoClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
  5930  	// VideoEventDetails: Details of label video event operation.
  5931  	VideoEventDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
  5932  	// VideoObjectDetectionDetails: Details of label video object detection
  5933  	// operation.
  5934  	VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
  5935  	// VideoObjectTrackingDetails: Details of label video object tracking
  5936  	// operation.
  5937  	VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
  5938  	// ForceSendFields is a list of field names (e.g. "AnnotatedDataset") to
  5939  	// unconditionally include in API requests. By default, fields with empty or
  5940  	// default values are omitted from API requests. See
  5941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5942  	// details.
  5943  	ForceSendFields []string `json:"-"`
  5944  	// NullFields is a list of field names (e.g. "AnnotatedDataset") to include in
  5945  	// API requests with the JSON null value. By default, fields with empty values
  5946  	// are omitted from API requests. See
  5947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5948  	NullFields []string `json:"-"`
  5949  }
  5950  
  5951  func (s *GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
  5952  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata
  5953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5954  }
  5955  
  5956  // GoogleCloudDatalabelingV1p2alpha1LabelStats: Statistics about annotation
  5957  // specs.
  5958  type GoogleCloudDatalabelingV1p2alpha1LabelStats struct {
  5959  	// ExampleCount: Map of each annotation spec's example count. Key is the
  5960  	// annotation spec name and value is the number of examples for that annotation
  5961  	// spec. If the annotated dataset does not have annotation spec, the map will
  5962  	// return a pair where the key is empty string and value is the total number of
  5963  	// annotations.
  5964  	ExampleCount map[string]string `json:"exampleCount,omitempty"`
  5965  	// ForceSendFields is a list of field names (e.g. "ExampleCount") to
  5966  	// unconditionally include in API requests. By default, fields with empty or
  5967  	// default values are omitted from API requests. See
  5968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5969  	// details.
  5970  	ForceSendFields []string `json:"-"`
  5971  	// NullFields is a list of field names (e.g. "ExampleCount") to include in API
  5972  	// requests with the JSON null value. By default, fields with empty values are
  5973  	// omitted from API requests. See
  5974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5975  	NullFields []string `json:"-"`
  5976  }
  5977  
  5978  func (s *GoogleCloudDatalabelingV1p2alpha1LabelStats) MarshalJSON() ([]byte, error) {
  5979  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelStats
  5980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5981  }
  5982  
  5983  // GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata:
  5984  // Details of a LabelTextClassification operation metadata.
  5985  type GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata struct {
  5986  	// BasicConfig: Basic human annotation config used in labeling request.
  5987  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  5988  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  5989  	// unconditionally include in API requests. By default, fields with empty or
  5990  	// default values are omitted from API requests. See
  5991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5992  	// details.
  5993  	ForceSendFields []string `json:"-"`
  5994  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  5995  	// requests with the JSON null value. By default, fields with empty values are
  5996  	// omitted from API requests. See
  5997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5998  	NullFields []string `json:"-"`
  5999  }
  6000  
  6001  func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  6002  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata
  6003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6004  }
  6005  
  6006  // GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata:
  6007  // Details of a LabelTextEntityExtraction operation metadata.
  6008  type GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata struct {
  6009  	// BasicConfig: Basic human annotation config used in labeling request.
  6010  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  6011  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  6012  	// unconditionally include in API requests. By default, fields with empty or
  6013  	// default values are omitted from API requests. See
  6014  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6015  	// details.
  6016  	ForceSendFields []string `json:"-"`
  6017  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  6018  	// requests with the JSON null value. By default, fields with empty values are
  6019  	// omitted from API requests. See
  6020  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6021  	NullFields []string `json:"-"`
  6022  }
  6023  
  6024  func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
  6025  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata
  6026  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6027  }
  6028  
  6029  // GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata:
  6030  // Details of a LabelVideoClassification operation metadata.
  6031  type GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata struct {
  6032  	// BasicConfig: Basic human annotation config used in labeling request.
  6033  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  6034  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  6035  	// unconditionally include in API requests. By default, fields with empty or
  6036  	// default values are omitted from API requests. See
  6037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6038  	// details.
  6039  	ForceSendFields []string `json:"-"`
  6040  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  6041  	// requests with the JSON null value. By default, fields with empty values are
  6042  	// omitted from API requests. See
  6043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6044  	NullFields []string `json:"-"`
  6045  }
  6046  
  6047  func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
  6048  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata
  6049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6050  }
  6051  
  6052  // GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata: Details
  6053  // of a LabelVideoEvent operation metadata.
  6054  type GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata struct {
  6055  	// BasicConfig: Basic human annotation config used in labeling request.
  6056  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  6057  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  6058  	// unconditionally include in API requests. By default, fields with empty or
  6059  	// default values are omitted from API requests. See
  6060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6061  	// details.
  6062  	ForceSendFields []string `json:"-"`
  6063  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  6064  	// requests with the JSON null value. By default, fields with empty values are
  6065  	// omitted from API requests. See
  6066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6067  	NullFields []string `json:"-"`
  6068  }
  6069  
  6070  func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
  6071  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata
  6072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6073  }
  6074  
  6075  // GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata:
  6076  // Details of a LabelVideoObjectDetection operation metadata.
  6077  type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata struct {
  6078  	// BasicConfig: Basic human annotation config used in labeling request.
  6079  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  6080  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  6081  	// unconditionally include in API requests. By default, fields with empty or
  6082  	// default values are omitted from API requests. See
  6083  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6084  	// details.
  6085  	ForceSendFields []string `json:"-"`
  6086  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  6087  	// requests with the JSON null value. By default, fields with empty values are
  6088  	// omitted from API requests. See
  6089  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6090  	NullFields []string `json:"-"`
  6091  }
  6092  
  6093  func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
  6094  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata
  6095  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6096  }
  6097  
  6098  // GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata:
  6099  // Details of a LabelVideoObjectTracking operation metadata.
  6100  type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata struct {
  6101  	// BasicConfig: Basic human annotation config used in labeling request.
  6102  	BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
  6103  	// ForceSendFields is a list of field names (e.g. "BasicConfig") to
  6104  	// unconditionally include in API requests. By default, fields with empty or
  6105  	// default values are omitted from API requests. See
  6106  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6107  	// details.
  6108  	ForceSendFields []string `json:"-"`
  6109  	// NullFields is a list of field names (e.g. "BasicConfig") to include in API
  6110  	// requests with the JSON null value. By default, fields with empty values are
  6111  	// omitted from API requests. See
  6112  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6113  	NullFields []string `json:"-"`
  6114  }
  6115  
  6116  func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
  6117  	type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata
  6118  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6119  }
  6120  
  6121  // GoogleCloudDatalabelingV1p2alpha1OutputConfig: The configuration of output
  6122  // data.
  6123  type GoogleCloudDatalabelingV1p2alpha1OutputConfig struct {
  6124  	// GcsDestination: Output to a file in Cloud Storage. Should be used for
  6125  	// labeling output other than image segmentation.
  6126  	GcsDestination *GoogleCloudDatalabelingV1p2alpha1GcsDestination `json:"gcsDestination,omitempty"`
  6127  	// GcsFolderDestination: Output to a folder in Cloud Storage. Should be used
  6128  	// for image segmentation or document de-identification labeling outputs.
  6129  	GcsFolderDestination *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
  6130  	// ForceSendFields is a list of field names (e.g. "GcsDestination") to
  6131  	// unconditionally include in API requests. By default, fields with empty or
  6132  	// default values are omitted from API requests. See
  6133  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6134  	// details.
  6135  	ForceSendFields []string `json:"-"`
  6136  	// NullFields is a list of field names (e.g. "GcsDestination") to include in
  6137  	// API requests with the JSON null value. By default, fields with empty values
  6138  	// are omitted from API requests. See
  6139  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6140  	NullFields []string `json:"-"`
  6141  }
  6142  
  6143  func (s *GoogleCloudDatalabelingV1p2alpha1OutputConfig) MarshalJSON() ([]byte, error) {
  6144  	type NoMethod GoogleCloudDatalabelingV1p2alpha1OutputConfig
  6145  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6146  }
  6147  
  6148  // GoogleLongrunningListOperationsResponse: The response message for
  6149  // Operations.ListOperations.
  6150  type GoogleLongrunningListOperationsResponse struct {
  6151  	// NextPageToken: The standard List next-page token.
  6152  	NextPageToken string `json:"nextPageToken,omitempty"`
  6153  	// Operations: A list of operations that matches the specified filter in the
  6154  	// request.
  6155  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
  6156  
  6157  	// ServerResponse contains the HTTP response code and headers from the server.
  6158  	googleapi.ServerResponse `json:"-"`
  6159  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6160  	// unconditionally include in API requests. By default, fields with empty or
  6161  	// default values are omitted from API requests. See
  6162  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6163  	// details.
  6164  	ForceSendFields []string `json:"-"`
  6165  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6166  	// requests with the JSON null value. By default, fields with empty values are
  6167  	// omitted from API requests. See
  6168  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6169  	NullFields []string `json:"-"`
  6170  }
  6171  
  6172  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
  6173  	type NoMethod GoogleLongrunningListOperationsResponse
  6174  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6175  }
  6176  
  6177  // GoogleLongrunningOperation: This resource represents a long-running
  6178  // operation that is the result of a network API call.
  6179  type GoogleLongrunningOperation struct {
  6180  	// Done: If the value is `false`, it means the operation is still in progress.
  6181  	// If `true`, the operation is completed, and either `error` or `response` is
  6182  	// available.
  6183  	Done bool `json:"done,omitempty"`
  6184  	// Error: The error result of the operation in case of failure or cancellation.
  6185  	Error *GoogleRpcStatus `json:"error,omitempty"`
  6186  	// Metadata: Service-specific metadata associated with the operation. It
  6187  	// typically contains progress information and common metadata such as create
  6188  	// time. Some services might not provide such metadata. Any method that returns
  6189  	// a long-running operation should document the metadata type, if any.
  6190  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  6191  	// Name: The server-assigned name, which is only unique within the same service
  6192  	// that originally returns it. If you use the default HTTP mapping, the `name`
  6193  	// should be a resource name ending with `operations/{unique_id}`.
  6194  	Name string `json:"name,omitempty"`
  6195  	// Response: The normal, successful response of the operation. If the original
  6196  	// method returns no data on success, such as `Delete`, the response is
  6197  	// `google.protobuf.Empty`. If the original method is standard
  6198  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  6199  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  6200  	// original method name. For example, if the original method name is
  6201  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  6202  	Response googleapi.RawMessage `json:"response,omitempty"`
  6203  
  6204  	// ServerResponse contains the HTTP response code and headers from the server.
  6205  	googleapi.ServerResponse `json:"-"`
  6206  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  6207  	// include in API requests. By default, fields with empty or default values are
  6208  	// omitted from API requests. See
  6209  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6210  	// details.
  6211  	ForceSendFields []string `json:"-"`
  6212  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  6213  	// with the JSON null value. By default, fields with empty values are omitted
  6214  	// from API requests. See
  6215  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6216  	NullFields []string `json:"-"`
  6217  }
  6218  
  6219  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
  6220  	type NoMethod GoogleLongrunningOperation
  6221  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6222  }
  6223  
  6224  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
  6225  // defining duplicated empty messages in your APIs. A typical example is to use
  6226  // it as the request or the response type of an API method. For instance:
  6227  // service Foo { rpc Bar(google.protobuf.Empty) returns
  6228  // (google.protobuf.Empty); }
  6229  type GoogleProtobufEmpty struct {
  6230  	// ServerResponse contains the HTTP response code and headers from the server.
  6231  	googleapi.ServerResponse `json:"-"`
  6232  }
  6233  
  6234  // GoogleRpcStatus: The `Status` type defines a logical error model that is
  6235  // suitable for different programming environments, including REST APIs and RPC
  6236  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
  6237  // contains three pieces of data: error code, error message, and error details.
  6238  // You can find out more about this error model and how to work with it in the
  6239  // API Design Guide (https://cloud.google.com/apis/design/errors).
  6240  type GoogleRpcStatus struct {
  6241  	// Code: The status code, which should be an enum value of google.rpc.Code.
  6242  	Code int64 `json:"code,omitempty"`
  6243  	// Details: A list of messages that carry the error details. There is a common
  6244  	// set of message types for APIs to use.
  6245  	Details []googleapi.RawMessage `json:"details,omitempty"`
  6246  	// Message: A developer-facing error message, which should be in English. Any
  6247  	// user-facing error message should be localized and sent in the
  6248  	// google.rpc.Status.details field, or localized by the client.
  6249  	Message string `json:"message,omitempty"`
  6250  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  6251  	// include in API requests. By default, fields with empty or default values are
  6252  	// omitted from API requests. See
  6253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6254  	// details.
  6255  	ForceSendFields []string `json:"-"`
  6256  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  6257  	// with the JSON null value. By default, fields with empty values are omitted
  6258  	// from API requests. See
  6259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6260  	NullFields []string `json:"-"`
  6261  }
  6262  
  6263  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
  6264  	type NoMethod GoogleRpcStatus
  6265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6266  }
  6267  
  6268  type ProjectsAnnotationSpecSetsCreateCall struct {
  6269  	s                                                            *Service
  6270  	parent                                                       string
  6271  	googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest
  6272  	urlParams_                                                   gensupport.URLParams
  6273  	ctx_                                                         context.Context
  6274  	header_                                                      http.Header
  6275  }
  6276  
  6277  // Create: Creates an annotation spec set by providing a set of labels.
  6278  //
  6279  // - parent: AnnotationSpecSet resource parent, format: projects/{project_id}.
  6280  func (r *ProjectsAnnotationSpecSetsService) Create(parent string, googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) *ProjectsAnnotationSpecSetsCreateCall {
  6281  	c := &ProjectsAnnotationSpecSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6282  	c.parent = parent
  6283  	c.googleclouddatalabelingv1beta1createannotationspecsetrequest = googleclouddatalabelingv1beta1createannotationspecsetrequest
  6284  	return c
  6285  }
  6286  
  6287  // Fields allows partial responses to be retrieved. See
  6288  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6289  // details.
  6290  func (c *ProjectsAnnotationSpecSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsCreateCall {
  6291  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6292  	return c
  6293  }
  6294  
  6295  // Context sets the context to be used in this call's Do method.
  6296  func (c *ProjectsAnnotationSpecSetsCreateCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsCreateCall {
  6297  	c.ctx_ = ctx
  6298  	return c
  6299  }
  6300  
  6301  // Header returns a http.Header that can be modified by the caller to add
  6302  // headers to the request.
  6303  func (c *ProjectsAnnotationSpecSetsCreateCall) Header() http.Header {
  6304  	if c.header_ == nil {
  6305  		c.header_ = make(http.Header)
  6306  	}
  6307  	return c.header_
  6308  }
  6309  
  6310  func (c *ProjectsAnnotationSpecSetsCreateCall) doRequest(alt string) (*http.Response, error) {
  6311  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6312  	var body io.Reader = nil
  6313  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createannotationspecsetrequest)
  6314  	if err != nil {
  6315  		return nil, err
  6316  	}
  6317  	c.urlParams_.Set("alt", alt)
  6318  	c.urlParams_.Set("prettyPrint", "false")
  6319  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets")
  6320  	urls += "?" + c.urlParams_.Encode()
  6321  	req, err := http.NewRequest("POST", urls, body)
  6322  	if err != nil {
  6323  		return nil, err
  6324  	}
  6325  	req.Header = reqHeaders
  6326  	googleapi.Expand(req.URL, map[string]string{
  6327  		"parent": c.parent,
  6328  	})
  6329  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6330  }
  6331  
  6332  // Do executes the "datalabeling.projects.annotationSpecSets.create" call.
  6333  // Any non-2xx status code is an error. Response headers are in either
  6334  // *GoogleCloudDatalabelingV1beta1AnnotationSpecSet.ServerResponse.Header or
  6335  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  6336  // googleapi.IsNotModified to check whether the returned error was because
  6337  // http.StatusNotModified was returned.
  6338  func (c *ProjectsAnnotationSpecSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) {
  6339  	gensupport.SetOptions(c.urlParams_, opts...)
  6340  	res, err := c.doRequest("json")
  6341  	if res != nil && res.StatusCode == http.StatusNotModified {
  6342  		if res.Body != nil {
  6343  			res.Body.Close()
  6344  		}
  6345  		return nil, gensupport.WrapError(&googleapi.Error{
  6346  			Code:   res.StatusCode,
  6347  			Header: res.Header,
  6348  		})
  6349  	}
  6350  	if err != nil {
  6351  		return nil, err
  6352  	}
  6353  	defer googleapi.CloseBody(res)
  6354  	if err := googleapi.CheckResponse(res); err != nil {
  6355  		return nil, gensupport.WrapError(err)
  6356  	}
  6357  	ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{
  6358  		ServerResponse: googleapi.ServerResponse{
  6359  			Header:         res.Header,
  6360  			HTTPStatusCode: res.StatusCode,
  6361  		},
  6362  	}
  6363  	target := &ret
  6364  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6365  		return nil, err
  6366  	}
  6367  	return ret, nil
  6368  }
  6369  
  6370  type ProjectsAnnotationSpecSetsDeleteCall struct {
  6371  	s          *Service
  6372  	name       string
  6373  	urlParams_ gensupport.URLParams
  6374  	ctx_       context.Context
  6375  	header_    http.Header
  6376  }
  6377  
  6378  // Delete: Deletes an annotation spec set by resource name.
  6379  //
  6380  //   - name: AnnotationSpec resource name, format:
  6381  //     `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
  6382  func (r *ProjectsAnnotationSpecSetsService) Delete(name string) *ProjectsAnnotationSpecSetsDeleteCall {
  6383  	c := &ProjectsAnnotationSpecSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6384  	c.name = name
  6385  	return c
  6386  }
  6387  
  6388  // Fields allows partial responses to be retrieved. See
  6389  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6390  // details.
  6391  func (c *ProjectsAnnotationSpecSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsDeleteCall {
  6392  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6393  	return c
  6394  }
  6395  
  6396  // Context sets the context to be used in this call's Do method.
  6397  func (c *ProjectsAnnotationSpecSetsDeleteCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsDeleteCall {
  6398  	c.ctx_ = ctx
  6399  	return c
  6400  }
  6401  
  6402  // Header returns a http.Header that can be modified by the caller to add
  6403  // headers to the request.
  6404  func (c *ProjectsAnnotationSpecSetsDeleteCall) Header() http.Header {
  6405  	if c.header_ == nil {
  6406  		c.header_ = make(http.Header)
  6407  	}
  6408  	return c.header_
  6409  }
  6410  
  6411  func (c *ProjectsAnnotationSpecSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6412  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6413  	var body io.Reader = nil
  6414  	c.urlParams_.Set("alt", alt)
  6415  	c.urlParams_.Set("prettyPrint", "false")
  6416  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  6417  	urls += "?" + c.urlParams_.Encode()
  6418  	req, err := http.NewRequest("DELETE", urls, body)
  6419  	if err != nil {
  6420  		return nil, err
  6421  	}
  6422  	req.Header = reqHeaders
  6423  	googleapi.Expand(req.URL, map[string]string{
  6424  		"name": c.name,
  6425  	})
  6426  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6427  }
  6428  
  6429  // Do executes the "datalabeling.projects.annotationSpecSets.delete" call.
  6430  // Any non-2xx status code is an error. Response headers are in either
  6431  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  6432  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6433  // check whether the returned error was because http.StatusNotModified was
  6434  // returned.
  6435  func (c *ProjectsAnnotationSpecSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  6436  	gensupport.SetOptions(c.urlParams_, opts...)
  6437  	res, err := c.doRequest("json")
  6438  	if res != nil && res.StatusCode == http.StatusNotModified {
  6439  		if res.Body != nil {
  6440  			res.Body.Close()
  6441  		}
  6442  		return nil, gensupport.WrapError(&googleapi.Error{
  6443  			Code:   res.StatusCode,
  6444  			Header: res.Header,
  6445  		})
  6446  	}
  6447  	if err != nil {
  6448  		return nil, err
  6449  	}
  6450  	defer googleapi.CloseBody(res)
  6451  	if err := googleapi.CheckResponse(res); err != nil {
  6452  		return nil, gensupport.WrapError(err)
  6453  	}
  6454  	ret := &GoogleProtobufEmpty{
  6455  		ServerResponse: googleapi.ServerResponse{
  6456  			Header:         res.Header,
  6457  			HTTPStatusCode: res.StatusCode,
  6458  		},
  6459  	}
  6460  	target := &ret
  6461  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6462  		return nil, err
  6463  	}
  6464  	return ret, nil
  6465  }
  6466  
  6467  type ProjectsAnnotationSpecSetsGetCall struct {
  6468  	s            *Service
  6469  	name         string
  6470  	urlParams_   gensupport.URLParams
  6471  	ifNoneMatch_ string
  6472  	ctx_         context.Context
  6473  	header_      http.Header
  6474  }
  6475  
  6476  // Get: Gets an annotation spec set by resource name.
  6477  //
  6478  //   - name: AnnotationSpecSet resource name, format:
  6479  //     projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}.
  6480  func (r *ProjectsAnnotationSpecSetsService) Get(name string) *ProjectsAnnotationSpecSetsGetCall {
  6481  	c := &ProjectsAnnotationSpecSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6482  	c.name = name
  6483  	return c
  6484  }
  6485  
  6486  // Fields allows partial responses to be retrieved. See
  6487  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6488  // details.
  6489  func (c *ProjectsAnnotationSpecSetsGetCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsGetCall {
  6490  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6491  	return c
  6492  }
  6493  
  6494  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6495  // object's ETag matches the given value. This is useful for getting updates
  6496  // only after the object has changed since the last request.
  6497  func (c *ProjectsAnnotationSpecSetsGetCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsGetCall {
  6498  	c.ifNoneMatch_ = entityTag
  6499  	return c
  6500  }
  6501  
  6502  // Context sets the context to be used in this call's Do method.
  6503  func (c *ProjectsAnnotationSpecSetsGetCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsGetCall {
  6504  	c.ctx_ = ctx
  6505  	return c
  6506  }
  6507  
  6508  // Header returns a http.Header that can be modified by the caller to add
  6509  // headers to the request.
  6510  func (c *ProjectsAnnotationSpecSetsGetCall) Header() http.Header {
  6511  	if c.header_ == nil {
  6512  		c.header_ = make(http.Header)
  6513  	}
  6514  	return c.header_
  6515  }
  6516  
  6517  func (c *ProjectsAnnotationSpecSetsGetCall) doRequest(alt string) (*http.Response, error) {
  6518  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6519  	if c.ifNoneMatch_ != "" {
  6520  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6521  	}
  6522  	var body io.Reader = nil
  6523  	c.urlParams_.Set("alt", alt)
  6524  	c.urlParams_.Set("prettyPrint", "false")
  6525  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  6526  	urls += "?" + c.urlParams_.Encode()
  6527  	req, err := http.NewRequest("GET", urls, body)
  6528  	if err != nil {
  6529  		return nil, err
  6530  	}
  6531  	req.Header = reqHeaders
  6532  	googleapi.Expand(req.URL, map[string]string{
  6533  		"name": c.name,
  6534  	})
  6535  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6536  }
  6537  
  6538  // Do executes the "datalabeling.projects.annotationSpecSets.get" call.
  6539  // Any non-2xx status code is an error. Response headers are in either
  6540  // *GoogleCloudDatalabelingV1beta1AnnotationSpecSet.ServerResponse.Header or
  6541  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  6542  // googleapi.IsNotModified to check whether the returned error was because
  6543  // http.StatusNotModified was returned.
  6544  func (c *ProjectsAnnotationSpecSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) {
  6545  	gensupport.SetOptions(c.urlParams_, opts...)
  6546  	res, err := c.doRequest("json")
  6547  	if res != nil && res.StatusCode == http.StatusNotModified {
  6548  		if res.Body != nil {
  6549  			res.Body.Close()
  6550  		}
  6551  		return nil, gensupport.WrapError(&googleapi.Error{
  6552  			Code:   res.StatusCode,
  6553  			Header: res.Header,
  6554  		})
  6555  	}
  6556  	if err != nil {
  6557  		return nil, err
  6558  	}
  6559  	defer googleapi.CloseBody(res)
  6560  	if err := googleapi.CheckResponse(res); err != nil {
  6561  		return nil, gensupport.WrapError(err)
  6562  	}
  6563  	ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{
  6564  		ServerResponse: googleapi.ServerResponse{
  6565  			Header:         res.Header,
  6566  			HTTPStatusCode: res.StatusCode,
  6567  		},
  6568  	}
  6569  	target := &ret
  6570  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6571  		return nil, err
  6572  	}
  6573  	return ret, nil
  6574  }
  6575  
  6576  type ProjectsAnnotationSpecSetsListCall struct {
  6577  	s            *Service
  6578  	parent       string
  6579  	urlParams_   gensupport.URLParams
  6580  	ifNoneMatch_ string
  6581  	ctx_         context.Context
  6582  	header_      http.Header
  6583  }
  6584  
  6585  // List: Lists annotation spec sets for a project. Pagination is supported.
  6586  //
  6587  //   - parent: Parent of AnnotationSpecSet resource, format:
  6588  //     projects/{project_id}.
  6589  func (r *ProjectsAnnotationSpecSetsService) List(parent string) *ProjectsAnnotationSpecSetsListCall {
  6590  	c := &ProjectsAnnotationSpecSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6591  	c.parent = parent
  6592  	return c
  6593  }
  6594  
  6595  // Filter sets the optional parameter "filter": Filter is not supported at this
  6596  // moment.
  6597  func (c *ProjectsAnnotationSpecSetsListCall) Filter(filter string) *ProjectsAnnotationSpecSetsListCall {
  6598  	c.urlParams_.Set("filter", filter)
  6599  	return c
  6600  }
  6601  
  6602  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  6603  // may return fewer results than requested. Default value is 100.
  6604  func (c *ProjectsAnnotationSpecSetsListCall) PageSize(pageSize int64) *ProjectsAnnotationSpecSetsListCall {
  6605  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6606  	return c
  6607  }
  6608  
  6609  // PageToken sets the optional parameter "pageToken": A token identifying a
  6610  // page of results for the server to return. Typically obtained by
  6611  // ListAnnotationSpecSetsResponse.next_page_token of the previous
  6612  // [DataLabelingService.ListAnnotationSpecSets] call. Return first page if
  6613  // empty.
  6614  func (c *ProjectsAnnotationSpecSetsListCall) PageToken(pageToken string) *ProjectsAnnotationSpecSetsListCall {
  6615  	c.urlParams_.Set("pageToken", pageToken)
  6616  	return c
  6617  }
  6618  
  6619  // Fields allows partial responses to be retrieved. See
  6620  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6621  // details.
  6622  func (c *ProjectsAnnotationSpecSetsListCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsListCall {
  6623  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6624  	return c
  6625  }
  6626  
  6627  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6628  // object's ETag matches the given value. This is useful for getting updates
  6629  // only after the object has changed since the last request.
  6630  func (c *ProjectsAnnotationSpecSetsListCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsListCall {
  6631  	c.ifNoneMatch_ = entityTag
  6632  	return c
  6633  }
  6634  
  6635  // Context sets the context to be used in this call's Do method.
  6636  func (c *ProjectsAnnotationSpecSetsListCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsListCall {
  6637  	c.ctx_ = ctx
  6638  	return c
  6639  }
  6640  
  6641  // Header returns a http.Header that can be modified by the caller to add
  6642  // headers to the request.
  6643  func (c *ProjectsAnnotationSpecSetsListCall) Header() http.Header {
  6644  	if c.header_ == nil {
  6645  		c.header_ = make(http.Header)
  6646  	}
  6647  	return c.header_
  6648  }
  6649  
  6650  func (c *ProjectsAnnotationSpecSetsListCall) doRequest(alt string) (*http.Response, error) {
  6651  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6652  	if c.ifNoneMatch_ != "" {
  6653  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6654  	}
  6655  	var body io.Reader = nil
  6656  	c.urlParams_.Set("alt", alt)
  6657  	c.urlParams_.Set("prettyPrint", "false")
  6658  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets")
  6659  	urls += "?" + c.urlParams_.Encode()
  6660  	req, err := http.NewRequest("GET", urls, body)
  6661  	if err != nil {
  6662  		return nil, err
  6663  	}
  6664  	req.Header = reqHeaders
  6665  	googleapi.Expand(req.URL, map[string]string{
  6666  		"parent": c.parent,
  6667  	})
  6668  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6669  }
  6670  
  6671  // Do executes the "datalabeling.projects.annotationSpecSets.list" call.
  6672  // Any non-2xx status code is an error. Response headers are in either
  6673  // *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse.ServerResponse.
  6674  // Header or (if a response was returned at all) in
  6675  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6676  // whether the returned error was because http.StatusNotModified was returned.
  6677  func (c *ProjectsAnnotationSpecSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse, error) {
  6678  	gensupport.SetOptions(c.urlParams_, opts...)
  6679  	res, err := c.doRequest("json")
  6680  	if res != nil && res.StatusCode == http.StatusNotModified {
  6681  		if res.Body != nil {
  6682  			res.Body.Close()
  6683  		}
  6684  		return nil, gensupport.WrapError(&googleapi.Error{
  6685  			Code:   res.StatusCode,
  6686  			Header: res.Header,
  6687  		})
  6688  	}
  6689  	if err != nil {
  6690  		return nil, err
  6691  	}
  6692  	defer googleapi.CloseBody(res)
  6693  	if err := googleapi.CheckResponse(res); err != nil {
  6694  		return nil, gensupport.WrapError(err)
  6695  	}
  6696  	ret := &GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse{
  6697  		ServerResponse: googleapi.ServerResponse{
  6698  			Header:         res.Header,
  6699  			HTTPStatusCode: res.StatusCode,
  6700  		},
  6701  	}
  6702  	target := &ret
  6703  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6704  		return nil, err
  6705  	}
  6706  	return ret, nil
  6707  }
  6708  
  6709  // Pages invokes f for each page of results.
  6710  // A non-nil error returned from f will halt the iteration.
  6711  // The provided context supersedes any context provided to the Context method.
  6712  func (c *ProjectsAnnotationSpecSetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) error) error {
  6713  	c.ctx_ = ctx
  6714  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6715  	for {
  6716  		x, err := c.Do()
  6717  		if err != nil {
  6718  			return err
  6719  		}
  6720  		if err := f(x); err != nil {
  6721  			return err
  6722  		}
  6723  		if x.NextPageToken == "" {
  6724  			return nil
  6725  		}
  6726  		c.PageToken(x.NextPageToken)
  6727  	}
  6728  }
  6729  
  6730  type ProjectsDatasetsCreateCall struct {
  6731  	s                                                  *Service
  6732  	parent                                             string
  6733  	googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest
  6734  	urlParams_                                         gensupport.URLParams
  6735  	ctx_                                               context.Context
  6736  	header_                                            http.Header
  6737  }
  6738  
  6739  // Create: Creates dataset. If success return a Dataset resource.
  6740  //
  6741  // - parent: Dataset resource parent, format: projects/{project_id}.
  6742  func (r *ProjectsDatasetsService) Create(parent string, googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) *ProjectsDatasetsCreateCall {
  6743  	c := &ProjectsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6744  	c.parent = parent
  6745  	c.googleclouddatalabelingv1beta1createdatasetrequest = googleclouddatalabelingv1beta1createdatasetrequest
  6746  	return c
  6747  }
  6748  
  6749  // Fields allows partial responses to be retrieved. See
  6750  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6751  // details.
  6752  func (c *ProjectsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsCreateCall {
  6753  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6754  	return c
  6755  }
  6756  
  6757  // Context sets the context to be used in this call's Do method.
  6758  func (c *ProjectsDatasetsCreateCall) Context(ctx context.Context) *ProjectsDatasetsCreateCall {
  6759  	c.ctx_ = ctx
  6760  	return c
  6761  }
  6762  
  6763  // Header returns a http.Header that can be modified by the caller to add
  6764  // headers to the request.
  6765  func (c *ProjectsDatasetsCreateCall) Header() http.Header {
  6766  	if c.header_ == nil {
  6767  		c.header_ = make(http.Header)
  6768  	}
  6769  	return c.header_
  6770  }
  6771  
  6772  func (c *ProjectsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
  6773  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6774  	var body io.Reader = nil
  6775  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createdatasetrequest)
  6776  	if err != nil {
  6777  		return nil, err
  6778  	}
  6779  	c.urlParams_.Set("alt", alt)
  6780  	c.urlParams_.Set("prettyPrint", "false")
  6781  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
  6782  	urls += "?" + c.urlParams_.Encode()
  6783  	req, err := http.NewRequest("POST", urls, body)
  6784  	if err != nil {
  6785  		return nil, err
  6786  	}
  6787  	req.Header = reqHeaders
  6788  	googleapi.Expand(req.URL, map[string]string{
  6789  		"parent": c.parent,
  6790  	})
  6791  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6792  }
  6793  
  6794  // Do executes the "datalabeling.projects.datasets.create" call.
  6795  // Any non-2xx status code is an error. Response headers are in either
  6796  // *GoogleCloudDatalabelingV1beta1Dataset.ServerResponse.Header or (if a
  6797  // response was returned at all) in error.(*googleapi.Error).Header. Use
  6798  // googleapi.IsNotModified to check whether the returned error was because
  6799  // http.StatusNotModified was returned.
  6800  func (c *ProjectsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) {
  6801  	gensupport.SetOptions(c.urlParams_, opts...)
  6802  	res, err := c.doRequest("json")
  6803  	if res != nil && res.StatusCode == http.StatusNotModified {
  6804  		if res.Body != nil {
  6805  			res.Body.Close()
  6806  		}
  6807  		return nil, gensupport.WrapError(&googleapi.Error{
  6808  			Code:   res.StatusCode,
  6809  			Header: res.Header,
  6810  		})
  6811  	}
  6812  	if err != nil {
  6813  		return nil, err
  6814  	}
  6815  	defer googleapi.CloseBody(res)
  6816  	if err := googleapi.CheckResponse(res); err != nil {
  6817  		return nil, gensupport.WrapError(err)
  6818  	}
  6819  	ret := &GoogleCloudDatalabelingV1beta1Dataset{
  6820  		ServerResponse: googleapi.ServerResponse{
  6821  			Header:         res.Header,
  6822  			HTTPStatusCode: res.StatusCode,
  6823  		},
  6824  	}
  6825  	target := &ret
  6826  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6827  		return nil, err
  6828  	}
  6829  	return ret, nil
  6830  }
  6831  
  6832  type ProjectsDatasetsDeleteCall struct {
  6833  	s          *Service
  6834  	name       string
  6835  	urlParams_ gensupport.URLParams
  6836  	ctx_       context.Context
  6837  	header_    http.Header
  6838  }
  6839  
  6840  // Delete: Deletes a dataset by resource name.
  6841  //
  6842  //   - name: Dataset resource name, format:
  6843  //     projects/{project_id}/datasets/{dataset_id}.
  6844  func (r *ProjectsDatasetsService) Delete(name string) *ProjectsDatasetsDeleteCall {
  6845  	c := &ProjectsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6846  	c.name = name
  6847  	return c
  6848  }
  6849  
  6850  // Fields allows partial responses to be retrieved. See
  6851  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6852  // details.
  6853  func (c *ProjectsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDeleteCall {
  6854  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6855  	return c
  6856  }
  6857  
  6858  // Context sets the context to be used in this call's Do method.
  6859  func (c *ProjectsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsDeleteCall {
  6860  	c.ctx_ = ctx
  6861  	return c
  6862  }
  6863  
  6864  // Header returns a http.Header that can be modified by the caller to add
  6865  // headers to the request.
  6866  func (c *ProjectsDatasetsDeleteCall) Header() http.Header {
  6867  	if c.header_ == nil {
  6868  		c.header_ = make(http.Header)
  6869  	}
  6870  	return c.header_
  6871  }
  6872  
  6873  func (c *ProjectsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  6874  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6875  	var body io.Reader = nil
  6876  	c.urlParams_.Set("alt", alt)
  6877  	c.urlParams_.Set("prettyPrint", "false")
  6878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  6879  	urls += "?" + c.urlParams_.Encode()
  6880  	req, err := http.NewRequest("DELETE", urls, body)
  6881  	if err != nil {
  6882  		return nil, err
  6883  	}
  6884  	req.Header = reqHeaders
  6885  	googleapi.Expand(req.URL, map[string]string{
  6886  		"name": c.name,
  6887  	})
  6888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6889  }
  6890  
  6891  // Do executes the "datalabeling.projects.datasets.delete" call.
  6892  // Any non-2xx status code is an error. Response headers are in either
  6893  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  6894  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  6895  // check whether the returned error was because http.StatusNotModified was
  6896  // returned.
  6897  func (c *ProjectsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  6898  	gensupport.SetOptions(c.urlParams_, opts...)
  6899  	res, err := c.doRequest("json")
  6900  	if res != nil && res.StatusCode == http.StatusNotModified {
  6901  		if res.Body != nil {
  6902  			res.Body.Close()
  6903  		}
  6904  		return nil, gensupport.WrapError(&googleapi.Error{
  6905  			Code:   res.StatusCode,
  6906  			Header: res.Header,
  6907  		})
  6908  	}
  6909  	if err != nil {
  6910  		return nil, err
  6911  	}
  6912  	defer googleapi.CloseBody(res)
  6913  	if err := googleapi.CheckResponse(res); err != nil {
  6914  		return nil, gensupport.WrapError(err)
  6915  	}
  6916  	ret := &GoogleProtobufEmpty{
  6917  		ServerResponse: googleapi.ServerResponse{
  6918  			Header:         res.Header,
  6919  			HTTPStatusCode: res.StatusCode,
  6920  		},
  6921  	}
  6922  	target := &ret
  6923  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6924  		return nil, err
  6925  	}
  6926  	return ret, nil
  6927  }
  6928  
  6929  type ProjectsDatasetsExportDataCall struct {
  6930  	s                                               *Service
  6931  	name                                            string
  6932  	googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest
  6933  	urlParams_                                      gensupport.URLParams
  6934  	ctx_                                            context.Context
  6935  	header_                                         http.Header
  6936  }
  6937  
  6938  // ExportData: Exports data and annotations from dataset.
  6939  //
  6940  //   - name: Dataset resource name, format:
  6941  //     projects/{project_id}/datasets/{dataset_id}.
  6942  func (r *ProjectsDatasetsService) ExportData(name string, googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest) *ProjectsDatasetsExportDataCall {
  6943  	c := &ProjectsDatasetsExportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6944  	c.name = name
  6945  	c.googleclouddatalabelingv1beta1exportdatarequest = googleclouddatalabelingv1beta1exportdatarequest
  6946  	return c
  6947  }
  6948  
  6949  // Fields allows partial responses to be retrieved. See
  6950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6951  // details.
  6952  func (c *ProjectsDatasetsExportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsExportDataCall {
  6953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6954  	return c
  6955  }
  6956  
  6957  // Context sets the context to be used in this call's Do method.
  6958  func (c *ProjectsDatasetsExportDataCall) Context(ctx context.Context) *ProjectsDatasetsExportDataCall {
  6959  	c.ctx_ = ctx
  6960  	return c
  6961  }
  6962  
  6963  // Header returns a http.Header that can be modified by the caller to add
  6964  // headers to the request.
  6965  func (c *ProjectsDatasetsExportDataCall) Header() http.Header {
  6966  	if c.header_ == nil {
  6967  		c.header_ = make(http.Header)
  6968  	}
  6969  	return c.header_
  6970  }
  6971  
  6972  func (c *ProjectsDatasetsExportDataCall) doRequest(alt string) (*http.Response, error) {
  6973  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6974  	var body io.Reader = nil
  6975  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1exportdatarequest)
  6976  	if err != nil {
  6977  		return nil, err
  6978  	}
  6979  	c.urlParams_.Set("alt", alt)
  6980  	c.urlParams_.Set("prettyPrint", "false")
  6981  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportData")
  6982  	urls += "?" + c.urlParams_.Encode()
  6983  	req, err := http.NewRequest("POST", urls, body)
  6984  	if err != nil {
  6985  		return nil, err
  6986  	}
  6987  	req.Header = reqHeaders
  6988  	googleapi.Expand(req.URL, map[string]string{
  6989  		"name": c.name,
  6990  	})
  6991  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6992  }
  6993  
  6994  // Do executes the "datalabeling.projects.datasets.exportData" call.
  6995  // Any non-2xx status code is an error. Response headers are in either
  6996  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  6997  // returned at all) in error.(*googleapi.Error).Header. Use
  6998  // googleapi.IsNotModified to check whether the returned error was because
  6999  // http.StatusNotModified was returned.
  7000  func (c *ProjectsDatasetsExportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7001  	gensupport.SetOptions(c.urlParams_, opts...)
  7002  	res, err := c.doRequest("json")
  7003  	if res != nil && res.StatusCode == http.StatusNotModified {
  7004  		if res.Body != nil {
  7005  			res.Body.Close()
  7006  		}
  7007  		return nil, gensupport.WrapError(&googleapi.Error{
  7008  			Code:   res.StatusCode,
  7009  			Header: res.Header,
  7010  		})
  7011  	}
  7012  	if err != nil {
  7013  		return nil, err
  7014  	}
  7015  	defer googleapi.CloseBody(res)
  7016  	if err := googleapi.CheckResponse(res); err != nil {
  7017  		return nil, gensupport.WrapError(err)
  7018  	}
  7019  	ret := &GoogleLongrunningOperation{
  7020  		ServerResponse: googleapi.ServerResponse{
  7021  			Header:         res.Header,
  7022  			HTTPStatusCode: res.StatusCode,
  7023  		},
  7024  	}
  7025  	target := &ret
  7026  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7027  		return nil, err
  7028  	}
  7029  	return ret, nil
  7030  }
  7031  
  7032  type ProjectsDatasetsGetCall struct {
  7033  	s            *Service
  7034  	name         string
  7035  	urlParams_   gensupport.URLParams
  7036  	ifNoneMatch_ string
  7037  	ctx_         context.Context
  7038  	header_      http.Header
  7039  }
  7040  
  7041  // Get: Gets dataset by resource name.
  7042  //
  7043  //   - name: Dataset resource name, format:
  7044  //     projects/{project_id}/datasets/{dataset_id}.
  7045  func (r *ProjectsDatasetsService) Get(name string) *ProjectsDatasetsGetCall {
  7046  	c := &ProjectsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7047  	c.name = name
  7048  	return c
  7049  }
  7050  
  7051  // Fields allows partial responses to be retrieved. See
  7052  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7053  // details.
  7054  func (c *ProjectsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsGetCall {
  7055  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7056  	return c
  7057  }
  7058  
  7059  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7060  // object's ETag matches the given value. This is useful for getting updates
  7061  // only after the object has changed since the last request.
  7062  func (c *ProjectsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsGetCall {
  7063  	c.ifNoneMatch_ = entityTag
  7064  	return c
  7065  }
  7066  
  7067  // Context sets the context to be used in this call's Do method.
  7068  func (c *ProjectsDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsGetCall {
  7069  	c.ctx_ = ctx
  7070  	return c
  7071  }
  7072  
  7073  // Header returns a http.Header that can be modified by the caller to add
  7074  // headers to the request.
  7075  func (c *ProjectsDatasetsGetCall) Header() http.Header {
  7076  	if c.header_ == nil {
  7077  		c.header_ = make(http.Header)
  7078  	}
  7079  	return c.header_
  7080  }
  7081  
  7082  func (c *ProjectsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
  7083  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7084  	if c.ifNoneMatch_ != "" {
  7085  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7086  	}
  7087  	var body io.Reader = nil
  7088  	c.urlParams_.Set("alt", alt)
  7089  	c.urlParams_.Set("prettyPrint", "false")
  7090  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  7091  	urls += "?" + c.urlParams_.Encode()
  7092  	req, err := http.NewRequest("GET", urls, body)
  7093  	if err != nil {
  7094  		return nil, err
  7095  	}
  7096  	req.Header = reqHeaders
  7097  	googleapi.Expand(req.URL, map[string]string{
  7098  		"name": c.name,
  7099  	})
  7100  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7101  }
  7102  
  7103  // Do executes the "datalabeling.projects.datasets.get" call.
  7104  // Any non-2xx status code is an error. Response headers are in either
  7105  // *GoogleCloudDatalabelingV1beta1Dataset.ServerResponse.Header or (if a
  7106  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7107  // googleapi.IsNotModified to check whether the returned error was because
  7108  // http.StatusNotModified was returned.
  7109  func (c *ProjectsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) {
  7110  	gensupport.SetOptions(c.urlParams_, opts...)
  7111  	res, err := c.doRequest("json")
  7112  	if res != nil && res.StatusCode == http.StatusNotModified {
  7113  		if res.Body != nil {
  7114  			res.Body.Close()
  7115  		}
  7116  		return nil, gensupport.WrapError(&googleapi.Error{
  7117  			Code:   res.StatusCode,
  7118  			Header: res.Header,
  7119  		})
  7120  	}
  7121  	if err != nil {
  7122  		return nil, err
  7123  	}
  7124  	defer googleapi.CloseBody(res)
  7125  	if err := googleapi.CheckResponse(res); err != nil {
  7126  		return nil, gensupport.WrapError(err)
  7127  	}
  7128  	ret := &GoogleCloudDatalabelingV1beta1Dataset{
  7129  		ServerResponse: googleapi.ServerResponse{
  7130  			Header:         res.Header,
  7131  			HTTPStatusCode: res.StatusCode,
  7132  		},
  7133  	}
  7134  	target := &ret
  7135  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7136  		return nil, err
  7137  	}
  7138  	return ret, nil
  7139  }
  7140  
  7141  type ProjectsDatasetsImportDataCall struct {
  7142  	s                                               *Service
  7143  	name                                            string
  7144  	googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest
  7145  	urlParams_                                      gensupport.URLParams
  7146  	ctx_                                            context.Context
  7147  	header_                                         http.Header
  7148  }
  7149  
  7150  // ImportData: Imports data into dataset based on source locations defined in
  7151  // request. It can be called multiple times for the same dataset. Each dataset
  7152  // can only have one long running operation running on it. For example, no
  7153  // labeling task (also long running operation) can be started while importing
  7154  // is still ongoing. Vice versa.
  7155  //
  7156  //   - name: Dataset resource name, format:
  7157  //     projects/{project_id}/datasets/{dataset_id}.
  7158  func (r *ProjectsDatasetsService) ImportData(name string, googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest) *ProjectsDatasetsImportDataCall {
  7159  	c := &ProjectsDatasetsImportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7160  	c.name = name
  7161  	c.googleclouddatalabelingv1beta1importdatarequest = googleclouddatalabelingv1beta1importdatarequest
  7162  	return c
  7163  }
  7164  
  7165  // Fields allows partial responses to be retrieved. See
  7166  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7167  // details.
  7168  func (c *ProjectsDatasetsImportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImportDataCall {
  7169  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7170  	return c
  7171  }
  7172  
  7173  // Context sets the context to be used in this call's Do method.
  7174  func (c *ProjectsDatasetsImportDataCall) Context(ctx context.Context) *ProjectsDatasetsImportDataCall {
  7175  	c.ctx_ = ctx
  7176  	return c
  7177  }
  7178  
  7179  // Header returns a http.Header that can be modified by the caller to add
  7180  // headers to the request.
  7181  func (c *ProjectsDatasetsImportDataCall) Header() http.Header {
  7182  	if c.header_ == nil {
  7183  		c.header_ = make(http.Header)
  7184  	}
  7185  	return c.header_
  7186  }
  7187  
  7188  func (c *ProjectsDatasetsImportDataCall) doRequest(alt string) (*http.Response, error) {
  7189  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7190  	var body io.Reader = nil
  7191  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1importdatarequest)
  7192  	if err != nil {
  7193  		return nil, err
  7194  	}
  7195  	c.urlParams_.Set("alt", alt)
  7196  	c.urlParams_.Set("prettyPrint", "false")
  7197  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:importData")
  7198  	urls += "?" + c.urlParams_.Encode()
  7199  	req, err := http.NewRequest("POST", urls, body)
  7200  	if err != nil {
  7201  		return nil, err
  7202  	}
  7203  	req.Header = reqHeaders
  7204  	googleapi.Expand(req.URL, map[string]string{
  7205  		"name": c.name,
  7206  	})
  7207  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7208  }
  7209  
  7210  // Do executes the "datalabeling.projects.datasets.importData" call.
  7211  // Any non-2xx status code is an error. Response headers are in either
  7212  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  7213  // returned at all) in error.(*googleapi.Error).Header. Use
  7214  // googleapi.IsNotModified to check whether the returned error was because
  7215  // http.StatusNotModified was returned.
  7216  func (c *ProjectsDatasetsImportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  7217  	gensupport.SetOptions(c.urlParams_, opts...)
  7218  	res, err := c.doRequest("json")
  7219  	if res != nil && res.StatusCode == http.StatusNotModified {
  7220  		if res.Body != nil {
  7221  			res.Body.Close()
  7222  		}
  7223  		return nil, gensupport.WrapError(&googleapi.Error{
  7224  			Code:   res.StatusCode,
  7225  			Header: res.Header,
  7226  		})
  7227  	}
  7228  	if err != nil {
  7229  		return nil, err
  7230  	}
  7231  	defer googleapi.CloseBody(res)
  7232  	if err := googleapi.CheckResponse(res); err != nil {
  7233  		return nil, gensupport.WrapError(err)
  7234  	}
  7235  	ret := &GoogleLongrunningOperation{
  7236  		ServerResponse: googleapi.ServerResponse{
  7237  			Header:         res.Header,
  7238  			HTTPStatusCode: res.StatusCode,
  7239  		},
  7240  	}
  7241  	target := &ret
  7242  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7243  		return nil, err
  7244  	}
  7245  	return ret, nil
  7246  }
  7247  
  7248  type ProjectsDatasetsListCall struct {
  7249  	s            *Service
  7250  	parent       string
  7251  	urlParams_   gensupport.URLParams
  7252  	ifNoneMatch_ string
  7253  	ctx_         context.Context
  7254  	header_      http.Header
  7255  }
  7256  
  7257  // List: Lists datasets under a project. Pagination is supported.
  7258  //
  7259  // - parent: Dataset resource parent, format: projects/{project_id}.
  7260  func (r *ProjectsDatasetsService) List(parent string) *ProjectsDatasetsListCall {
  7261  	c := &ProjectsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7262  	c.parent = parent
  7263  	return c
  7264  }
  7265  
  7266  // Filter sets the optional parameter "filter": Filter on dataset is not
  7267  // supported at this moment.
  7268  func (c *ProjectsDatasetsListCall) Filter(filter string) *ProjectsDatasetsListCall {
  7269  	c.urlParams_.Set("filter", filter)
  7270  	return c
  7271  }
  7272  
  7273  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  7274  // may return fewer results than requested. Default value is 100.
  7275  func (c *ProjectsDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsListCall {
  7276  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7277  	return c
  7278  }
  7279  
  7280  // PageToken sets the optional parameter "pageToken": A token identifying a
  7281  // page of results for the server to return. Typically obtained by
  7282  // ListDatasetsResponse.next_page_token of the previous
  7283  // [DataLabelingService.ListDatasets] call. Returns the first page if empty.
  7284  func (c *ProjectsDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsListCall {
  7285  	c.urlParams_.Set("pageToken", pageToken)
  7286  	return c
  7287  }
  7288  
  7289  // Fields allows partial responses to be retrieved. See
  7290  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7291  // details.
  7292  func (c *ProjectsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsListCall {
  7293  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7294  	return c
  7295  }
  7296  
  7297  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7298  // object's ETag matches the given value. This is useful for getting updates
  7299  // only after the object has changed since the last request.
  7300  func (c *ProjectsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsListCall {
  7301  	c.ifNoneMatch_ = entityTag
  7302  	return c
  7303  }
  7304  
  7305  // Context sets the context to be used in this call's Do method.
  7306  func (c *ProjectsDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsListCall {
  7307  	c.ctx_ = ctx
  7308  	return c
  7309  }
  7310  
  7311  // Header returns a http.Header that can be modified by the caller to add
  7312  // headers to the request.
  7313  func (c *ProjectsDatasetsListCall) Header() http.Header {
  7314  	if c.header_ == nil {
  7315  		c.header_ = make(http.Header)
  7316  	}
  7317  	return c.header_
  7318  }
  7319  
  7320  func (c *ProjectsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
  7321  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7322  	if c.ifNoneMatch_ != "" {
  7323  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7324  	}
  7325  	var body io.Reader = nil
  7326  	c.urlParams_.Set("alt", alt)
  7327  	c.urlParams_.Set("prettyPrint", "false")
  7328  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
  7329  	urls += "?" + c.urlParams_.Encode()
  7330  	req, err := http.NewRequest("GET", urls, body)
  7331  	if err != nil {
  7332  		return nil, err
  7333  	}
  7334  	req.Header = reqHeaders
  7335  	googleapi.Expand(req.URL, map[string]string{
  7336  		"parent": c.parent,
  7337  	})
  7338  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7339  }
  7340  
  7341  // Do executes the "datalabeling.projects.datasets.list" call.
  7342  // Any non-2xx status code is an error. Response headers are in either
  7343  // *GoogleCloudDatalabelingV1beta1ListDatasetsResponse.ServerResponse.Header or
  7344  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  7345  // googleapi.IsNotModified to check whether the returned error was because
  7346  // http.StatusNotModified was returned.
  7347  func (c *ProjectsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDatasetsResponse, error) {
  7348  	gensupport.SetOptions(c.urlParams_, opts...)
  7349  	res, err := c.doRequest("json")
  7350  	if res != nil && res.StatusCode == http.StatusNotModified {
  7351  		if res.Body != nil {
  7352  			res.Body.Close()
  7353  		}
  7354  		return nil, gensupport.WrapError(&googleapi.Error{
  7355  			Code:   res.StatusCode,
  7356  			Header: res.Header,
  7357  		})
  7358  	}
  7359  	if err != nil {
  7360  		return nil, err
  7361  	}
  7362  	defer googleapi.CloseBody(res)
  7363  	if err := googleapi.CheckResponse(res); err != nil {
  7364  		return nil, gensupport.WrapError(err)
  7365  	}
  7366  	ret := &GoogleCloudDatalabelingV1beta1ListDatasetsResponse{
  7367  		ServerResponse: googleapi.ServerResponse{
  7368  			Header:         res.Header,
  7369  			HTTPStatusCode: res.StatusCode,
  7370  		},
  7371  	}
  7372  	target := &ret
  7373  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7374  		return nil, err
  7375  	}
  7376  	return ret, nil
  7377  }
  7378  
  7379  // Pages invokes f for each page of results.
  7380  // A non-nil error returned from f will halt the iteration.
  7381  // The provided context supersedes any context provided to the Context method.
  7382  func (c *ProjectsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDatasetsResponse) error) error {
  7383  	c.ctx_ = ctx
  7384  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7385  	for {
  7386  		x, err := c.Do()
  7387  		if err != nil {
  7388  			return err
  7389  		}
  7390  		if err := f(x); err != nil {
  7391  			return err
  7392  		}
  7393  		if x.NextPageToken == "" {
  7394  			return nil
  7395  		}
  7396  		c.PageToken(x.NextPageToken)
  7397  	}
  7398  }
  7399  
  7400  type ProjectsDatasetsAnnotatedDatasetsDeleteCall struct {
  7401  	s          *Service
  7402  	name       string
  7403  	urlParams_ gensupport.URLParams
  7404  	ctx_       context.Context
  7405  	header_    http.Header
  7406  }
  7407  
  7408  // Delete: Deletes an annotated dataset by resource name.
  7409  //
  7410  //   - name: Name of the annotated dataset to delete, format:
  7411  //     projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  7412  //     {annotated_dataset_id}.
  7413  func (r *ProjectsDatasetsAnnotatedDatasetsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
  7414  	c := &ProjectsDatasetsAnnotatedDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7415  	c.name = name
  7416  	return c
  7417  }
  7418  
  7419  // Fields allows partial responses to be retrieved. See
  7420  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7421  // details.
  7422  func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
  7423  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7424  	return c
  7425  }
  7426  
  7427  // Context sets the context to be used in this call's Do method.
  7428  func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
  7429  	c.ctx_ = ctx
  7430  	return c
  7431  }
  7432  
  7433  // Header returns a http.Header that can be modified by the caller to add
  7434  // headers to the request.
  7435  func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Header() http.Header {
  7436  	if c.header_ == nil {
  7437  		c.header_ = make(http.Header)
  7438  	}
  7439  	return c.header_
  7440  }
  7441  
  7442  func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
  7443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7444  	var body io.Reader = nil
  7445  	c.urlParams_.Set("alt", alt)
  7446  	c.urlParams_.Set("prettyPrint", "false")
  7447  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  7448  	urls += "?" + c.urlParams_.Encode()
  7449  	req, err := http.NewRequest("DELETE", urls, body)
  7450  	if err != nil {
  7451  		return nil, err
  7452  	}
  7453  	req.Header = reqHeaders
  7454  	googleapi.Expand(req.URL, map[string]string{
  7455  		"name": c.name,
  7456  	})
  7457  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7458  }
  7459  
  7460  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.delete" call.
  7461  // Any non-2xx status code is an error. Response headers are in either
  7462  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  7463  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7464  // check whether the returned error was because http.StatusNotModified was
  7465  // returned.
  7466  func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  7467  	gensupport.SetOptions(c.urlParams_, opts...)
  7468  	res, err := c.doRequest("json")
  7469  	if res != nil && res.StatusCode == http.StatusNotModified {
  7470  		if res.Body != nil {
  7471  			res.Body.Close()
  7472  		}
  7473  		return nil, gensupport.WrapError(&googleapi.Error{
  7474  			Code:   res.StatusCode,
  7475  			Header: res.Header,
  7476  		})
  7477  	}
  7478  	if err != nil {
  7479  		return nil, err
  7480  	}
  7481  	defer googleapi.CloseBody(res)
  7482  	if err := googleapi.CheckResponse(res); err != nil {
  7483  		return nil, gensupport.WrapError(err)
  7484  	}
  7485  	ret := &GoogleProtobufEmpty{
  7486  		ServerResponse: googleapi.ServerResponse{
  7487  			Header:         res.Header,
  7488  			HTTPStatusCode: res.StatusCode,
  7489  		},
  7490  	}
  7491  	target := &ret
  7492  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7493  		return nil, err
  7494  	}
  7495  	return ret, nil
  7496  }
  7497  
  7498  type ProjectsDatasetsAnnotatedDatasetsGetCall struct {
  7499  	s            *Service
  7500  	name         string
  7501  	urlParams_   gensupport.URLParams
  7502  	ifNoneMatch_ string
  7503  	ctx_         context.Context
  7504  	header_      http.Header
  7505  }
  7506  
  7507  // Get: Gets an annotated dataset by resource name.
  7508  //
  7509  //   - name: Name of the annotated dataset to get, format:
  7510  //     projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  7511  //     {annotated_dataset_id}.
  7512  func (r *ProjectsDatasetsAnnotatedDatasetsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsGetCall {
  7513  	c := &ProjectsDatasetsAnnotatedDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7514  	c.name = name
  7515  	return c
  7516  }
  7517  
  7518  // Fields allows partial responses to be retrieved. See
  7519  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7520  // details.
  7521  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsGetCall {
  7522  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7523  	return c
  7524  }
  7525  
  7526  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7527  // object's ETag matches the given value. This is useful for getting updates
  7528  // only after the object has changed since the last request.
  7529  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsGetCall {
  7530  	c.ifNoneMatch_ = entityTag
  7531  	return c
  7532  }
  7533  
  7534  // Context sets the context to be used in this call's Do method.
  7535  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsGetCall {
  7536  	c.ctx_ = ctx
  7537  	return c
  7538  }
  7539  
  7540  // Header returns a http.Header that can be modified by the caller to add
  7541  // headers to the request.
  7542  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Header() http.Header {
  7543  	if c.header_ == nil {
  7544  		c.header_ = make(http.Header)
  7545  	}
  7546  	return c.header_
  7547  }
  7548  
  7549  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
  7550  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7551  	if c.ifNoneMatch_ != "" {
  7552  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7553  	}
  7554  	var body io.Reader = nil
  7555  	c.urlParams_.Set("alt", alt)
  7556  	c.urlParams_.Set("prettyPrint", "false")
  7557  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  7558  	urls += "?" + c.urlParams_.Encode()
  7559  	req, err := http.NewRequest("GET", urls, body)
  7560  	if err != nil {
  7561  		return nil, err
  7562  	}
  7563  	req.Header = reqHeaders
  7564  	googleapi.Expand(req.URL, map[string]string{
  7565  		"name": c.name,
  7566  	})
  7567  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7568  }
  7569  
  7570  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.get" call.
  7571  // Any non-2xx status code is an error. Response headers are in either
  7572  // *GoogleCloudDatalabelingV1beta1AnnotatedDataset.ServerResponse.Header or (if
  7573  // a response was returned at all) in error.(*googleapi.Error).Header. Use
  7574  // googleapi.IsNotModified to check whether the returned error was because
  7575  // http.StatusNotModified was returned.
  7576  func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotatedDataset, error) {
  7577  	gensupport.SetOptions(c.urlParams_, opts...)
  7578  	res, err := c.doRequest("json")
  7579  	if res != nil && res.StatusCode == http.StatusNotModified {
  7580  		if res.Body != nil {
  7581  			res.Body.Close()
  7582  		}
  7583  		return nil, gensupport.WrapError(&googleapi.Error{
  7584  			Code:   res.StatusCode,
  7585  			Header: res.Header,
  7586  		})
  7587  	}
  7588  	if err != nil {
  7589  		return nil, err
  7590  	}
  7591  	defer googleapi.CloseBody(res)
  7592  	if err := googleapi.CheckResponse(res); err != nil {
  7593  		return nil, gensupport.WrapError(err)
  7594  	}
  7595  	ret := &GoogleCloudDatalabelingV1beta1AnnotatedDataset{
  7596  		ServerResponse: googleapi.ServerResponse{
  7597  			Header:         res.Header,
  7598  			HTTPStatusCode: res.StatusCode,
  7599  		},
  7600  	}
  7601  	target := &ret
  7602  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7603  		return nil, err
  7604  	}
  7605  	return ret, nil
  7606  }
  7607  
  7608  type ProjectsDatasetsAnnotatedDatasetsListCall struct {
  7609  	s            *Service
  7610  	parent       string
  7611  	urlParams_   gensupport.URLParams
  7612  	ifNoneMatch_ string
  7613  	ctx_         context.Context
  7614  	header_      http.Header
  7615  }
  7616  
  7617  // List: Lists annotated datasets for a dataset. Pagination is supported.
  7618  //
  7619  //   - parent: Name of the dataset to list annotated datasets, format:
  7620  //     projects/{project_id}/datasets/{dataset_id}.
  7621  func (r *ProjectsDatasetsAnnotatedDatasetsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7622  	c := &ProjectsDatasetsAnnotatedDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7623  	c.parent = parent
  7624  	return c
  7625  }
  7626  
  7627  // Filter sets the optional parameter "filter": Filter is not supported at this
  7628  // moment.
  7629  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7630  	c.urlParams_.Set("filter", filter)
  7631  	return c
  7632  }
  7633  
  7634  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  7635  // may return fewer results than requested. Default value is 100.
  7636  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7637  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7638  	return c
  7639  }
  7640  
  7641  // PageToken sets the optional parameter "pageToken": A token identifying a
  7642  // page of results for the server to return. Typically obtained by
  7643  // ListAnnotatedDatasetsResponse.next_page_token of the previous
  7644  // [DataLabelingService.ListAnnotatedDatasets] call. Return first page if
  7645  // empty.
  7646  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7647  	c.urlParams_.Set("pageToken", pageToken)
  7648  	return c
  7649  }
  7650  
  7651  // Fields allows partial responses to be retrieved. See
  7652  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7653  // details.
  7654  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7655  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7656  	return c
  7657  }
  7658  
  7659  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7660  // object's ETag matches the given value. This is useful for getting updates
  7661  // only after the object has changed since the last request.
  7662  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7663  	c.ifNoneMatch_ = entityTag
  7664  	return c
  7665  }
  7666  
  7667  // Context sets the context to be used in this call's Do method.
  7668  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsListCall {
  7669  	c.ctx_ = ctx
  7670  	return c
  7671  }
  7672  
  7673  // Header returns a http.Header that can be modified by the caller to add
  7674  // headers to the request.
  7675  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Header() http.Header {
  7676  	if c.header_ == nil {
  7677  		c.header_ = make(http.Header)
  7678  	}
  7679  	return c.header_
  7680  }
  7681  
  7682  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) doRequest(alt string) (*http.Response, error) {
  7683  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7684  	if c.ifNoneMatch_ != "" {
  7685  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7686  	}
  7687  	var body io.Reader = nil
  7688  	c.urlParams_.Set("alt", alt)
  7689  	c.urlParams_.Set("prettyPrint", "false")
  7690  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotatedDatasets")
  7691  	urls += "?" + c.urlParams_.Encode()
  7692  	req, err := http.NewRequest("GET", urls, body)
  7693  	if err != nil {
  7694  		return nil, err
  7695  	}
  7696  	req.Header = reqHeaders
  7697  	googleapi.Expand(req.URL, map[string]string{
  7698  		"parent": c.parent,
  7699  	})
  7700  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7701  }
  7702  
  7703  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.list" call.
  7704  // Any non-2xx status code is an error. Response headers are in either
  7705  // *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse.ServerResponse.H
  7706  // eader or (if a response was returned at all) in
  7707  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  7708  // whether the returned error was because http.StatusNotModified was returned.
  7709  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse, error) {
  7710  	gensupport.SetOptions(c.urlParams_, opts...)
  7711  	res, err := c.doRequest("json")
  7712  	if res != nil && res.StatusCode == http.StatusNotModified {
  7713  		if res.Body != nil {
  7714  			res.Body.Close()
  7715  		}
  7716  		return nil, gensupport.WrapError(&googleapi.Error{
  7717  			Code:   res.StatusCode,
  7718  			Header: res.Header,
  7719  		})
  7720  	}
  7721  	if err != nil {
  7722  		return nil, err
  7723  	}
  7724  	defer googleapi.CloseBody(res)
  7725  	if err := googleapi.CheckResponse(res); err != nil {
  7726  		return nil, gensupport.WrapError(err)
  7727  	}
  7728  	ret := &GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse{
  7729  		ServerResponse: googleapi.ServerResponse{
  7730  			Header:         res.Header,
  7731  			HTTPStatusCode: res.StatusCode,
  7732  		},
  7733  	}
  7734  	target := &ret
  7735  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7736  		return nil, err
  7737  	}
  7738  	return ret, nil
  7739  }
  7740  
  7741  // Pages invokes f for each page of results.
  7742  // A non-nil error returned from f will halt the iteration.
  7743  // The provided context supersedes any context provided to the Context method.
  7744  func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) error) error {
  7745  	c.ctx_ = ctx
  7746  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  7747  	for {
  7748  		x, err := c.Do()
  7749  		if err != nil {
  7750  			return err
  7751  		}
  7752  		if err := f(x); err != nil {
  7753  			return err
  7754  		}
  7755  		if x.NextPageToken == "" {
  7756  			return nil
  7757  		}
  7758  		c.PageToken(x.NextPageToken)
  7759  	}
  7760  }
  7761  
  7762  type ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall struct {
  7763  	s            *Service
  7764  	name         string
  7765  	urlParams_   gensupport.URLParams
  7766  	ifNoneMatch_ string
  7767  	ctx_         context.Context
  7768  	header_      http.Header
  7769  }
  7770  
  7771  // Get: Gets a data item in a dataset by resource name. This API can be called
  7772  // after data are imported into dataset.
  7773  //
  7774  //   - name: The name of the data item to get, format:
  7775  //     projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}.
  7776  func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
  7777  	c := &ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7778  	c.name = name
  7779  	return c
  7780  }
  7781  
  7782  // Fields allows partial responses to be retrieved. See
  7783  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7784  // details.
  7785  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
  7786  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7787  	return c
  7788  }
  7789  
  7790  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7791  // object's ETag matches the given value. This is useful for getting updates
  7792  // only after the object has changed since the last request.
  7793  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
  7794  	c.ifNoneMatch_ = entityTag
  7795  	return c
  7796  }
  7797  
  7798  // Context sets the context to be used in this call's Do method.
  7799  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
  7800  	c.ctx_ = ctx
  7801  	return c
  7802  }
  7803  
  7804  // Header returns a http.Header that can be modified by the caller to add
  7805  // headers to the request.
  7806  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Header() http.Header {
  7807  	if c.header_ == nil {
  7808  		c.header_ = make(http.Header)
  7809  	}
  7810  	return c.header_
  7811  }
  7812  
  7813  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) {
  7814  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7815  	if c.ifNoneMatch_ != "" {
  7816  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7817  	}
  7818  	var body io.Reader = nil
  7819  	c.urlParams_.Set("alt", alt)
  7820  	c.urlParams_.Set("prettyPrint", "false")
  7821  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  7822  	urls += "?" + c.urlParams_.Encode()
  7823  	req, err := http.NewRequest("GET", urls, body)
  7824  	if err != nil {
  7825  		return nil, err
  7826  	}
  7827  	req.Header = reqHeaders
  7828  	googleapi.Expand(req.URL, map[string]string{
  7829  		"name": c.name,
  7830  	})
  7831  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7832  }
  7833  
  7834  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.get" call.
  7835  // Any non-2xx status code is an error. Response headers are in either
  7836  // *GoogleCloudDatalabelingV1beta1DataItem.ServerResponse.Header or (if a
  7837  // response was returned at all) in error.(*googleapi.Error).Header. Use
  7838  // googleapi.IsNotModified to check whether the returned error was because
  7839  // http.StatusNotModified was returned.
  7840  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) {
  7841  	gensupport.SetOptions(c.urlParams_, opts...)
  7842  	res, err := c.doRequest("json")
  7843  	if res != nil && res.StatusCode == http.StatusNotModified {
  7844  		if res.Body != nil {
  7845  			res.Body.Close()
  7846  		}
  7847  		return nil, gensupport.WrapError(&googleapi.Error{
  7848  			Code:   res.StatusCode,
  7849  			Header: res.Header,
  7850  		})
  7851  	}
  7852  	if err != nil {
  7853  		return nil, err
  7854  	}
  7855  	defer googleapi.CloseBody(res)
  7856  	if err := googleapi.CheckResponse(res); err != nil {
  7857  		return nil, gensupport.WrapError(err)
  7858  	}
  7859  	ret := &GoogleCloudDatalabelingV1beta1DataItem{
  7860  		ServerResponse: googleapi.ServerResponse{
  7861  			Header:         res.Header,
  7862  			HTTPStatusCode: res.StatusCode,
  7863  		},
  7864  	}
  7865  	target := &ret
  7866  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7867  		return nil, err
  7868  	}
  7869  	return ret, nil
  7870  }
  7871  
  7872  type ProjectsDatasetsAnnotatedDatasetsDataItemsListCall struct {
  7873  	s            *Service
  7874  	parent       string
  7875  	urlParams_   gensupport.URLParams
  7876  	ifNoneMatch_ string
  7877  	ctx_         context.Context
  7878  	header_      http.Header
  7879  }
  7880  
  7881  // List: Lists data items in a dataset. This API can be called after data are
  7882  // imported into dataset. Pagination is supported.
  7883  //
  7884  //   - parent: Name of the dataset to list data items, format:
  7885  //     projects/{project_id}/datasets/{dataset_id}.
  7886  func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7887  	c := &ProjectsDatasetsAnnotatedDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7888  	c.parent = parent
  7889  	return c
  7890  }
  7891  
  7892  // Filter sets the optional parameter "filter": Filter is not supported at this
  7893  // moment.
  7894  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7895  	c.urlParams_.Set("filter", filter)
  7896  	return c
  7897  }
  7898  
  7899  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  7900  // may return fewer results than requested. Default value is 100.
  7901  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7902  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  7903  	return c
  7904  }
  7905  
  7906  // PageToken sets the optional parameter "pageToken": A token identifying a
  7907  // page of results for the server to return. Typically obtained by
  7908  // ListDataItemsResponse.next_page_token of the previous
  7909  // [DataLabelingService.ListDataItems] call. Return first page if empty.
  7910  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7911  	c.urlParams_.Set("pageToken", pageToken)
  7912  	return c
  7913  }
  7914  
  7915  // Fields allows partial responses to be retrieved. See
  7916  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7917  // details.
  7918  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7919  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7920  	return c
  7921  }
  7922  
  7923  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7924  // object's ETag matches the given value. This is useful for getting updates
  7925  // only after the object has changed since the last request.
  7926  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7927  	c.ifNoneMatch_ = entityTag
  7928  	return c
  7929  }
  7930  
  7931  // Context sets the context to be used in this call's Do method.
  7932  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
  7933  	c.ctx_ = ctx
  7934  	return c
  7935  }
  7936  
  7937  // Header returns a http.Header that can be modified by the caller to add
  7938  // headers to the request.
  7939  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Header() http.Header {
  7940  	if c.header_ == nil {
  7941  		c.header_ = make(http.Header)
  7942  	}
  7943  	return c.header_
  7944  }
  7945  
  7946  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) {
  7947  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7948  	if c.ifNoneMatch_ != "" {
  7949  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7950  	}
  7951  	var body io.Reader = nil
  7952  	c.urlParams_.Set("alt", alt)
  7953  	c.urlParams_.Set("prettyPrint", "false")
  7954  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems")
  7955  	urls += "?" + c.urlParams_.Encode()
  7956  	req, err := http.NewRequest("GET", urls, body)
  7957  	if err != nil {
  7958  		return nil, err
  7959  	}
  7960  	req.Header = reqHeaders
  7961  	googleapi.Expand(req.URL, map[string]string{
  7962  		"parent": c.parent,
  7963  	})
  7964  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7965  }
  7966  
  7967  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.dataItems.list" call.
  7968  // Any non-2xx status code is an error. Response headers are in either
  7969  // *GoogleCloudDatalabelingV1beta1ListDataItemsResponse.ServerResponse.Header
  7970  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  7971  // Use googleapi.IsNotModified to check whether the returned error was because
  7972  // http.StatusNotModified was returned.
  7973  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) {
  7974  	gensupport.SetOptions(c.urlParams_, opts...)
  7975  	res, err := c.doRequest("json")
  7976  	if res != nil && res.StatusCode == http.StatusNotModified {
  7977  		if res.Body != nil {
  7978  			res.Body.Close()
  7979  		}
  7980  		return nil, gensupport.WrapError(&googleapi.Error{
  7981  			Code:   res.StatusCode,
  7982  			Header: res.Header,
  7983  		})
  7984  	}
  7985  	if err != nil {
  7986  		return nil, err
  7987  	}
  7988  	defer googleapi.CloseBody(res)
  7989  	if err := googleapi.CheckResponse(res); err != nil {
  7990  		return nil, gensupport.WrapError(err)
  7991  	}
  7992  	ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{
  7993  		ServerResponse: googleapi.ServerResponse{
  7994  			Header:         res.Header,
  7995  			HTTPStatusCode: res.StatusCode,
  7996  		},
  7997  	}
  7998  	target := &ret
  7999  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8000  		return nil, err
  8001  	}
  8002  	return ret, nil
  8003  }
  8004  
  8005  // Pages invokes f for each page of results.
  8006  // A non-nil error returned from f will halt the iteration.
  8007  // The provided context supersedes any context provided to the Context method.
  8008  func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error {
  8009  	c.ctx_ = ctx
  8010  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8011  	for {
  8012  		x, err := c.Do()
  8013  		if err != nil {
  8014  			return err
  8015  		}
  8016  		if err := f(x); err != nil {
  8017  			return err
  8018  		}
  8019  		if x.NextPageToken == "" {
  8020  			return nil
  8021  		}
  8022  		c.PageToken(x.NextPageToken)
  8023  	}
  8024  }
  8025  
  8026  type ProjectsDatasetsAnnotatedDatasetsExamplesGetCall struct {
  8027  	s            *Service
  8028  	name         string
  8029  	urlParams_   gensupport.URLParams
  8030  	ifNoneMatch_ string
  8031  	ctx_         context.Context
  8032  	header_      http.Header
  8033  }
  8034  
  8035  // Get: Gets an example by resource name, including both data and annotation.
  8036  //
  8037  //   - name: Name of example, format:
  8038  //     projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
  8039  //     {annotated_dataset_id}/examples/{example_id}.
  8040  func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
  8041  	c := &ProjectsDatasetsAnnotatedDatasetsExamplesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8042  	c.name = name
  8043  	return c
  8044  }
  8045  
  8046  // Filter sets the optional parameter "filter": An expression for filtering
  8047  // Examples. Filter by annotation_spec.display_name is supported. Format
  8048  // "annotation_spec.display_name = {display_name}"
  8049  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
  8050  	c.urlParams_.Set("filter", filter)
  8051  	return c
  8052  }
  8053  
  8054  // Fields allows partial responses to be retrieved. See
  8055  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8056  // details.
  8057  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
  8058  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8059  	return c
  8060  }
  8061  
  8062  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8063  // object's ETag matches the given value. This is useful for getting updates
  8064  // only after the object has changed since the last request.
  8065  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
  8066  	c.ifNoneMatch_ = entityTag
  8067  	return c
  8068  }
  8069  
  8070  // Context sets the context to be used in this call's Do method.
  8071  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
  8072  	c.ctx_ = ctx
  8073  	return c
  8074  }
  8075  
  8076  // Header returns a http.Header that can be modified by the caller to add
  8077  // headers to the request.
  8078  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Header() http.Header {
  8079  	if c.header_ == nil {
  8080  		c.header_ = make(http.Header)
  8081  	}
  8082  	return c.header_
  8083  }
  8084  
  8085  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) doRequest(alt string) (*http.Response, error) {
  8086  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8087  	if c.ifNoneMatch_ != "" {
  8088  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8089  	}
  8090  	var body io.Reader = nil
  8091  	c.urlParams_.Set("alt", alt)
  8092  	c.urlParams_.Set("prettyPrint", "false")
  8093  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8094  	urls += "?" + c.urlParams_.Encode()
  8095  	req, err := http.NewRequest("GET", urls, body)
  8096  	if err != nil {
  8097  		return nil, err
  8098  	}
  8099  	req.Header = reqHeaders
  8100  	googleapi.Expand(req.URL, map[string]string{
  8101  		"name": c.name,
  8102  	})
  8103  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8104  }
  8105  
  8106  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.get" call.
  8107  // Any non-2xx status code is an error. Response headers are in either
  8108  // *GoogleCloudDatalabelingV1beta1Example.ServerResponse.Header or (if a
  8109  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8110  // googleapi.IsNotModified to check whether the returned error was because
  8111  // http.StatusNotModified was returned.
  8112  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Example, error) {
  8113  	gensupport.SetOptions(c.urlParams_, opts...)
  8114  	res, err := c.doRequest("json")
  8115  	if res != nil && res.StatusCode == http.StatusNotModified {
  8116  		if res.Body != nil {
  8117  			res.Body.Close()
  8118  		}
  8119  		return nil, gensupport.WrapError(&googleapi.Error{
  8120  			Code:   res.StatusCode,
  8121  			Header: res.Header,
  8122  		})
  8123  	}
  8124  	if err != nil {
  8125  		return nil, err
  8126  	}
  8127  	defer googleapi.CloseBody(res)
  8128  	if err := googleapi.CheckResponse(res); err != nil {
  8129  		return nil, gensupport.WrapError(err)
  8130  	}
  8131  	ret := &GoogleCloudDatalabelingV1beta1Example{
  8132  		ServerResponse: googleapi.ServerResponse{
  8133  			Header:         res.Header,
  8134  			HTTPStatusCode: res.StatusCode,
  8135  		},
  8136  	}
  8137  	target := &ret
  8138  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8139  		return nil, err
  8140  	}
  8141  	return ret, nil
  8142  }
  8143  
  8144  type ProjectsDatasetsAnnotatedDatasetsExamplesListCall struct {
  8145  	s            *Service
  8146  	parent       string
  8147  	urlParams_   gensupport.URLParams
  8148  	ifNoneMatch_ string
  8149  	ctx_         context.Context
  8150  	header_      http.Header
  8151  }
  8152  
  8153  // List: Lists examples in an annotated dataset. Pagination is supported.
  8154  //
  8155  // - parent: Example resource parent.
  8156  func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8157  	c := &ProjectsDatasetsAnnotatedDatasetsExamplesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8158  	c.parent = parent
  8159  	return c
  8160  }
  8161  
  8162  // Filter sets the optional parameter "filter": An expression for filtering
  8163  // Examples. For annotated datasets that have annotation spec set, filter by
  8164  // annotation_spec.display_name is supported. Format
  8165  // "annotation_spec.display_name = {display_name}"
  8166  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8167  	c.urlParams_.Set("filter", filter)
  8168  	return c
  8169  }
  8170  
  8171  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  8172  // may return fewer results than requested. Default value is 100.
  8173  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8174  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8175  	return c
  8176  }
  8177  
  8178  // PageToken sets the optional parameter "pageToken": A token identifying a
  8179  // page of results for the server to return. Typically obtained by
  8180  // ListExamplesResponse.next_page_token of the previous
  8181  // [DataLabelingService.ListExamples] call. Return first page if empty.
  8182  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8183  	c.urlParams_.Set("pageToken", pageToken)
  8184  	return c
  8185  }
  8186  
  8187  // Fields allows partial responses to be retrieved. See
  8188  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8189  // details.
  8190  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8191  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8192  	return c
  8193  }
  8194  
  8195  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8196  // object's ETag matches the given value. This is useful for getting updates
  8197  // only after the object has changed since the last request.
  8198  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8199  	c.ifNoneMatch_ = entityTag
  8200  	return c
  8201  }
  8202  
  8203  // Context sets the context to be used in this call's Do method.
  8204  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
  8205  	c.ctx_ = ctx
  8206  	return c
  8207  }
  8208  
  8209  // Header returns a http.Header that can be modified by the caller to add
  8210  // headers to the request.
  8211  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Header() http.Header {
  8212  	if c.header_ == nil {
  8213  		c.header_ = make(http.Header)
  8214  	}
  8215  	return c.header_
  8216  }
  8217  
  8218  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) doRequest(alt string) (*http.Response, error) {
  8219  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8220  	if c.ifNoneMatch_ != "" {
  8221  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8222  	}
  8223  	var body io.Reader = nil
  8224  	c.urlParams_.Set("alt", alt)
  8225  	c.urlParams_.Set("prettyPrint", "false")
  8226  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/examples")
  8227  	urls += "?" + c.urlParams_.Encode()
  8228  	req, err := http.NewRequest("GET", urls, body)
  8229  	if err != nil {
  8230  		return nil, err
  8231  	}
  8232  	req.Header = reqHeaders
  8233  	googleapi.Expand(req.URL, map[string]string{
  8234  		"parent": c.parent,
  8235  	})
  8236  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8237  }
  8238  
  8239  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.examples.list" call.
  8240  // Any non-2xx status code is an error. Response headers are in either
  8241  // *GoogleCloudDatalabelingV1beta1ListExamplesResponse.ServerResponse.Header or
  8242  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
  8243  // googleapi.IsNotModified to check whether the returned error was because
  8244  // http.StatusNotModified was returned.
  8245  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListExamplesResponse, error) {
  8246  	gensupport.SetOptions(c.urlParams_, opts...)
  8247  	res, err := c.doRequest("json")
  8248  	if res != nil && res.StatusCode == http.StatusNotModified {
  8249  		if res.Body != nil {
  8250  			res.Body.Close()
  8251  		}
  8252  		return nil, gensupport.WrapError(&googleapi.Error{
  8253  			Code:   res.StatusCode,
  8254  			Header: res.Header,
  8255  		})
  8256  	}
  8257  	if err != nil {
  8258  		return nil, err
  8259  	}
  8260  	defer googleapi.CloseBody(res)
  8261  	if err := googleapi.CheckResponse(res); err != nil {
  8262  		return nil, gensupport.WrapError(err)
  8263  	}
  8264  	ret := &GoogleCloudDatalabelingV1beta1ListExamplesResponse{
  8265  		ServerResponse: googleapi.ServerResponse{
  8266  			Header:         res.Header,
  8267  			HTTPStatusCode: res.StatusCode,
  8268  		},
  8269  	}
  8270  	target := &ret
  8271  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8272  		return nil, err
  8273  	}
  8274  	return ret, nil
  8275  }
  8276  
  8277  // Pages invokes f for each page of results.
  8278  // A non-nil error returned from f will halt the iteration.
  8279  // The provided context supersedes any context provided to the Context method.
  8280  func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListExamplesResponse) error) error {
  8281  	c.ctx_ = ctx
  8282  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8283  	for {
  8284  		x, err := c.Do()
  8285  		if err != nil {
  8286  			return err
  8287  		}
  8288  		if err := f(x); err != nil {
  8289  			return err
  8290  		}
  8291  		if x.NextPageToken == "" {
  8292  			return nil
  8293  		}
  8294  		c.PageToken(x.NextPageToken)
  8295  	}
  8296  }
  8297  
  8298  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall struct {
  8299  	s          *Service
  8300  	name       string
  8301  	urlParams_ gensupport.URLParams
  8302  	ctx_       context.Context
  8303  	header_    http.Header
  8304  }
  8305  
  8306  // Delete: Delete a FeedbackThread.
  8307  //
  8308  //   - name: Name of the FeedbackThread that is going to be deleted. Format:
  8309  //     'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8310  //     ataset_id}/feedbackThreads/{feedback_thread_id}'.
  8311  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
  8312  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8313  	c.name = name
  8314  	return c
  8315  }
  8316  
  8317  // Fields allows partial responses to be retrieved. See
  8318  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8319  // details.
  8320  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
  8321  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8322  	return c
  8323  }
  8324  
  8325  // Context sets the context to be used in this call's Do method.
  8326  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
  8327  	c.ctx_ = ctx
  8328  	return c
  8329  }
  8330  
  8331  // Header returns a http.Header that can be modified by the caller to add
  8332  // headers to the request.
  8333  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Header() http.Header {
  8334  	if c.header_ == nil {
  8335  		c.header_ = make(http.Header)
  8336  	}
  8337  	return c.header_
  8338  }
  8339  
  8340  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) doRequest(alt string) (*http.Response, error) {
  8341  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8342  	var body io.Reader = nil
  8343  	c.urlParams_.Set("alt", alt)
  8344  	c.urlParams_.Set("prettyPrint", "false")
  8345  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8346  	urls += "?" + c.urlParams_.Encode()
  8347  	req, err := http.NewRequest("DELETE", urls, body)
  8348  	if err != nil {
  8349  		return nil, err
  8350  	}
  8351  	req.Header = reqHeaders
  8352  	googleapi.Expand(req.URL, map[string]string{
  8353  		"name": c.name,
  8354  	})
  8355  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8356  }
  8357  
  8358  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.delete" call.
  8359  // Any non-2xx status code is an error. Response headers are in either
  8360  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  8361  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8362  // check whether the returned error was because http.StatusNotModified was
  8363  // returned.
  8364  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  8365  	gensupport.SetOptions(c.urlParams_, opts...)
  8366  	res, err := c.doRequest("json")
  8367  	if res != nil && res.StatusCode == http.StatusNotModified {
  8368  		if res.Body != nil {
  8369  			res.Body.Close()
  8370  		}
  8371  		return nil, gensupport.WrapError(&googleapi.Error{
  8372  			Code:   res.StatusCode,
  8373  			Header: res.Header,
  8374  		})
  8375  	}
  8376  	if err != nil {
  8377  		return nil, err
  8378  	}
  8379  	defer googleapi.CloseBody(res)
  8380  	if err := googleapi.CheckResponse(res); err != nil {
  8381  		return nil, gensupport.WrapError(err)
  8382  	}
  8383  	ret := &GoogleProtobufEmpty{
  8384  		ServerResponse: googleapi.ServerResponse{
  8385  			Header:         res.Header,
  8386  			HTTPStatusCode: res.StatusCode,
  8387  		},
  8388  	}
  8389  	target := &ret
  8390  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8391  		return nil, err
  8392  	}
  8393  	return ret, nil
  8394  }
  8395  
  8396  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall struct {
  8397  	s            *Service
  8398  	name         string
  8399  	urlParams_   gensupport.URLParams
  8400  	ifNoneMatch_ string
  8401  	ctx_         context.Context
  8402  	header_      http.Header
  8403  }
  8404  
  8405  // Get: Get a FeedbackThread object.
  8406  //
  8407  //   - name: Name of the feedback. Format:
  8408  //     'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8409  //     ataset_id}/feedbackThreads/{feedback_thread_id}'.
  8410  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
  8411  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8412  	c.name = name
  8413  	return c
  8414  }
  8415  
  8416  // Fields allows partial responses to be retrieved. See
  8417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8418  // details.
  8419  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
  8420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8421  	return c
  8422  }
  8423  
  8424  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8425  // object's ETag matches the given value. This is useful for getting updates
  8426  // only after the object has changed since the last request.
  8427  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
  8428  	c.ifNoneMatch_ = entityTag
  8429  	return c
  8430  }
  8431  
  8432  // Context sets the context to be used in this call's Do method.
  8433  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
  8434  	c.ctx_ = ctx
  8435  	return c
  8436  }
  8437  
  8438  // Header returns a http.Header that can be modified by the caller to add
  8439  // headers to the request.
  8440  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Header() http.Header {
  8441  	if c.header_ == nil {
  8442  		c.header_ = make(http.Header)
  8443  	}
  8444  	return c.header_
  8445  }
  8446  
  8447  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) doRequest(alt string) (*http.Response, error) {
  8448  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8449  	if c.ifNoneMatch_ != "" {
  8450  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8451  	}
  8452  	var body io.Reader = nil
  8453  	c.urlParams_.Set("alt", alt)
  8454  	c.urlParams_.Set("prettyPrint", "false")
  8455  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8456  	urls += "?" + c.urlParams_.Encode()
  8457  	req, err := http.NewRequest("GET", urls, body)
  8458  	if err != nil {
  8459  		return nil, err
  8460  	}
  8461  	req.Header = reqHeaders
  8462  	googleapi.Expand(req.URL, map[string]string{
  8463  		"name": c.name,
  8464  	})
  8465  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8466  }
  8467  
  8468  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.get" call.
  8469  // Any non-2xx status code is an error. Response headers are in either
  8470  // *GoogleCloudDatalabelingV1beta1FeedbackThread.ServerResponse.Header or (if a
  8471  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8472  // googleapi.IsNotModified to check whether the returned error was because
  8473  // http.StatusNotModified was returned.
  8474  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackThread, error) {
  8475  	gensupport.SetOptions(c.urlParams_, opts...)
  8476  	res, err := c.doRequest("json")
  8477  	if res != nil && res.StatusCode == http.StatusNotModified {
  8478  		if res.Body != nil {
  8479  			res.Body.Close()
  8480  		}
  8481  		return nil, gensupport.WrapError(&googleapi.Error{
  8482  			Code:   res.StatusCode,
  8483  			Header: res.Header,
  8484  		})
  8485  	}
  8486  	if err != nil {
  8487  		return nil, err
  8488  	}
  8489  	defer googleapi.CloseBody(res)
  8490  	if err := googleapi.CheckResponse(res); err != nil {
  8491  		return nil, gensupport.WrapError(err)
  8492  	}
  8493  	ret := &GoogleCloudDatalabelingV1beta1FeedbackThread{
  8494  		ServerResponse: googleapi.ServerResponse{
  8495  			Header:         res.Header,
  8496  			HTTPStatusCode: res.StatusCode,
  8497  		},
  8498  	}
  8499  	target := &ret
  8500  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8501  		return nil, err
  8502  	}
  8503  	return ret, nil
  8504  }
  8505  
  8506  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall struct {
  8507  	s            *Service
  8508  	parent       string
  8509  	urlParams_   gensupport.URLParams
  8510  	ifNoneMatch_ string
  8511  	ctx_         context.Context
  8512  	header_      http.Header
  8513  }
  8514  
  8515  // List: List FeedbackThreads with pagination.
  8516  //
  8517  //   - parent: FeedbackThread resource parent. Format:
  8518  //     "projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8519  //     ataset_id}".
  8520  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8521  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8522  	c.parent = parent
  8523  	return c
  8524  }
  8525  
  8526  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  8527  // may return fewer results than requested. Default value is 100.
  8528  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8529  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8530  	return c
  8531  }
  8532  
  8533  // PageToken sets the optional parameter "pageToken": A token identifying a
  8534  // page of results for the server to return. Typically obtained by
  8535  // ListFeedbackThreads.next_page_token of the previous
  8536  // [DataLabelingService.ListFeedbackThreads] call. Return first page if empty.
  8537  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8538  	c.urlParams_.Set("pageToken", pageToken)
  8539  	return c
  8540  }
  8541  
  8542  // Fields allows partial responses to be retrieved. See
  8543  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8544  // details.
  8545  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8546  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8547  	return c
  8548  }
  8549  
  8550  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8551  // object's ETag matches the given value. This is useful for getting updates
  8552  // only after the object has changed since the last request.
  8553  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8554  	c.ifNoneMatch_ = entityTag
  8555  	return c
  8556  }
  8557  
  8558  // Context sets the context to be used in this call's Do method.
  8559  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
  8560  	c.ctx_ = ctx
  8561  	return c
  8562  }
  8563  
  8564  // Header returns a http.Header that can be modified by the caller to add
  8565  // headers to the request.
  8566  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Header() http.Header {
  8567  	if c.header_ == nil {
  8568  		c.header_ = make(http.Header)
  8569  	}
  8570  	return c.header_
  8571  }
  8572  
  8573  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) doRequest(alt string) (*http.Response, error) {
  8574  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8575  	if c.ifNoneMatch_ != "" {
  8576  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8577  	}
  8578  	var body io.Reader = nil
  8579  	c.urlParams_.Set("alt", alt)
  8580  	c.urlParams_.Set("prettyPrint", "false")
  8581  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackThreads")
  8582  	urls += "?" + c.urlParams_.Encode()
  8583  	req, err := http.NewRequest("GET", urls, body)
  8584  	if err != nil {
  8585  		return nil, err
  8586  	}
  8587  	req.Header = reqHeaders
  8588  	googleapi.Expand(req.URL, map[string]string{
  8589  		"parent": c.parent,
  8590  	})
  8591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8592  }
  8593  
  8594  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.list" call.
  8595  // Any non-2xx status code is an error. Response headers are in either
  8596  // *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse.ServerResponse.Hea
  8597  // der or (if a response was returned at all) in
  8598  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8599  // whether the returned error was because http.StatusNotModified was returned.
  8600  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse, error) {
  8601  	gensupport.SetOptions(c.urlParams_, opts...)
  8602  	res, err := c.doRequest("json")
  8603  	if res != nil && res.StatusCode == http.StatusNotModified {
  8604  		if res.Body != nil {
  8605  			res.Body.Close()
  8606  		}
  8607  		return nil, gensupport.WrapError(&googleapi.Error{
  8608  			Code:   res.StatusCode,
  8609  			Header: res.Header,
  8610  		})
  8611  	}
  8612  	if err != nil {
  8613  		return nil, err
  8614  	}
  8615  	defer googleapi.CloseBody(res)
  8616  	if err := googleapi.CheckResponse(res); err != nil {
  8617  		return nil, gensupport.WrapError(err)
  8618  	}
  8619  	ret := &GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse{
  8620  		ServerResponse: googleapi.ServerResponse{
  8621  			Header:         res.Header,
  8622  			HTTPStatusCode: res.StatusCode,
  8623  		},
  8624  	}
  8625  	target := &ret
  8626  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8627  		return nil, err
  8628  	}
  8629  	return ret, nil
  8630  }
  8631  
  8632  // Pages invokes f for each page of results.
  8633  // A non-nil error returned from f will halt the iteration.
  8634  // The provided context supersedes any context provided to the Context method.
  8635  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) error) error {
  8636  	c.ctx_ = ctx
  8637  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8638  	for {
  8639  		x, err := c.Do()
  8640  		if err != nil {
  8641  			return err
  8642  		}
  8643  		if err := f(x); err != nil {
  8644  			return err
  8645  		}
  8646  		if x.NextPageToken == "" {
  8647  			return nil
  8648  		}
  8649  		c.PageToken(x.NextPageToken)
  8650  	}
  8651  }
  8652  
  8653  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall struct {
  8654  	s                                             *Service
  8655  	parent                                        string
  8656  	googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage
  8657  	urlParams_                                    gensupport.URLParams
  8658  	ctx_                                          context.Context
  8659  	header_                                       http.Header
  8660  }
  8661  
  8662  // Create: Create a FeedbackMessage object.
  8663  //
  8664  //   - parent: FeedbackMessage resource parent, format:
  8665  //     projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_da
  8666  //     taset_id}/feedbackThreads/{feedback_thread_id}.
  8667  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Create(parent string, googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
  8668  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8669  	c.parent = parent
  8670  	c.googleclouddatalabelingv1beta1feedbackmessage = googleclouddatalabelingv1beta1feedbackmessage
  8671  	return c
  8672  }
  8673  
  8674  // Fields allows partial responses to be retrieved. See
  8675  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8676  // details.
  8677  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
  8678  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8679  	return c
  8680  }
  8681  
  8682  // Context sets the context to be used in this call's Do method.
  8683  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
  8684  	c.ctx_ = ctx
  8685  	return c
  8686  }
  8687  
  8688  // Header returns a http.Header that can be modified by the caller to add
  8689  // headers to the request.
  8690  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Header() http.Header {
  8691  	if c.header_ == nil {
  8692  		c.header_ = make(http.Header)
  8693  	}
  8694  	return c.header_
  8695  }
  8696  
  8697  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
  8698  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8699  	var body io.Reader = nil
  8700  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1feedbackmessage)
  8701  	if err != nil {
  8702  		return nil, err
  8703  	}
  8704  	c.urlParams_.Set("alt", alt)
  8705  	c.urlParams_.Set("prettyPrint", "false")
  8706  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages")
  8707  	urls += "?" + c.urlParams_.Encode()
  8708  	req, err := http.NewRequest("POST", urls, body)
  8709  	if err != nil {
  8710  		return nil, err
  8711  	}
  8712  	req.Header = reqHeaders
  8713  	googleapi.Expand(req.URL, map[string]string{
  8714  		"parent": c.parent,
  8715  	})
  8716  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8717  }
  8718  
  8719  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.create" call.
  8720  // Any non-2xx status code is an error. Response headers are in either
  8721  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  8722  // returned at all) in error.(*googleapi.Error).Header. Use
  8723  // googleapi.IsNotModified to check whether the returned error was because
  8724  // http.StatusNotModified was returned.
  8725  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  8726  	gensupport.SetOptions(c.urlParams_, opts...)
  8727  	res, err := c.doRequest("json")
  8728  	if res != nil && res.StatusCode == http.StatusNotModified {
  8729  		if res.Body != nil {
  8730  			res.Body.Close()
  8731  		}
  8732  		return nil, gensupport.WrapError(&googleapi.Error{
  8733  			Code:   res.StatusCode,
  8734  			Header: res.Header,
  8735  		})
  8736  	}
  8737  	if err != nil {
  8738  		return nil, err
  8739  	}
  8740  	defer googleapi.CloseBody(res)
  8741  	if err := googleapi.CheckResponse(res); err != nil {
  8742  		return nil, gensupport.WrapError(err)
  8743  	}
  8744  	ret := &GoogleLongrunningOperation{
  8745  		ServerResponse: googleapi.ServerResponse{
  8746  			Header:         res.Header,
  8747  			HTTPStatusCode: res.StatusCode,
  8748  		},
  8749  	}
  8750  	target := &ret
  8751  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8752  		return nil, err
  8753  	}
  8754  	return ret, nil
  8755  }
  8756  
  8757  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall struct {
  8758  	s          *Service
  8759  	name       string
  8760  	urlParams_ gensupport.URLParams
  8761  	ctx_       context.Context
  8762  	header_    http.Header
  8763  }
  8764  
  8765  // Delete: Delete a FeedbackMessage.
  8766  //
  8767  //   - name: Name of the FeedbackMessage that is going to be deleted. Format:
  8768  //     'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8769  //     ataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_
  8770  //     message_id}'.
  8771  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
  8772  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8773  	c.name = name
  8774  	return c
  8775  }
  8776  
  8777  // Fields allows partial responses to be retrieved. See
  8778  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8779  // details.
  8780  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
  8781  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8782  	return c
  8783  }
  8784  
  8785  // Context sets the context to be used in this call's Do method.
  8786  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
  8787  	c.ctx_ = ctx
  8788  	return c
  8789  }
  8790  
  8791  // Header returns a http.Header that can be modified by the caller to add
  8792  // headers to the request.
  8793  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Header() http.Header {
  8794  	if c.header_ == nil {
  8795  		c.header_ = make(http.Header)
  8796  	}
  8797  	return c.header_
  8798  }
  8799  
  8800  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
  8801  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8802  	var body io.Reader = nil
  8803  	c.urlParams_.Set("alt", alt)
  8804  	c.urlParams_.Set("prettyPrint", "false")
  8805  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8806  	urls += "?" + c.urlParams_.Encode()
  8807  	req, err := http.NewRequest("DELETE", urls, body)
  8808  	if err != nil {
  8809  		return nil, err
  8810  	}
  8811  	req.Header = reqHeaders
  8812  	googleapi.Expand(req.URL, map[string]string{
  8813  		"name": c.name,
  8814  	})
  8815  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8816  }
  8817  
  8818  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.delete" call.
  8819  // Any non-2xx status code is an error. Response headers are in either
  8820  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
  8821  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8822  // check whether the returned error was because http.StatusNotModified was
  8823  // returned.
  8824  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
  8825  	gensupport.SetOptions(c.urlParams_, opts...)
  8826  	res, err := c.doRequest("json")
  8827  	if res != nil && res.StatusCode == http.StatusNotModified {
  8828  		if res.Body != nil {
  8829  			res.Body.Close()
  8830  		}
  8831  		return nil, gensupport.WrapError(&googleapi.Error{
  8832  			Code:   res.StatusCode,
  8833  			Header: res.Header,
  8834  		})
  8835  	}
  8836  	if err != nil {
  8837  		return nil, err
  8838  	}
  8839  	defer googleapi.CloseBody(res)
  8840  	if err := googleapi.CheckResponse(res); err != nil {
  8841  		return nil, gensupport.WrapError(err)
  8842  	}
  8843  	ret := &GoogleProtobufEmpty{
  8844  		ServerResponse: googleapi.ServerResponse{
  8845  			Header:         res.Header,
  8846  			HTTPStatusCode: res.StatusCode,
  8847  		},
  8848  	}
  8849  	target := &ret
  8850  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8851  		return nil, err
  8852  	}
  8853  	return ret, nil
  8854  }
  8855  
  8856  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall struct {
  8857  	s            *Service
  8858  	name         string
  8859  	urlParams_   gensupport.URLParams
  8860  	ifNoneMatch_ string
  8861  	ctx_         context.Context
  8862  	header_      http.Header
  8863  }
  8864  
  8865  // Get: Get a FeedbackMessage object.
  8866  //
  8867  //   - name: Name of the feedback. Format:
  8868  //     'projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8869  //     ataset_id}/feedbackThreads/{feedback_thread_id}/feedbackMessages/{feedback_
  8870  //     message_id}'.
  8871  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
  8872  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8873  	c.name = name
  8874  	return c
  8875  }
  8876  
  8877  // Fields allows partial responses to be retrieved. See
  8878  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8879  // details.
  8880  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
  8881  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8882  	return c
  8883  }
  8884  
  8885  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8886  // object's ETag matches the given value. This is useful for getting updates
  8887  // only after the object has changed since the last request.
  8888  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
  8889  	c.ifNoneMatch_ = entityTag
  8890  	return c
  8891  }
  8892  
  8893  // Context sets the context to be used in this call's Do method.
  8894  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
  8895  	c.ctx_ = ctx
  8896  	return c
  8897  }
  8898  
  8899  // Header returns a http.Header that can be modified by the caller to add
  8900  // headers to the request.
  8901  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Header() http.Header {
  8902  	if c.header_ == nil {
  8903  		c.header_ = make(http.Header)
  8904  	}
  8905  	return c.header_
  8906  }
  8907  
  8908  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) doRequest(alt string) (*http.Response, error) {
  8909  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8910  	if c.ifNoneMatch_ != "" {
  8911  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8912  	}
  8913  	var body io.Reader = nil
  8914  	c.urlParams_.Set("alt", alt)
  8915  	c.urlParams_.Set("prettyPrint", "false")
  8916  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  8917  	urls += "?" + c.urlParams_.Encode()
  8918  	req, err := http.NewRequest("GET", urls, body)
  8919  	if err != nil {
  8920  		return nil, err
  8921  	}
  8922  	req.Header = reqHeaders
  8923  	googleapi.Expand(req.URL, map[string]string{
  8924  		"name": c.name,
  8925  	})
  8926  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8927  }
  8928  
  8929  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.get" call.
  8930  // Any non-2xx status code is an error. Response headers are in either
  8931  // *GoogleCloudDatalabelingV1beta1FeedbackMessage.ServerResponse.Header or (if
  8932  // a response was returned at all) in error.(*googleapi.Error).Header. Use
  8933  // googleapi.IsNotModified to check whether the returned error was because
  8934  // http.StatusNotModified was returned.
  8935  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackMessage, error) {
  8936  	gensupport.SetOptions(c.urlParams_, opts...)
  8937  	res, err := c.doRequest("json")
  8938  	if res != nil && res.StatusCode == http.StatusNotModified {
  8939  		if res.Body != nil {
  8940  			res.Body.Close()
  8941  		}
  8942  		return nil, gensupport.WrapError(&googleapi.Error{
  8943  			Code:   res.StatusCode,
  8944  			Header: res.Header,
  8945  		})
  8946  	}
  8947  	if err != nil {
  8948  		return nil, err
  8949  	}
  8950  	defer googleapi.CloseBody(res)
  8951  	if err := googleapi.CheckResponse(res); err != nil {
  8952  		return nil, gensupport.WrapError(err)
  8953  	}
  8954  	ret := &GoogleCloudDatalabelingV1beta1FeedbackMessage{
  8955  		ServerResponse: googleapi.ServerResponse{
  8956  			Header:         res.Header,
  8957  			HTTPStatusCode: res.StatusCode,
  8958  		},
  8959  	}
  8960  	target := &ret
  8961  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8962  		return nil, err
  8963  	}
  8964  	return ret, nil
  8965  }
  8966  
  8967  type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall struct {
  8968  	s            *Service
  8969  	parent       string
  8970  	urlParams_   gensupport.URLParams
  8971  	ifNoneMatch_ string
  8972  	ctx_         context.Context
  8973  	header_      http.Header
  8974  }
  8975  
  8976  // List: List FeedbackMessages with pagination.
  8977  //
  8978  //   - parent: FeedbackMessage resource parent. Format:
  8979  //     "projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_d
  8980  //     ataset_id}/feedbackThreads/{feedback_thread_id}".
  8981  func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  8982  	c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8983  	c.parent = parent
  8984  	return c
  8985  }
  8986  
  8987  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  8988  // may return fewer results than requested. Default value is 100.
  8989  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  8990  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8991  	return c
  8992  }
  8993  
  8994  // PageToken sets the optional parameter "pageToken": A token identifying a
  8995  // page of results for the server to return. Typically obtained by
  8996  // ListFeedbackMessages.next_page_token of the previous
  8997  // [DataLabelingService.ListFeedbackMessages] call. Return first page if empty.
  8998  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  8999  	c.urlParams_.Set("pageToken", pageToken)
  9000  	return c
  9001  }
  9002  
  9003  // Fields allows partial responses to be retrieved. See
  9004  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9005  // details.
  9006  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  9007  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9008  	return c
  9009  }
  9010  
  9011  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9012  // object's ETag matches the given value. This is useful for getting updates
  9013  // only after the object has changed since the last request.
  9014  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  9015  	c.ifNoneMatch_ = entityTag
  9016  	return c
  9017  }
  9018  
  9019  // Context sets the context to be used in this call's Do method.
  9020  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
  9021  	c.ctx_ = ctx
  9022  	return c
  9023  }
  9024  
  9025  // Header returns a http.Header that can be modified by the caller to add
  9026  // headers to the request.
  9027  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Header() http.Header {
  9028  	if c.header_ == nil {
  9029  		c.header_ = make(http.Header)
  9030  	}
  9031  	return c.header_
  9032  }
  9033  
  9034  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) doRequest(alt string) (*http.Response, error) {
  9035  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9036  	if c.ifNoneMatch_ != "" {
  9037  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9038  	}
  9039  	var body io.Reader = nil
  9040  	c.urlParams_.Set("alt", alt)
  9041  	c.urlParams_.Set("prettyPrint", "false")
  9042  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages")
  9043  	urls += "?" + c.urlParams_.Encode()
  9044  	req, err := http.NewRequest("GET", urls, body)
  9045  	if err != nil {
  9046  		return nil, err
  9047  	}
  9048  	req.Header = reqHeaders
  9049  	googleapi.Expand(req.URL, map[string]string{
  9050  		"parent": c.parent,
  9051  	})
  9052  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9053  }
  9054  
  9055  // Do executes the "datalabeling.projects.datasets.annotatedDatasets.feedbackThreads.feedbackMessages.list" call.
  9056  // Any non-2xx status code is an error. Response headers are in either
  9057  // *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse.ServerResponse.He
  9058  // ader or (if a response was returned at all) in
  9059  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9060  // whether the returned error was because http.StatusNotModified was returned.
  9061  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse, error) {
  9062  	gensupport.SetOptions(c.urlParams_, opts...)
  9063  	res, err := c.doRequest("json")
  9064  	if res != nil && res.StatusCode == http.StatusNotModified {
  9065  		if res.Body != nil {
  9066  			res.Body.Close()
  9067  		}
  9068  		return nil, gensupport.WrapError(&googleapi.Error{
  9069  			Code:   res.StatusCode,
  9070  			Header: res.Header,
  9071  		})
  9072  	}
  9073  	if err != nil {
  9074  		return nil, err
  9075  	}
  9076  	defer googleapi.CloseBody(res)
  9077  	if err := googleapi.CheckResponse(res); err != nil {
  9078  		return nil, gensupport.WrapError(err)
  9079  	}
  9080  	ret := &GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse{
  9081  		ServerResponse: googleapi.ServerResponse{
  9082  			Header:         res.Header,
  9083  			HTTPStatusCode: res.StatusCode,
  9084  		},
  9085  	}
  9086  	target := &ret
  9087  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9088  		return nil, err
  9089  	}
  9090  	return ret, nil
  9091  }
  9092  
  9093  // Pages invokes f for each page of results.
  9094  // A non-nil error returned from f will halt the iteration.
  9095  // The provided context supersedes any context provided to the Context method.
  9096  func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) error) error {
  9097  	c.ctx_ = ctx
  9098  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9099  	for {
  9100  		x, err := c.Do()
  9101  		if err != nil {
  9102  			return err
  9103  		}
  9104  		if err := f(x); err != nil {
  9105  			return err
  9106  		}
  9107  		if x.NextPageToken == "" {
  9108  			return nil
  9109  		}
  9110  		c.PageToken(x.NextPageToken)
  9111  	}
  9112  }
  9113  
  9114  type ProjectsDatasetsDataItemsGetCall struct {
  9115  	s            *Service
  9116  	name         string
  9117  	urlParams_   gensupport.URLParams
  9118  	ifNoneMatch_ string
  9119  	ctx_         context.Context
  9120  	header_      http.Header
  9121  }
  9122  
  9123  // Get: Gets a data item in a dataset by resource name. This API can be called
  9124  // after data are imported into dataset.
  9125  //
  9126  //   - name: The name of the data item to get, format:
  9127  //     projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}.
  9128  func (r *ProjectsDatasetsDataItemsService) Get(name string) *ProjectsDatasetsDataItemsGetCall {
  9129  	c := &ProjectsDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9130  	c.name = name
  9131  	return c
  9132  }
  9133  
  9134  // Fields allows partial responses to be retrieved. See
  9135  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9136  // details.
  9137  func (c *ProjectsDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsGetCall {
  9138  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9139  	return c
  9140  }
  9141  
  9142  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9143  // object's ETag matches the given value. This is useful for getting updates
  9144  // only after the object has changed since the last request.
  9145  func (c *ProjectsDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsGetCall {
  9146  	c.ifNoneMatch_ = entityTag
  9147  	return c
  9148  }
  9149  
  9150  // Context sets the context to be used in this call's Do method.
  9151  func (c *ProjectsDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsGetCall {
  9152  	c.ctx_ = ctx
  9153  	return c
  9154  }
  9155  
  9156  // Header returns a http.Header that can be modified by the caller to add
  9157  // headers to the request.
  9158  func (c *ProjectsDatasetsDataItemsGetCall) Header() http.Header {
  9159  	if c.header_ == nil {
  9160  		c.header_ = make(http.Header)
  9161  	}
  9162  	return c.header_
  9163  }
  9164  
  9165  func (c *ProjectsDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) {
  9166  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9167  	if c.ifNoneMatch_ != "" {
  9168  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9169  	}
  9170  	var body io.Reader = nil
  9171  	c.urlParams_.Set("alt", alt)
  9172  	c.urlParams_.Set("prettyPrint", "false")
  9173  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  9174  	urls += "?" + c.urlParams_.Encode()
  9175  	req, err := http.NewRequest("GET", urls, body)
  9176  	if err != nil {
  9177  		return nil, err
  9178  	}
  9179  	req.Header = reqHeaders
  9180  	googleapi.Expand(req.URL, map[string]string{
  9181  		"name": c.name,
  9182  	})
  9183  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9184  }
  9185  
  9186  // Do executes the "datalabeling.projects.datasets.dataItems.get" call.
  9187  // Any non-2xx status code is an error. Response headers are in either
  9188  // *GoogleCloudDatalabelingV1beta1DataItem.ServerResponse.Header or (if a
  9189  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9190  // googleapi.IsNotModified to check whether the returned error was because
  9191  // http.StatusNotModified was returned.
  9192  func (c *ProjectsDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) {
  9193  	gensupport.SetOptions(c.urlParams_, opts...)
  9194  	res, err := c.doRequest("json")
  9195  	if res != nil && res.StatusCode == http.StatusNotModified {
  9196  		if res.Body != nil {
  9197  			res.Body.Close()
  9198  		}
  9199  		return nil, gensupport.WrapError(&googleapi.Error{
  9200  			Code:   res.StatusCode,
  9201  			Header: res.Header,
  9202  		})
  9203  	}
  9204  	if err != nil {
  9205  		return nil, err
  9206  	}
  9207  	defer googleapi.CloseBody(res)
  9208  	if err := googleapi.CheckResponse(res); err != nil {
  9209  		return nil, gensupport.WrapError(err)
  9210  	}
  9211  	ret := &GoogleCloudDatalabelingV1beta1DataItem{
  9212  		ServerResponse: googleapi.ServerResponse{
  9213  			Header:         res.Header,
  9214  			HTTPStatusCode: res.StatusCode,
  9215  		},
  9216  	}
  9217  	target := &ret
  9218  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9219  		return nil, err
  9220  	}
  9221  	return ret, nil
  9222  }
  9223  
  9224  type ProjectsDatasetsDataItemsListCall struct {
  9225  	s            *Service
  9226  	parent       string
  9227  	urlParams_   gensupport.URLParams
  9228  	ifNoneMatch_ string
  9229  	ctx_         context.Context
  9230  	header_      http.Header
  9231  }
  9232  
  9233  // List: Lists data items in a dataset. This API can be called after data are
  9234  // imported into dataset. Pagination is supported.
  9235  //
  9236  //   - parent: Name of the dataset to list data items, format:
  9237  //     projects/{project_id}/datasets/{dataset_id}.
  9238  func (r *ProjectsDatasetsDataItemsService) List(parent string) *ProjectsDatasetsDataItemsListCall {
  9239  	c := &ProjectsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9240  	c.parent = parent
  9241  	return c
  9242  }
  9243  
  9244  // Filter sets the optional parameter "filter": Filter is not supported at this
  9245  // moment.
  9246  func (c *ProjectsDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsDataItemsListCall {
  9247  	c.urlParams_.Set("filter", filter)
  9248  	return c
  9249  }
  9250  
  9251  // PageSize sets the optional parameter "pageSize": Requested page size. Server
  9252  // may return fewer results than requested. Default value is 100.
  9253  func (c *ProjectsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsDataItemsListCall {
  9254  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9255  	return c
  9256  }
  9257  
  9258  // PageToken sets the optional parameter "pageToken": A token identifying a
  9259  // page of results for the server to return. Typically obtained by
  9260  // ListDataItemsResponse.next_page_token of the previous
  9261  // [DataLabelingService.ListDataItems] call. Return first page if empty.
  9262  func (c *ProjectsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsDataItemsListCall {
  9263  	c.urlParams_.Set("pageToken", pageToken)
  9264  	return c
  9265  }
  9266  
  9267  // Fields allows partial responses to be retrieved. See
  9268  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9269  // details.
  9270  func (c *ProjectsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsListCall {
  9271  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9272  	return c
  9273  }
  9274  
  9275  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9276  // object's ETag matches the given value. This is useful for getting updates
  9277  // only after the object has changed since the last request.
  9278  func (c *ProjectsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsListCall {
  9279  	c.ifNoneMatch_ = entityTag
  9280  	return c
  9281  }
  9282  
  9283  // Context sets the context to be used in this call's Do method.
  9284  func (c *ProjectsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsListCall {
  9285  	c.ctx_ = ctx
  9286  	return c
  9287  }
  9288  
  9289  // Header returns a http.Header that can be modified by the caller to add
  9290  // headers to the request.
  9291  func (c *ProjectsDatasetsDataItemsListCall) Header() http.Header {
  9292  	if c.header_ == nil {
  9293  		c.header_ = make(http.Header)
  9294  	}
  9295  	return c.header_
  9296  }
  9297  
  9298  func (c *ProjectsDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) {
  9299  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9300  	if c.ifNoneMatch_ != "" {
  9301  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9302  	}
  9303  	var body io.Reader = nil
  9304  	c.urlParams_.Set("alt", alt)
  9305  	c.urlParams_.Set("prettyPrint", "false")
  9306  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems")
  9307  	urls += "?" + c.urlParams_.Encode()
  9308  	req, err := http.NewRequest("GET", urls, body)
  9309  	if err != nil {
  9310  		return nil, err
  9311  	}
  9312  	req.Header = reqHeaders
  9313  	googleapi.Expand(req.URL, map[string]string{
  9314  		"parent": c.parent,
  9315  	})
  9316  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9317  }
  9318  
  9319  // Do executes the "datalabeling.projects.datasets.dataItems.list" call.
  9320  // Any non-2xx status code is an error. Response headers are in either
  9321  // *GoogleCloudDatalabelingV1beta1ListDataItemsResponse.ServerResponse.Header
  9322  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
  9323  // Use googleapi.IsNotModified to check whether the returned error was because
  9324  // http.StatusNotModified was returned.
  9325  func (c *ProjectsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) {
  9326  	gensupport.SetOptions(c.urlParams_, opts...)
  9327  	res, err := c.doRequest("json")
  9328  	if res != nil && res.StatusCode == http.StatusNotModified {
  9329  		if res.Body != nil {
  9330  			res.Body.Close()
  9331  		}
  9332  		return nil, gensupport.WrapError(&googleapi.Error{
  9333  			Code:   res.StatusCode,
  9334  			Header: res.Header,
  9335  		})
  9336  	}
  9337  	if err != nil {
  9338  		return nil, err
  9339  	}
  9340  	defer googleapi.CloseBody(res)
  9341  	if err := googleapi.CheckResponse(res); err != nil {
  9342  		return nil, gensupport.WrapError(err)
  9343  	}
  9344  	ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{
  9345  		ServerResponse: googleapi.ServerResponse{
  9346  			Header:         res.Header,
  9347  			HTTPStatusCode: res.StatusCode,
  9348  		},
  9349  	}
  9350  	target := &ret
  9351  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9352  		return nil, err
  9353  	}
  9354  	return ret, nil
  9355  }
  9356  
  9357  // Pages invokes f for each page of results.
  9358  // A non-nil error returned from f will halt the iteration.
  9359  // The provided context supersedes any context provided to the Context method.
  9360  func (c *ProjectsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error {
  9361  	c.ctx_ = ctx
  9362  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9363  	for {
  9364  		x, err := c.Do()
  9365  		if err != nil {
  9366  			return err
  9367  		}
  9368  		if err := f(x); err != nil {
  9369  			return err
  9370  		}
  9371  		if x.NextPageToken == "" {
  9372  			return nil
  9373  		}
  9374  		c.PageToken(x.NextPageToken)
  9375  	}
  9376  }
  9377  
  9378  type ProjectsDatasetsEvaluationsGetCall struct {
  9379  	s            *Service
  9380  	name         string
  9381  	urlParams_   gensupport.URLParams
  9382  	ifNoneMatch_ string
  9383  	ctx_         context.Context
  9384  	header_      http.Header
  9385  }
  9386  
  9387  // Get: Gets an evaluation by resource name (to search, use
  9388  // projects.evaluations.search).
  9389  //
  9390  //   - name: Name of the evaluation. Format: "projects/{project_id}/datasets/
  9391  //     {dataset_id}/evaluations/{evaluation_id}'.
  9392  func (r *ProjectsDatasetsEvaluationsService) Get(name string) *ProjectsDatasetsEvaluationsGetCall {
  9393  	c := &ProjectsDatasetsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9394  	c.name = name
  9395  	return c
  9396  }
  9397  
  9398  // Fields allows partial responses to be retrieved. See
  9399  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9400  // details.
  9401  func (c *ProjectsDatasetsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsGetCall {
  9402  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9403  	return c
  9404  }
  9405  
  9406  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9407  // object's ETag matches the given value. This is useful for getting updates
  9408  // only after the object has changed since the last request.
  9409  func (c *ProjectsDatasetsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsEvaluationsGetCall {
  9410  	c.ifNoneMatch_ = entityTag
  9411  	return c
  9412  }
  9413  
  9414  // Context sets the context to be used in this call's Do method.
  9415  func (c *ProjectsDatasetsEvaluationsGetCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsGetCall {
  9416  	c.ctx_ = ctx
  9417  	return c
  9418  }
  9419  
  9420  // Header returns a http.Header that can be modified by the caller to add
  9421  // headers to the request.
  9422  func (c *ProjectsDatasetsEvaluationsGetCall) Header() http.Header {
  9423  	if c.header_ == nil {
  9424  		c.header_ = make(http.Header)
  9425  	}
  9426  	return c.header_
  9427  }
  9428  
  9429  func (c *ProjectsDatasetsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
  9430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9431  	if c.ifNoneMatch_ != "" {
  9432  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9433  	}
  9434  	var body io.Reader = nil
  9435  	c.urlParams_.Set("alt", alt)
  9436  	c.urlParams_.Set("prettyPrint", "false")
  9437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
  9438  	urls += "?" + c.urlParams_.Encode()
  9439  	req, err := http.NewRequest("GET", urls, body)
  9440  	if err != nil {
  9441  		return nil, err
  9442  	}
  9443  	req.Header = reqHeaders
  9444  	googleapi.Expand(req.URL, map[string]string{
  9445  		"name": c.name,
  9446  	})
  9447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9448  }
  9449  
  9450  // Do executes the "datalabeling.projects.datasets.evaluations.get" call.
  9451  // Any non-2xx status code is an error. Response headers are in either
  9452  // *GoogleCloudDatalabelingV1beta1Evaluation.ServerResponse.Header or (if a
  9453  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9454  // googleapi.IsNotModified to check whether the returned error was because
  9455  // http.StatusNotModified was returned.
  9456  func (c *ProjectsDatasetsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Evaluation, error) {
  9457  	gensupport.SetOptions(c.urlParams_, opts...)
  9458  	res, err := c.doRequest("json")
  9459  	if res != nil && res.StatusCode == http.StatusNotModified {
  9460  		if res.Body != nil {
  9461  			res.Body.Close()
  9462  		}
  9463  		return nil, gensupport.WrapError(&googleapi.Error{
  9464  			Code:   res.StatusCode,
  9465  			Header: res.Header,
  9466  		})
  9467  	}
  9468  	if err != nil {
  9469  		return nil, err
  9470  	}
  9471  	defer googleapi.CloseBody(res)
  9472  	if err := googleapi.CheckResponse(res); err != nil {
  9473  		return nil, gensupport.WrapError(err)
  9474  	}
  9475  	ret := &GoogleCloudDatalabelingV1beta1Evaluation{
  9476  		ServerResponse: googleapi.ServerResponse{
  9477  			Header:         res.Header,
  9478  			HTTPStatusCode: res.StatusCode,
  9479  		},
  9480  	}
  9481  	target := &ret
  9482  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9483  		return nil, err
  9484  	}
  9485  	return ret, nil
  9486  }
  9487  
  9488  type ProjectsDatasetsEvaluationsExampleComparisonsSearchCall struct {
  9489  	s                                                             *Service
  9490  	parent                                                        string
  9491  	googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest
  9492  	urlParams_                                                    gensupport.URLParams
  9493  	ctx_                                                          context.Context
  9494  	header_                                                       http.Header
  9495  }
  9496  
  9497  // Search: Searches example comparisons from an evaluation. The return format
  9498  // is a list of example comparisons that show ground truth and prediction(s)
  9499  // for a single input. Search by providing an evaluation ID.
  9500  //
  9501  //   - parent: Name of the Evaluation resource to search for example comparisons
  9502  //     from. Format: "projects/{project_id}/datasets/{dataset_id}/evaluations/
  9503  //     {evaluation_id}".
  9504  func (r *ProjectsDatasetsEvaluationsExampleComparisonsService) Search(parent string, googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
  9505  	c := &ProjectsDatasetsEvaluationsExampleComparisonsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9506  	c.parent = parent
  9507  	c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest = googleclouddatalabelingv1beta1searchexamplecomparisonsrequest
  9508  	return c
  9509  }
  9510  
  9511  // Fields allows partial responses to be retrieved. See
  9512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9513  // details.
  9514  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
  9515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9516  	return c
  9517  }
  9518  
  9519  // Context sets the context to be used in this call's Do method.
  9520  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
  9521  	c.ctx_ = ctx
  9522  	return c
  9523  }
  9524  
  9525  // Header returns a http.Header that can be modified by the caller to add
  9526  // headers to the request.
  9527  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Header() http.Header {
  9528  	if c.header_ == nil {
  9529  		c.header_ = make(http.Header)
  9530  	}
  9531  	return c.header_
  9532  }
  9533  
  9534  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) doRequest(alt string) (*http.Response, error) {
  9535  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9536  	var body io.Reader = nil
  9537  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest)
  9538  	if err != nil {
  9539  		return nil, err
  9540  	}
  9541  	c.urlParams_.Set("alt", alt)
  9542  	c.urlParams_.Set("prettyPrint", "false")
  9543  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/exampleComparisons:search")
  9544  	urls += "?" + c.urlParams_.Encode()
  9545  	req, err := http.NewRequest("POST", urls, body)
  9546  	if err != nil {
  9547  		return nil, err
  9548  	}
  9549  	req.Header = reqHeaders
  9550  	googleapi.Expand(req.URL, map[string]string{
  9551  		"parent": c.parent,
  9552  	})
  9553  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9554  }
  9555  
  9556  // Do executes the "datalabeling.projects.datasets.evaluations.exampleComparisons.search" call.
  9557  // Any non-2xx status code is an error. Response headers are in either
  9558  // *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse.ServerRespons
  9559  // e.Header or (if a response was returned at all) in
  9560  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9561  // whether the returned error was because http.StatusNotModified was returned.
  9562  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse, error) {
  9563  	gensupport.SetOptions(c.urlParams_, opts...)
  9564  	res, err := c.doRequest("json")
  9565  	if res != nil && res.StatusCode == http.StatusNotModified {
  9566  		if res.Body != nil {
  9567  			res.Body.Close()
  9568  		}
  9569  		return nil, gensupport.WrapError(&googleapi.Error{
  9570  			Code:   res.StatusCode,
  9571  			Header: res.Header,
  9572  		})
  9573  	}
  9574  	if err != nil {
  9575  		return nil, err
  9576  	}
  9577  	defer googleapi.CloseBody(res)
  9578  	if err := googleapi.CheckResponse(res); err != nil {
  9579  		return nil, gensupport.WrapError(err)
  9580  	}
  9581  	ret := &GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse{
  9582  		ServerResponse: googleapi.ServerResponse{
  9583  			Header:         res.Header,
  9584  			HTTPStatusCode: res.StatusCode,
  9585  		},
  9586  	}
  9587  	target := &ret
  9588  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9589  		return nil, err
  9590  	}
  9591  	return ret, nil
  9592  }
  9593  
  9594  // Pages invokes f for each page of results.
  9595  // A non-nil error returned from f will halt the iteration.
  9596  // The provided context supersedes any context provided to the Context method.
  9597  func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) error) error {
  9598  	c.ctx_ = ctx
  9599  	defer func(pt string) { c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = pt }(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken)
  9600  	for {
  9601  		x, err := c.Do()
  9602  		if err != nil {
  9603  			return err
  9604  		}
  9605  		if err := f(x); err != nil {
  9606  			return err
  9607  		}
  9608  		if x.NextPageToken == "" {
  9609  			return nil
  9610  		}
  9611  		c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = x.NextPageToken
  9612  	}
  9613  }
  9614  
  9615  type ProjectsDatasetsImageLabelCall struct {
  9616  	s                                               *Service
  9617  	parent                                          string
  9618  	googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest
  9619  	urlParams_                                      gensupport.URLParams
  9620  	ctx_                                            context.Context
  9621  	header_                                         http.Header
  9622  }
  9623  
  9624  // Label: Starts a labeling task for image. The type of image labeling task is
  9625  // configured by feature in the request.
  9626  //
  9627  //   - parent: Name of the dataset to request labeling task, format:
  9628  //     projects/{project_id}/datasets/{dataset_id}.
  9629  func (r *ProjectsDatasetsImageService) Label(parent string, googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest) *ProjectsDatasetsImageLabelCall {
  9630  	c := &ProjectsDatasetsImageLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9631  	c.parent = parent
  9632  	c.googleclouddatalabelingv1beta1labelimagerequest = googleclouddatalabelingv1beta1labelimagerequest
  9633  	return c
  9634  }
  9635  
  9636  // Fields allows partial responses to be retrieved. See
  9637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9638  // details.
  9639  func (c *ProjectsDatasetsImageLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImageLabelCall {
  9640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9641  	return c
  9642  }
  9643  
  9644  // Context sets the context to be used in this call's Do method.
  9645  func (c *ProjectsDatasetsImageLabelCall) Context(ctx context.Context) *ProjectsDatasetsImageLabelCall {
  9646  	c.ctx_ = ctx
  9647  	return c
  9648  }
  9649  
  9650  // Header returns a http.Header that can be modified by the caller to add
  9651  // headers to the request.
  9652  func (c *ProjectsDatasetsImageLabelCall) Header() http.Header {
  9653  	if c.header_ == nil {
  9654  		c.header_ = make(http.Header)
  9655  	}
  9656  	return c.header_
  9657  }
  9658  
  9659  func (c *ProjectsDatasetsImageLabelCall) doRequest(alt string) (*http.Response, error) {
  9660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9661  	var body io.Reader = nil
  9662  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelimagerequest)
  9663  	if err != nil {
  9664  		return nil, err
  9665  	}
  9666  	c.urlParams_.Set("alt", alt)
  9667  	c.urlParams_.Set("prettyPrint", "false")
  9668  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/image:label")
  9669  	urls += "?" + c.urlParams_.Encode()
  9670  	req, err := http.NewRequest("POST", urls, body)
  9671  	if err != nil {
  9672  		return nil, err
  9673  	}
  9674  	req.Header = reqHeaders
  9675  	googleapi.Expand(req.URL, map[string]string{
  9676  		"parent": c.parent,
  9677  	})
  9678  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9679  }
  9680  
  9681  // Do executes the "datalabeling.projects.datasets.image.label" call.
  9682  // Any non-2xx status code is an error. Response headers are in either
  9683  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9684  // returned at all) in error.(*googleapi.Error).Header. Use
  9685  // googleapi.IsNotModified to check whether the returned error was because
  9686  // http.StatusNotModified was returned.
  9687  func (c *ProjectsDatasetsImageLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9688  	gensupport.SetOptions(c.urlParams_, opts...)
  9689  	res, err := c.doRequest("json")
  9690  	if res != nil && res.StatusCode == http.StatusNotModified {
  9691  		if res.Body != nil {
  9692  			res.Body.Close()
  9693  		}
  9694  		return nil, gensupport.WrapError(&googleapi.Error{
  9695  			Code:   res.StatusCode,
  9696  			Header: res.Header,
  9697  		})
  9698  	}
  9699  	if err != nil {
  9700  		return nil, err
  9701  	}
  9702  	defer googleapi.CloseBody(res)
  9703  	if err := googleapi.CheckResponse(res); err != nil {
  9704  		return nil, gensupport.WrapError(err)
  9705  	}
  9706  	ret := &GoogleLongrunningOperation{
  9707  		ServerResponse: googleapi.ServerResponse{
  9708  			Header:         res.Header,
  9709  			HTTPStatusCode: res.StatusCode,
  9710  		},
  9711  	}
  9712  	target := &ret
  9713  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9714  		return nil, err
  9715  	}
  9716  	return ret, nil
  9717  }
  9718  
  9719  type ProjectsDatasetsTextLabelCall struct {
  9720  	s                                              *Service
  9721  	parent                                         string
  9722  	googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest
  9723  	urlParams_                                     gensupport.URLParams
  9724  	ctx_                                           context.Context
  9725  	header_                                        http.Header
  9726  }
  9727  
  9728  // Label: Starts a labeling task for text. The type of text labeling task is
  9729  // configured by feature in the request.
  9730  //
  9731  //   - parent: Name of the data set to request labeling task, format:
  9732  //     projects/{project_id}/datasets/{dataset_id}.
  9733  func (r *ProjectsDatasetsTextService) Label(parent string, googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest) *ProjectsDatasetsTextLabelCall {
  9734  	c := &ProjectsDatasetsTextLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9735  	c.parent = parent
  9736  	c.googleclouddatalabelingv1beta1labeltextrequest = googleclouddatalabelingv1beta1labeltextrequest
  9737  	return c
  9738  }
  9739  
  9740  // Fields allows partial responses to be retrieved. See
  9741  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9742  // details.
  9743  func (c *ProjectsDatasetsTextLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsTextLabelCall {
  9744  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9745  	return c
  9746  }
  9747  
  9748  // Context sets the context to be used in this call's Do method.
  9749  func (c *ProjectsDatasetsTextLabelCall) Context(ctx context.Context) *ProjectsDatasetsTextLabelCall {
  9750  	c.ctx_ = ctx
  9751  	return c
  9752  }
  9753  
  9754  // Header returns a http.Header that can be modified by the caller to add
  9755  // headers to the request.
  9756  func (c *ProjectsDatasetsTextLabelCall) Header() http.Header {
  9757  	if c.header_ == nil {
  9758  		c.header_ = make(http.Header)
  9759  	}
  9760  	return c.header_
  9761  }
  9762  
  9763  func (c *ProjectsDatasetsTextLabelCall) doRequest(alt string) (*http.Response, error) {
  9764  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9765  	var body io.Reader = nil
  9766  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labeltextrequest)
  9767  	if err != nil {
  9768  		return nil, err
  9769  	}
  9770  	c.urlParams_.Set("alt", alt)
  9771  	c.urlParams_.Set("prettyPrint", "false")
  9772  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/text:label")
  9773  	urls += "?" + c.urlParams_.Encode()
  9774  	req, err := http.NewRequest("POST", urls, body)
  9775  	if err != nil {
  9776  		return nil, err
  9777  	}
  9778  	req.Header = reqHeaders
  9779  	googleapi.Expand(req.URL, map[string]string{
  9780  		"parent": c.parent,
  9781  	})
  9782  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9783  }
  9784  
  9785  // Do executes the "datalabeling.projects.datasets.text.label" call.
  9786  // Any non-2xx status code is an error. Response headers are in either
  9787  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9788  // returned at all) in error.(*googleapi.Error).Header. Use
  9789  // googleapi.IsNotModified to check whether the returned error was because
  9790  // http.StatusNotModified was returned.
  9791  func (c *ProjectsDatasetsTextLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9792  	gensupport.SetOptions(c.urlParams_, opts...)
  9793  	res, err := c.doRequest("json")
  9794  	if res != nil && res.StatusCode == http.StatusNotModified {
  9795  		if res.Body != nil {
  9796  			res.Body.Close()
  9797  		}
  9798  		return nil, gensupport.WrapError(&googleapi.Error{
  9799  			Code:   res.StatusCode,
  9800  			Header: res.Header,
  9801  		})
  9802  	}
  9803  	if err != nil {
  9804  		return nil, err
  9805  	}
  9806  	defer googleapi.CloseBody(res)
  9807  	if err := googleapi.CheckResponse(res); err != nil {
  9808  		return nil, gensupport.WrapError(err)
  9809  	}
  9810  	ret := &GoogleLongrunningOperation{
  9811  		ServerResponse: googleapi.ServerResponse{
  9812  			Header:         res.Header,
  9813  			HTTPStatusCode: res.StatusCode,
  9814  		},
  9815  	}
  9816  	target := &ret
  9817  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9818  		return nil, err
  9819  	}
  9820  	return ret, nil
  9821  }
  9822  
  9823  type ProjectsDatasetsVideoLabelCall struct {
  9824  	s                                               *Service
  9825  	parent                                          string
  9826  	googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest
  9827  	urlParams_                                      gensupport.URLParams
  9828  	ctx_                                            context.Context
  9829  	header_                                         http.Header
  9830  }
  9831  
  9832  // Label: Starts a labeling task for video. The type of video labeling task is
  9833  // configured by feature in the request.
  9834  //
  9835  //   - parent: Name of the dataset to request labeling task, format:
  9836  //     projects/{project_id}/datasets/{dataset_id}.
  9837  func (r *ProjectsDatasetsVideoService) Label(parent string, googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest) *ProjectsDatasetsVideoLabelCall {
  9838  	c := &ProjectsDatasetsVideoLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9839  	c.parent = parent
  9840  	c.googleclouddatalabelingv1beta1labelvideorequest = googleclouddatalabelingv1beta1labelvideorequest
  9841  	return c
  9842  }
  9843  
  9844  // Fields allows partial responses to be retrieved. See
  9845  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9846  // details.
  9847  func (c *ProjectsDatasetsVideoLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsVideoLabelCall {
  9848  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9849  	return c
  9850  }
  9851  
  9852  // Context sets the context to be used in this call's Do method.
  9853  func (c *ProjectsDatasetsVideoLabelCall) Context(ctx context.Context) *ProjectsDatasetsVideoLabelCall {
  9854  	c.ctx_ = ctx
  9855  	return c
  9856  }
  9857  
  9858  // Header returns a http.Header that can be modified by the caller to add
  9859  // headers to the request.
  9860  func (c *ProjectsDatasetsVideoLabelCall) Header() http.Header {
  9861  	if c.header_ == nil {
  9862  		c.header_ = make(http.Header)
  9863  	}
  9864  	return c.header_
  9865  }
  9866  
  9867  func (c *ProjectsDatasetsVideoLabelCall) doRequest(alt string) (*http.Response, error) {
  9868  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9869  	var body io.Reader = nil
  9870  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelvideorequest)
  9871  	if err != nil {
  9872  		return nil, err
  9873  	}
  9874  	c.urlParams_.Set("alt", alt)
  9875  	c.urlParams_.Set("prettyPrint", "false")
  9876  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/video:label")
  9877  	urls += "?" + c.urlParams_.Encode()
  9878  	req, err := http.NewRequest("POST", urls, body)
  9879  	if err != nil {
  9880  		return nil, err
  9881  	}
  9882  	req.Header = reqHeaders
  9883  	googleapi.Expand(req.URL, map[string]string{
  9884  		"parent": c.parent,
  9885  	})
  9886  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9887  }
  9888  
  9889  // Do executes the "datalabeling.projects.datasets.video.label" call.
  9890  // Any non-2xx status code is an error. Response headers are in either
  9891  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
  9892  // returned at all) in error.(*googleapi.Error).Header. Use
  9893  // googleapi.IsNotModified to check whether the returned error was because
  9894  // http.StatusNotModified was returned.
  9895  func (c *ProjectsDatasetsVideoLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
  9896  	gensupport.SetOptions(c.urlParams_, opts...)
  9897  	res, err := c.doRequest("json")
  9898  	if res != nil && res.StatusCode == http.StatusNotModified {
  9899  		if res.Body != nil {
  9900  			res.Body.Close()
  9901  		}
  9902  		return nil, gensupport.WrapError(&googleapi.Error{
  9903  			Code:   res.StatusCode,
  9904  			Header: res.Header,
  9905  		})
  9906  	}
  9907  	if err != nil {
  9908  		return nil, err
  9909  	}
  9910  	defer googleapi.CloseBody(res)
  9911  	if err := googleapi.CheckResponse(res); err != nil {
  9912  		return nil, gensupport.WrapError(err)
  9913  	}
  9914  	ret := &GoogleLongrunningOperation{
  9915  		ServerResponse: googleapi.ServerResponse{
  9916  			Header:         res.Header,
  9917  			HTTPStatusCode: res.StatusCode,
  9918  		},
  9919  	}
  9920  	target := &ret
  9921  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9922  		return nil, err
  9923  	}
  9924  	return ret, nil
  9925  }
  9926  
  9927  type ProjectsEvaluationJobsCreateCall struct {
  9928  	s                                                        *Service
  9929  	parent                                                   string
  9930  	googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest
  9931  	urlParams_                                               gensupport.URLParams
  9932  	ctx_                                                     context.Context
  9933  	header_                                                  http.Header
  9934  }
  9935  
  9936  // Create: Creates an evaluation job.
  9937  //
  9938  // - parent: Evaluation job resource parent. Format: "projects/{project_id}".
  9939  func (r *ProjectsEvaluationJobsService) Create(parent string, googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) *ProjectsEvaluationJobsCreateCall {
  9940  	c := &ProjectsEvaluationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9941  	c.parent = parent
  9942  	c.googleclouddatalabelingv1beta1createevaluationjobrequest = googleclouddatalabelingv1beta1createevaluationjobrequest
  9943  	return c
  9944  }
  9945  
  9946  // Fields allows partial responses to be retrieved. See
  9947  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9948  // details.
  9949  func (c *ProjectsEvaluationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsCreateCall {
  9950  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9951  	return c
  9952  }
  9953  
  9954  // Context sets the context to be used in this call's Do method.
  9955  func (c *ProjectsEvaluationJobsCreateCall) Context(ctx context.Context) *ProjectsEvaluationJobsCreateCall {
  9956  	c.ctx_ = ctx
  9957  	return c
  9958  }
  9959  
  9960  // Header returns a http.Header that can be modified by the caller to add
  9961  // headers to the request.
  9962  func (c *ProjectsEvaluationJobsCreateCall) Header() http.Header {
  9963  	if c.header_ == nil {
  9964  		c.header_ = make(http.Header)
  9965  	}
  9966  	return c.header_
  9967  }
  9968  
  9969  func (c *ProjectsEvaluationJobsCreateCall) doRequest(alt string) (*http.Response, error) {
  9970  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9971  	var body io.Reader = nil
  9972  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createevaluationjobrequest)
  9973  	if err != nil {
  9974  		return nil, err
  9975  	}
  9976  	c.urlParams_.Set("alt", alt)
  9977  	c.urlParams_.Set("prettyPrint", "false")
  9978  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs")
  9979  	urls += "?" + c.urlParams_.Encode()
  9980  	req, err := http.NewRequest("POST", urls, body)
  9981  	if err != nil {
  9982  		return nil, err
  9983  	}
  9984  	req.Header = reqHeaders
  9985  	googleapi.Expand(req.URL, map[string]string{
  9986  		"parent": c.parent,
  9987  	})
  9988  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9989  }
  9990  
  9991  // Do executes the "datalabeling.projects.evaluationJobs.create" call.
  9992  // Any non-2xx status code is an error. Response headers are in either
  9993  // *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or (if a
  9994  // response was returned at all) in error.(*googleapi.Error).Header. Use
  9995  // googleapi.IsNotModified to check whether the returned error was because
  9996  // http.StatusNotModified was returned.
  9997  func (c *ProjectsEvaluationJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
  9998  	gensupport.SetOptions(c.urlParams_, opts...)
  9999  	res, err := c.doRequest("json")
 10000  	if res != nil && res.StatusCode == http.StatusNotModified {
 10001  		if res.Body != nil {
 10002  			res.Body.Close()
 10003  		}
 10004  		return nil, gensupport.WrapError(&googleapi.Error{
 10005  			Code:   res.StatusCode,
 10006  			Header: res.Header,
 10007  		})
 10008  	}
 10009  	if err != nil {
 10010  		return nil, err
 10011  	}
 10012  	defer googleapi.CloseBody(res)
 10013  	if err := googleapi.CheckResponse(res); err != nil {
 10014  		return nil, gensupport.WrapError(err)
 10015  	}
 10016  	ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
 10017  		ServerResponse: googleapi.ServerResponse{
 10018  			Header:         res.Header,
 10019  			HTTPStatusCode: res.StatusCode,
 10020  		},
 10021  	}
 10022  	target := &ret
 10023  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10024  		return nil, err
 10025  	}
 10026  	return ret, nil
 10027  }
 10028  
 10029  type ProjectsEvaluationJobsDeleteCall struct {
 10030  	s          *Service
 10031  	name       string
 10032  	urlParams_ gensupport.URLParams
 10033  	ctx_       context.Context
 10034  	header_    http.Header
 10035  }
 10036  
 10037  // Delete: Stops and deletes an evaluation job.
 10038  //
 10039  //   - name: Name of the evaluation job that is going to be deleted. Format:
 10040  //     "projects/{project_id}/evaluationJobs/{evaluation_job_id}".
 10041  func (r *ProjectsEvaluationJobsService) Delete(name string) *ProjectsEvaluationJobsDeleteCall {
 10042  	c := &ProjectsEvaluationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10043  	c.name = name
 10044  	return c
 10045  }
 10046  
 10047  // Fields allows partial responses to be retrieved. See
 10048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10049  // details.
 10050  func (c *ProjectsEvaluationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsDeleteCall {
 10051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10052  	return c
 10053  }
 10054  
 10055  // Context sets the context to be used in this call's Do method.
 10056  func (c *ProjectsEvaluationJobsDeleteCall) Context(ctx context.Context) *ProjectsEvaluationJobsDeleteCall {
 10057  	c.ctx_ = ctx
 10058  	return c
 10059  }
 10060  
 10061  // Header returns a http.Header that can be modified by the caller to add
 10062  // headers to the request.
 10063  func (c *ProjectsEvaluationJobsDeleteCall) Header() http.Header {
 10064  	if c.header_ == nil {
 10065  		c.header_ = make(http.Header)
 10066  	}
 10067  	return c.header_
 10068  }
 10069  
 10070  func (c *ProjectsEvaluationJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
 10071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10072  	var body io.Reader = nil
 10073  	c.urlParams_.Set("alt", alt)
 10074  	c.urlParams_.Set("prettyPrint", "false")
 10075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10076  	urls += "?" + c.urlParams_.Encode()
 10077  	req, err := http.NewRequest("DELETE", urls, body)
 10078  	if err != nil {
 10079  		return nil, err
 10080  	}
 10081  	req.Header = reqHeaders
 10082  	googleapi.Expand(req.URL, map[string]string{
 10083  		"name": c.name,
 10084  	})
 10085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10086  }
 10087  
 10088  // Do executes the "datalabeling.projects.evaluationJobs.delete" call.
 10089  // Any non-2xx status code is an error. Response headers are in either
 10090  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10091  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10092  // check whether the returned error was because http.StatusNotModified was
 10093  // returned.
 10094  func (c *ProjectsEvaluationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10095  	gensupport.SetOptions(c.urlParams_, opts...)
 10096  	res, err := c.doRequest("json")
 10097  	if res != nil && res.StatusCode == http.StatusNotModified {
 10098  		if res.Body != nil {
 10099  			res.Body.Close()
 10100  		}
 10101  		return nil, gensupport.WrapError(&googleapi.Error{
 10102  			Code:   res.StatusCode,
 10103  			Header: res.Header,
 10104  		})
 10105  	}
 10106  	if err != nil {
 10107  		return nil, err
 10108  	}
 10109  	defer googleapi.CloseBody(res)
 10110  	if err := googleapi.CheckResponse(res); err != nil {
 10111  		return nil, gensupport.WrapError(err)
 10112  	}
 10113  	ret := &GoogleProtobufEmpty{
 10114  		ServerResponse: googleapi.ServerResponse{
 10115  			Header:         res.Header,
 10116  			HTTPStatusCode: res.StatusCode,
 10117  		},
 10118  	}
 10119  	target := &ret
 10120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10121  		return nil, err
 10122  	}
 10123  	return ret, nil
 10124  }
 10125  
 10126  type ProjectsEvaluationJobsGetCall struct {
 10127  	s            *Service
 10128  	name         string
 10129  	urlParams_   gensupport.URLParams
 10130  	ifNoneMatch_ string
 10131  	ctx_         context.Context
 10132  	header_      http.Header
 10133  }
 10134  
 10135  // Get: Gets an evaluation job by resource name.
 10136  //
 10137  //   - name: Name of the evaluation job. Format: "projects/{project_id}
 10138  //     /evaluationJobs/{evaluation_job_id}".
 10139  func (r *ProjectsEvaluationJobsService) Get(name string) *ProjectsEvaluationJobsGetCall {
 10140  	c := &ProjectsEvaluationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10141  	c.name = name
 10142  	return c
 10143  }
 10144  
 10145  // Fields allows partial responses to be retrieved. See
 10146  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10147  // details.
 10148  func (c *ProjectsEvaluationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsGetCall {
 10149  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10150  	return c
 10151  }
 10152  
 10153  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10154  // object's ETag matches the given value. This is useful for getting updates
 10155  // only after the object has changed since the last request.
 10156  func (c *ProjectsEvaluationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsGetCall {
 10157  	c.ifNoneMatch_ = entityTag
 10158  	return c
 10159  }
 10160  
 10161  // Context sets the context to be used in this call's Do method.
 10162  func (c *ProjectsEvaluationJobsGetCall) Context(ctx context.Context) *ProjectsEvaluationJobsGetCall {
 10163  	c.ctx_ = ctx
 10164  	return c
 10165  }
 10166  
 10167  // Header returns a http.Header that can be modified by the caller to add
 10168  // headers to the request.
 10169  func (c *ProjectsEvaluationJobsGetCall) Header() http.Header {
 10170  	if c.header_ == nil {
 10171  		c.header_ = make(http.Header)
 10172  	}
 10173  	return c.header_
 10174  }
 10175  
 10176  func (c *ProjectsEvaluationJobsGetCall) doRequest(alt string) (*http.Response, error) {
 10177  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10178  	if c.ifNoneMatch_ != "" {
 10179  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10180  	}
 10181  	var body io.Reader = nil
 10182  	c.urlParams_.Set("alt", alt)
 10183  	c.urlParams_.Set("prettyPrint", "false")
 10184  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10185  	urls += "?" + c.urlParams_.Encode()
 10186  	req, err := http.NewRequest("GET", urls, body)
 10187  	if err != nil {
 10188  		return nil, err
 10189  	}
 10190  	req.Header = reqHeaders
 10191  	googleapi.Expand(req.URL, map[string]string{
 10192  		"name": c.name,
 10193  	})
 10194  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10195  }
 10196  
 10197  // Do executes the "datalabeling.projects.evaluationJobs.get" call.
 10198  // Any non-2xx status code is an error. Response headers are in either
 10199  // *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or (if a
 10200  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10201  // googleapi.IsNotModified to check whether the returned error was because
 10202  // http.StatusNotModified was returned.
 10203  func (c *ProjectsEvaluationJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
 10204  	gensupport.SetOptions(c.urlParams_, opts...)
 10205  	res, err := c.doRequest("json")
 10206  	if res != nil && res.StatusCode == http.StatusNotModified {
 10207  		if res.Body != nil {
 10208  			res.Body.Close()
 10209  		}
 10210  		return nil, gensupport.WrapError(&googleapi.Error{
 10211  			Code:   res.StatusCode,
 10212  			Header: res.Header,
 10213  		})
 10214  	}
 10215  	if err != nil {
 10216  		return nil, err
 10217  	}
 10218  	defer googleapi.CloseBody(res)
 10219  	if err := googleapi.CheckResponse(res); err != nil {
 10220  		return nil, gensupport.WrapError(err)
 10221  	}
 10222  	ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
 10223  		ServerResponse: googleapi.ServerResponse{
 10224  			Header:         res.Header,
 10225  			HTTPStatusCode: res.StatusCode,
 10226  		},
 10227  	}
 10228  	target := &ret
 10229  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10230  		return nil, err
 10231  	}
 10232  	return ret, nil
 10233  }
 10234  
 10235  type ProjectsEvaluationJobsListCall struct {
 10236  	s            *Service
 10237  	parent       string
 10238  	urlParams_   gensupport.URLParams
 10239  	ifNoneMatch_ string
 10240  	ctx_         context.Context
 10241  	header_      http.Header
 10242  }
 10243  
 10244  // List: Lists all evaluation jobs within a project with possible filters.
 10245  // Pagination is supported.
 10246  //
 10247  // - parent: Evaluation job resource parent. Format: "projects/{project_id}".
 10248  func (r *ProjectsEvaluationJobsService) List(parent string) *ProjectsEvaluationJobsListCall {
 10249  	c := &ProjectsEvaluationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10250  	c.parent = parent
 10251  	return c
 10252  }
 10253  
 10254  // Filter sets the optional parameter "filter": You can filter the jobs to list
 10255  // by model_id (also known as model_name, as described in
 10256  // EvaluationJob.modelVersion) or by evaluation job state (as described in
 10257  // EvaluationJob.state). To filter by both criteria, use the `AND` operator or
 10258  // the `OR` operator. For example, you can use the following string for your
 10259  // filter: "evaluation_job.model_id = {model_name} AND evaluation_job.state =
 10260  // {evaluation_job_state}"
 10261  func (c *ProjectsEvaluationJobsListCall) Filter(filter string) *ProjectsEvaluationJobsListCall {
 10262  	c.urlParams_.Set("filter", filter)
 10263  	return c
 10264  }
 10265  
 10266  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 10267  // may return fewer results than requested. Default value is 100.
 10268  func (c *ProjectsEvaluationJobsListCall) PageSize(pageSize int64) *ProjectsEvaluationJobsListCall {
 10269  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10270  	return c
 10271  }
 10272  
 10273  // PageToken sets the optional parameter "pageToken": A token identifying a
 10274  // page of results for the server to return. Typically obtained by the
 10275  // nextPageToken in the response to the previous request. The request returns
 10276  // the first page if this is empty.
 10277  func (c *ProjectsEvaluationJobsListCall) PageToken(pageToken string) *ProjectsEvaluationJobsListCall {
 10278  	c.urlParams_.Set("pageToken", pageToken)
 10279  	return c
 10280  }
 10281  
 10282  // Fields allows partial responses to be retrieved. See
 10283  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10284  // details.
 10285  func (c *ProjectsEvaluationJobsListCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsListCall {
 10286  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10287  	return c
 10288  }
 10289  
 10290  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10291  // object's ETag matches the given value. This is useful for getting updates
 10292  // only after the object has changed since the last request.
 10293  func (c *ProjectsEvaluationJobsListCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsListCall {
 10294  	c.ifNoneMatch_ = entityTag
 10295  	return c
 10296  }
 10297  
 10298  // Context sets the context to be used in this call's Do method.
 10299  func (c *ProjectsEvaluationJobsListCall) Context(ctx context.Context) *ProjectsEvaluationJobsListCall {
 10300  	c.ctx_ = ctx
 10301  	return c
 10302  }
 10303  
 10304  // Header returns a http.Header that can be modified by the caller to add
 10305  // headers to the request.
 10306  func (c *ProjectsEvaluationJobsListCall) Header() http.Header {
 10307  	if c.header_ == nil {
 10308  		c.header_ = make(http.Header)
 10309  	}
 10310  	return c.header_
 10311  }
 10312  
 10313  func (c *ProjectsEvaluationJobsListCall) doRequest(alt string) (*http.Response, error) {
 10314  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10315  	if c.ifNoneMatch_ != "" {
 10316  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10317  	}
 10318  	var body io.Reader = nil
 10319  	c.urlParams_.Set("alt", alt)
 10320  	c.urlParams_.Set("prettyPrint", "false")
 10321  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs")
 10322  	urls += "?" + c.urlParams_.Encode()
 10323  	req, err := http.NewRequest("GET", urls, body)
 10324  	if err != nil {
 10325  		return nil, err
 10326  	}
 10327  	req.Header = reqHeaders
 10328  	googleapi.Expand(req.URL, map[string]string{
 10329  		"parent": c.parent,
 10330  	})
 10331  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10332  }
 10333  
 10334  // Do executes the "datalabeling.projects.evaluationJobs.list" call.
 10335  // Any non-2xx status code is an error. Response headers are in either
 10336  // *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse.ServerResponse.Head
 10337  // er or (if a response was returned at all) in
 10338  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10339  // whether the returned error was because http.StatusNotModified was returned.
 10340  func (c *ProjectsEvaluationJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse, error) {
 10341  	gensupport.SetOptions(c.urlParams_, opts...)
 10342  	res, err := c.doRequest("json")
 10343  	if res != nil && res.StatusCode == http.StatusNotModified {
 10344  		if res.Body != nil {
 10345  			res.Body.Close()
 10346  		}
 10347  		return nil, gensupport.WrapError(&googleapi.Error{
 10348  			Code:   res.StatusCode,
 10349  			Header: res.Header,
 10350  		})
 10351  	}
 10352  	if err != nil {
 10353  		return nil, err
 10354  	}
 10355  	defer googleapi.CloseBody(res)
 10356  	if err := googleapi.CheckResponse(res); err != nil {
 10357  		return nil, gensupport.WrapError(err)
 10358  	}
 10359  	ret := &GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse{
 10360  		ServerResponse: googleapi.ServerResponse{
 10361  			Header:         res.Header,
 10362  			HTTPStatusCode: res.StatusCode,
 10363  		},
 10364  	}
 10365  	target := &ret
 10366  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10367  		return nil, err
 10368  	}
 10369  	return ret, nil
 10370  }
 10371  
 10372  // Pages invokes f for each page of results.
 10373  // A non-nil error returned from f will halt the iteration.
 10374  // The provided context supersedes any context provided to the Context method.
 10375  func (c *ProjectsEvaluationJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) error) error {
 10376  	c.ctx_ = ctx
 10377  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10378  	for {
 10379  		x, err := c.Do()
 10380  		if err != nil {
 10381  			return err
 10382  		}
 10383  		if err := f(x); err != nil {
 10384  			return err
 10385  		}
 10386  		if x.NextPageToken == "" {
 10387  			return nil
 10388  		}
 10389  		c.PageToken(x.NextPageToken)
 10390  	}
 10391  }
 10392  
 10393  type ProjectsEvaluationJobsPatchCall struct {
 10394  	s                                           *Service
 10395  	name                                        string
 10396  	googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob
 10397  	urlParams_                                  gensupport.URLParams
 10398  	ctx_                                        context.Context
 10399  	header_                                     http.Header
 10400  }
 10401  
 10402  // Patch: Updates an evaluation job. You can only update certain fields of the
 10403  // job's EvaluationJobConfig: `humanAnnotationConfig.instruction`,
 10404  // `exampleCount`, and `exampleSamplePercentage`. If you want to change any
 10405  // other aspect of the evaluation job, you must delete the job and create a new
 10406  // one.
 10407  //
 10408  //   - name: Output only. After you create a job, Data Labeling Service assigns a
 10409  //     name to the job with the following format:
 10410  //     "projects/{project_id}/evaluationJobs/ {evaluation_job_id}".
 10411  func (r *ProjectsEvaluationJobsService) Patch(name string, googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob) *ProjectsEvaluationJobsPatchCall {
 10412  	c := &ProjectsEvaluationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10413  	c.name = name
 10414  	c.googleclouddatalabelingv1beta1evaluationjob = googleclouddatalabelingv1beta1evaluationjob
 10415  	return c
 10416  }
 10417  
 10418  // UpdateMask sets the optional parameter "updateMask": Mask for which fields
 10419  // to update. You can only provide the following fields: *
 10420  // `evaluationJobConfig.humanAnnotationConfig.instruction` *
 10421  // `evaluationJobConfig.exampleCount` *
 10422  // `evaluationJobConfig.exampleSamplePercentage` You can provide more than one
 10423  // of these fields by separating them with commas.
 10424  func (c *ProjectsEvaluationJobsPatchCall) UpdateMask(updateMask string) *ProjectsEvaluationJobsPatchCall {
 10425  	c.urlParams_.Set("updateMask", updateMask)
 10426  	return c
 10427  }
 10428  
 10429  // Fields allows partial responses to be retrieved. See
 10430  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10431  // details.
 10432  func (c *ProjectsEvaluationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPatchCall {
 10433  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10434  	return c
 10435  }
 10436  
 10437  // Context sets the context to be used in this call's Do method.
 10438  func (c *ProjectsEvaluationJobsPatchCall) Context(ctx context.Context) *ProjectsEvaluationJobsPatchCall {
 10439  	c.ctx_ = ctx
 10440  	return c
 10441  }
 10442  
 10443  // Header returns a http.Header that can be modified by the caller to add
 10444  // headers to the request.
 10445  func (c *ProjectsEvaluationJobsPatchCall) Header() http.Header {
 10446  	if c.header_ == nil {
 10447  		c.header_ = make(http.Header)
 10448  	}
 10449  	return c.header_
 10450  }
 10451  
 10452  func (c *ProjectsEvaluationJobsPatchCall) doRequest(alt string) (*http.Response, error) {
 10453  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10454  	var body io.Reader = nil
 10455  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1evaluationjob)
 10456  	if err != nil {
 10457  		return nil, err
 10458  	}
 10459  	c.urlParams_.Set("alt", alt)
 10460  	c.urlParams_.Set("prettyPrint", "false")
 10461  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 10462  	urls += "?" + c.urlParams_.Encode()
 10463  	req, err := http.NewRequest("PATCH", urls, body)
 10464  	if err != nil {
 10465  		return nil, err
 10466  	}
 10467  	req.Header = reqHeaders
 10468  	googleapi.Expand(req.URL, map[string]string{
 10469  		"name": c.name,
 10470  	})
 10471  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10472  }
 10473  
 10474  // Do executes the "datalabeling.projects.evaluationJobs.patch" call.
 10475  // Any non-2xx status code is an error. Response headers are in either
 10476  // *GoogleCloudDatalabelingV1beta1EvaluationJob.ServerResponse.Header or (if a
 10477  // response was returned at all) in error.(*googleapi.Error).Header. Use
 10478  // googleapi.IsNotModified to check whether the returned error was because
 10479  // http.StatusNotModified was returned.
 10480  func (c *ProjectsEvaluationJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
 10481  	gensupport.SetOptions(c.urlParams_, opts...)
 10482  	res, err := c.doRequest("json")
 10483  	if res != nil && res.StatusCode == http.StatusNotModified {
 10484  		if res.Body != nil {
 10485  			res.Body.Close()
 10486  		}
 10487  		return nil, gensupport.WrapError(&googleapi.Error{
 10488  			Code:   res.StatusCode,
 10489  			Header: res.Header,
 10490  		})
 10491  	}
 10492  	if err != nil {
 10493  		return nil, err
 10494  	}
 10495  	defer googleapi.CloseBody(res)
 10496  	if err := googleapi.CheckResponse(res); err != nil {
 10497  		return nil, gensupport.WrapError(err)
 10498  	}
 10499  	ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
 10500  		ServerResponse: googleapi.ServerResponse{
 10501  			Header:         res.Header,
 10502  			HTTPStatusCode: res.StatusCode,
 10503  		},
 10504  	}
 10505  	target := &ret
 10506  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10507  		return nil, err
 10508  	}
 10509  	return ret, nil
 10510  }
 10511  
 10512  type ProjectsEvaluationJobsPauseCall struct {
 10513  	s                                                       *Service
 10514  	name                                                    string
 10515  	googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest
 10516  	urlParams_                                              gensupport.URLParams
 10517  	ctx_                                                    context.Context
 10518  	header_                                                 http.Header
 10519  }
 10520  
 10521  // Pause: Pauses an evaluation job. Pausing an evaluation job that is already
 10522  // in a `PAUSED` state is a no-op.
 10523  //
 10524  //   - name: Name of the evaluation job that is going to be paused. Format:
 10525  //     "projects/{project_id}/evaluationJobs/{evaluation_job_id}".
 10526  func (r *ProjectsEvaluationJobsService) Pause(name string, googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest) *ProjectsEvaluationJobsPauseCall {
 10527  	c := &ProjectsEvaluationJobsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10528  	c.name = name
 10529  	c.googleclouddatalabelingv1beta1pauseevaluationjobrequest = googleclouddatalabelingv1beta1pauseevaluationjobrequest
 10530  	return c
 10531  }
 10532  
 10533  // Fields allows partial responses to be retrieved. See
 10534  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10535  // details.
 10536  func (c *ProjectsEvaluationJobsPauseCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPauseCall {
 10537  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10538  	return c
 10539  }
 10540  
 10541  // Context sets the context to be used in this call's Do method.
 10542  func (c *ProjectsEvaluationJobsPauseCall) Context(ctx context.Context) *ProjectsEvaluationJobsPauseCall {
 10543  	c.ctx_ = ctx
 10544  	return c
 10545  }
 10546  
 10547  // Header returns a http.Header that can be modified by the caller to add
 10548  // headers to the request.
 10549  func (c *ProjectsEvaluationJobsPauseCall) Header() http.Header {
 10550  	if c.header_ == nil {
 10551  		c.header_ = make(http.Header)
 10552  	}
 10553  	return c.header_
 10554  }
 10555  
 10556  func (c *ProjectsEvaluationJobsPauseCall) doRequest(alt string) (*http.Response, error) {
 10557  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10558  	var body io.Reader = nil
 10559  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1pauseevaluationjobrequest)
 10560  	if err != nil {
 10561  		return nil, err
 10562  	}
 10563  	c.urlParams_.Set("alt", alt)
 10564  	c.urlParams_.Set("prettyPrint", "false")
 10565  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pause")
 10566  	urls += "?" + c.urlParams_.Encode()
 10567  	req, err := http.NewRequest("POST", urls, body)
 10568  	if err != nil {
 10569  		return nil, err
 10570  	}
 10571  	req.Header = reqHeaders
 10572  	googleapi.Expand(req.URL, map[string]string{
 10573  		"name": c.name,
 10574  	})
 10575  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10576  }
 10577  
 10578  // Do executes the "datalabeling.projects.evaluationJobs.pause" call.
 10579  // Any non-2xx status code is an error. Response headers are in either
 10580  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10581  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10582  // check whether the returned error was because http.StatusNotModified was
 10583  // returned.
 10584  func (c *ProjectsEvaluationJobsPauseCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10585  	gensupport.SetOptions(c.urlParams_, opts...)
 10586  	res, err := c.doRequest("json")
 10587  	if res != nil && res.StatusCode == http.StatusNotModified {
 10588  		if res.Body != nil {
 10589  			res.Body.Close()
 10590  		}
 10591  		return nil, gensupport.WrapError(&googleapi.Error{
 10592  			Code:   res.StatusCode,
 10593  			Header: res.Header,
 10594  		})
 10595  	}
 10596  	if err != nil {
 10597  		return nil, err
 10598  	}
 10599  	defer googleapi.CloseBody(res)
 10600  	if err := googleapi.CheckResponse(res); err != nil {
 10601  		return nil, gensupport.WrapError(err)
 10602  	}
 10603  	ret := &GoogleProtobufEmpty{
 10604  		ServerResponse: googleapi.ServerResponse{
 10605  			Header:         res.Header,
 10606  			HTTPStatusCode: res.StatusCode,
 10607  		},
 10608  	}
 10609  	target := &ret
 10610  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10611  		return nil, err
 10612  	}
 10613  	return ret, nil
 10614  }
 10615  
 10616  type ProjectsEvaluationJobsResumeCall struct {
 10617  	s                                                        *Service
 10618  	name                                                     string
 10619  	googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest
 10620  	urlParams_                                               gensupport.URLParams
 10621  	ctx_                                                     context.Context
 10622  	header_                                                  http.Header
 10623  }
 10624  
 10625  // Resume: Resumes a paused evaluation job. A deleted evaluation job can't be
 10626  // resumed. Resuming a running or scheduled evaluation job is a no-op.
 10627  //
 10628  //   - name: Name of the evaluation job that is going to be resumed. Format:
 10629  //     "projects/{project_id}/evaluationJobs/{evaluation_job_id}".
 10630  func (r *ProjectsEvaluationJobsService) Resume(name string, googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest) *ProjectsEvaluationJobsResumeCall {
 10631  	c := &ProjectsEvaluationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10632  	c.name = name
 10633  	c.googleclouddatalabelingv1beta1resumeevaluationjobrequest = googleclouddatalabelingv1beta1resumeevaluationjobrequest
 10634  	return c
 10635  }
 10636  
 10637  // Fields allows partial responses to be retrieved. See
 10638  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10639  // details.
 10640  func (c *ProjectsEvaluationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsResumeCall {
 10641  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10642  	return c
 10643  }
 10644  
 10645  // Context sets the context to be used in this call's Do method.
 10646  func (c *ProjectsEvaluationJobsResumeCall) Context(ctx context.Context) *ProjectsEvaluationJobsResumeCall {
 10647  	c.ctx_ = ctx
 10648  	return c
 10649  }
 10650  
 10651  // Header returns a http.Header that can be modified by the caller to add
 10652  // headers to the request.
 10653  func (c *ProjectsEvaluationJobsResumeCall) Header() http.Header {
 10654  	if c.header_ == nil {
 10655  		c.header_ = make(http.Header)
 10656  	}
 10657  	return c.header_
 10658  }
 10659  
 10660  func (c *ProjectsEvaluationJobsResumeCall) doRequest(alt string) (*http.Response, error) {
 10661  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10662  	var body io.Reader = nil
 10663  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1resumeevaluationjobrequest)
 10664  	if err != nil {
 10665  		return nil, err
 10666  	}
 10667  	c.urlParams_.Set("alt", alt)
 10668  	c.urlParams_.Set("prettyPrint", "false")
 10669  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:resume")
 10670  	urls += "?" + c.urlParams_.Encode()
 10671  	req, err := http.NewRequest("POST", urls, body)
 10672  	if err != nil {
 10673  		return nil, err
 10674  	}
 10675  	req.Header = reqHeaders
 10676  	googleapi.Expand(req.URL, map[string]string{
 10677  		"name": c.name,
 10678  	})
 10679  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10680  }
 10681  
 10682  // Do executes the "datalabeling.projects.evaluationJobs.resume" call.
 10683  // Any non-2xx status code is an error. Response headers are in either
 10684  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 10685  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10686  // check whether the returned error was because http.StatusNotModified was
 10687  // returned.
 10688  func (c *ProjectsEvaluationJobsResumeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 10689  	gensupport.SetOptions(c.urlParams_, opts...)
 10690  	res, err := c.doRequest("json")
 10691  	if res != nil && res.StatusCode == http.StatusNotModified {
 10692  		if res.Body != nil {
 10693  			res.Body.Close()
 10694  		}
 10695  		return nil, gensupport.WrapError(&googleapi.Error{
 10696  			Code:   res.StatusCode,
 10697  			Header: res.Header,
 10698  		})
 10699  	}
 10700  	if err != nil {
 10701  		return nil, err
 10702  	}
 10703  	defer googleapi.CloseBody(res)
 10704  	if err := googleapi.CheckResponse(res); err != nil {
 10705  		return nil, gensupport.WrapError(err)
 10706  	}
 10707  	ret := &GoogleProtobufEmpty{
 10708  		ServerResponse: googleapi.ServerResponse{
 10709  			Header:         res.Header,
 10710  			HTTPStatusCode: res.StatusCode,
 10711  		},
 10712  	}
 10713  	target := &ret
 10714  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10715  		return nil, err
 10716  	}
 10717  	return ret, nil
 10718  }
 10719  
 10720  type ProjectsEvaluationsSearchCall struct {
 10721  	s            *Service
 10722  	parent       string
 10723  	urlParams_   gensupport.URLParams
 10724  	ifNoneMatch_ string
 10725  	ctx_         context.Context
 10726  	header_      http.Header
 10727  }
 10728  
 10729  // Search: Searches evaluations within a project.
 10730  //
 10731  //   - parent: Evaluation search parent (project ID). Format: "projects/
 10732  //     {project_id}".
 10733  func (r *ProjectsEvaluationsService) Search(parent string) *ProjectsEvaluationsSearchCall {
 10734  	c := &ProjectsEvaluationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10735  	c.parent = parent
 10736  	return c
 10737  }
 10738  
 10739  // Filter sets the optional parameter "filter": To search evaluations, you can
 10740  // filter by the following: * evaluation_job.evaluation_job_id (the last part
 10741  // of EvaluationJob.name) * evaluation_job.model_id (the {model_name} portion
 10742  // of EvaluationJob.modelVersion) *
 10743  // evaluation_job.evaluation_job_run_time_start (Minimum threshold for the
 10744  // evaluationJobRunTime that created the evaluation) *
 10745  // evaluation_job.evaluation_job_run_time_end (Maximum threshold for the
 10746  // evaluationJobRunTime that created the evaluation) * evaluation_job.job_state
 10747  // (EvaluationJob.state) * annotation_spec.display_name (the Evaluation
 10748  // contains a metric for the annotation spec with this displayName) To filter
 10749  // by multiple critiera, use the `AND` operator or the `OR` operator. The
 10750  // following examples shows a string that filters by several critiera:
 10751  // "evaluation_job.evaluation_job_id = {evaluation_job_id} AND
 10752  // evaluation_job.model_id = {model_name} AND
 10753  // evaluation_job.evaluation_job_run_time_start = {timestamp_1} AND
 10754  // evaluation_job.evaluation_job_run_time_end = {timestamp_2} AND
 10755  // annotation_spec.display_name = {display_name}"
 10756  func (c *ProjectsEvaluationsSearchCall) Filter(filter string) *ProjectsEvaluationsSearchCall {
 10757  	c.urlParams_.Set("filter", filter)
 10758  	return c
 10759  }
 10760  
 10761  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 10762  // may return fewer results than requested. Default value is 100.
 10763  func (c *ProjectsEvaluationsSearchCall) PageSize(pageSize int64) *ProjectsEvaluationsSearchCall {
 10764  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10765  	return c
 10766  }
 10767  
 10768  // PageToken sets the optional parameter "pageToken": A token identifying a
 10769  // page of results for the server to return. Typically obtained by the
 10770  // nextPageToken of the response to a previous search request. If you don't
 10771  // specify this field, the API call requests the first page of the search.
 10772  func (c *ProjectsEvaluationsSearchCall) PageToken(pageToken string) *ProjectsEvaluationsSearchCall {
 10773  	c.urlParams_.Set("pageToken", pageToken)
 10774  	return c
 10775  }
 10776  
 10777  // Fields allows partial responses to be retrieved. See
 10778  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10779  // details.
 10780  func (c *ProjectsEvaluationsSearchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationsSearchCall {
 10781  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10782  	return c
 10783  }
 10784  
 10785  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10786  // object's ETag matches the given value. This is useful for getting updates
 10787  // only after the object has changed since the last request.
 10788  func (c *ProjectsEvaluationsSearchCall) IfNoneMatch(entityTag string) *ProjectsEvaluationsSearchCall {
 10789  	c.ifNoneMatch_ = entityTag
 10790  	return c
 10791  }
 10792  
 10793  // Context sets the context to be used in this call's Do method.
 10794  func (c *ProjectsEvaluationsSearchCall) Context(ctx context.Context) *ProjectsEvaluationsSearchCall {
 10795  	c.ctx_ = ctx
 10796  	return c
 10797  }
 10798  
 10799  // Header returns a http.Header that can be modified by the caller to add
 10800  // headers to the request.
 10801  func (c *ProjectsEvaluationsSearchCall) Header() http.Header {
 10802  	if c.header_ == nil {
 10803  		c.header_ = make(http.Header)
 10804  	}
 10805  	return c.header_
 10806  }
 10807  
 10808  func (c *ProjectsEvaluationsSearchCall) doRequest(alt string) (*http.Response, error) {
 10809  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10810  	if c.ifNoneMatch_ != "" {
 10811  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10812  	}
 10813  	var body io.Reader = nil
 10814  	c.urlParams_.Set("alt", alt)
 10815  	c.urlParams_.Set("prettyPrint", "false")
 10816  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations:search")
 10817  	urls += "?" + c.urlParams_.Encode()
 10818  	req, err := http.NewRequest("GET", urls, body)
 10819  	if err != nil {
 10820  		return nil, err
 10821  	}
 10822  	req.Header = reqHeaders
 10823  	googleapi.Expand(req.URL, map[string]string{
 10824  		"parent": c.parent,
 10825  	})
 10826  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10827  }
 10828  
 10829  // Do executes the "datalabeling.projects.evaluations.search" call.
 10830  // Any non-2xx status code is an error. Response headers are in either
 10831  // *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse.ServerResponse.Heade
 10832  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 10833  // Use googleapi.IsNotModified to check whether the returned error was because
 10834  // http.StatusNotModified was returned.
 10835  func (c *ProjectsEvaluationsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse, error) {
 10836  	gensupport.SetOptions(c.urlParams_, opts...)
 10837  	res, err := c.doRequest("json")
 10838  	if res != nil && res.StatusCode == http.StatusNotModified {
 10839  		if res.Body != nil {
 10840  			res.Body.Close()
 10841  		}
 10842  		return nil, gensupport.WrapError(&googleapi.Error{
 10843  			Code:   res.StatusCode,
 10844  			Header: res.Header,
 10845  		})
 10846  	}
 10847  	if err != nil {
 10848  		return nil, err
 10849  	}
 10850  	defer googleapi.CloseBody(res)
 10851  	if err := googleapi.CheckResponse(res); err != nil {
 10852  		return nil, gensupport.WrapError(err)
 10853  	}
 10854  	ret := &GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse{
 10855  		ServerResponse: googleapi.ServerResponse{
 10856  			Header:         res.Header,
 10857  			HTTPStatusCode: res.StatusCode,
 10858  		},
 10859  	}
 10860  	target := &ret
 10861  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10862  		return nil, err
 10863  	}
 10864  	return ret, nil
 10865  }
 10866  
 10867  // Pages invokes f for each page of results.
 10868  // A non-nil error returned from f will halt the iteration.
 10869  // The provided context supersedes any context provided to the Context method.
 10870  func (c *ProjectsEvaluationsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) error) error {
 10871  	c.ctx_ = ctx
 10872  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10873  	for {
 10874  		x, err := c.Do()
 10875  		if err != nil {
 10876  			return err
 10877  		}
 10878  		if err := f(x); err != nil {
 10879  			return err
 10880  		}
 10881  		if x.NextPageToken == "" {
 10882  			return nil
 10883  		}
 10884  		c.PageToken(x.NextPageToken)
 10885  	}
 10886  }
 10887  
 10888  type ProjectsInstructionsCreateCall struct {
 10889  	s                                                      *Service
 10890  	parent                                                 string
 10891  	googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest
 10892  	urlParams_                                             gensupport.URLParams
 10893  	ctx_                                                   context.Context
 10894  	header_                                                http.Header
 10895  }
 10896  
 10897  // Create: Creates an instruction for how data should be labeled.
 10898  //
 10899  // - parent: Instruction resource parent, format: projects/{project_id}.
 10900  func (r *ProjectsInstructionsService) Create(parent string, googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) *ProjectsInstructionsCreateCall {
 10901  	c := &ProjectsInstructionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10902  	c.parent = parent
 10903  	c.googleclouddatalabelingv1beta1createinstructionrequest = googleclouddatalabelingv1beta1createinstructionrequest
 10904  	return c
 10905  }
 10906  
 10907  // Fields allows partial responses to be retrieved. See
 10908  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10909  // details.
 10910  func (c *ProjectsInstructionsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstructionsCreateCall {
 10911  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10912  	return c
 10913  }
 10914  
 10915  // Context sets the context to be used in this call's Do method.
 10916  func (c *ProjectsInstructionsCreateCall) Context(ctx context.Context) *ProjectsInstructionsCreateCall {
 10917  	c.ctx_ = ctx
 10918  	return c
 10919  }
 10920  
 10921  // Header returns a http.Header that can be modified by the caller to add
 10922  // headers to the request.
 10923  func (c *ProjectsInstructionsCreateCall) Header() http.Header {
 10924  	if c.header_ == nil {
 10925  		c.header_ = make(http.Header)
 10926  	}
 10927  	return c.header_
 10928  }
 10929  
 10930  func (c *ProjectsInstructionsCreateCall) doRequest(alt string) (*http.Response, error) {
 10931  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10932  	var body io.Reader = nil
 10933  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createinstructionrequest)
 10934  	if err != nil {
 10935  		return nil, err
 10936  	}
 10937  	c.urlParams_.Set("alt", alt)
 10938  	c.urlParams_.Set("prettyPrint", "false")
 10939  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions")
 10940  	urls += "?" + c.urlParams_.Encode()
 10941  	req, err := http.NewRequest("POST", urls, body)
 10942  	if err != nil {
 10943  		return nil, err
 10944  	}
 10945  	req.Header = reqHeaders
 10946  	googleapi.Expand(req.URL, map[string]string{
 10947  		"parent": c.parent,
 10948  	})
 10949  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10950  }
 10951  
 10952  // Do executes the "datalabeling.projects.instructions.create" call.
 10953  // Any non-2xx status code is an error. Response headers are in either
 10954  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 10955  // returned at all) in error.(*googleapi.Error).Header. Use
 10956  // googleapi.IsNotModified to check whether the returned error was because
 10957  // http.StatusNotModified was returned.
 10958  func (c *ProjectsInstructionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 10959  	gensupport.SetOptions(c.urlParams_, opts...)
 10960  	res, err := c.doRequest("json")
 10961  	if res != nil && res.StatusCode == http.StatusNotModified {
 10962  		if res.Body != nil {
 10963  			res.Body.Close()
 10964  		}
 10965  		return nil, gensupport.WrapError(&googleapi.Error{
 10966  			Code:   res.StatusCode,
 10967  			Header: res.Header,
 10968  		})
 10969  	}
 10970  	if err != nil {
 10971  		return nil, err
 10972  	}
 10973  	defer googleapi.CloseBody(res)
 10974  	if err := googleapi.CheckResponse(res); err != nil {
 10975  		return nil, gensupport.WrapError(err)
 10976  	}
 10977  	ret := &GoogleLongrunningOperation{
 10978  		ServerResponse: googleapi.ServerResponse{
 10979  			Header:         res.Header,
 10980  			HTTPStatusCode: res.StatusCode,
 10981  		},
 10982  	}
 10983  	target := &ret
 10984  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10985  		return nil, err
 10986  	}
 10987  	return ret, nil
 10988  }
 10989  
 10990  type ProjectsInstructionsDeleteCall struct {
 10991  	s          *Service
 10992  	name       string
 10993  	urlParams_ gensupport.URLParams
 10994  	ctx_       context.Context
 10995  	header_    http.Header
 10996  }
 10997  
 10998  // Delete: Deletes an instruction object by resource name.
 10999  //
 11000  //   - name: Instruction resource name, format:
 11001  //     projects/{project_id}/instructions/{instruction_id}.
 11002  func (r *ProjectsInstructionsService) Delete(name string) *ProjectsInstructionsDeleteCall {
 11003  	c := &ProjectsInstructionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11004  	c.name = name
 11005  	return c
 11006  }
 11007  
 11008  // Fields allows partial responses to be retrieved. See
 11009  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11010  // details.
 11011  func (c *ProjectsInstructionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstructionsDeleteCall {
 11012  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11013  	return c
 11014  }
 11015  
 11016  // Context sets the context to be used in this call's Do method.
 11017  func (c *ProjectsInstructionsDeleteCall) Context(ctx context.Context) *ProjectsInstructionsDeleteCall {
 11018  	c.ctx_ = ctx
 11019  	return c
 11020  }
 11021  
 11022  // Header returns a http.Header that can be modified by the caller to add
 11023  // headers to the request.
 11024  func (c *ProjectsInstructionsDeleteCall) Header() http.Header {
 11025  	if c.header_ == nil {
 11026  		c.header_ = make(http.Header)
 11027  	}
 11028  	return c.header_
 11029  }
 11030  
 11031  func (c *ProjectsInstructionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11032  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11033  	var body io.Reader = nil
 11034  	c.urlParams_.Set("alt", alt)
 11035  	c.urlParams_.Set("prettyPrint", "false")
 11036  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11037  	urls += "?" + c.urlParams_.Encode()
 11038  	req, err := http.NewRequest("DELETE", urls, body)
 11039  	if err != nil {
 11040  		return nil, err
 11041  	}
 11042  	req.Header = reqHeaders
 11043  	googleapi.Expand(req.URL, map[string]string{
 11044  		"name": c.name,
 11045  	})
 11046  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11047  }
 11048  
 11049  // Do executes the "datalabeling.projects.instructions.delete" call.
 11050  // Any non-2xx status code is an error. Response headers are in either
 11051  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11052  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11053  // check whether the returned error was because http.StatusNotModified was
 11054  // returned.
 11055  func (c *ProjectsInstructionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11056  	gensupport.SetOptions(c.urlParams_, opts...)
 11057  	res, err := c.doRequest("json")
 11058  	if res != nil && res.StatusCode == http.StatusNotModified {
 11059  		if res.Body != nil {
 11060  			res.Body.Close()
 11061  		}
 11062  		return nil, gensupport.WrapError(&googleapi.Error{
 11063  			Code:   res.StatusCode,
 11064  			Header: res.Header,
 11065  		})
 11066  	}
 11067  	if err != nil {
 11068  		return nil, err
 11069  	}
 11070  	defer googleapi.CloseBody(res)
 11071  	if err := googleapi.CheckResponse(res); err != nil {
 11072  		return nil, gensupport.WrapError(err)
 11073  	}
 11074  	ret := &GoogleProtobufEmpty{
 11075  		ServerResponse: googleapi.ServerResponse{
 11076  			Header:         res.Header,
 11077  			HTTPStatusCode: res.StatusCode,
 11078  		},
 11079  	}
 11080  	target := &ret
 11081  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11082  		return nil, err
 11083  	}
 11084  	return ret, nil
 11085  }
 11086  
 11087  type ProjectsInstructionsGetCall struct {
 11088  	s            *Service
 11089  	name         string
 11090  	urlParams_   gensupport.URLParams
 11091  	ifNoneMatch_ string
 11092  	ctx_         context.Context
 11093  	header_      http.Header
 11094  }
 11095  
 11096  // Get: Gets an instruction by resource name.
 11097  //
 11098  //   - name: Instruction resource name, format:
 11099  //     projects/{project_id}/instructions/{instruction_id}.
 11100  func (r *ProjectsInstructionsService) Get(name string) *ProjectsInstructionsGetCall {
 11101  	c := &ProjectsInstructionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11102  	c.name = name
 11103  	return c
 11104  }
 11105  
 11106  // Fields allows partial responses to be retrieved. See
 11107  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11108  // details.
 11109  func (c *ProjectsInstructionsGetCall) Fields(s ...googleapi.Field) *ProjectsInstructionsGetCall {
 11110  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11111  	return c
 11112  }
 11113  
 11114  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11115  // object's ETag matches the given value. This is useful for getting updates
 11116  // only after the object has changed since the last request.
 11117  func (c *ProjectsInstructionsGetCall) IfNoneMatch(entityTag string) *ProjectsInstructionsGetCall {
 11118  	c.ifNoneMatch_ = entityTag
 11119  	return c
 11120  }
 11121  
 11122  // Context sets the context to be used in this call's Do method.
 11123  func (c *ProjectsInstructionsGetCall) Context(ctx context.Context) *ProjectsInstructionsGetCall {
 11124  	c.ctx_ = ctx
 11125  	return c
 11126  }
 11127  
 11128  // Header returns a http.Header that can be modified by the caller to add
 11129  // headers to the request.
 11130  func (c *ProjectsInstructionsGetCall) Header() http.Header {
 11131  	if c.header_ == nil {
 11132  		c.header_ = make(http.Header)
 11133  	}
 11134  	return c.header_
 11135  }
 11136  
 11137  func (c *ProjectsInstructionsGetCall) doRequest(alt string) (*http.Response, error) {
 11138  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11139  	if c.ifNoneMatch_ != "" {
 11140  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11141  	}
 11142  	var body io.Reader = nil
 11143  	c.urlParams_.Set("alt", alt)
 11144  	c.urlParams_.Set("prettyPrint", "false")
 11145  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11146  	urls += "?" + c.urlParams_.Encode()
 11147  	req, err := http.NewRequest("GET", urls, body)
 11148  	if err != nil {
 11149  		return nil, err
 11150  	}
 11151  	req.Header = reqHeaders
 11152  	googleapi.Expand(req.URL, map[string]string{
 11153  		"name": c.name,
 11154  	})
 11155  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11156  }
 11157  
 11158  // Do executes the "datalabeling.projects.instructions.get" call.
 11159  // Any non-2xx status code is an error. Response headers are in either
 11160  // *GoogleCloudDatalabelingV1beta1Instruction.ServerResponse.Header or (if a
 11161  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11162  // googleapi.IsNotModified to check whether the returned error was because
 11163  // http.StatusNotModified was returned.
 11164  func (c *ProjectsInstructionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Instruction, error) {
 11165  	gensupport.SetOptions(c.urlParams_, opts...)
 11166  	res, err := c.doRequest("json")
 11167  	if res != nil && res.StatusCode == http.StatusNotModified {
 11168  		if res.Body != nil {
 11169  			res.Body.Close()
 11170  		}
 11171  		return nil, gensupport.WrapError(&googleapi.Error{
 11172  			Code:   res.StatusCode,
 11173  			Header: res.Header,
 11174  		})
 11175  	}
 11176  	if err != nil {
 11177  		return nil, err
 11178  	}
 11179  	defer googleapi.CloseBody(res)
 11180  	if err := googleapi.CheckResponse(res); err != nil {
 11181  		return nil, gensupport.WrapError(err)
 11182  	}
 11183  	ret := &GoogleCloudDatalabelingV1beta1Instruction{
 11184  		ServerResponse: googleapi.ServerResponse{
 11185  			Header:         res.Header,
 11186  			HTTPStatusCode: res.StatusCode,
 11187  		},
 11188  	}
 11189  	target := &ret
 11190  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11191  		return nil, err
 11192  	}
 11193  	return ret, nil
 11194  }
 11195  
 11196  type ProjectsInstructionsListCall struct {
 11197  	s            *Service
 11198  	parent       string
 11199  	urlParams_   gensupport.URLParams
 11200  	ifNoneMatch_ string
 11201  	ctx_         context.Context
 11202  	header_      http.Header
 11203  }
 11204  
 11205  // List: Lists instructions for a project. Pagination is supported.
 11206  //
 11207  // - parent: Instruction resource parent, format: projects/{project_id}.
 11208  func (r *ProjectsInstructionsService) List(parent string) *ProjectsInstructionsListCall {
 11209  	c := &ProjectsInstructionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11210  	c.parent = parent
 11211  	return c
 11212  }
 11213  
 11214  // Filter sets the optional parameter "filter": Filter is not supported at this
 11215  // moment.
 11216  func (c *ProjectsInstructionsListCall) Filter(filter string) *ProjectsInstructionsListCall {
 11217  	c.urlParams_.Set("filter", filter)
 11218  	return c
 11219  }
 11220  
 11221  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 11222  // may return fewer results than requested. Default value is 100.
 11223  func (c *ProjectsInstructionsListCall) PageSize(pageSize int64) *ProjectsInstructionsListCall {
 11224  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11225  	return c
 11226  }
 11227  
 11228  // PageToken sets the optional parameter "pageToken": A token identifying a
 11229  // page of results for the server to return. Typically obtained by
 11230  // ListInstructionsResponse.next_page_token of the previous
 11231  // [DataLabelingService.ListInstructions] call. Return first page if empty.
 11232  func (c *ProjectsInstructionsListCall) PageToken(pageToken string) *ProjectsInstructionsListCall {
 11233  	c.urlParams_.Set("pageToken", pageToken)
 11234  	return c
 11235  }
 11236  
 11237  // Fields allows partial responses to be retrieved. See
 11238  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11239  // details.
 11240  func (c *ProjectsInstructionsListCall) Fields(s ...googleapi.Field) *ProjectsInstructionsListCall {
 11241  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11242  	return c
 11243  }
 11244  
 11245  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11246  // object's ETag matches the given value. This is useful for getting updates
 11247  // only after the object has changed since the last request.
 11248  func (c *ProjectsInstructionsListCall) IfNoneMatch(entityTag string) *ProjectsInstructionsListCall {
 11249  	c.ifNoneMatch_ = entityTag
 11250  	return c
 11251  }
 11252  
 11253  // Context sets the context to be used in this call's Do method.
 11254  func (c *ProjectsInstructionsListCall) Context(ctx context.Context) *ProjectsInstructionsListCall {
 11255  	c.ctx_ = ctx
 11256  	return c
 11257  }
 11258  
 11259  // Header returns a http.Header that can be modified by the caller to add
 11260  // headers to the request.
 11261  func (c *ProjectsInstructionsListCall) Header() http.Header {
 11262  	if c.header_ == nil {
 11263  		c.header_ = make(http.Header)
 11264  	}
 11265  	return c.header_
 11266  }
 11267  
 11268  func (c *ProjectsInstructionsListCall) doRequest(alt string) (*http.Response, error) {
 11269  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11270  	if c.ifNoneMatch_ != "" {
 11271  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11272  	}
 11273  	var body io.Reader = nil
 11274  	c.urlParams_.Set("alt", alt)
 11275  	c.urlParams_.Set("prettyPrint", "false")
 11276  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions")
 11277  	urls += "?" + c.urlParams_.Encode()
 11278  	req, err := http.NewRequest("GET", urls, body)
 11279  	if err != nil {
 11280  		return nil, err
 11281  	}
 11282  	req.Header = reqHeaders
 11283  	googleapi.Expand(req.URL, map[string]string{
 11284  		"parent": c.parent,
 11285  	})
 11286  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11287  }
 11288  
 11289  // Do executes the "datalabeling.projects.instructions.list" call.
 11290  // Any non-2xx status code is an error. Response headers are in either
 11291  // *GoogleCloudDatalabelingV1beta1ListInstructionsResponse.ServerResponse.Header
 11292  //
 11293  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 11294  //
 11295  // Use googleapi.IsNotModified to check whether the returned error was because
 11296  // http.StatusNotModified was returned.
 11297  func (c *ProjectsInstructionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListInstructionsResponse, error) {
 11298  	gensupport.SetOptions(c.urlParams_, opts...)
 11299  	res, err := c.doRequest("json")
 11300  	if res != nil && res.StatusCode == http.StatusNotModified {
 11301  		if res.Body != nil {
 11302  			res.Body.Close()
 11303  		}
 11304  		return nil, gensupport.WrapError(&googleapi.Error{
 11305  			Code:   res.StatusCode,
 11306  			Header: res.Header,
 11307  		})
 11308  	}
 11309  	if err != nil {
 11310  		return nil, err
 11311  	}
 11312  	defer googleapi.CloseBody(res)
 11313  	if err := googleapi.CheckResponse(res); err != nil {
 11314  		return nil, gensupport.WrapError(err)
 11315  	}
 11316  	ret := &GoogleCloudDatalabelingV1beta1ListInstructionsResponse{
 11317  		ServerResponse: googleapi.ServerResponse{
 11318  			Header:         res.Header,
 11319  			HTTPStatusCode: res.StatusCode,
 11320  		},
 11321  	}
 11322  	target := &ret
 11323  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11324  		return nil, err
 11325  	}
 11326  	return ret, nil
 11327  }
 11328  
 11329  // Pages invokes f for each page of results.
 11330  // A non-nil error returned from f will halt the iteration.
 11331  // The provided context supersedes any context provided to the Context method.
 11332  func (c *ProjectsInstructionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListInstructionsResponse) error) error {
 11333  	c.ctx_ = ctx
 11334  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11335  	for {
 11336  		x, err := c.Do()
 11337  		if err != nil {
 11338  			return err
 11339  		}
 11340  		if err := f(x); err != nil {
 11341  			return err
 11342  		}
 11343  		if x.NextPageToken == "" {
 11344  			return nil
 11345  		}
 11346  		c.PageToken(x.NextPageToken)
 11347  	}
 11348  }
 11349  
 11350  type ProjectsOperationsCancelCall struct {
 11351  	s            *Service
 11352  	name         string
 11353  	urlParams_   gensupport.URLParams
 11354  	ifNoneMatch_ string
 11355  	ctx_         context.Context
 11356  	header_      http.Header
 11357  }
 11358  
 11359  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 11360  // server makes a best effort to cancel the operation, but success is not
 11361  // guaranteed. If the server doesn't support this method, it returns
 11362  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 11363  // other methods to check whether the cancellation succeeded or whether the
 11364  // operation completed despite cancellation. On successful cancellation, the
 11365  // operation is not deleted; instead, it becomes an operation with an
 11366  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 11367  // `Code.CANCELLED`.
 11368  //
 11369  // - name: The name of the operation resource to be cancelled.
 11370  func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
 11371  	c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11372  	c.name = name
 11373  	return c
 11374  }
 11375  
 11376  // Fields allows partial responses to be retrieved. See
 11377  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11378  // details.
 11379  func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
 11380  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11381  	return c
 11382  }
 11383  
 11384  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11385  // object's ETag matches the given value. This is useful for getting updates
 11386  // only after the object has changed since the last request.
 11387  func (c *ProjectsOperationsCancelCall) IfNoneMatch(entityTag string) *ProjectsOperationsCancelCall {
 11388  	c.ifNoneMatch_ = entityTag
 11389  	return c
 11390  }
 11391  
 11392  // Context sets the context to be used in this call's Do method.
 11393  func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
 11394  	c.ctx_ = ctx
 11395  	return c
 11396  }
 11397  
 11398  // Header returns a http.Header that can be modified by the caller to add
 11399  // headers to the request.
 11400  func (c *ProjectsOperationsCancelCall) Header() http.Header {
 11401  	if c.header_ == nil {
 11402  		c.header_ = make(http.Header)
 11403  	}
 11404  	return c.header_
 11405  }
 11406  
 11407  func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 11408  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11409  	if c.ifNoneMatch_ != "" {
 11410  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11411  	}
 11412  	var body io.Reader = nil
 11413  	c.urlParams_.Set("alt", alt)
 11414  	c.urlParams_.Set("prettyPrint", "false")
 11415  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
 11416  	urls += "?" + c.urlParams_.Encode()
 11417  	req, err := http.NewRequest("GET", urls, body)
 11418  	if err != nil {
 11419  		return nil, err
 11420  	}
 11421  	req.Header = reqHeaders
 11422  	googleapi.Expand(req.URL, map[string]string{
 11423  		"name": c.name,
 11424  	})
 11425  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11426  }
 11427  
 11428  // Do executes the "datalabeling.projects.operations.cancel" call.
 11429  // Any non-2xx status code is an error. Response headers are in either
 11430  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11431  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11432  // check whether the returned error was because http.StatusNotModified was
 11433  // returned.
 11434  func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11435  	gensupport.SetOptions(c.urlParams_, opts...)
 11436  	res, err := c.doRequest("json")
 11437  	if res != nil && res.StatusCode == http.StatusNotModified {
 11438  		if res.Body != nil {
 11439  			res.Body.Close()
 11440  		}
 11441  		return nil, gensupport.WrapError(&googleapi.Error{
 11442  			Code:   res.StatusCode,
 11443  			Header: res.Header,
 11444  		})
 11445  	}
 11446  	if err != nil {
 11447  		return nil, err
 11448  	}
 11449  	defer googleapi.CloseBody(res)
 11450  	if err := googleapi.CheckResponse(res); err != nil {
 11451  		return nil, gensupport.WrapError(err)
 11452  	}
 11453  	ret := &GoogleProtobufEmpty{
 11454  		ServerResponse: googleapi.ServerResponse{
 11455  			Header:         res.Header,
 11456  			HTTPStatusCode: res.StatusCode,
 11457  		},
 11458  	}
 11459  	target := &ret
 11460  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11461  		return nil, err
 11462  	}
 11463  	return ret, nil
 11464  }
 11465  
 11466  type ProjectsOperationsDeleteCall struct {
 11467  	s          *Service
 11468  	name       string
 11469  	urlParams_ gensupport.URLParams
 11470  	ctx_       context.Context
 11471  	header_    http.Header
 11472  }
 11473  
 11474  // Delete: Deletes a long-running operation. This method indicates that the
 11475  // client is no longer interested in the operation result. It does not cancel
 11476  // the operation. If the server doesn't support this method, it returns
 11477  // `google.rpc.Code.UNIMPLEMENTED`.
 11478  //
 11479  // - name: The name of the operation resource to be deleted.
 11480  func (r *ProjectsOperationsService) Delete(name string) *ProjectsOperationsDeleteCall {
 11481  	c := &ProjectsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11482  	c.name = name
 11483  	return c
 11484  }
 11485  
 11486  // Fields allows partial responses to be retrieved. See
 11487  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11488  // details.
 11489  func (c *ProjectsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOperationsDeleteCall {
 11490  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11491  	return c
 11492  }
 11493  
 11494  // Context sets the context to be used in this call's Do method.
 11495  func (c *ProjectsOperationsDeleteCall) Context(ctx context.Context) *ProjectsOperationsDeleteCall {
 11496  	c.ctx_ = ctx
 11497  	return c
 11498  }
 11499  
 11500  // Header returns a http.Header that can be modified by the caller to add
 11501  // headers to the request.
 11502  func (c *ProjectsOperationsDeleteCall) Header() http.Header {
 11503  	if c.header_ == nil {
 11504  		c.header_ = make(http.Header)
 11505  	}
 11506  	return c.header_
 11507  }
 11508  
 11509  func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 11510  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11511  	var body io.Reader = nil
 11512  	c.urlParams_.Set("alt", alt)
 11513  	c.urlParams_.Set("prettyPrint", "false")
 11514  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11515  	urls += "?" + c.urlParams_.Encode()
 11516  	req, err := http.NewRequest("DELETE", urls, body)
 11517  	if err != nil {
 11518  		return nil, err
 11519  	}
 11520  	req.Header = reqHeaders
 11521  	googleapi.Expand(req.URL, map[string]string{
 11522  		"name": c.name,
 11523  	})
 11524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11525  }
 11526  
 11527  // Do executes the "datalabeling.projects.operations.delete" call.
 11528  // Any non-2xx status code is an error. Response headers are in either
 11529  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 11530  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11531  // check whether the returned error was because http.StatusNotModified was
 11532  // returned.
 11533  func (c *ProjectsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 11534  	gensupport.SetOptions(c.urlParams_, opts...)
 11535  	res, err := c.doRequest("json")
 11536  	if res != nil && res.StatusCode == http.StatusNotModified {
 11537  		if res.Body != nil {
 11538  			res.Body.Close()
 11539  		}
 11540  		return nil, gensupport.WrapError(&googleapi.Error{
 11541  			Code:   res.StatusCode,
 11542  			Header: res.Header,
 11543  		})
 11544  	}
 11545  	if err != nil {
 11546  		return nil, err
 11547  	}
 11548  	defer googleapi.CloseBody(res)
 11549  	if err := googleapi.CheckResponse(res); err != nil {
 11550  		return nil, gensupport.WrapError(err)
 11551  	}
 11552  	ret := &GoogleProtobufEmpty{
 11553  		ServerResponse: googleapi.ServerResponse{
 11554  			Header:         res.Header,
 11555  			HTTPStatusCode: res.StatusCode,
 11556  		},
 11557  	}
 11558  	target := &ret
 11559  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11560  		return nil, err
 11561  	}
 11562  	return ret, nil
 11563  }
 11564  
 11565  type ProjectsOperationsGetCall struct {
 11566  	s            *Service
 11567  	name         string
 11568  	urlParams_   gensupport.URLParams
 11569  	ifNoneMatch_ string
 11570  	ctx_         context.Context
 11571  	header_      http.Header
 11572  }
 11573  
 11574  // Get: Gets the latest state of a long-running operation. Clients can use this
 11575  // method to poll the operation result at intervals as recommended by the API
 11576  // service.
 11577  //
 11578  // - name: The name of the operation resource.
 11579  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 11580  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11581  	c.name = name
 11582  	return c
 11583  }
 11584  
 11585  // Fields allows partial responses to be retrieved. See
 11586  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11587  // details.
 11588  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 11589  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11590  	return c
 11591  }
 11592  
 11593  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11594  // object's ETag matches the given value. This is useful for getting updates
 11595  // only after the object has changed since the last request.
 11596  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 11597  	c.ifNoneMatch_ = entityTag
 11598  	return c
 11599  }
 11600  
 11601  // Context sets the context to be used in this call's Do method.
 11602  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 11603  	c.ctx_ = ctx
 11604  	return c
 11605  }
 11606  
 11607  // Header returns a http.Header that can be modified by the caller to add
 11608  // headers to the request.
 11609  func (c *ProjectsOperationsGetCall) Header() http.Header {
 11610  	if c.header_ == nil {
 11611  		c.header_ = make(http.Header)
 11612  	}
 11613  	return c.header_
 11614  }
 11615  
 11616  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 11617  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11618  	if c.ifNoneMatch_ != "" {
 11619  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11620  	}
 11621  	var body io.Reader = nil
 11622  	c.urlParams_.Set("alt", alt)
 11623  	c.urlParams_.Set("prettyPrint", "false")
 11624  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
 11625  	urls += "?" + c.urlParams_.Encode()
 11626  	req, err := http.NewRequest("GET", urls, body)
 11627  	if err != nil {
 11628  		return nil, err
 11629  	}
 11630  	req.Header = reqHeaders
 11631  	googleapi.Expand(req.URL, map[string]string{
 11632  		"name": c.name,
 11633  	})
 11634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11635  }
 11636  
 11637  // Do executes the "datalabeling.projects.operations.get" call.
 11638  // Any non-2xx status code is an error. Response headers are in either
 11639  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 11640  // returned at all) in error.(*googleapi.Error).Header. Use
 11641  // googleapi.IsNotModified to check whether the returned error was because
 11642  // http.StatusNotModified was returned.
 11643  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 11644  	gensupport.SetOptions(c.urlParams_, opts...)
 11645  	res, err := c.doRequest("json")
 11646  	if res != nil && res.StatusCode == http.StatusNotModified {
 11647  		if res.Body != nil {
 11648  			res.Body.Close()
 11649  		}
 11650  		return nil, gensupport.WrapError(&googleapi.Error{
 11651  			Code:   res.StatusCode,
 11652  			Header: res.Header,
 11653  		})
 11654  	}
 11655  	if err != nil {
 11656  		return nil, err
 11657  	}
 11658  	defer googleapi.CloseBody(res)
 11659  	if err := googleapi.CheckResponse(res); err != nil {
 11660  		return nil, gensupport.WrapError(err)
 11661  	}
 11662  	ret := &GoogleLongrunningOperation{
 11663  		ServerResponse: googleapi.ServerResponse{
 11664  			Header:         res.Header,
 11665  			HTTPStatusCode: res.StatusCode,
 11666  		},
 11667  	}
 11668  	target := &ret
 11669  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11670  		return nil, err
 11671  	}
 11672  	return ret, nil
 11673  }
 11674  
 11675  type ProjectsOperationsListCall struct {
 11676  	s            *Service
 11677  	name         string
 11678  	urlParams_   gensupport.URLParams
 11679  	ifNoneMatch_ string
 11680  	ctx_         context.Context
 11681  	header_      http.Header
 11682  }
 11683  
 11684  // List: Lists operations that match the specified filter in the request. If
 11685  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 11686  //
 11687  // - name: The name of the operation's parent resource.
 11688  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 11689  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11690  	c.name = name
 11691  	return c
 11692  }
 11693  
 11694  // Filter sets the optional parameter "filter": The standard list filter.
 11695  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 11696  	c.urlParams_.Set("filter", filter)
 11697  	return c
 11698  }
 11699  
 11700  // PageSize sets the optional parameter "pageSize": The standard list page
 11701  // size.
 11702  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 11703  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11704  	return c
 11705  }
 11706  
 11707  // PageToken sets the optional parameter "pageToken": The standard list page
 11708  // token.
 11709  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 11710  	c.urlParams_.Set("pageToken", pageToken)
 11711  	return c
 11712  }
 11713  
 11714  // Fields allows partial responses to be retrieved. See
 11715  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11716  // details.
 11717  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 11718  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11719  	return c
 11720  }
 11721  
 11722  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11723  // object's ETag matches the given value. This is useful for getting updates
 11724  // only after the object has changed since the last request.
 11725  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 11726  	c.ifNoneMatch_ = entityTag
 11727  	return c
 11728  }
 11729  
 11730  // Context sets the context to be used in this call's Do method.
 11731  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 11732  	c.ctx_ = ctx
 11733  	return c
 11734  }
 11735  
 11736  // Header returns a http.Header that can be modified by the caller to add
 11737  // headers to the request.
 11738  func (c *ProjectsOperationsListCall) Header() http.Header {
 11739  	if c.header_ == nil {
 11740  		c.header_ = make(http.Header)
 11741  	}
 11742  	return c.header_
 11743  }
 11744  
 11745  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 11746  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11747  	if c.ifNoneMatch_ != "" {
 11748  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11749  	}
 11750  	var body io.Reader = nil
 11751  	c.urlParams_.Set("alt", alt)
 11752  	c.urlParams_.Set("prettyPrint", "false")
 11753  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations")
 11754  	urls += "?" + c.urlParams_.Encode()
 11755  	req, err := http.NewRequest("GET", urls, body)
 11756  	if err != nil {
 11757  		return nil, err
 11758  	}
 11759  	req.Header = reqHeaders
 11760  	googleapi.Expand(req.URL, map[string]string{
 11761  		"name": c.name,
 11762  	})
 11763  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11764  }
 11765  
 11766  // Do executes the "datalabeling.projects.operations.list" call.
 11767  // Any non-2xx status code is an error. Response headers are in either
 11768  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 11769  // response was returned at all) in error.(*googleapi.Error).Header. Use
 11770  // googleapi.IsNotModified to check whether the returned error was because
 11771  // http.StatusNotModified was returned.
 11772  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 11773  	gensupport.SetOptions(c.urlParams_, opts...)
 11774  	res, err := c.doRequest("json")
 11775  	if res != nil && res.StatusCode == http.StatusNotModified {
 11776  		if res.Body != nil {
 11777  			res.Body.Close()
 11778  		}
 11779  		return nil, gensupport.WrapError(&googleapi.Error{
 11780  			Code:   res.StatusCode,
 11781  			Header: res.Header,
 11782  		})
 11783  	}
 11784  	if err != nil {
 11785  		return nil, err
 11786  	}
 11787  	defer googleapi.CloseBody(res)
 11788  	if err := googleapi.CheckResponse(res); err != nil {
 11789  		return nil, gensupport.WrapError(err)
 11790  	}
 11791  	ret := &GoogleLongrunningListOperationsResponse{
 11792  		ServerResponse: googleapi.ServerResponse{
 11793  			Header:         res.Header,
 11794  			HTTPStatusCode: res.StatusCode,
 11795  		},
 11796  	}
 11797  	target := &ret
 11798  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11799  		return nil, err
 11800  	}
 11801  	return ret, nil
 11802  }
 11803  
 11804  // Pages invokes f for each page of results.
 11805  // A non-nil error returned from f will halt the iteration.
 11806  // The provided context supersedes any context provided to the Context method.
 11807  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 11808  	c.ctx_ = ctx
 11809  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11810  	for {
 11811  		x, err := c.Do()
 11812  		if err != nil {
 11813  			return err
 11814  		}
 11815  		if err := f(x); err != nil {
 11816  			return err
 11817  		}
 11818  		if x.NextPageToken == "" {
 11819  			return nil
 11820  		}
 11821  		c.PageToken(x.NextPageToken)
 11822  	}
 11823  }
 11824  

View as plain text