...

Source file src/google.golang.org/api/datastream/v1/datastream-gen.go

Documentation: google.golang.org/api/datastream/v1

     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 datastream provides access to the Datastream API.
     8  //
     9  // For product documentation, see: https://cloud.google.com/datastream/
    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/datastream/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	datastreamService, err := datastream.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  //	datastreamService, err := datastream.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  //	datastreamService, err := datastream.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package datastream // import "google.golang.org/api/datastream/v1"
    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 = "datastream:v1"
    90  const apiName = "datastream"
    91  const apiVersion = "v1"
    92  const basePath = "https://datastream.googleapis.com/"
    93  const basePathTemplate = "https://datastream.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://datastream.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.Locations = NewProjectsLocationsService(s)
   160  	return rs
   161  }
   162  
   163  type ProjectsService struct {
   164  	s *Service
   165  
   166  	Locations *ProjectsLocationsService
   167  }
   168  
   169  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   170  	rs := &ProjectsLocationsService{s: s}
   171  	rs.ConnectionProfiles = NewProjectsLocationsConnectionProfilesService(s)
   172  	rs.Operations = NewProjectsLocationsOperationsService(s)
   173  	rs.PrivateConnections = NewProjectsLocationsPrivateConnectionsService(s)
   174  	rs.Streams = NewProjectsLocationsStreamsService(s)
   175  	return rs
   176  }
   177  
   178  type ProjectsLocationsService struct {
   179  	s *Service
   180  
   181  	ConnectionProfiles *ProjectsLocationsConnectionProfilesService
   182  
   183  	Operations *ProjectsLocationsOperationsService
   184  
   185  	PrivateConnections *ProjectsLocationsPrivateConnectionsService
   186  
   187  	Streams *ProjectsLocationsStreamsService
   188  }
   189  
   190  func NewProjectsLocationsConnectionProfilesService(s *Service) *ProjectsLocationsConnectionProfilesService {
   191  	rs := &ProjectsLocationsConnectionProfilesService{s: s}
   192  	return rs
   193  }
   194  
   195  type ProjectsLocationsConnectionProfilesService struct {
   196  	s *Service
   197  }
   198  
   199  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   200  	rs := &ProjectsLocationsOperationsService{s: s}
   201  	return rs
   202  }
   203  
   204  type ProjectsLocationsOperationsService struct {
   205  	s *Service
   206  }
   207  
   208  func NewProjectsLocationsPrivateConnectionsService(s *Service) *ProjectsLocationsPrivateConnectionsService {
   209  	rs := &ProjectsLocationsPrivateConnectionsService{s: s}
   210  	rs.Routes = NewProjectsLocationsPrivateConnectionsRoutesService(s)
   211  	return rs
   212  }
   213  
   214  type ProjectsLocationsPrivateConnectionsService struct {
   215  	s *Service
   216  
   217  	Routes *ProjectsLocationsPrivateConnectionsRoutesService
   218  }
   219  
   220  func NewProjectsLocationsPrivateConnectionsRoutesService(s *Service) *ProjectsLocationsPrivateConnectionsRoutesService {
   221  	rs := &ProjectsLocationsPrivateConnectionsRoutesService{s: s}
   222  	return rs
   223  }
   224  
   225  type ProjectsLocationsPrivateConnectionsRoutesService struct {
   226  	s *Service
   227  }
   228  
   229  func NewProjectsLocationsStreamsService(s *Service) *ProjectsLocationsStreamsService {
   230  	rs := &ProjectsLocationsStreamsService{s: s}
   231  	rs.Objects = NewProjectsLocationsStreamsObjectsService(s)
   232  	return rs
   233  }
   234  
   235  type ProjectsLocationsStreamsService struct {
   236  	s *Service
   237  
   238  	Objects *ProjectsLocationsStreamsObjectsService
   239  }
   240  
   241  func NewProjectsLocationsStreamsObjectsService(s *Service) *ProjectsLocationsStreamsObjectsService {
   242  	rs := &ProjectsLocationsStreamsObjectsService{s: s}
   243  	return rs
   244  }
   245  
   246  type ProjectsLocationsStreamsObjectsService struct {
   247  	s *Service
   248  }
   249  
   250  // AppendOnly: AppendOnly mode defines that all changes to a table will be
   251  // written to the destination table.
   252  type AppendOnly struct {
   253  }
   254  
   255  // AvroFileFormat: AVRO file format configuration.
   256  type AvroFileFormat struct {
   257  }
   258  
   259  // BackfillAllStrategy: Backfill strategy to automatically backfill the
   260  // Stream's objects. Specific objects can be excluded.
   261  type BackfillAllStrategy struct {
   262  	// MysqlExcludedObjects: MySQL data source objects to avoid backfilling.
   263  	MysqlExcludedObjects *MysqlRdbms `json:"mysqlExcludedObjects,omitempty"`
   264  	// OracleExcludedObjects: Oracle data source objects to avoid backfilling.
   265  	OracleExcludedObjects *OracleRdbms `json:"oracleExcludedObjects,omitempty"`
   266  	// PostgresqlExcludedObjects: PostgreSQL data source objects to avoid
   267  	// backfilling.
   268  	PostgresqlExcludedObjects *PostgresqlRdbms `json:"postgresqlExcludedObjects,omitempty"`
   269  	// SqlServerExcludedObjects: SQLServer data source objects to avoid backfilling
   270  	SqlServerExcludedObjects *SqlServerRdbms `json:"sqlServerExcludedObjects,omitempty"`
   271  	// ForceSendFields is a list of field names (e.g. "MysqlExcludedObjects") to
   272  	// unconditionally include in API requests. By default, fields with empty or
   273  	// default values are omitted from API requests. See
   274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   275  	// details.
   276  	ForceSendFields []string `json:"-"`
   277  	// NullFields is a list of field names (e.g. "MysqlExcludedObjects") to include
   278  	// in API requests with the JSON null value. By default, fields with empty
   279  	// values are omitted from API requests. See
   280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   281  	NullFields []string `json:"-"`
   282  }
   283  
   284  func (s *BackfillAllStrategy) MarshalJSON() ([]byte, error) {
   285  	type NoMethod BackfillAllStrategy
   286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   287  }
   288  
   289  // BackfillJob: Represents a backfill job on a specific stream object.
   290  type BackfillJob struct {
   291  	// Errors: Output only. Errors which caused the backfill job to fail.
   292  	Errors []*Error `json:"errors,omitempty"`
   293  	// LastEndTime: Output only. Backfill job's end time.
   294  	LastEndTime string `json:"lastEndTime,omitempty"`
   295  	// LastStartTime: Output only. Backfill job's start time.
   296  	LastStartTime string `json:"lastStartTime,omitempty"`
   297  	// State: Output only. Backfill job state.
   298  	//
   299  	// Possible values:
   300  	//   "STATE_UNSPECIFIED" - Default value.
   301  	//   "NOT_STARTED" - Backfill job was never started for the stream object
   302  	// (stream has backfill strategy defined as manual or object was explicitly
   303  	// excluded from automatic backfill).
   304  	//   "PENDING" - Backfill job will start pending available resources.
   305  	//   "ACTIVE" - Backfill job is running.
   306  	//   "STOPPED" - Backfill job stopped (next job run will start from beginning).
   307  	//   "FAILED" - Backfill job failed (due to an error).
   308  	//   "COMPLETED" - Backfill completed successfully.
   309  	//   "UNSUPPORTED" - Backfill job failed since the table structure is currently
   310  	// unsupported for backfill.
   311  	State string `json:"state,omitempty"`
   312  	// Trigger: Backfill job's triggering reason.
   313  	//
   314  	// Possible values:
   315  	//   "TRIGGER_UNSPECIFIED" - Default value.
   316  	//   "AUTOMATIC" - Object backfill job was triggered automatically according to
   317  	// the stream's backfill strategy.
   318  	//   "MANUAL" - Object backfill job was triggered manually using the dedicated
   319  	// API.
   320  	Trigger string `json:"trigger,omitempty"`
   321  	// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally
   322  	// include in API requests. By default, fields with empty or default values are
   323  	// omitted from API requests. See
   324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   325  	// details.
   326  	ForceSendFields []string `json:"-"`
   327  	// NullFields is a list of field names (e.g. "Errors") to include in API
   328  	// requests with the JSON null value. By default, fields with empty values are
   329  	// omitted from API requests. See
   330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   331  	NullFields []string `json:"-"`
   332  }
   333  
   334  func (s *BackfillJob) MarshalJSON() ([]byte, error) {
   335  	type NoMethod BackfillJob
   336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   337  }
   338  
   339  // BackfillNoneStrategy: Backfill strategy to disable automatic backfill for
   340  // the Stream's objects.
   341  type BackfillNoneStrategy struct {
   342  }
   343  
   344  // BigQueryDestinationConfig: BigQuery destination configuration
   345  type BigQueryDestinationConfig struct {
   346  	// AppendOnly: Append only mode
   347  	AppendOnly *AppendOnly `json:"appendOnly,omitempty"`
   348  	// DataFreshness: The guaranteed data freshness (in seconds) when querying
   349  	// tables created by the stream. Editing this field will only affect new tables
   350  	// created in the future, but existing tables will not be impacted. Lower
   351  	// values mean that queries will return fresher data, but may result in higher
   352  	// cost.
   353  	DataFreshness string `json:"dataFreshness,omitempty"`
   354  	// Merge: The standard mode
   355  	Merge *Merge `json:"merge,omitempty"`
   356  	// SingleTargetDataset: Single destination dataset.
   357  	SingleTargetDataset *SingleTargetDataset `json:"singleTargetDataset,omitempty"`
   358  	// SourceHierarchyDatasets: Source hierarchy datasets.
   359  	SourceHierarchyDatasets *SourceHierarchyDatasets `json:"sourceHierarchyDatasets,omitempty"`
   360  	// ForceSendFields is a list of field names (e.g. "AppendOnly") to
   361  	// unconditionally include in API requests. By default, fields with empty or
   362  	// default values are omitted from API requests. See
   363  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   364  	// details.
   365  	ForceSendFields []string `json:"-"`
   366  	// NullFields is a list of field names (e.g. "AppendOnly") to include in API
   367  	// requests with the JSON null value. By default, fields with empty values are
   368  	// omitted from API requests. See
   369  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   370  	NullFields []string `json:"-"`
   371  }
   372  
   373  func (s *BigQueryDestinationConfig) MarshalJSON() ([]byte, error) {
   374  	type NoMethod BigQueryDestinationConfig
   375  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   376  }
   377  
   378  // BigQueryProfile: BigQuery warehouse profile.
   379  type BigQueryProfile struct {
   380  }
   381  
   382  // CancelOperationRequest: The request message for Operations.CancelOperation.
   383  type CancelOperationRequest struct {
   384  }
   385  
   386  // CdcStrategy: The strategy that the stream uses for CDC replication.
   387  type CdcStrategy struct {
   388  	// MostRecentStartPosition: Optional. Start replicating from the most recent
   389  	// position in the source.
   390  	MostRecentStartPosition *MostRecentStartPosition `json:"mostRecentStartPosition,omitempty"`
   391  	// NextAvailableStartPosition: Optional. Resume replication from the next
   392  	// available position in the source.
   393  	NextAvailableStartPosition *NextAvailableStartPosition `json:"nextAvailableStartPosition,omitempty"`
   394  	// SpecificStartPosition: Optional. Start replicating from a specific position
   395  	// in the source.
   396  	SpecificStartPosition *SpecificStartPosition `json:"specificStartPosition,omitempty"`
   397  	// ForceSendFields is a list of field names (e.g. "MostRecentStartPosition") to
   398  	// unconditionally include in API requests. By default, fields with empty or
   399  	// default values are omitted from API requests. See
   400  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   401  	// details.
   402  	ForceSendFields []string `json:"-"`
   403  	// NullFields is a list of field names (e.g. "MostRecentStartPosition") to
   404  	// include in API requests with the JSON null value. By default, fields with
   405  	// empty values are omitted from API requests. See
   406  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   407  	NullFields []string `json:"-"`
   408  }
   409  
   410  func (s *CdcStrategy) MarshalJSON() ([]byte, error) {
   411  	type NoMethod CdcStrategy
   412  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   413  }
   414  
   415  // ConnectionProfile: A set of reusable connection configurations to be used as
   416  // a source or destination for a stream.
   417  type ConnectionProfile struct {
   418  	// BigqueryProfile: BigQuery Connection Profile configuration.
   419  	BigqueryProfile *BigQueryProfile `json:"bigqueryProfile,omitempty"`
   420  	// CreateTime: Output only. The create time of the resource.
   421  	CreateTime string `json:"createTime,omitempty"`
   422  	// DisplayName: Required. Display name.
   423  	DisplayName string `json:"displayName,omitempty"`
   424  	// ForwardSshConnectivity: Forward SSH tunnel connectivity.
   425  	ForwardSshConnectivity *ForwardSshTunnelConnectivity `json:"forwardSshConnectivity,omitempty"`
   426  	// GcsProfile: Cloud Storage ConnectionProfile configuration.
   427  	GcsProfile *GcsProfile `json:"gcsProfile,omitempty"`
   428  	// Labels: Labels.
   429  	Labels map[string]string `json:"labels,omitempty"`
   430  	// MysqlProfile: MySQL ConnectionProfile configuration.
   431  	MysqlProfile *MysqlProfile `json:"mysqlProfile,omitempty"`
   432  	// Name: Output only. The resource's name.
   433  	Name string `json:"name,omitempty"`
   434  	// OracleProfile: Oracle ConnectionProfile configuration.
   435  	OracleProfile *OracleProfile `json:"oracleProfile,omitempty"`
   436  	// PostgresqlProfile: PostgreSQL Connection Profile configuration.
   437  	PostgresqlProfile *PostgresqlProfile `json:"postgresqlProfile,omitempty"`
   438  	// PrivateConnectivity: Private connectivity.
   439  	PrivateConnectivity *PrivateConnectivity `json:"privateConnectivity,omitempty"`
   440  	// SqlServerProfile: SQLServer Connection Profile configuration.
   441  	SqlServerProfile *SqlServerProfile `json:"sqlServerProfile,omitempty"`
   442  	// StaticServiceIpConnectivity: Static Service IP connectivity.
   443  	StaticServiceIpConnectivity *StaticServiceIpConnectivity `json:"staticServiceIpConnectivity,omitempty"`
   444  	// UpdateTime: Output only. The update time of the resource.
   445  	UpdateTime string `json:"updateTime,omitempty"`
   446  
   447  	// ServerResponse contains the HTTP response code and headers from the server.
   448  	googleapi.ServerResponse `json:"-"`
   449  	// ForceSendFields is a list of field names (e.g. "BigqueryProfile") 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. "BigqueryProfile") 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 *ConnectionProfile) MarshalJSON() ([]byte, error) {
   463  	type NoMethod ConnectionProfile
   464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   465  }
   466  
   467  // DatasetTemplate: Dataset template used for dynamic dataset creation.
   468  type DatasetTemplate struct {
   469  	// DatasetIdPrefix: If supplied, every created dataset will have its name
   470  	// prefixed by the provided value. The prefix and name will be separated by an
   471  	// underscore. i.e. _.
   472  	DatasetIdPrefix string `json:"datasetIdPrefix,omitempty"`
   473  	// KmsKeyName: Describes the Cloud KMS encryption key that will be used to
   474  	// protect destination BigQuery table. The BigQuery Service Account associated
   475  	// with your project requires access to this encryption key. i.e.
   476  	// projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypt
   477  	// oKey}. See
   478  	// https://cloud.google.com/bigquery/docs/customer-managed-encryption for more
   479  	// information.
   480  	KmsKeyName string `json:"kmsKeyName,omitempty"`
   481  	// Location: Required. The geographic location where the dataset should reside.
   482  	// See https://cloud.google.com/bigquery/docs/locations for supported
   483  	// locations.
   484  	Location string `json:"location,omitempty"`
   485  	// ForceSendFields is a list of field names (e.g. "DatasetIdPrefix") to
   486  	// unconditionally include in API requests. By default, fields with empty or
   487  	// default values are omitted from API requests. See
   488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   489  	// details.
   490  	ForceSendFields []string `json:"-"`
   491  	// NullFields is a list of field names (e.g. "DatasetIdPrefix") to include in
   492  	// API requests with the JSON null value. By default, fields with empty values
   493  	// are omitted from API requests. See
   494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   495  	NullFields []string `json:"-"`
   496  }
   497  
   498  func (s *DatasetTemplate) MarshalJSON() ([]byte, error) {
   499  	type NoMethod DatasetTemplate
   500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   501  }
   502  
   503  // DestinationConfig: The configuration of the stream destination.
   504  type DestinationConfig struct {
   505  	// BigqueryDestinationConfig: BigQuery destination configuration.
   506  	BigqueryDestinationConfig *BigQueryDestinationConfig `json:"bigqueryDestinationConfig,omitempty"`
   507  	// DestinationConnectionProfile: Required. Destination connection profile
   508  	// resource. Format:
   509  	// `projects/{project}/locations/{location}/connectionProfiles/{name}`
   510  	DestinationConnectionProfile string `json:"destinationConnectionProfile,omitempty"`
   511  	// GcsDestinationConfig: A configuration for how data should be loaded to Cloud
   512  	// Storage.
   513  	GcsDestinationConfig *GcsDestinationConfig `json:"gcsDestinationConfig,omitempty"`
   514  	// ForceSendFields is a list of field names (e.g. "BigqueryDestinationConfig")
   515  	// to unconditionally include in API requests. By default, fields with empty or
   516  	// default values are omitted from API requests. See
   517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   518  	// details.
   519  	ForceSendFields []string `json:"-"`
   520  	// NullFields is a list of field names (e.g. "BigqueryDestinationConfig") to
   521  	// include in API requests with the JSON null value. By default, fields with
   522  	// empty values are omitted from API requests. See
   523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   524  	NullFields []string `json:"-"`
   525  }
   526  
   527  func (s *DestinationConfig) MarshalJSON() ([]byte, error) {
   528  	type NoMethod DestinationConfig
   529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   530  }
   531  
   532  // DiscoverConnectionProfileRequest: Request message for 'discover'
   533  // ConnectionProfile request.
   534  type DiscoverConnectionProfileRequest struct {
   535  	// ConnectionProfile: An ad-hoc connection profile configuration.
   536  	ConnectionProfile *ConnectionProfile `json:"connectionProfile,omitempty"`
   537  	// ConnectionProfileName: A reference to an existing connection profile.
   538  	ConnectionProfileName string `json:"connectionProfileName,omitempty"`
   539  	// FullHierarchy: Whether to retrieve the full hierarchy of data objects (TRUE)
   540  	// or only the current level (FALSE).
   541  	FullHierarchy bool `json:"fullHierarchy,omitempty"`
   542  	// HierarchyDepth: The number of hierarchy levels below the current level to be
   543  	// retrieved.
   544  	HierarchyDepth int64 `json:"hierarchyDepth,omitempty"`
   545  	// MysqlRdbms: MySQL RDBMS to enrich with child data objects and metadata.
   546  	MysqlRdbms *MysqlRdbms `json:"mysqlRdbms,omitempty"`
   547  	// OracleRdbms: Oracle RDBMS to enrich with child data objects and metadata.
   548  	OracleRdbms *OracleRdbms `json:"oracleRdbms,omitempty"`
   549  	// PostgresqlRdbms: PostgreSQL RDBMS to enrich with child data objects and
   550  	// metadata.
   551  	PostgresqlRdbms *PostgresqlRdbms `json:"postgresqlRdbms,omitempty"`
   552  	// ForceSendFields is a list of field names (e.g. "ConnectionProfile") to
   553  	// unconditionally include in API requests. By default, fields with empty or
   554  	// default values are omitted from API requests. See
   555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   556  	// details.
   557  	ForceSendFields []string `json:"-"`
   558  	// NullFields is a list of field names (e.g. "ConnectionProfile") to include in
   559  	// API requests with the JSON null value. By default, fields with empty values
   560  	// are omitted from API requests. See
   561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   562  	NullFields []string `json:"-"`
   563  }
   564  
   565  func (s *DiscoverConnectionProfileRequest) MarshalJSON() ([]byte, error) {
   566  	type NoMethod DiscoverConnectionProfileRequest
   567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   568  }
   569  
   570  // DiscoverConnectionProfileResponse: Response from a discover request.
   571  type DiscoverConnectionProfileResponse struct {
   572  	// MysqlRdbms: Enriched MySQL RDBMS object.
   573  	MysqlRdbms *MysqlRdbms `json:"mysqlRdbms,omitempty"`
   574  	// OracleRdbms: Enriched Oracle RDBMS object.
   575  	OracleRdbms *OracleRdbms `json:"oracleRdbms,omitempty"`
   576  	// PostgresqlRdbms: Enriched PostgreSQL RDBMS object.
   577  	PostgresqlRdbms *PostgresqlRdbms `json:"postgresqlRdbms,omitempty"`
   578  
   579  	// ServerResponse contains the HTTP response code and headers from the server.
   580  	googleapi.ServerResponse `json:"-"`
   581  	// ForceSendFields is a list of field names (e.g. "MysqlRdbms") to
   582  	// unconditionally include in API requests. By default, fields with empty or
   583  	// default values are omitted from API requests. See
   584  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   585  	// details.
   586  	ForceSendFields []string `json:"-"`
   587  	// NullFields is a list of field names (e.g. "MysqlRdbms") to include in API
   588  	// requests with the JSON null value. By default, fields with empty values are
   589  	// omitted from API requests. See
   590  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   591  	NullFields []string `json:"-"`
   592  }
   593  
   594  func (s *DiscoverConnectionProfileResponse) MarshalJSON() ([]byte, error) {
   595  	type NoMethod DiscoverConnectionProfileResponse
   596  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   597  }
   598  
   599  // DropLargeObjects: Configuration to drop large object values.
   600  type DropLargeObjects struct {
   601  }
   602  
   603  // Empty: A generic empty message that you can re-use to avoid defining
   604  // duplicated empty messages in your APIs. A typical example is to use it as
   605  // the request or the response type of an API method. For instance: service Foo
   606  // { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
   607  type Empty struct {
   608  	// ServerResponse contains the HTTP response code and headers from the server.
   609  	googleapi.ServerResponse `json:"-"`
   610  }
   611  
   612  // Error: Represent a user-facing Error.
   613  type Error struct {
   614  	// Details: Additional information about the error.
   615  	Details map[string]string `json:"details,omitempty"`
   616  	// ErrorTime: The time when the error occurred.
   617  	ErrorTime string `json:"errorTime,omitempty"`
   618  	// ErrorUuid: A unique identifier for this specific error, allowing it to be
   619  	// traced throughout the system in logs and API responses.
   620  	ErrorUuid string `json:"errorUuid,omitempty"`
   621  	// Message: A message containing more information about the error that
   622  	// occurred.
   623  	Message string `json:"message,omitempty"`
   624  	// Reason: A title that explains the reason for the error.
   625  	Reason string `json:"reason,omitempty"`
   626  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
   627  	// include in API requests. By default, fields with empty or default values are
   628  	// omitted from API requests. See
   629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   630  	// details.
   631  	ForceSendFields []string `json:"-"`
   632  	// NullFields is a list of field names (e.g. "Details") to include in API
   633  	// requests with the JSON null value. By default, fields with empty values are
   634  	// omitted from API requests. See
   635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   636  	NullFields []string `json:"-"`
   637  }
   638  
   639  func (s *Error) MarshalJSON() ([]byte, error) {
   640  	type NoMethod Error
   641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   642  }
   643  
   644  // FetchStaticIpsResponse: Response message for a 'FetchStaticIps' response.
   645  type FetchStaticIpsResponse struct {
   646  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
   647  	// page. If this field is omitted, there are no subsequent pages.
   648  	NextPageToken string `json:"nextPageToken,omitempty"`
   649  	// StaticIps: list of static ips by account
   650  	StaticIps []string `json:"staticIps,omitempty"`
   651  
   652  	// ServerResponse contains the HTTP response code and headers from the server.
   653  	googleapi.ServerResponse `json:"-"`
   654  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   655  	// unconditionally include in API requests. By default, fields with empty or
   656  	// default values are omitted from API requests. See
   657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   658  	// details.
   659  	ForceSendFields []string `json:"-"`
   660  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   661  	// requests with the JSON null value. By default, fields with empty values are
   662  	// omitted from API requests. See
   663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   664  	NullFields []string `json:"-"`
   665  }
   666  
   667  func (s *FetchStaticIpsResponse) MarshalJSON() ([]byte, error) {
   668  	type NoMethod FetchStaticIpsResponse
   669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   670  }
   671  
   672  // ForwardSshTunnelConnectivity: Forward SSH Tunnel connectivity.
   673  type ForwardSshTunnelConnectivity struct {
   674  	// Hostname: Required. Hostname for the SSH tunnel.
   675  	Hostname string `json:"hostname,omitempty"`
   676  	// Password: Input only. SSH password.
   677  	Password string `json:"password,omitempty"`
   678  	// Port: Port for the SSH tunnel, default value is 22.
   679  	Port int64 `json:"port,omitempty"`
   680  	// PrivateKey: Input only. SSH private key.
   681  	PrivateKey string `json:"privateKey,omitempty"`
   682  	// Username: Required. Username for the SSH tunnel.
   683  	Username string `json:"username,omitempty"`
   684  	// ForceSendFields is a list of field names (e.g. "Hostname") to
   685  	// unconditionally include in API requests. By default, fields with empty or
   686  	// default values are omitted from API requests. See
   687  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   688  	// details.
   689  	ForceSendFields []string `json:"-"`
   690  	// NullFields is a list of field names (e.g. "Hostname") to include in API
   691  	// requests with the JSON null value. By default, fields with empty values are
   692  	// omitted from API requests. See
   693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   694  	NullFields []string `json:"-"`
   695  }
   696  
   697  func (s *ForwardSshTunnelConnectivity) MarshalJSON() ([]byte, error) {
   698  	type NoMethod ForwardSshTunnelConnectivity
   699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   700  }
   701  
   702  // GcsDestinationConfig: Google Cloud Storage destination configuration
   703  type GcsDestinationConfig struct {
   704  	// AvroFileFormat: AVRO file format configuration.
   705  	AvroFileFormat *AvroFileFormat `json:"avroFileFormat,omitempty"`
   706  	// FileRotationInterval: The maximum duration for which new events are added
   707  	// before a file is closed and a new file is created. Values within the range
   708  	// of 15-60 seconds are allowed.
   709  	FileRotationInterval string `json:"fileRotationInterval,omitempty"`
   710  	// FileRotationMb: The maximum file size to be saved in the bucket.
   711  	FileRotationMb int64 `json:"fileRotationMb,omitempty"`
   712  	// JsonFileFormat: JSON file format configuration.
   713  	JsonFileFormat *JsonFileFormat `json:"jsonFileFormat,omitempty"`
   714  	// Path: Path inside the Cloud Storage bucket to write data to.
   715  	Path string `json:"path,omitempty"`
   716  	// ForceSendFields is a list of field names (e.g. "AvroFileFormat") to
   717  	// unconditionally include in API requests. By default, fields with empty or
   718  	// default values are omitted from API requests. See
   719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   720  	// details.
   721  	ForceSendFields []string `json:"-"`
   722  	// NullFields is a list of field names (e.g. "AvroFileFormat") to include in
   723  	// API requests with the JSON null value. By default, fields with empty values
   724  	// are omitted from API requests. See
   725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   726  	NullFields []string `json:"-"`
   727  }
   728  
   729  func (s *GcsDestinationConfig) MarshalJSON() ([]byte, error) {
   730  	type NoMethod GcsDestinationConfig
   731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   732  }
   733  
   734  // GcsProfile: Cloud Storage bucket profile.
   735  type GcsProfile struct {
   736  	// Bucket: Required. The Cloud Storage bucket name.
   737  	Bucket string `json:"bucket,omitempty"`
   738  	// RootPath: The root path inside the Cloud Storage bucket.
   739  	RootPath string `json:"rootPath,omitempty"`
   740  	// ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally
   741  	// include in API requests. By default, fields with empty or default values are
   742  	// omitted from API requests. See
   743  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   744  	// details.
   745  	ForceSendFields []string `json:"-"`
   746  	// NullFields is a list of field names (e.g. "Bucket") to include in API
   747  	// requests with the JSON null value. By default, fields with empty values are
   748  	// omitted from API requests. See
   749  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   750  	NullFields []string `json:"-"`
   751  }
   752  
   753  func (s *GcsProfile) MarshalJSON() ([]byte, error) {
   754  	type NoMethod GcsProfile
   755  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   756  }
   757  
   758  // JsonFileFormat: JSON file format configuration.
   759  type JsonFileFormat struct {
   760  	// Compression: Compression of the loaded JSON file.
   761  	//
   762  	// Possible values:
   763  	//   "JSON_COMPRESSION_UNSPECIFIED" - Unspecified json file compression.
   764  	//   "NO_COMPRESSION" - Do not compress JSON file.
   765  	//   "GZIP" - Gzip compression.
   766  	Compression string `json:"compression,omitempty"`
   767  	// SchemaFileFormat: The schema file format along JSON data files.
   768  	//
   769  	// Possible values:
   770  	//   "SCHEMA_FILE_FORMAT_UNSPECIFIED" - Unspecified schema file format.
   771  	//   "NO_SCHEMA_FILE" - Do not attach schema file.
   772  	//   "AVRO_SCHEMA_FILE" - Avro schema format.
   773  	SchemaFileFormat string `json:"schemaFileFormat,omitempty"`
   774  	// ForceSendFields is a list of field names (e.g. "Compression") to
   775  	// unconditionally include in API requests. By default, fields with empty or
   776  	// default values are omitted from API requests. See
   777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   778  	// details.
   779  	ForceSendFields []string `json:"-"`
   780  	// NullFields is a list of field names (e.g. "Compression") to include in API
   781  	// requests with the JSON null value. By default, fields with empty values are
   782  	// omitted from API requests. See
   783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   784  	NullFields []string `json:"-"`
   785  }
   786  
   787  func (s *JsonFileFormat) MarshalJSON() ([]byte, error) {
   788  	type NoMethod JsonFileFormat
   789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   790  }
   791  
   792  // ListConnectionProfilesResponse: Response message for listing connection
   793  // profiles.
   794  type ListConnectionProfilesResponse struct {
   795  	// ConnectionProfiles: List of connection profiles.
   796  	ConnectionProfiles []*ConnectionProfile `json:"connectionProfiles,omitempty"`
   797  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   798  	// next page. If this field is omitted, there are no subsequent pages.
   799  	NextPageToken string `json:"nextPageToken,omitempty"`
   800  	// Unreachable: Locations that could not be reached.
   801  	Unreachable []string `json:"unreachable,omitempty"`
   802  
   803  	// ServerResponse contains the HTTP response code and headers from the server.
   804  	googleapi.ServerResponse `json:"-"`
   805  	// ForceSendFields is a list of field names (e.g. "ConnectionProfiles") to
   806  	// unconditionally include in API requests. By default, fields with empty or
   807  	// default values are omitted from API requests. See
   808  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   809  	// details.
   810  	ForceSendFields []string `json:"-"`
   811  	// NullFields is a list of field names (e.g. "ConnectionProfiles") to include
   812  	// in API requests with the JSON null value. By default, fields with empty
   813  	// values are omitted from API requests. See
   814  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   815  	NullFields []string `json:"-"`
   816  }
   817  
   818  func (s *ListConnectionProfilesResponse) MarshalJSON() ([]byte, error) {
   819  	type NoMethod ListConnectionProfilesResponse
   820  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   821  }
   822  
   823  // ListLocationsResponse: The response message for Locations.ListLocations.
   824  type ListLocationsResponse struct {
   825  	// Locations: A list of locations that matches the specified filter in the
   826  	// request.
   827  	Locations []*Location `json:"locations,omitempty"`
   828  	// NextPageToken: The standard List next-page token.
   829  	NextPageToken string `json:"nextPageToken,omitempty"`
   830  
   831  	// ServerResponse contains the HTTP response code and headers from the server.
   832  	googleapi.ServerResponse `json:"-"`
   833  	// ForceSendFields is a list of field names (e.g. "Locations") to
   834  	// unconditionally include in API requests. By default, fields with empty or
   835  	// default values are omitted from API requests. See
   836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   837  	// details.
   838  	ForceSendFields []string `json:"-"`
   839  	// NullFields is a list of field names (e.g. "Locations") to include in API
   840  	// requests with the JSON null value. By default, fields with empty values are
   841  	// omitted from API requests. See
   842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   843  	NullFields []string `json:"-"`
   844  }
   845  
   846  func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) {
   847  	type NoMethod ListLocationsResponse
   848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   849  }
   850  
   851  // ListOperationsResponse: The response message for Operations.ListOperations.
   852  type ListOperationsResponse struct {
   853  	// NextPageToken: The standard List next-page token.
   854  	NextPageToken string `json:"nextPageToken,omitempty"`
   855  	// Operations: A list of operations that matches the specified filter in the
   856  	// request.
   857  	Operations []*Operation `json:"operations,omitempty"`
   858  
   859  	// ServerResponse contains the HTTP response code and headers from the server.
   860  	googleapi.ServerResponse `json:"-"`
   861  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   862  	// unconditionally include in API requests. By default, fields with empty or
   863  	// default values are omitted from API requests. See
   864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   865  	// details.
   866  	ForceSendFields []string `json:"-"`
   867  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   868  	// requests with the JSON null value. By default, fields with empty values are
   869  	// omitted from API requests. See
   870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   871  	NullFields []string `json:"-"`
   872  }
   873  
   874  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
   875  	type NoMethod ListOperationsResponse
   876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   877  }
   878  
   879  // ListPrivateConnectionsResponse: Response containing a list of private
   880  // connection configurations.
   881  type ListPrivateConnectionsResponse struct {
   882  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   883  	// next page. If this field is omitted, there are no subsequent pages.
   884  	NextPageToken string `json:"nextPageToken,omitempty"`
   885  	// PrivateConnections: List of private connectivity configurations.
   886  	PrivateConnections []*PrivateConnection `json:"privateConnections,omitempty"`
   887  	// Unreachable: Locations that could not be reached.
   888  	Unreachable []string `json:"unreachable,omitempty"`
   889  
   890  	// ServerResponse contains the HTTP response code and headers from the server.
   891  	googleapi.ServerResponse `json:"-"`
   892  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   893  	// unconditionally include in API requests. By default, fields with empty or
   894  	// default values are omitted from API requests. See
   895  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   896  	// details.
   897  	ForceSendFields []string `json:"-"`
   898  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   899  	// requests with the JSON null value. By default, fields with empty values are
   900  	// omitted from API requests. See
   901  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   902  	NullFields []string `json:"-"`
   903  }
   904  
   905  func (s *ListPrivateConnectionsResponse) MarshalJSON() ([]byte, error) {
   906  	type NoMethod ListPrivateConnectionsResponse
   907  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   908  }
   909  
   910  // ListRoutesResponse: Route list response.
   911  type ListRoutesResponse struct {
   912  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   913  	// next page. If this field is omitted, there are no subsequent pages.
   914  	NextPageToken string `json:"nextPageToken,omitempty"`
   915  	// Routes: List of Routes.
   916  	Routes []*Route `json:"routes,omitempty"`
   917  	// Unreachable: Locations that could not be reached.
   918  	Unreachable []string `json:"unreachable,omitempty"`
   919  
   920  	// ServerResponse contains the HTTP response code and headers from the server.
   921  	googleapi.ServerResponse `json:"-"`
   922  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   923  	// unconditionally include in API requests. By default, fields with empty or
   924  	// default values are omitted from API requests. See
   925  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   926  	// details.
   927  	ForceSendFields []string `json:"-"`
   928  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   929  	// requests with the JSON null value. By default, fields with empty values are
   930  	// omitted from API requests. See
   931  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   932  	NullFields []string `json:"-"`
   933  }
   934  
   935  func (s *ListRoutesResponse) MarshalJSON() ([]byte, error) {
   936  	type NoMethod ListRoutesResponse
   937  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   938  }
   939  
   940  // ListStreamObjectsResponse: Response containing the objects for a stream.
   941  type ListStreamObjectsResponse struct {
   942  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   943  	// next page.
   944  	NextPageToken string `json:"nextPageToken,omitempty"`
   945  	// StreamObjects: List of stream objects.
   946  	StreamObjects []*StreamObject `json:"streamObjects,omitempty"`
   947  
   948  	// ServerResponse contains the HTTP response code and headers from the server.
   949  	googleapi.ServerResponse `json:"-"`
   950  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   951  	// unconditionally include in API requests. By default, fields with empty or
   952  	// default values are omitted from API requests. See
   953  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   954  	// details.
   955  	ForceSendFields []string `json:"-"`
   956  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   957  	// requests with the JSON null value. By default, fields with empty values are
   958  	// omitted from API requests. See
   959  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   960  	NullFields []string `json:"-"`
   961  }
   962  
   963  func (s *ListStreamObjectsResponse) MarshalJSON() ([]byte, error) {
   964  	type NoMethod ListStreamObjectsResponse
   965  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   966  }
   967  
   968  // ListStreamsResponse: Response message for listing streams.
   969  type ListStreamsResponse struct {
   970  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
   971  	// next page. If this field is omitted, there are no subsequent pages.
   972  	NextPageToken string `json:"nextPageToken,omitempty"`
   973  	// Streams: List of streams
   974  	Streams []*Stream `json:"streams,omitempty"`
   975  	// Unreachable: Locations that could not be reached.
   976  	Unreachable []string `json:"unreachable,omitempty"`
   977  
   978  	// ServerResponse contains the HTTP response code and headers from the server.
   979  	googleapi.ServerResponse `json:"-"`
   980  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
   981  	// unconditionally include in API requests. By default, fields with empty or
   982  	// default values are omitted from API requests. See
   983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   984  	// details.
   985  	ForceSendFields []string `json:"-"`
   986  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
   987  	// requests with the JSON null value. By default, fields with empty values are
   988  	// omitted from API requests. See
   989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   990  	NullFields []string `json:"-"`
   991  }
   992  
   993  func (s *ListStreamsResponse) MarshalJSON() ([]byte, error) {
   994  	type NoMethod ListStreamsResponse
   995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   996  }
   997  
   998  // Location: A resource that represents a Google Cloud location.
   999  type Location struct {
  1000  	// DisplayName: The friendly name for this location, typically a nearby city
  1001  	// name. For example, "Tokyo".
  1002  	DisplayName string `json:"displayName,omitempty"`
  1003  	// Labels: Cross-service attributes for the location. For example
  1004  	// {"cloud.googleapis.com/region": "us-east1"}
  1005  	Labels map[string]string `json:"labels,omitempty"`
  1006  	// LocationId: The canonical id for this location. For example: "us-east1".
  1007  	LocationId string `json:"locationId,omitempty"`
  1008  	// Metadata: Service-specific metadata. For example the available capacity at
  1009  	// the given location.
  1010  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1011  	// Name: Resource name for the location, which may vary between
  1012  	// implementations. For example:
  1013  	// "projects/example-project/locations/us-east1"
  1014  	Name string `json:"name,omitempty"`
  1015  
  1016  	// ServerResponse contains the HTTP response code and headers from the server.
  1017  	googleapi.ServerResponse `json:"-"`
  1018  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  1019  	// unconditionally include in API requests. By default, fields with empty or
  1020  	// default values are omitted from API requests. See
  1021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1022  	// details.
  1023  	ForceSendFields []string `json:"-"`
  1024  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  1025  	// requests with the JSON null value. By default, fields with empty values are
  1026  	// omitted from API requests. See
  1027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1028  	NullFields []string `json:"-"`
  1029  }
  1030  
  1031  func (s *Location) MarshalJSON() ([]byte, error) {
  1032  	type NoMethod Location
  1033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1034  }
  1035  
  1036  // LookupStreamObjectRequest: Request for looking up a specific stream object
  1037  // by its source object identifier.
  1038  type LookupStreamObjectRequest struct {
  1039  	// SourceObjectIdentifier: Required. The source object identifier which maps to
  1040  	// the stream object.
  1041  	SourceObjectIdentifier *SourceObjectIdentifier `json:"sourceObjectIdentifier,omitempty"`
  1042  	// ForceSendFields is a list of field names (e.g. "SourceObjectIdentifier") to
  1043  	// unconditionally include in API requests. By default, fields with empty or
  1044  	// default values are omitted from API requests. See
  1045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1046  	// details.
  1047  	ForceSendFields []string `json:"-"`
  1048  	// NullFields is a list of field names (e.g. "SourceObjectIdentifier") to
  1049  	// include in API requests with the JSON null value. By default, fields with
  1050  	// empty values are omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1052  	NullFields []string `json:"-"`
  1053  }
  1054  
  1055  func (s *LookupStreamObjectRequest) MarshalJSON() ([]byte, error) {
  1056  	type NoMethod LookupStreamObjectRequest
  1057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1058  }
  1059  
  1060  // Merge: Merge mode defines that all changes to a table will be merged at the
  1061  // destination table.
  1062  type Merge struct {
  1063  }
  1064  
  1065  // MostRecentStartPosition: CDC strategy to start replicating from the most
  1066  // recent position in the source.
  1067  type MostRecentStartPosition struct {
  1068  }
  1069  
  1070  // MysqlColumn: MySQL Column.
  1071  type MysqlColumn struct {
  1072  	// Collation: Column collation.
  1073  	Collation string `json:"collation,omitempty"`
  1074  	// Column: Column name.
  1075  	Column string `json:"column,omitempty"`
  1076  	// DataType: The MySQL data type. Full data types list can be found here:
  1077  	// https://dev.mysql.com/doc/refman/8.0/en/data-types.html
  1078  	DataType string `json:"dataType,omitempty"`
  1079  	// Length: Column length.
  1080  	Length int64 `json:"length,omitempty"`
  1081  	// Nullable: Whether or not the column can accept a null value.
  1082  	Nullable bool `json:"nullable,omitempty"`
  1083  	// OrdinalPosition: The ordinal position of the column in the table.
  1084  	OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
  1085  	// Precision: Column precision.
  1086  	Precision int64 `json:"precision,omitempty"`
  1087  	// PrimaryKey: Whether or not the column represents a primary key.
  1088  	PrimaryKey bool `json:"primaryKey,omitempty"`
  1089  	// Scale: Column scale.
  1090  	Scale int64 `json:"scale,omitempty"`
  1091  	// ForceSendFields is a list of field names (e.g. "Collation") to
  1092  	// unconditionally include in API requests. By default, fields with empty or
  1093  	// default values are omitted from API requests. See
  1094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1095  	// details.
  1096  	ForceSendFields []string `json:"-"`
  1097  	// NullFields is a list of field names (e.g. "Collation") to include in API
  1098  	// requests with the JSON null value. By default, fields with empty values are
  1099  	// omitted from API requests. See
  1100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1101  	NullFields []string `json:"-"`
  1102  }
  1103  
  1104  func (s *MysqlColumn) MarshalJSON() ([]byte, error) {
  1105  	type NoMethod MysqlColumn
  1106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1107  }
  1108  
  1109  // MysqlDatabase: MySQL database.
  1110  type MysqlDatabase struct {
  1111  	// Database: Database name.
  1112  	Database string `json:"database,omitempty"`
  1113  	// MysqlTables: Tables in the database.
  1114  	MysqlTables []*MysqlTable `json:"mysqlTables,omitempty"`
  1115  	// ForceSendFields is a list of field names (e.g. "Database") to
  1116  	// unconditionally include in API requests. By default, fields with empty or
  1117  	// default values are omitted from API requests. See
  1118  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1119  	// details.
  1120  	ForceSendFields []string `json:"-"`
  1121  	// NullFields is a list of field names (e.g. "Database") to include in API
  1122  	// requests with the JSON null value. By default, fields with empty values are
  1123  	// omitted from API requests. See
  1124  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1125  	NullFields []string `json:"-"`
  1126  }
  1127  
  1128  func (s *MysqlDatabase) MarshalJSON() ([]byte, error) {
  1129  	type NoMethod MysqlDatabase
  1130  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1131  }
  1132  
  1133  // MysqlLogPosition: MySQL log position
  1134  type MysqlLogPosition struct {
  1135  	// LogFile: Required. The binary log file name.
  1136  	LogFile string `json:"logFile,omitempty"`
  1137  	// LogPosition: Optional. The position within the binary log file. Default is
  1138  	// head of file.
  1139  	LogPosition int64 `json:"logPosition,omitempty"`
  1140  	// ForceSendFields is a list of field names (e.g. "LogFile") to unconditionally
  1141  	// include in API requests. By default, fields with empty or default values are
  1142  	// omitted from API requests. See
  1143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1144  	// details.
  1145  	ForceSendFields []string `json:"-"`
  1146  	// NullFields is a list of field names (e.g. "LogFile") to include in API
  1147  	// requests with the JSON null value. By default, fields with empty values are
  1148  	// omitted from API requests. See
  1149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1150  	NullFields []string `json:"-"`
  1151  }
  1152  
  1153  func (s *MysqlLogPosition) MarshalJSON() ([]byte, error) {
  1154  	type NoMethod MysqlLogPosition
  1155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1156  }
  1157  
  1158  // MysqlObjectIdentifier: Mysql data source object identifier.
  1159  type MysqlObjectIdentifier struct {
  1160  	// Database: Required. The database name.
  1161  	Database string `json:"database,omitempty"`
  1162  	// Table: Required. The table name.
  1163  	Table string `json:"table,omitempty"`
  1164  	// ForceSendFields is a list of field names (e.g. "Database") to
  1165  	// unconditionally include in API requests. By default, fields with empty or
  1166  	// default values are omitted from API requests. See
  1167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1168  	// details.
  1169  	ForceSendFields []string `json:"-"`
  1170  	// NullFields is a list of field names (e.g. "Database") to include in API
  1171  	// requests with the JSON null value. By default, fields with empty values are
  1172  	// omitted from API requests. See
  1173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1174  	NullFields []string `json:"-"`
  1175  }
  1176  
  1177  func (s *MysqlObjectIdentifier) MarshalJSON() ([]byte, error) {
  1178  	type NoMethod MysqlObjectIdentifier
  1179  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1180  }
  1181  
  1182  // MysqlProfile: MySQL database profile.
  1183  type MysqlProfile struct {
  1184  	// Hostname: Required. Hostname for the MySQL connection.
  1185  	Hostname string `json:"hostname,omitempty"`
  1186  	// Password: Required. Input only. Password for the MySQL connection.
  1187  	Password string `json:"password,omitempty"`
  1188  	// Port: Port for the MySQL connection, default value is 3306.
  1189  	Port int64 `json:"port,omitempty"`
  1190  	// SslConfig: SSL configuration for the MySQL connection.
  1191  	SslConfig *MysqlSslConfig `json:"sslConfig,omitempty"`
  1192  	// Username: Required. Username for the MySQL connection.
  1193  	Username string `json:"username,omitempty"`
  1194  	// ForceSendFields is a list of field names (e.g. "Hostname") to
  1195  	// unconditionally include in API requests. By default, fields with empty or
  1196  	// default values are omitted from API requests. See
  1197  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1198  	// details.
  1199  	ForceSendFields []string `json:"-"`
  1200  	// NullFields is a list of field names (e.g. "Hostname") to include in API
  1201  	// requests with the JSON null value. By default, fields with empty values are
  1202  	// omitted from API requests. See
  1203  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1204  	NullFields []string `json:"-"`
  1205  }
  1206  
  1207  func (s *MysqlProfile) MarshalJSON() ([]byte, error) {
  1208  	type NoMethod MysqlProfile
  1209  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1210  }
  1211  
  1212  // MysqlRdbms: MySQL database structure
  1213  type MysqlRdbms struct {
  1214  	// MysqlDatabases: Mysql databases on the server
  1215  	MysqlDatabases []*MysqlDatabase `json:"mysqlDatabases,omitempty"`
  1216  	// ForceSendFields is a list of field names (e.g. "MysqlDatabases") to
  1217  	// unconditionally include in API requests. By default, fields with empty or
  1218  	// default values are omitted from API requests. See
  1219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1220  	// details.
  1221  	ForceSendFields []string `json:"-"`
  1222  	// NullFields is a list of field names (e.g. "MysqlDatabases") to include in
  1223  	// API requests with the JSON null value. By default, fields with empty values
  1224  	// are omitted from API requests. See
  1225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1226  	NullFields []string `json:"-"`
  1227  }
  1228  
  1229  func (s *MysqlRdbms) MarshalJSON() ([]byte, error) {
  1230  	type NoMethod MysqlRdbms
  1231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1232  }
  1233  
  1234  // MysqlSourceConfig: MySQL source configuration
  1235  type MysqlSourceConfig struct {
  1236  	// ExcludeObjects: MySQL objects to exclude from the stream.
  1237  	ExcludeObjects *MysqlRdbms `json:"excludeObjects,omitempty"`
  1238  	// IncludeObjects: MySQL objects to retrieve from the source.
  1239  	IncludeObjects *MysqlRdbms `json:"includeObjects,omitempty"`
  1240  	// MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The
  1241  	// number should be non negative. If not set (or set to 0), the system's
  1242  	// default value will be used.
  1243  	MaxConcurrentBackfillTasks int64 `json:"maxConcurrentBackfillTasks,omitempty"`
  1244  	// MaxConcurrentCdcTasks: Maximum number of concurrent CDC tasks. The number
  1245  	// should be non negative. If not set (or set to 0), the system's default value
  1246  	// will be used.
  1247  	MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"`
  1248  	// ForceSendFields is a list of field names (e.g. "ExcludeObjects") to
  1249  	// unconditionally include in API requests. By default, fields with empty or
  1250  	// default values are omitted from API requests. See
  1251  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1252  	// details.
  1253  	ForceSendFields []string `json:"-"`
  1254  	// NullFields is a list of field names (e.g. "ExcludeObjects") to include in
  1255  	// API requests with the JSON null value. By default, fields with empty values
  1256  	// are omitted from API requests. See
  1257  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1258  	NullFields []string `json:"-"`
  1259  }
  1260  
  1261  func (s *MysqlSourceConfig) MarshalJSON() ([]byte, error) {
  1262  	type NoMethod MysqlSourceConfig
  1263  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1264  }
  1265  
  1266  // MysqlSslConfig: MySQL SSL configuration information.
  1267  type MysqlSslConfig struct {
  1268  	// CaCertificate: Input only. PEM-encoded certificate of the CA that signed the
  1269  	// source database server's certificate.
  1270  	CaCertificate string `json:"caCertificate,omitempty"`
  1271  	// CaCertificateSet: Output only. Indicates whether the ca_certificate field is
  1272  	// set.
  1273  	CaCertificateSet bool `json:"caCertificateSet,omitempty"`
  1274  	// ClientCertificate: Input only. PEM-encoded certificate that will be used by
  1275  	// the replica to authenticate against the source database server. If this
  1276  	// field is used then the 'client_key' and the 'ca_certificate' fields are
  1277  	// mandatory.
  1278  	ClientCertificate string `json:"clientCertificate,omitempty"`
  1279  	// ClientCertificateSet: Output only. Indicates whether the client_certificate
  1280  	// field is set.
  1281  	ClientCertificateSet bool `json:"clientCertificateSet,omitempty"`
  1282  	// ClientKey: Input only. PEM-encoded private key associated with the Client
  1283  	// Certificate. If this field is used then the 'client_certificate' and the
  1284  	// 'ca_certificate' fields are mandatory.
  1285  	ClientKey string `json:"clientKey,omitempty"`
  1286  	// ClientKeySet: Output only. Indicates whether the client_key field is set.
  1287  	ClientKeySet bool `json:"clientKeySet,omitempty"`
  1288  	// ForceSendFields is a list of field names (e.g. "CaCertificate") to
  1289  	// unconditionally include in API requests. By default, fields with empty or
  1290  	// default values are omitted from API requests. See
  1291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1292  	// details.
  1293  	ForceSendFields []string `json:"-"`
  1294  	// NullFields is a list of field names (e.g. "CaCertificate") to include in API
  1295  	// requests with the JSON null value. By default, fields with empty values are
  1296  	// omitted from API requests. See
  1297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1298  	NullFields []string `json:"-"`
  1299  }
  1300  
  1301  func (s *MysqlSslConfig) MarshalJSON() ([]byte, error) {
  1302  	type NoMethod MysqlSslConfig
  1303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1304  }
  1305  
  1306  // MysqlTable: MySQL table.
  1307  type MysqlTable struct {
  1308  	// MysqlColumns: MySQL columns in the database. When unspecified as part of
  1309  	// include/exclude objects, includes/excludes everything.
  1310  	MysqlColumns []*MysqlColumn `json:"mysqlColumns,omitempty"`
  1311  	// Table: Table name.
  1312  	Table string `json:"table,omitempty"`
  1313  	// ForceSendFields is a list of field names (e.g. "MysqlColumns") to
  1314  	// unconditionally include in API requests. By default, fields with empty or
  1315  	// default values are omitted from API requests. See
  1316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1317  	// details.
  1318  	ForceSendFields []string `json:"-"`
  1319  	// NullFields is a list of field names (e.g. "MysqlColumns") to include in API
  1320  	// requests with the JSON null value. By default, fields with empty values are
  1321  	// omitted from API requests. See
  1322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1323  	NullFields []string `json:"-"`
  1324  }
  1325  
  1326  func (s *MysqlTable) MarshalJSON() ([]byte, error) {
  1327  	type NoMethod MysqlTable
  1328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1329  }
  1330  
  1331  // NextAvailableStartPosition: CDC strategy to resume replication from the next
  1332  // available position in the source.
  1333  type NextAvailableStartPosition struct {
  1334  }
  1335  
  1336  // Operation: This resource represents a long-running operation that is the
  1337  // result of a network API call.
  1338  type Operation struct {
  1339  	// Done: If the value is `false`, it means the operation is still in progress.
  1340  	// If `true`, the operation is completed, and either `error` or `response` is
  1341  	// available.
  1342  	Done bool `json:"done,omitempty"`
  1343  	// Error: The error result of the operation in case of failure or cancellation.
  1344  	Error *Status `json:"error,omitempty"`
  1345  	// Metadata: Service-specific metadata associated with the operation. It
  1346  	// typically contains progress information and common metadata such as create
  1347  	// time. Some services might not provide such metadata. Any method that returns
  1348  	// a long-running operation should document the metadata type, if any.
  1349  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  1350  	// Name: The server-assigned name, which is only unique within the same service
  1351  	// that originally returns it. If you use the default HTTP mapping, the `name`
  1352  	// should be a resource name ending with `operations/{unique_id}`.
  1353  	Name string `json:"name,omitempty"`
  1354  	// Response: The normal, successful response of the operation. If the original
  1355  	// method returns no data on success, such as `Delete`, the response is
  1356  	// `google.protobuf.Empty`. If the original method is standard
  1357  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  1358  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  1359  	// original method name. For example, if the original method name is
  1360  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  1361  	Response googleapi.RawMessage `json:"response,omitempty"`
  1362  
  1363  	// ServerResponse contains the HTTP response code and headers from the server.
  1364  	googleapi.ServerResponse `json:"-"`
  1365  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  1366  	// include in API requests. By default, fields with empty or default values are
  1367  	// omitted from API requests. See
  1368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1369  	// details.
  1370  	ForceSendFields []string `json:"-"`
  1371  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  1372  	// with the JSON null value. By default, fields with empty values are omitted
  1373  	// from API requests. See
  1374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1375  	NullFields []string `json:"-"`
  1376  }
  1377  
  1378  func (s *Operation) MarshalJSON() ([]byte, error) {
  1379  	type NoMethod Operation
  1380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1381  }
  1382  
  1383  // OperationMetadata: Represents the metadata of the long-running operation.
  1384  type OperationMetadata struct {
  1385  	// ApiVersion: Output only. API version used to start the operation.
  1386  	ApiVersion string `json:"apiVersion,omitempty"`
  1387  	// CreateTime: Output only. The time the operation was created.
  1388  	CreateTime string `json:"createTime,omitempty"`
  1389  	// EndTime: Output only. The time the operation finished running.
  1390  	EndTime string `json:"endTime,omitempty"`
  1391  	// RequestedCancellation: Output only. Identifies whether the user has
  1392  	// requested cancellation of the operation. Operations that have successfully
  1393  	// been cancelled have Operation.error value with a google.rpc.Status.code of
  1394  	// 1, corresponding to `Code.CANCELLED`.
  1395  	RequestedCancellation bool `json:"requestedCancellation,omitempty"`
  1396  	// StatusMessage: Output only. Human-readable status of the operation, if any.
  1397  	StatusMessage string `json:"statusMessage,omitempty"`
  1398  	// Target: Output only. Server-defined resource path for the target of the
  1399  	// operation.
  1400  	Target string `json:"target,omitempty"`
  1401  	// ValidationResult: Output only. Results of executed validations if there are
  1402  	// any.
  1403  	ValidationResult *ValidationResult `json:"validationResult,omitempty"`
  1404  	// Verb: Output only. Name of the verb executed by the operation.
  1405  	Verb string `json:"verb,omitempty"`
  1406  	// ForceSendFields is a list of field names (e.g. "ApiVersion") 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. "ApiVersion") 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 *OperationMetadata) MarshalJSON() ([]byte, error) {
  1420  	type NoMethod OperationMetadata
  1421  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1422  }
  1423  
  1424  // OracleColumn: Oracle Column.
  1425  type OracleColumn struct {
  1426  	// Column: Column name.
  1427  	Column string `json:"column,omitempty"`
  1428  	// DataType: The Oracle data type.
  1429  	DataType string `json:"dataType,omitempty"`
  1430  	// Encoding: Column encoding.
  1431  	Encoding string `json:"encoding,omitempty"`
  1432  	// Length: Column length.
  1433  	Length int64 `json:"length,omitempty"`
  1434  	// Nullable: Whether or not the column can accept a null value.
  1435  	Nullable bool `json:"nullable,omitempty"`
  1436  	// OrdinalPosition: The ordinal position of the column in the table.
  1437  	OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
  1438  	// Precision: Column precision.
  1439  	Precision int64 `json:"precision,omitempty"`
  1440  	// PrimaryKey: Whether or not the column represents a primary key.
  1441  	PrimaryKey bool `json:"primaryKey,omitempty"`
  1442  	// Scale: Column scale.
  1443  	Scale int64 `json:"scale,omitempty"`
  1444  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  1445  	// include in API requests. By default, fields with empty or default values are
  1446  	// omitted from API requests. See
  1447  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1448  	// details.
  1449  	ForceSendFields []string `json:"-"`
  1450  	// NullFields is a list of field names (e.g. "Column") to include in API
  1451  	// requests with the JSON null value. By default, fields with empty values are
  1452  	// omitted from API requests. See
  1453  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1454  	NullFields []string `json:"-"`
  1455  }
  1456  
  1457  func (s *OracleColumn) MarshalJSON() ([]byte, error) {
  1458  	type NoMethod OracleColumn
  1459  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1460  }
  1461  
  1462  // OracleObjectIdentifier: Oracle data source object identifier.
  1463  type OracleObjectIdentifier struct {
  1464  	// Schema: Required. The schema name.
  1465  	Schema string `json:"schema,omitempty"`
  1466  	// Table: Required. The table name.
  1467  	Table string `json:"table,omitempty"`
  1468  	// ForceSendFields is a list of field names (e.g. "Schema") to unconditionally
  1469  	// include in API requests. By default, fields with empty or default values are
  1470  	// 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. "Schema") 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 *OracleObjectIdentifier) MarshalJSON() ([]byte, error) {
  1482  	type NoMethod OracleObjectIdentifier
  1483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1484  }
  1485  
  1486  // OracleProfile: Oracle database profile.
  1487  type OracleProfile struct {
  1488  	// ConnectionAttributes: Connection string attributes
  1489  	ConnectionAttributes map[string]string `json:"connectionAttributes,omitempty"`
  1490  	// DatabaseService: Required. Database for the Oracle connection.
  1491  	DatabaseService string `json:"databaseService,omitempty"`
  1492  	// Hostname: Required. Hostname for the Oracle connection.
  1493  	Hostname string `json:"hostname,omitempty"`
  1494  	// OracleSslConfig: Optional. SSL configuration for the Oracle connection.
  1495  	OracleSslConfig *OracleSslConfig `json:"oracleSslConfig,omitempty"`
  1496  	// Password: Required. Password for the Oracle connection.
  1497  	Password string `json:"password,omitempty"`
  1498  	// Port: Port for the Oracle connection, default value is 1521.
  1499  	Port int64 `json:"port,omitempty"`
  1500  	// Username: Required. Username for the Oracle connection.
  1501  	Username string `json:"username,omitempty"`
  1502  	// ForceSendFields is a list of field names (e.g. "ConnectionAttributes") to
  1503  	// unconditionally include in API requests. By default, fields with empty or
  1504  	// default values are omitted from API requests. See
  1505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1506  	// details.
  1507  	ForceSendFields []string `json:"-"`
  1508  	// NullFields is a list of field names (e.g. "ConnectionAttributes") to include
  1509  	// in API requests with the JSON null value. By default, fields with empty
  1510  	// values are omitted from API requests. See
  1511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1512  	NullFields []string `json:"-"`
  1513  }
  1514  
  1515  func (s *OracleProfile) MarshalJSON() ([]byte, error) {
  1516  	type NoMethod OracleProfile
  1517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1518  }
  1519  
  1520  // OracleRdbms: Oracle database structure.
  1521  type OracleRdbms struct {
  1522  	// OracleSchemas: Oracle schemas/databases in the database server.
  1523  	OracleSchemas []*OracleSchema `json:"oracleSchemas,omitempty"`
  1524  	// ForceSendFields is a list of field names (e.g. "OracleSchemas") to
  1525  	// unconditionally include in API requests. By default, fields with empty or
  1526  	// default values are omitted from API requests. See
  1527  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1528  	// details.
  1529  	ForceSendFields []string `json:"-"`
  1530  	// NullFields is a list of field names (e.g. "OracleSchemas") to include in API
  1531  	// requests with the JSON null value. By default, fields with empty values are
  1532  	// omitted from API requests. See
  1533  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1534  	NullFields []string `json:"-"`
  1535  }
  1536  
  1537  func (s *OracleRdbms) MarshalJSON() ([]byte, error) {
  1538  	type NoMethod OracleRdbms
  1539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1540  }
  1541  
  1542  // OracleSchema: Oracle schema.
  1543  type OracleSchema struct {
  1544  	// OracleTables: Tables in the schema.
  1545  	OracleTables []*OracleTable `json:"oracleTables,omitempty"`
  1546  	// Schema: Schema name.
  1547  	Schema string `json:"schema,omitempty"`
  1548  	// ForceSendFields is a list of field names (e.g. "OracleTables") to
  1549  	// unconditionally include in API requests. By default, fields with empty or
  1550  	// default values are omitted from API requests. See
  1551  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1552  	// details.
  1553  	ForceSendFields []string `json:"-"`
  1554  	// NullFields is a list of field names (e.g. "OracleTables") to include in API
  1555  	// requests with the JSON null value. By default, fields with empty values are
  1556  	// omitted from API requests. See
  1557  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1558  	NullFields []string `json:"-"`
  1559  }
  1560  
  1561  func (s *OracleSchema) MarshalJSON() ([]byte, error) {
  1562  	type NoMethod OracleSchema
  1563  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1564  }
  1565  
  1566  // OracleScnPosition: Oracle SCN position
  1567  type OracleScnPosition struct {
  1568  	// Scn: Required. SCN number from where Logs will be read
  1569  	Scn int64 `json:"scn,omitempty,string"`
  1570  	// ForceSendFields is a list of field names (e.g. "Scn") to unconditionally
  1571  	// include in API requests. By default, fields with empty or default values are
  1572  	// omitted from API requests. See
  1573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1574  	// details.
  1575  	ForceSendFields []string `json:"-"`
  1576  	// NullFields is a list of field names (e.g. "Scn") to include in API requests
  1577  	// with the JSON null value. By default, fields with empty values are omitted
  1578  	// from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1580  	NullFields []string `json:"-"`
  1581  }
  1582  
  1583  func (s *OracleScnPosition) MarshalJSON() ([]byte, error) {
  1584  	type NoMethod OracleScnPosition
  1585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1586  }
  1587  
  1588  // OracleSourceConfig: Oracle data source configuration
  1589  type OracleSourceConfig struct {
  1590  	// DropLargeObjects: Drop large object values.
  1591  	DropLargeObjects *DropLargeObjects `json:"dropLargeObjects,omitempty"`
  1592  	// ExcludeObjects: Oracle objects to exclude from the stream.
  1593  	ExcludeObjects *OracleRdbms `json:"excludeObjects,omitempty"`
  1594  	// IncludeObjects: Oracle objects to include in the stream.
  1595  	IncludeObjects *OracleRdbms `json:"includeObjects,omitempty"`
  1596  	// MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The
  1597  	// number should be non-negative. If not set (or set to 0), the system's
  1598  	// default value is used.
  1599  	MaxConcurrentBackfillTasks int64 `json:"maxConcurrentBackfillTasks,omitempty"`
  1600  	// MaxConcurrentCdcTasks: Maximum number of concurrent CDC tasks. The number
  1601  	// should be non-negative. If not set (or set to 0), the system's default value
  1602  	// is used.
  1603  	MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"`
  1604  	// StreamLargeObjects: Stream large object values.
  1605  	StreamLargeObjects *StreamLargeObjects `json:"streamLargeObjects,omitempty"`
  1606  	// ForceSendFields is a list of field names (e.g. "DropLargeObjects") to
  1607  	// unconditionally include in API requests. By default, fields with empty or
  1608  	// default values are omitted from API requests. See
  1609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1610  	// details.
  1611  	ForceSendFields []string `json:"-"`
  1612  	// NullFields is a list of field names (e.g. "DropLargeObjects") to include in
  1613  	// API requests with the JSON null value. By default, fields with empty values
  1614  	// are omitted from API requests. See
  1615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1616  	NullFields []string `json:"-"`
  1617  }
  1618  
  1619  func (s *OracleSourceConfig) MarshalJSON() ([]byte, error) {
  1620  	type NoMethod OracleSourceConfig
  1621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1622  }
  1623  
  1624  // OracleSslConfig: Oracle SSL configuration information.
  1625  type OracleSslConfig struct {
  1626  	// CaCertificate: Input only. PEM-encoded certificate of the CA that signed the
  1627  	// source database server's certificate.
  1628  	CaCertificate string `json:"caCertificate,omitempty"`
  1629  	// CaCertificateSet: Output only. Indicates whether the ca_certificate field
  1630  	// has been set for this Connection-Profile.
  1631  	CaCertificateSet bool `json:"caCertificateSet,omitempty"`
  1632  	// ForceSendFields is a list of field names (e.g. "CaCertificate") to
  1633  	// unconditionally include in API requests. By default, fields with empty or
  1634  	// default values are omitted from API requests. See
  1635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1636  	// details.
  1637  	ForceSendFields []string `json:"-"`
  1638  	// NullFields is a list of field names (e.g. "CaCertificate") to include in API
  1639  	// requests with the JSON null value. By default, fields with empty values are
  1640  	// omitted from API requests. See
  1641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1642  	NullFields []string `json:"-"`
  1643  }
  1644  
  1645  func (s *OracleSslConfig) MarshalJSON() ([]byte, error) {
  1646  	type NoMethod OracleSslConfig
  1647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1648  }
  1649  
  1650  // OracleTable: Oracle table.
  1651  type OracleTable struct {
  1652  	// OracleColumns: Oracle columns in the schema. When unspecified as part of
  1653  	// include/exclude objects, includes/excludes everything.
  1654  	OracleColumns []*OracleColumn `json:"oracleColumns,omitempty"`
  1655  	// Table: Table name.
  1656  	Table string `json:"table,omitempty"`
  1657  	// ForceSendFields is a list of field names (e.g. "OracleColumns") to
  1658  	// unconditionally include in API requests. By default, fields with empty or
  1659  	// default values are omitted from API requests. See
  1660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1661  	// details.
  1662  	ForceSendFields []string `json:"-"`
  1663  	// NullFields is a list of field names (e.g. "OracleColumns") to include in API
  1664  	// requests with the JSON null value. By default, fields with empty values are
  1665  	// omitted from API requests. See
  1666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1667  	NullFields []string `json:"-"`
  1668  }
  1669  
  1670  func (s *OracleTable) MarshalJSON() ([]byte, error) {
  1671  	type NoMethod OracleTable
  1672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1673  }
  1674  
  1675  // PostgresqlColumn: PostgreSQL Column.
  1676  type PostgresqlColumn struct {
  1677  	// Column: Column name.
  1678  	Column string `json:"column,omitempty"`
  1679  	// DataType: The PostgreSQL data type.
  1680  	DataType string `json:"dataType,omitempty"`
  1681  	// Length: Column length.
  1682  	Length int64 `json:"length,omitempty"`
  1683  	// Nullable: Whether or not the column can accept a null value.
  1684  	Nullable bool `json:"nullable,omitempty"`
  1685  	// OrdinalPosition: The ordinal position of the column in the table.
  1686  	OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
  1687  	// Precision: Column precision.
  1688  	Precision int64 `json:"precision,omitempty"`
  1689  	// PrimaryKey: Whether or not the column represents a primary key.
  1690  	PrimaryKey bool `json:"primaryKey,omitempty"`
  1691  	// Scale: Column scale.
  1692  	Scale int64 `json:"scale,omitempty"`
  1693  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  1694  	// include in API requests. By default, fields with empty or default values are
  1695  	// omitted from API requests. See
  1696  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1697  	// details.
  1698  	ForceSendFields []string `json:"-"`
  1699  	// NullFields is a list of field names (e.g. "Column") to include in API
  1700  	// requests with the JSON null value. By default, fields with empty values are
  1701  	// omitted from API requests. See
  1702  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1703  	NullFields []string `json:"-"`
  1704  }
  1705  
  1706  func (s *PostgresqlColumn) MarshalJSON() ([]byte, error) {
  1707  	type NoMethod PostgresqlColumn
  1708  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1709  }
  1710  
  1711  // PostgresqlObjectIdentifier: PostgreSQL data source object identifier.
  1712  type PostgresqlObjectIdentifier struct {
  1713  	// Schema: Required. The schema name.
  1714  	Schema string `json:"schema,omitempty"`
  1715  	// Table: Required. The table name.
  1716  	Table string `json:"table,omitempty"`
  1717  	// ForceSendFields is a list of field names (e.g. "Schema") 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. "Schema") 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 *PostgresqlObjectIdentifier) MarshalJSON() ([]byte, error) {
  1731  	type NoMethod PostgresqlObjectIdentifier
  1732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1733  }
  1734  
  1735  // PostgresqlProfile: PostgreSQL database profile.
  1736  type PostgresqlProfile struct {
  1737  	// Database: Required. Database for the PostgreSQL connection.
  1738  	Database string `json:"database,omitempty"`
  1739  	// Hostname: Required. Hostname for the PostgreSQL connection.
  1740  	Hostname string `json:"hostname,omitempty"`
  1741  	// Password: Required. Password for the PostgreSQL connection.
  1742  	Password string `json:"password,omitempty"`
  1743  	// Port: Port for the PostgreSQL connection, default value is 5432.
  1744  	Port int64 `json:"port,omitempty"`
  1745  	// Username: Required. Username for the PostgreSQL connection.
  1746  	Username string `json:"username,omitempty"`
  1747  	// ForceSendFields is a list of field names (e.g. "Database") to
  1748  	// unconditionally include in API requests. By default, fields with empty or
  1749  	// default values are omitted from API requests. See
  1750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1751  	// details.
  1752  	ForceSendFields []string `json:"-"`
  1753  	// NullFields is a list of field names (e.g. "Database") to include in API
  1754  	// requests with the JSON null value. By default, fields with empty values are
  1755  	// omitted from API requests. See
  1756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1757  	NullFields []string `json:"-"`
  1758  }
  1759  
  1760  func (s *PostgresqlProfile) MarshalJSON() ([]byte, error) {
  1761  	type NoMethod PostgresqlProfile
  1762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1763  }
  1764  
  1765  // PostgresqlRdbms: PostgreSQL database structure.
  1766  type PostgresqlRdbms struct {
  1767  	// PostgresqlSchemas: PostgreSQL schemas in the database server.
  1768  	PostgresqlSchemas []*PostgresqlSchema `json:"postgresqlSchemas,omitempty"`
  1769  	// ForceSendFields is a list of field names (e.g. "PostgresqlSchemas") to
  1770  	// unconditionally include in API requests. By default, fields with empty or
  1771  	// default values are omitted from API requests. See
  1772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1773  	// details.
  1774  	ForceSendFields []string `json:"-"`
  1775  	// NullFields is a list of field names (e.g. "PostgresqlSchemas") to include in
  1776  	// API requests with the JSON null value. By default, fields with empty values
  1777  	// are omitted from API requests. See
  1778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1779  	NullFields []string `json:"-"`
  1780  }
  1781  
  1782  func (s *PostgresqlRdbms) MarshalJSON() ([]byte, error) {
  1783  	type NoMethod PostgresqlRdbms
  1784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1785  }
  1786  
  1787  // PostgresqlSchema: PostgreSQL schema.
  1788  type PostgresqlSchema struct {
  1789  	// PostgresqlTables: Tables in the schema.
  1790  	PostgresqlTables []*PostgresqlTable `json:"postgresqlTables,omitempty"`
  1791  	// Schema: Schema name.
  1792  	Schema string `json:"schema,omitempty"`
  1793  	// ForceSendFields is a list of field names (e.g. "PostgresqlTables") 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. "PostgresqlTables") to include in
  1800  	// API requests with the JSON null value. By default, fields with empty values
  1801  	// are 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 *PostgresqlSchema) MarshalJSON() ([]byte, error) {
  1807  	type NoMethod PostgresqlSchema
  1808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1809  }
  1810  
  1811  // PostgresqlSourceConfig: PostgreSQL data source configuration
  1812  type PostgresqlSourceConfig struct {
  1813  	// ExcludeObjects: PostgreSQL objects to exclude from the stream.
  1814  	ExcludeObjects *PostgresqlRdbms `json:"excludeObjects,omitempty"`
  1815  	// IncludeObjects: PostgreSQL objects to include in the stream.
  1816  	IncludeObjects *PostgresqlRdbms `json:"includeObjects,omitempty"`
  1817  	// MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The
  1818  	// number should be non negative. If not set (or set to 0), the system's
  1819  	// default value will be used.
  1820  	MaxConcurrentBackfillTasks int64 `json:"maxConcurrentBackfillTasks,omitempty"`
  1821  	// Publication: Required. The name of the publication that includes the set of
  1822  	// all tables that are defined in the stream's include_objects.
  1823  	Publication string `json:"publication,omitempty"`
  1824  	// ReplicationSlot: Required. Immutable. The name of the logical replication
  1825  	// slot that's configured with the pgoutput plugin.
  1826  	ReplicationSlot string `json:"replicationSlot,omitempty"`
  1827  	// ForceSendFields is a list of field names (e.g. "ExcludeObjects") to
  1828  	// unconditionally include in API requests. By default, fields with empty or
  1829  	// default values are omitted from API requests. See
  1830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1831  	// details.
  1832  	ForceSendFields []string `json:"-"`
  1833  	// NullFields is a list of field names (e.g. "ExcludeObjects") to include in
  1834  	// API requests with the JSON null value. By default, fields with empty values
  1835  	// are omitted from API requests. See
  1836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1837  	NullFields []string `json:"-"`
  1838  }
  1839  
  1840  func (s *PostgresqlSourceConfig) MarshalJSON() ([]byte, error) {
  1841  	type NoMethod PostgresqlSourceConfig
  1842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1843  }
  1844  
  1845  // PostgresqlTable: PostgreSQL table.
  1846  type PostgresqlTable struct {
  1847  	// PostgresqlColumns: PostgreSQL columns in the schema. When unspecified as
  1848  	// part of include/exclude objects, includes/excludes everything.
  1849  	PostgresqlColumns []*PostgresqlColumn `json:"postgresqlColumns,omitempty"`
  1850  	// Table: Table name.
  1851  	Table string `json:"table,omitempty"`
  1852  	// ForceSendFields is a list of field names (e.g. "PostgresqlColumns") to
  1853  	// unconditionally include in API requests. By default, fields with empty or
  1854  	// default values are omitted from API requests. See
  1855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1856  	// details.
  1857  	ForceSendFields []string `json:"-"`
  1858  	// NullFields is a list of field names (e.g. "PostgresqlColumns") to include in
  1859  	// API requests with the JSON null value. By default, fields with empty values
  1860  	// are omitted from API requests. See
  1861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1862  	NullFields []string `json:"-"`
  1863  }
  1864  
  1865  func (s *PostgresqlTable) MarshalJSON() ([]byte, error) {
  1866  	type NoMethod PostgresqlTable
  1867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1868  }
  1869  
  1870  // PrivateConnection: The PrivateConnection resource is used to establish
  1871  // private connectivity between Datastream and a customer's network.
  1872  type PrivateConnection struct {
  1873  	// CreateTime: Output only. The create time of the resource.
  1874  	CreateTime string `json:"createTime,omitempty"`
  1875  	// DisplayName: Required. Display name.
  1876  	DisplayName string `json:"displayName,omitempty"`
  1877  	// Error: Output only. In case of error, the details of the error in a
  1878  	// user-friendly format.
  1879  	Error *Error `json:"error,omitempty"`
  1880  	// Labels: Labels.
  1881  	Labels map[string]string `json:"labels,omitempty"`
  1882  	// Name: Output only. The resource's name.
  1883  	Name string `json:"name,omitempty"`
  1884  	// State: Output only. The state of the Private Connection.
  1885  	//
  1886  	// Possible values:
  1887  	//   "STATE_UNSPECIFIED" - Unspecified state.
  1888  	//   "CREATING" - The private connection is in creation state - creating
  1889  	// resources.
  1890  	//   "CREATED" - The private connection has been created with all of its
  1891  	// resources.
  1892  	//   "FAILED" - The private connection creation has failed.
  1893  	//   "DELETING" - The private connection is being deleted.
  1894  	//   "FAILED_TO_DELETE" - Delete request has failed, resource is in invalid
  1895  	// state.
  1896  	State string `json:"state,omitempty"`
  1897  	// UpdateTime: Output only. The update time of the resource.
  1898  	UpdateTime string `json:"updateTime,omitempty"`
  1899  	// VpcPeeringConfig: VPC Peering Config.
  1900  	VpcPeeringConfig *VpcPeeringConfig `json:"vpcPeeringConfig,omitempty"`
  1901  
  1902  	// ServerResponse contains the HTTP response code and headers from the server.
  1903  	googleapi.ServerResponse `json:"-"`
  1904  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1905  	// unconditionally include in API requests. By default, fields with empty or
  1906  	// default values are omitted from API requests. See
  1907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1908  	// details.
  1909  	ForceSendFields []string `json:"-"`
  1910  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1911  	// requests with the JSON null value. By default, fields with empty values are
  1912  	// omitted from API requests. See
  1913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1914  	NullFields []string `json:"-"`
  1915  }
  1916  
  1917  func (s *PrivateConnection) MarshalJSON() ([]byte, error) {
  1918  	type NoMethod PrivateConnection
  1919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1920  }
  1921  
  1922  // PrivateConnectivity: Private Connectivity
  1923  type PrivateConnectivity struct {
  1924  	// PrivateConnection: Required. A reference to a private connection resource.
  1925  	// Format: `projects/{project}/locations/{location}/privateConnections/{name}`
  1926  	PrivateConnection string `json:"privateConnection,omitempty"`
  1927  	// ForceSendFields is a list of field names (e.g. "PrivateConnection") to
  1928  	// unconditionally include in API requests. By default, fields with empty or
  1929  	// default values are omitted from API requests. See
  1930  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1931  	// details.
  1932  	ForceSendFields []string `json:"-"`
  1933  	// NullFields is a list of field names (e.g. "PrivateConnection") to include in
  1934  	// API requests with the JSON null value. By default, fields with empty values
  1935  	// are omitted from API requests. See
  1936  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1937  	NullFields []string `json:"-"`
  1938  }
  1939  
  1940  func (s *PrivateConnectivity) MarshalJSON() ([]byte, error) {
  1941  	type NoMethod PrivateConnectivity
  1942  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1943  }
  1944  
  1945  // Route: The route resource is the child of the private connection resource,
  1946  // used for defining a route for a private connection.
  1947  type Route struct {
  1948  	// CreateTime: Output only. The create time of the resource.
  1949  	CreateTime string `json:"createTime,omitempty"`
  1950  	// DestinationAddress: Required. Destination address for connection
  1951  	DestinationAddress string `json:"destinationAddress,omitempty"`
  1952  	// DestinationPort: Destination port for connection
  1953  	DestinationPort int64 `json:"destinationPort,omitempty"`
  1954  	// DisplayName: Required. Display name.
  1955  	DisplayName string `json:"displayName,omitempty"`
  1956  	// Labels: Labels.
  1957  	Labels map[string]string `json:"labels,omitempty"`
  1958  	// Name: Output only. The resource's name.
  1959  	Name string `json:"name,omitempty"`
  1960  	// UpdateTime: Output only. The update time of the resource.
  1961  	UpdateTime string `json:"updateTime,omitempty"`
  1962  
  1963  	// ServerResponse contains the HTTP response code and headers from the server.
  1964  	googleapi.ServerResponse `json:"-"`
  1965  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1966  	// unconditionally include in API requests. By default, fields with empty or
  1967  	// default values are omitted from API requests. See
  1968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1969  	// details.
  1970  	ForceSendFields []string `json:"-"`
  1971  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1972  	// requests with the JSON null value. By default, fields with empty values are
  1973  	// omitted from API requests. See
  1974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1975  	NullFields []string `json:"-"`
  1976  }
  1977  
  1978  func (s *Route) MarshalJSON() ([]byte, error) {
  1979  	type NoMethod Route
  1980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1981  }
  1982  
  1983  // RunStreamRequest: Request message for running a stream.
  1984  type RunStreamRequest struct {
  1985  	// CdcStrategy: Optional. The CDC strategy of the stream. If not set, the
  1986  	// system's default value will be used.
  1987  	CdcStrategy *CdcStrategy `json:"cdcStrategy,omitempty"`
  1988  	// ForceSendFields is a list of field names (e.g. "CdcStrategy") to
  1989  	// unconditionally include in API requests. By default, fields with empty or
  1990  	// default values are omitted from API requests. See
  1991  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1992  	// details.
  1993  	ForceSendFields []string `json:"-"`
  1994  	// NullFields is a list of field names (e.g. "CdcStrategy") to include in API
  1995  	// requests with the JSON null value. By default, fields with empty values are
  1996  	// omitted from API requests. See
  1997  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1998  	NullFields []string `json:"-"`
  1999  }
  2000  
  2001  func (s *RunStreamRequest) MarshalJSON() ([]byte, error) {
  2002  	type NoMethod RunStreamRequest
  2003  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2004  }
  2005  
  2006  // SingleTargetDataset: A single target dataset to which all data will be
  2007  // streamed.
  2008  type SingleTargetDataset struct {
  2009  	// DatasetId: The dataset ID of the target dataset. DatasetIds allowed
  2010  	// characters:
  2011  	// https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#datasetreference.
  2012  	DatasetId string `json:"datasetId,omitempty"`
  2013  	// ForceSendFields is a list of field names (e.g. "DatasetId") to
  2014  	// unconditionally include in API requests. By default, fields with empty or
  2015  	// default values are omitted from API requests. See
  2016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2017  	// details.
  2018  	ForceSendFields []string `json:"-"`
  2019  	// NullFields is a list of field names (e.g. "DatasetId") to include in API
  2020  	// requests with the JSON null value. By default, fields with empty values are
  2021  	// omitted from API requests. See
  2022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2023  	NullFields []string `json:"-"`
  2024  }
  2025  
  2026  func (s *SingleTargetDataset) MarshalJSON() ([]byte, error) {
  2027  	type NoMethod SingleTargetDataset
  2028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2029  }
  2030  
  2031  // SourceConfig: The configuration of the stream source.
  2032  type SourceConfig struct {
  2033  	// MysqlSourceConfig: MySQL data source configuration.
  2034  	MysqlSourceConfig *MysqlSourceConfig `json:"mysqlSourceConfig,omitempty"`
  2035  	// OracleSourceConfig: Oracle data source configuration.
  2036  	OracleSourceConfig *OracleSourceConfig `json:"oracleSourceConfig,omitempty"`
  2037  	// PostgresqlSourceConfig: PostgreSQL data source configuration.
  2038  	PostgresqlSourceConfig *PostgresqlSourceConfig `json:"postgresqlSourceConfig,omitempty"`
  2039  	// SourceConnectionProfile: Required. Source connection profile resoource.
  2040  	// Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
  2041  	SourceConnectionProfile string `json:"sourceConnectionProfile,omitempty"`
  2042  	// SqlServerSourceConfig: SQLServer data source configuration.
  2043  	SqlServerSourceConfig *SqlServerSourceConfig `json:"sqlServerSourceConfig,omitempty"`
  2044  	// ForceSendFields is a list of field names (e.g. "MysqlSourceConfig") to
  2045  	// unconditionally include in API requests. By default, fields with empty or
  2046  	// default values are omitted from API requests. See
  2047  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2048  	// details.
  2049  	ForceSendFields []string `json:"-"`
  2050  	// NullFields is a list of field names (e.g. "MysqlSourceConfig") to include in
  2051  	// API requests with the JSON null value. By default, fields with empty values
  2052  	// are omitted from API requests. See
  2053  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2054  	NullFields []string `json:"-"`
  2055  }
  2056  
  2057  func (s *SourceConfig) MarshalJSON() ([]byte, error) {
  2058  	type NoMethod SourceConfig
  2059  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2060  }
  2061  
  2062  // SourceHierarchyDatasets: Destination datasets are created so that hierarchy
  2063  // of the destination data objects matches the source hierarchy.
  2064  type SourceHierarchyDatasets struct {
  2065  	// DatasetTemplate: The dataset template to use for dynamic dataset creation.
  2066  	DatasetTemplate *DatasetTemplate `json:"datasetTemplate,omitempty"`
  2067  	// ForceSendFields is a list of field names (e.g. "DatasetTemplate") to
  2068  	// unconditionally include in API requests. By default, fields with empty or
  2069  	// default values are omitted from API requests. See
  2070  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2071  	// details.
  2072  	ForceSendFields []string `json:"-"`
  2073  	// NullFields is a list of field names (e.g. "DatasetTemplate") to include in
  2074  	// API requests with the JSON null value. By default, fields with empty values
  2075  	// are omitted from API requests. See
  2076  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2077  	NullFields []string `json:"-"`
  2078  }
  2079  
  2080  func (s *SourceHierarchyDatasets) MarshalJSON() ([]byte, error) {
  2081  	type NoMethod SourceHierarchyDatasets
  2082  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2083  }
  2084  
  2085  // SourceObjectIdentifier: Represents an identifier of an object in the data
  2086  // source.
  2087  type SourceObjectIdentifier struct {
  2088  	// MysqlIdentifier: Mysql data source object identifier.
  2089  	MysqlIdentifier *MysqlObjectIdentifier `json:"mysqlIdentifier,omitempty"`
  2090  	// OracleIdentifier: Oracle data source object identifier.
  2091  	OracleIdentifier *OracleObjectIdentifier `json:"oracleIdentifier,omitempty"`
  2092  	// PostgresqlIdentifier: PostgreSQL data source object identifier.
  2093  	PostgresqlIdentifier *PostgresqlObjectIdentifier `json:"postgresqlIdentifier,omitempty"`
  2094  	// SqlServerIdentifier: SQLServer data source object identifier.
  2095  	SqlServerIdentifier *SqlServerObjectIdentifier `json:"sqlServerIdentifier,omitempty"`
  2096  	// ForceSendFields is a list of field names (e.g. "MysqlIdentifier") to
  2097  	// unconditionally include in API requests. By default, fields with empty or
  2098  	// default values are omitted from API requests. See
  2099  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2100  	// details.
  2101  	ForceSendFields []string `json:"-"`
  2102  	// NullFields is a list of field names (e.g. "MysqlIdentifier") to include in
  2103  	// API requests with the JSON null value. By default, fields with empty values
  2104  	// are omitted from API requests. See
  2105  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2106  	NullFields []string `json:"-"`
  2107  }
  2108  
  2109  func (s *SourceObjectIdentifier) MarshalJSON() ([]byte, error) {
  2110  	type NoMethod SourceObjectIdentifier
  2111  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2112  }
  2113  
  2114  // SpecificStartPosition: CDC strategy to start replicating from a specific
  2115  // position in the source.
  2116  type SpecificStartPosition struct {
  2117  	// MysqlLogPosition: MySQL specific log position to start replicating from.
  2118  	MysqlLogPosition *MysqlLogPosition `json:"mysqlLogPosition,omitempty"`
  2119  	// OracleScnPosition: Oracle SCN to start replicating from.
  2120  	OracleScnPosition *OracleScnPosition `json:"oracleScnPosition,omitempty"`
  2121  	// ForceSendFields is a list of field names (e.g. "MysqlLogPosition") to
  2122  	// unconditionally include in API requests. By default, fields with empty or
  2123  	// default values are omitted from API requests. See
  2124  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2125  	// details.
  2126  	ForceSendFields []string `json:"-"`
  2127  	// NullFields is a list of field names (e.g. "MysqlLogPosition") to include in
  2128  	// API requests with the JSON null value. By default, fields with empty values
  2129  	// are omitted from API requests. See
  2130  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2131  	NullFields []string `json:"-"`
  2132  }
  2133  
  2134  func (s *SpecificStartPosition) MarshalJSON() ([]byte, error) {
  2135  	type NoMethod SpecificStartPosition
  2136  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2137  }
  2138  
  2139  // SqlServerColumn: SQLServer Column.
  2140  type SqlServerColumn struct {
  2141  	// Column: Column name.
  2142  	Column string `json:"column,omitempty"`
  2143  	// DataType: The SQLServer data type.
  2144  	DataType string `json:"dataType,omitempty"`
  2145  	// Length: Column length.
  2146  	Length int64 `json:"length,omitempty"`
  2147  	// Nullable: Whether or not the column can accept a null value.
  2148  	Nullable bool `json:"nullable,omitempty"`
  2149  	// OrdinalPosition: The ordinal position of the column in the table.
  2150  	OrdinalPosition int64 `json:"ordinalPosition,omitempty"`
  2151  	// Precision: Column precision.
  2152  	Precision int64 `json:"precision,omitempty"`
  2153  	// PrimaryKey: Whether or not the column represents a primary key.
  2154  	PrimaryKey bool `json:"primaryKey,omitempty"`
  2155  	// Scale: Column scale.
  2156  	Scale int64 `json:"scale,omitempty"`
  2157  	// ForceSendFields is a list of field names (e.g. "Column") to unconditionally
  2158  	// include in API requests. By default, fields with empty or default values are
  2159  	// omitted from API requests. See
  2160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2161  	// details.
  2162  	ForceSendFields []string `json:"-"`
  2163  	// NullFields is a list of field names (e.g. "Column") to include in API
  2164  	// requests with the JSON null value. By default, fields with empty values are
  2165  	// omitted from API requests. See
  2166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2167  	NullFields []string `json:"-"`
  2168  }
  2169  
  2170  func (s *SqlServerColumn) MarshalJSON() ([]byte, error) {
  2171  	type NoMethod SqlServerColumn
  2172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2173  }
  2174  
  2175  // SqlServerObjectIdentifier: SQLServer data source object identifier.
  2176  type SqlServerObjectIdentifier struct {
  2177  	// Schema: Required. The schema name.
  2178  	Schema string `json:"schema,omitempty"`
  2179  	// Table: Required. The table name.
  2180  	Table string `json:"table,omitempty"`
  2181  	// ForceSendFields is a list of field names (e.g. "Schema") to unconditionally
  2182  	// include in API requests. By default, fields with empty or default values are
  2183  	// omitted from API requests. See
  2184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2185  	// details.
  2186  	ForceSendFields []string `json:"-"`
  2187  	// NullFields is a list of field names (e.g. "Schema") to include in API
  2188  	// requests with the JSON null value. By default, fields with empty values are
  2189  	// omitted from API requests. See
  2190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2191  	NullFields []string `json:"-"`
  2192  }
  2193  
  2194  func (s *SqlServerObjectIdentifier) MarshalJSON() ([]byte, error) {
  2195  	type NoMethod SqlServerObjectIdentifier
  2196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2197  }
  2198  
  2199  // SqlServerProfile: SQLServer database profile
  2200  type SqlServerProfile struct {
  2201  	// Database: Required. Database for the SQLServer connection.
  2202  	Database string `json:"database,omitempty"`
  2203  	// Hostname: Required. Hostname for the SQLServer connection.
  2204  	Hostname string `json:"hostname,omitempty"`
  2205  	// Password: Required. Password for the SQLServer connection.
  2206  	Password string `json:"password,omitempty"`
  2207  	// Port: Port for the SQLServer connection, default value is 1433.
  2208  	Port int64 `json:"port,omitempty"`
  2209  	// Username: Required. Username for the SQLServer connection.
  2210  	Username string `json:"username,omitempty"`
  2211  	// ForceSendFields is a list of field names (e.g. "Database") to
  2212  	// unconditionally include in API requests. By default, fields with empty or
  2213  	// default values are omitted from API requests. See
  2214  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2215  	// details.
  2216  	ForceSendFields []string `json:"-"`
  2217  	// NullFields is a list of field names (e.g. "Database") to include in API
  2218  	// requests with the JSON null value. By default, fields with empty values are
  2219  	// omitted from API requests. See
  2220  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2221  	NullFields []string `json:"-"`
  2222  }
  2223  
  2224  func (s *SqlServerProfile) MarshalJSON() ([]byte, error) {
  2225  	type NoMethod SqlServerProfile
  2226  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2227  }
  2228  
  2229  // SqlServerRdbms: SQLServer database structure.
  2230  type SqlServerRdbms struct {
  2231  	// Schemas: SQLServer schemas in the database server.
  2232  	Schemas []*SqlServerSchema `json:"schemas,omitempty"`
  2233  	// ForceSendFields is a list of field names (e.g. "Schemas") to unconditionally
  2234  	// include in API requests. By default, fields with empty or default values are
  2235  	// omitted from API requests. See
  2236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2237  	// details.
  2238  	ForceSendFields []string `json:"-"`
  2239  	// NullFields is a list of field names (e.g. "Schemas") to include in API
  2240  	// requests with the JSON null value. By default, fields with empty values are
  2241  	// omitted from API requests. See
  2242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2243  	NullFields []string `json:"-"`
  2244  }
  2245  
  2246  func (s *SqlServerRdbms) MarshalJSON() ([]byte, error) {
  2247  	type NoMethod SqlServerRdbms
  2248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2249  }
  2250  
  2251  // SqlServerSchema: SQLServer schema.
  2252  type SqlServerSchema struct {
  2253  	// Schema: Schema name.
  2254  	Schema string `json:"schema,omitempty"`
  2255  	// Tables: Tables in the schema.
  2256  	Tables []*SqlServerTable `json:"tables,omitempty"`
  2257  	// ForceSendFields is a list of field names (e.g. "Schema") to unconditionally
  2258  	// include in API requests. By default, fields with empty or default values are
  2259  	// omitted from API requests. See
  2260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2261  	// details.
  2262  	ForceSendFields []string `json:"-"`
  2263  	// NullFields is a list of field names (e.g. "Schema") to include in API
  2264  	// requests with the JSON null value. By default, fields with empty values are
  2265  	// omitted from API requests. See
  2266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2267  	NullFields []string `json:"-"`
  2268  }
  2269  
  2270  func (s *SqlServerSchema) MarshalJSON() ([]byte, error) {
  2271  	type NoMethod SqlServerSchema
  2272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2273  }
  2274  
  2275  // SqlServerSourceConfig: SQLServer data source configuration
  2276  type SqlServerSourceConfig struct {
  2277  	// ExcludeObjects: SQLServer objects to exclude from the stream.
  2278  	ExcludeObjects *SqlServerRdbms `json:"excludeObjects,omitempty"`
  2279  	// IncludeObjects: SQLServer objects to include in the stream.
  2280  	IncludeObjects *SqlServerRdbms `json:"includeObjects,omitempty"`
  2281  	// MaxConcurrentBackfillTasks: Max concurrent backfill tasks.
  2282  	MaxConcurrentBackfillTasks int64 `json:"maxConcurrentBackfillTasks,omitempty"`
  2283  	// MaxConcurrentCdcTasks: Max concurrent CDC tasks.
  2284  	MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"`
  2285  	// ForceSendFields is a list of field names (e.g. "ExcludeObjects") to
  2286  	// unconditionally include in API requests. By default, fields with empty or
  2287  	// default values are omitted from API requests. See
  2288  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2289  	// details.
  2290  	ForceSendFields []string `json:"-"`
  2291  	// NullFields is a list of field names (e.g. "ExcludeObjects") to include in
  2292  	// API requests with the JSON null value. By default, fields with empty values
  2293  	// are omitted from API requests. See
  2294  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2295  	NullFields []string `json:"-"`
  2296  }
  2297  
  2298  func (s *SqlServerSourceConfig) MarshalJSON() ([]byte, error) {
  2299  	type NoMethod SqlServerSourceConfig
  2300  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2301  }
  2302  
  2303  // SqlServerTable: SQLServer table.
  2304  type SqlServerTable struct {
  2305  	// Columns: SQLServer columns in the schema. When unspecified as part of
  2306  	// include/exclude objects, includes/excludes everything.
  2307  	Columns []*SqlServerColumn `json:"columns,omitempty"`
  2308  	// Table: Table name.
  2309  	Table string `json:"table,omitempty"`
  2310  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  2311  	// include in API requests. By default, fields with empty or default values are
  2312  	// omitted from API requests. See
  2313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2314  	// details.
  2315  	ForceSendFields []string `json:"-"`
  2316  	// NullFields is a list of field names (e.g. "Columns") to include in API
  2317  	// requests with the JSON null value. By default, fields with empty values are
  2318  	// omitted from API requests. See
  2319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2320  	NullFields []string `json:"-"`
  2321  }
  2322  
  2323  func (s *SqlServerTable) MarshalJSON() ([]byte, error) {
  2324  	type NoMethod SqlServerTable
  2325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2326  }
  2327  
  2328  // StartBackfillJobRequest: Request for manually initiating a backfill job for
  2329  // a specific stream object.
  2330  type StartBackfillJobRequest struct {
  2331  }
  2332  
  2333  // StartBackfillJobResponse: Response for manually initiating a backfill job
  2334  // for a specific stream object.
  2335  type StartBackfillJobResponse struct {
  2336  	// Object: The stream object resource a backfill job was started for.
  2337  	Object *StreamObject `json:"object,omitempty"`
  2338  
  2339  	// ServerResponse contains the HTTP response code and headers from the server.
  2340  	googleapi.ServerResponse `json:"-"`
  2341  	// ForceSendFields is a list of field names (e.g. "Object") to unconditionally
  2342  	// include in API requests. By default, fields with empty or default values are
  2343  	// omitted from API requests. See
  2344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2345  	// details.
  2346  	ForceSendFields []string `json:"-"`
  2347  	// NullFields is a list of field names (e.g. "Object") to include in API
  2348  	// requests with the JSON null value. By default, fields with empty values are
  2349  	// omitted from API requests. See
  2350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2351  	NullFields []string `json:"-"`
  2352  }
  2353  
  2354  func (s *StartBackfillJobResponse) MarshalJSON() ([]byte, error) {
  2355  	type NoMethod StartBackfillJobResponse
  2356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2357  }
  2358  
  2359  // StaticServiceIpConnectivity: Static IP address connectivity. Used when the
  2360  // source database is configured to allow incoming connections from the
  2361  // Datastream public IP addresses for the region specified in the connection
  2362  // profile.
  2363  type StaticServiceIpConnectivity struct {
  2364  }
  2365  
  2366  // Status: The `Status` type defines a logical error model that is suitable for
  2367  // different programming environments, including REST APIs and RPC APIs. It is
  2368  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  2369  // pieces of data: error code, error message, and error details. You can find
  2370  // out more about this error model and how to work with it in the API Design
  2371  // Guide (https://cloud.google.com/apis/design/errors).
  2372  type Status struct {
  2373  	// Code: The status code, which should be an enum value of google.rpc.Code.
  2374  	Code int64 `json:"code,omitempty"`
  2375  	// Details: A list of messages that carry the error details. There is a common
  2376  	// set of message types for APIs to use.
  2377  	Details []googleapi.RawMessage `json:"details,omitempty"`
  2378  	// Message: A developer-facing error message, which should be in English. Any
  2379  	// user-facing error message should be localized and sent in the
  2380  	// google.rpc.Status.details field, or localized by the client.
  2381  	Message string `json:"message,omitempty"`
  2382  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2383  	// include in API requests. By default, fields with empty or default values are
  2384  	// omitted from API requests. See
  2385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2386  	// details.
  2387  	ForceSendFields []string `json:"-"`
  2388  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2389  	// with the JSON null value. By default, fields with empty values are omitted
  2390  	// from API requests. See
  2391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2392  	NullFields []string `json:"-"`
  2393  }
  2394  
  2395  func (s *Status) MarshalJSON() ([]byte, error) {
  2396  	type NoMethod Status
  2397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2398  }
  2399  
  2400  // StopBackfillJobRequest: Request for manually stopping a running backfill job
  2401  // for a specific stream object.
  2402  type StopBackfillJobRequest struct {
  2403  }
  2404  
  2405  // StopBackfillJobResponse: Response for manually stop a backfill job for a
  2406  // specific stream object.
  2407  type StopBackfillJobResponse struct {
  2408  	// Object: The stream object resource the backfill job was stopped for.
  2409  	Object *StreamObject `json:"object,omitempty"`
  2410  
  2411  	// ServerResponse contains the HTTP response code and headers from the server.
  2412  	googleapi.ServerResponse `json:"-"`
  2413  	// ForceSendFields is a list of field names (e.g. "Object") to unconditionally
  2414  	// include in API requests. By default, fields with empty or default values are
  2415  	// omitted from API requests. See
  2416  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2417  	// details.
  2418  	ForceSendFields []string `json:"-"`
  2419  	// NullFields is a list of field names (e.g. "Object") to include in API
  2420  	// requests with the JSON null value. By default, fields with empty values are
  2421  	// omitted from API requests. See
  2422  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2423  	NullFields []string `json:"-"`
  2424  }
  2425  
  2426  func (s *StopBackfillJobResponse) MarshalJSON() ([]byte, error) {
  2427  	type NoMethod StopBackfillJobResponse
  2428  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2429  }
  2430  
  2431  // Stream: A resource representing streaming data from a source to a
  2432  // destination.
  2433  type Stream struct {
  2434  	// BackfillAll: Automatically backfill objects included in the stream source
  2435  	// configuration. Specific objects can be excluded.
  2436  	BackfillAll *BackfillAllStrategy `json:"backfillAll,omitempty"`
  2437  	// BackfillNone: Do not automatically backfill any objects.
  2438  	BackfillNone *BackfillNoneStrategy `json:"backfillNone,omitempty"`
  2439  	// CreateTime: Output only. The creation time of the stream.
  2440  	CreateTime string `json:"createTime,omitempty"`
  2441  	// CustomerManagedEncryptionKey: Immutable. A reference to a KMS encryption
  2442  	// key. If provided, it will be used to encrypt the data. If left blank, data
  2443  	// will be encrypted using an internal Stream-specific encryption key
  2444  	// provisioned through KMS.
  2445  	CustomerManagedEncryptionKey string `json:"customerManagedEncryptionKey,omitempty"`
  2446  	// DestinationConfig: Required. Destination connection profile configuration.
  2447  	DestinationConfig *DestinationConfig `json:"destinationConfig,omitempty"`
  2448  	// DisplayName: Required. Display name.
  2449  	DisplayName string `json:"displayName,omitempty"`
  2450  	// Errors: Output only. Errors on the Stream.
  2451  	Errors []*Error `json:"errors,omitempty"`
  2452  	// Labels: Labels.
  2453  	Labels map[string]string `json:"labels,omitempty"`
  2454  	// LastRecoveryTime: Output only. If the stream was recovered, the time of the
  2455  	// last recovery. Note: This field is currently experimental.
  2456  	LastRecoveryTime string `json:"lastRecoveryTime,omitempty"`
  2457  	// Name: Output only. The stream's name.
  2458  	Name string `json:"name,omitempty"`
  2459  	// SourceConfig: Required. Source connection profile configuration.
  2460  	SourceConfig *SourceConfig `json:"sourceConfig,omitempty"`
  2461  	// State: The state of the stream.
  2462  	//
  2463  	// Possible values:
  2464  	//   "STATE_UNSPECIFIED" - Unspecified stream state.
  2465  	//   "NOT_STARTED" - The stream has been created but has not yet started
  2466  	// streaming data.
  2467  	//   "RUNNING" - The stream is running.
  2468  	//   "PAUSED" - The stream is paused.
  2469  	//   "MAINTENANCE" - The stream is in maintenance mode. Updates are rejected on
  2470  	// the resource in this state.
  2471  	//   "FAILED" - The stream is experiencing an error that is preventing data
  2472  	// from being streamed.
  2473  	//   "FAILED_PERMANENTLY" - The stream has experienced a terminal failure.
  2474  	//   "STARTING" - The stream is starting, but not yet running.
  2475  	//   "DRAINING" - The Stream is no longer reading new events, but still writing
  2476  	// events in the buffer.
  2477  	State string `json:"state,omitempty"`
  2478  	// UpdateTime: Output only. The last update time of the stream.
  2479  	UpdateTime string `json:"updateTime,omitempty"`
  2480  
  2481  	// ServerResponse contains the HTTP response code and headers from the server.
  2482  	googleapi.ServerResponse `json:"-"`
  2483  	// ForceSendFields is a list of field names (e.g. "BackfillAll") to
  2484  	// unconditionally include in API requests. By default, fields with empty or
  2485  	// default values are omitted from API requests. See
  2486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2487  	// details.
  2488  	ForceSendFields []string `json:"-"`
  2489  	// NullFields is a list of field names (e.g. "BackfillAll") to include in API
  2490  	// requests with the JSON null value. By default, fields with empty values are
  2491  	// omitted from API requests. See
  2492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2493  	NullFields []string `json:"-"`
  2494  }
  2495  
  2496  func (s *Stream) MarshalJSON() ([]byte, error) {
  2497  	type NoMethod Stream
  2498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2499  }
  2500  
  2501  // StreamLargeObjects: Configuration to stream large object values.
  2502  type StreamLargeObjects struct {
  2503  }
  2504  
  2505  // StreamObject: A specific stream object (e.g a specific DB table).
  2506  type StreamObject struct {
  2507  	// BackfillJob: The latest backfill job that was initiated for the stream
  2508  	// object.
  2509  	BackfillJob *BackfillJob `json:"backfillJob,omitempty"`
  2510  	// CreateTime: Output only. The creation time of the object.
  2511  	CreateTime string `json:"createTime,omitempty"`
  2512  	// DisplayName: Required. Display name.
  2513  	DisplayName string `json:"displayName,omitempty"`
  2514  	// Errors: Output only. Active errors on the object.
  2515  	Errors []*Error `json:"errors,omitempty"`
  2516  	// Name: Output only. The object resource's name.
  2517  	Name string `json:"name,omitempty"`
  2518  	// SourceObject: The object identifier in the data source.
  2519  	SourceObject *SourceObjectIdentifier `json:"sourceObject,omitempty"`
  2520  	// UpdateTime: Output only. The last update time of the object.
  2521  	UpdateTime string `json:"updateTime,omitempty"`
  2522  
  2523  	// ServerResponse contains the HTTP response code and headers from the server.
  2524  	googleapi.ServerResponse `json:"-"`
  2525  	// ForceSendFields is a list of field names (e.g. "BackfillJob") to
  2526  	// unconditionally include in API requests. By default, fields with empty or
  2527  	// default values are omitted from API requests. See
  2528  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2529  	// details.
  2530  	ForceSendFields []string `json:"-"`
  2531  	// NullFields is a list of field names (e.g. "BackfillJob") to include in API
  2532  	// requests with the JSON null value. By default, fields with empty values are
  2533  	// omitted from API requests. See
  2534  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2535  	NullFields []string `json:"-"`
  2536  }
  2537  
  2538  func (s *StreamObject) MarshalJSON() ([]byte, error) {
  2539  	type NoMethod StreamObject
  2540  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2541  }
  2542  
  2543  // Validation: A validation to perform on a stream.
  2544  type Validation struct {
  2545  	// Code: A custom code identifying this validation.
  2546  	Code string `json:"code,omitempty"`
  2547  	// Description: A short description of the validation.
  2548  	Description string `json:"description,omitempty"`
  2549  	// Message: Messages reflecting the validation results.
  2550  	Message []*ValidationMessage `json:"message,omitempty"`
  2551  	// State: Output only. Validation execution status.
  2552  	//
  2553  	// Possible values:
  2554  	//   "STATE_UNSPECIFIED" - Unspecified state.
  2555  	//   "NOT_EXECUTED" - Validation did not execute.
  2556  	//   "FAILED" - Validation failed.
  2557  	//   "PASSED" - Validation passed.
  2558  	//   "WARNING" - Validation executed with warnings.
  2559  	State string `json:"state,omitempty"`
  2560  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2561  	// include in API requests. By default, fields with empty or default values are
  2562  	// omitted from API requests. See
  2563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2564  	// details.
  2565  	ForceSendFields []string `json:"-"`
  2566  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2567  	// with the JSON null value. By default, fields with empty values are omitted
  2568  	// from API requests. See
  2569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2570  	NullFields []string `json:"-"`
  2571  }
  2572  
  2573  func (s *Validation) MarshalJSON() ([]byte, error) {
  2574  	type NoMethod Validation
  2575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2576  }
  2577  
  2578  // ValidationMessage: Represent user-facing validation result message.
  2579  type ValidationMessage struct {
  2580  	// Code: A custom code identifying this specific message.
  2581  	Code string `json:"code,omitempty"`
  2582  	// Level: Message severity level (warning or error).
  2583  	//
  2584  	// Possible values:
  2585  	//   "LEVEL_UNSPECIFIED" - Unspecified level.
  2586  	//   "WARNING" - Potentially cause issues with the Stream.
  2587  	//   "ERROR" - Definitely cause issues with the Stream.
  2588  	Level string `json:"level,omitempty"`
  2589  	// Message: The result of the validation.
  2590  	Message string `json:"message,omitempty"`
  2591  	// Metadata: Additional metadata related to the result.
  2592  	Metadata map[string]string `json:"metadata,omitempty"`
  2593  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2594  	// include in API requests. By default, fields with empty or default values are
  2595  	// omitted from API requests. See
  2596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2597  	// details.
  2598  	ForceSendFields []string `json:"-"`
  2599  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2600  	// with the JSON null value. By default, fields with empty values are omitted
  2601  	// from API requests. See
  2602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2603  	NullFields []string `json:"-"`
  2604  }
  2605  
  2606  func (s *ValidationMessage) MarshalJSON() ([]byte, error) {
  2607  	type NoMethod ValidationMessage
  2608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2609  }
  2610  
  2611  // ValidationResult: Contains the current validation results.
  2612  type ValidationResult struct {
  2613  	// Validations: A list of validations (includes both executed as well as not
  2614  	// executed validations).
  2615  	Validations []*Validation `json:"validations,omitempty"`
  2616  	// ForceSendFields is a list of field names (e.g. "Validations") to
  2617  	// unconditionally include in API requests. By default, fields with empty or
  2618  	// default values are omitted from API requests. See
  2619  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2620  	// details.
  2621  	ForceSendFields []string `json:"-"`
  2622  	// NullFields is a list of field names (e.g. "Validations") to include in API
  2623  	// requests with the JSON null value. By default, fields with empty values are
  2624  	// omitted from API requests. See
  2625  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2626  	NullFields []string `json:"-"`
  2627  }
  2628  
  2629  func (s *ValidationResult) MarshalJSON() ([]byte, error) {
  2630  	type NoMethod ValidationResult
  2631  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2632  }
  2633  
  2634  // VpcPeeringConfig: The VPC Peering configuration is used to create VPC
  2635  // peering between Datastream and the consumer's VPC.
  2636  type VpcPeeringConfig struct {
  2637  	// Subnet: Required. A free subnet for peering. (CIDR of /29)
  2638  	Subnet string `json:"subnet,omitempty"`
  2639  	// Vpc: Required. Fully qualified name of the VPC that Datastream will peer to.
  2640  	// Format: `projects/{project}/global/{networks}/{name}`
  2641  	Vpc string `json:"vpc,omitempty"`
  2642  	// ForceSendFields is a list of field names (e.g. "Subnet") to unconditionally
  2643  	// include in API requests. By default, fields with empty or default values are
  2644  	// omitted from API requests. See
  2645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2646  	// details.
  2647  	ForceSendFields []string `json:"-"`
  2648  	// NullFields is a list of field names (e.g. "Subnet") to include in API
  2649  	// requests with the JSON null value. By default, fields with empty values are
  2650  	// omitted from API requests. See
  2651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2652  	NullFields []string `json:"-"`
  2653  }
  2654  
  2655  func (s *VpcPeeringConfig) MarshalJSON() ([]byte, error) {
  2656  	type NoMethod VpcPeeringConfig
  2657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2658  }
  2659  
  2660  type ProjectsLocationsFetchStaticIpsCall struct {
  2661  	s            *Service
  2662  	name         string
  2663  	urlParams_   gensupport.URLParams
  2664  	ifNoneMatch_ string
  2665  	ctx_         context.Context
  2666  	header_      http.Header
  2667  }
  2668  
  2669  // FetchStaticIps: The FetchStaticIps API call exposes the static IP addresses
  2670  // used by Datastream.
  2671  //
  2672  //   - name: The resource name for the location for which static IPs should be
  2673  //     returned. Must be in the format `projects/*/locations/*`.
  2674  func (r *ProjectsLocationsService) FetchStaticIps(name string) *ProjectsLocationsFetchStaticIpsCall {
  2675  	c := &ProjectsLocationsFetchStaticIpsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2676  	c.name = name
  2677  	return c
  2678  }
  2679  
  2680  // PageSize sets the optional parameter "pageSize": Maximum number of Ips to
  2681  // return, will likely not be specified.
  2682  func (c *ProjectsLocationsFetchStaticIpsCall) PageSize(pageSize int64) *ProjectsLocationsFetchStaticIpsCall {
  2683  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2684  	return c
  2685  }
  2686  
  2687  // PageToken sets the optional parameter "pageToken": A page token, received
  2688  // from a previous `ListStaticIps` call. will likely not be specified.
  2689  func (c *ProjectsLocationsFetchStaticIpsCall) PageToken(pageToken string) *ProjectsLocationsFetchStaticIpsCall {
  2690  	c.urlParams_.Set("pageToken", pageToken)
  2691  	return c
  2692  }
  2693  
  2694  // Fields allows partial responses to be retrieved. See
  2695  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2696  // details.
  2697  func (c *ProjectsLocationsFetchStaticIpsCall) Fields(s ...googleapi.Field) *ProjectsLocationsFetchStaticIpsCall {
  2698  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2699  	return c
  2700  }
  2701  
  2702  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2703  // object's ETag matches the given value. This is useful for getting updates
  2704  // only after the object has changed since the last request.
  2705  func (c *ProjectsLocationsFetchStaticIpsCall) IfNoneMatch(entityTag string) *ProjectsLocationsFetchStaticIpsCall {
  2706  	c.ifNoneMatch_ = entityTag
  2707  	return c
  2708  }
  2709  
  2710  // Context sets the context to be used in this call's Do method.
  2711  func (c *ProjectsLocationsFetchStaticIpsCall) Context(ctx context.Context) *ProjectsLocationsFetchStaticIpsCall {
  2712  	c.ctx_ = ctx
  2713  	return c
  2714  }
  2715  
  2716  // Header returns a http.Header that can be modified by the caller to add
  2717  // headers to the request.
  2718  func (c *ProjectsLocationsFetchStaticIpsCall) Header() http.Header {
  2719  	if c.header_ == nil {
  2720  		c.header_ = make(http.Header)
  2721  	}
  2722  	return c.header_
  2723  }
  2724  
  2725  func (c *ProjectsLocationsFetchStaticIpsCall) doRequest(alt string) (*http.Response, error) {
  2726  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2727  	if c.ifNoneMatch_ != "" {
  2728  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2729  	}
  2730  	var body io.Reader = nil
  2731  	c.urlParams_.Set("alt", alt)
  2732  	c.urlParams_.Set("prettyPrint", "false")
  2733  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:fetchStaticIps")
  2734  	urls += "?" + c.urlParams_.Encode()
  2735  	req, err := http.NewRequest("GET", urls, body)
  2736  	if err != nil {
  2737  		return nil, err
  2738  	}
  2739  	req.Header = reqHeaders
  2740  	googleapi.Expand(req.URL, map[string]string{
  2741  		"name": c.name,
  2742  	})
  2743  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2744  }
  2745  
  2746  // Do executes the "datastream.projects.locations.fetchStaticIps" call.
  2747  // Any non-2xx status code is an error. Response headers are in either
  2748  // *FetchStaticIpsResponse.ServerResponse.Header or (if a response was returned
  2749  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  2750  // check whether the returned error was because http.StatusNotModified was
  2751  // returned.
  2752  func (c *ProjectsLocationsFetchStaticIpsCall) Do(opts ...googleapi.CallOption) (*FetchStaticIpsResponse, error) {
  2753  	gensupport.SetOptions(c.urlParams_, opts...)
  2754  	res, err := c.doRequest("json")
  2755  	if res != nil && res.StatusCode == http.StatusNotModified {
  2756  		if res.Body != nil {
  2757  			res.Body.Close()
  2758  		}
  2759  		return nil, gensupport.WrapError(&googleapi.Error{
  2760  			Code:   res.StatusCode,
  2761  			Header: res.Header,
  2762  		})
  2763  	}
  2764  	if err != nil {
  2765  		return nil, err
  2766  	}
  2767  	defer googleapi.CloseBody(res)
  2768  	if err := googleapi.CheckResponse(res); err != nil {
  2769  		return nil, gensupport.WrapError(err)
  2770  	}
  2771  	ret := &FetchStaticIpsResponse{
  2772  		ServerResponse: googleapi.ServerResponse{
  2773  			Header:         res.Header,
  2774  			HTTPStatusCode: res.StatusCode,
  2775  		},
  2776  	}
  2777  	target := &ret
  2778  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2779  		return nil, err
  2780  	}
  2781  	return ret, nil
  2782  }
  2783  
  2784  // Pages invokes f for each page of results.
  2785  // A non-nil error returned from f will halt the iteration.
  2786  // The provided context supersedes any context provided to the Context method.
  2787  func (c *ProjectsLocationsFetchStaticIpsCall) Pages(ctx context.Context, f func(*FetchStaticIpsResponse) error) error {
  2788  	c.ctx_ = ctx
  2789  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  2790  	for {
  2791  		x, err := c.Do()
  2792  		if err != nil {
  2793  			return err
  2794  		}
  2795  		if err := f(x); err != nil {
  2796  			return err
  2797  		}
  2798  		if x.NextPageToken == "" {
  2799  			return nil
  2800  		}
  2801  		c.PageToken(x.NextPageToken)
  2802  	}
  2803  }
  2804  
  2805  type ProjectsLocationsGetCall struct {
  2806  	s            *Service
  2807  	name         string
  2808  	urlParams_   gensupport.URLParams
  2809  	ifNoneMatch_ string
  2810  	ctx_         context.Context
  2811  	header_      http.Header
  2812  }
  2813  
  2814  // Get: Gets information about a location.
  2815  //
  2816  // - name: Resource name for the location.
  2817  func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
  2818  	c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2819  	c.name = name
  2820  	return c
  2821  }
  2822  
  2823  // Fields allows partial responses to be retrieved. See
  2824  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2825  // details.
  2826  func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
  2827  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2828  	return c
  2829  }
  2830  
  2831  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2832  // object's ETag matches the given value. This is useful for getting updates
  2833  // only after the object has changed since the last request.
  2834  func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
  2835  	c.ifNoneMatch_ = entityTag
  2836  	return c
  2837  }
  2838  
  2839  // Context sets the context to be used in this call's Do method.
  2840  func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
  2841  	c.ctx_ = ctx
  2842  	return c
  2843  }
  2844  
  2845  // Header returns a http.Header that can be modified by the caller to add
  2846  // headers to the request.
  2847  func (c *ProjectsLocationsGetCall) Header() http.Header {
  2848  	if c.header_ == nil {
  2849  		c.header_ = make(http.Header)
  2850  	}
  2851  	return c.header_
  2852  }
  2853  
  2854  func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
  2855  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2856  	if c.ifNoneMatch_ != "" {
  2857  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2858  	}
  2859  	var body io.Reader = nil
  2860  	c.urlParams_.Set("alt", alt)
  2861  	c.urlParams_.Set("prettyPrint", "false")
  2862  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  2863  	urls += "?" + c.urlParams_.Encode()
  2864  	req, err := http.NewRequest("GET", urls, body)
  2865  	if err != nil {
  2866  		return nil, err
  2867  	}
  2868  	req.Header = reqHeaders
  2869  	googleapi.Expand(req.URL, map[string]string{
  2870  		"name": c.name,
  2871  	})
  2872  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  2873  }
  2874  
  2875  // Do executes the "datastream.projects.locations.get" call.
  2876  // Any non-2xx status code is an error. Response headers are in either
  2877  // *Location.ServerResponse.Header or (if a response was returned at all) in
  2878  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  2879  // whether the returned error was because http.StatusNotModified was returned.
  2880  func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) {
  2881  	gensupport.SetOptions(c.urlParams_, opts...)
  2882  	res, err := c.doRequest("json")
  2883  	if res != nil && res.StatusCode == http.StatusNotModified {
  2884  		if res.Body != nil {
  2885  			res.Body.Close()
  2886  		}
  2887  		return nil, gensupport.WrapError(&googleapi.Error{
  2888  			Code:   res.StatusCode,
  2889  			Header: res.Header,
  2890  		})
  2891  	}
  2892  	if err != nil {
  2893  		return nil, err
  2894  	}
  2895  	defer googleapi.CloseBody(res)
  2896  	if err := googleapi.CheckResponse(res); err != nil {
  2897  		return nil, gensupport.WrapError(err)
  2898  	}
  2899  	ret := &Location{
  2900  		ServerResponse: googleapi.ServerResponse{
  2901  			Header:         res.Header,
  2902  			HTTPStatusCode: res.StatusCode,
  2903  		},
  2904  	}
  2905  	target := &ret
  2906  	if err := gensupport.DecodeResponse(target, res); err != nil {
  2907  		return nil, err
  2908  	}
  2909  	return ret, nil
  2910  }
  2911  
  2912  type ProjectsLocationsListCall struct {
  2913  	s            *Service
  2914  	name         string
  2915  	urlParams_   gensupport.URLParams
  2916  	ifNoneMatch_ string
  2917  	ctx_         context.Context
  2918  	header_      http.Header
  2919  }
  2920  
  2921  // List: Lists information about the supported locations for this service.
  2922  //
  2923  // - name: The resource that owns the locations collection, if applicable.
  2924  func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
  2925  	c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  2926  	c.name = name
  2927  	return c
  2928  }
  2929  
  2930  // Filter sets the optional parameter "filter": A filter to narrow down results
  2931  // to a preferred subset. The filtering language accepts strings like
  2932  // "displayName=tokyo", and is documented in more detail in AIP-160
  2933  // (https://google.aip.dev/160).
  2934  func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
  2935  	c.urlParams_.Set("filter", filter)
  2936  	return c
  2937  }
  2938  
  2939  // PageSize sets the optional parameter "pageSize": The maximum number of
  2940  // results to return. If not set, the service selects a default.
  2941  func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
  2942  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  2943  	return c
  2944  }
  2945  
  2946  // PageToken sets the optional parameter "pageToken": A page token received
  2947  // from the `next_page_token` field in the response. Send that page token to
  2948  // receive the subsequent page.
  2949  func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
  2950  	c.urlParams_.Set("pageToken", pageToken)
  2951  	return c
  2952  }
  2953  
  2954  // Fields allows partial responses to be retrieved. See
  2955  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  2956  // details.
  2957  func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
  2958  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  2959  	return c
  2960  }
  2961  
  2962  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  2963  // object's ETag matches the given value. This is useful for getting updates
  2964  // only after the object has changed since the last request.
  2965  func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
  2966  	c.ifNoneMatch_ = entityTag
  2967  	return c
  2968  }
  2969  
  2970  // Context sets the context to be used in this call's Do method.
  2971  func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
  2972  	c.ctx_ = ctx
  2973  	return c
  2974  }
  2975  
  2976  // Header returns a http.Header that can be modified by the caller to add
  2977  // headers to the request.
  2978  func (c *ProjectsLocationsListCall) Header() http.Header {
  2979  	if c.header_ == nil {
  2980  		c.header_ = make(http.Header)
  2981  	}
  2982  	return c.header_
  2983  }
  2984  
  2985  func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
  2986  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  2987  	if c.ifNoneMatch_ != "" {
  2988  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  2989  	}
  2990  	var body io.Reader = nil
  2991  	c.urlParams_.Set("alt", alt)
  2992  	c.urlParams_.Set("prettyPrint", "false")
  2993  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations")
  2994  	urls += "?" + c.urlParams_.Encode()
  2995  	req, err := http.NewRequest("GET", urls, body)
  2996  	if err != nil {
  2997  		return nil, err
  2998  	}
  2999  	req.Header = reqHeaders
  3000  	googleapi.Expand(req.URL, map[string]string{
  3001  		"name": c.name,
  3002  	})
  3003  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3004  }
  3005  
  3006  // Do executes the "datastream.projects.locations.list" call.
  3007  // Any non-2xx status code is an error. Response headers are in either
  3008  // *ListLocationsResponse.ServerResponse.Header or (if a response was returned
  3009  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3010  // check whether the returned error was because http.StatusNotModified was
  3011  // returned.
  3012  func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) {
  3013  	gensupport.SetOptions(c.urlParams_, opts...)
  3014  	res, err := c.doRequest("json")
  3015  	if res != nil && res.StatusCode == http.StatusNotModified {
  3016  		if res.Body != nil {
  3017  			res.Body.Close()
  3018  		}
  3019  		return nil, gensupport.WrapError(&googleapi.Error{
  3020  			Code:   res.StatusCode,
  3021  			Header: res.Header,
  3022  		})
  3023  	}
  3024  	if err != nil {
  3025  		return nil, err
  3026  	}
  3027  	defer googleapi.CloseBody(res)
  3028  	if err := googleapi.CheckResponse(res); err != nil {
  3029  		return nil, gensupport.WrapError(err)
  3030  	}
  3031  	ret := &ListLocationsResponse{
  3032  		ServerResponse: googleapi.ServerResponse{
  3033  			Header:         res.Header,
  3034  			HTTPStatusCode: res.StatusCode,
  3035  		},
  3036  	}
  3037  	target := &ret
  3038  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3039  		return nil, err
  3040  	}
  3041  	return ret, nil
  3042  }
  3043  
  3044  // Pages invokes f for each page of results.
  3045  // A non-nil error returned from f will halt the iteration.
  3046  // The provided context supersedes any context provided to the Context method.
  3047  func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error {
  3048  	c.ctx_ = ctx
  3049  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3050  	for {
  3051  		x, err := c.Do()
  3052  		if err != nil {
  3053  			return err
  3054  		}
  3055  		if err := f(x); err != nil {
  3056  			return err
  3057  		}
  3058  		if x.NextPageToken == "" {
  3059  			return nil
  3060  		}
  3061  		c.PageToken(x.NextPageToken)
  3062  	}
  3063  }
  3064  
  3065  type ProjectsLocationsConnectionProfilesCreateCall struct {
  3066  	s                 *Service
  3067  	parent            string
  3068  	connectionprofile *ConnectionProfile
  3069  	urlParams_        gensupport.URLParams
  3070  	ctx_              context.Context
  3071  	header_           http.Header
  3072  }
  3073  
  3074  // Create: Use this method to create a connection profile in a project and
  3075  // location.
  3076  //
  3077  // - parent: The parent that owns the collection of ConnectionProfiles.
  3078  func (r *ProjectsLocationsConnectionProfilesService) Create(parent string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesCreateCall {
  3079  	c := &ProjectsLocationsConnectionProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3080  	c.parent = parent
  3081  	c.connectionprofile = connectionprofile
  3082  	return c
  3083  }
  3084  
  3085  // ConnectionProfileId sets the optional parameter "connectionProfileId":
  3086  // Required. The connection profile identifier.
  3087  func (c *ProjectsLocationsConnectionProfilesCreateCall) ConnectionProfileId(connectionProfileId string) *ProjectsLocationsConnectionProfilesCreateCall {
  3088  	c.urlParams_.Set("connectionProfileId", connectionProfileId)
  3089  	return c
  3090  }
  3091  
  3092  // Force sets the optional parameter "force": Create the connection profile
  3093  // without validating it.
  3094  func (c *ProjectsLocationsConnectionProfilesCreateCall) Force(force bool) *ProjectsLocationsConnectionProfilesCreateCall {
  3095  	c.urlParams_.Set("force", fmt.Sprint(force))
  3096  	return c
  3097  }
  3098  
  3099  // RequestId sets the optional parameter "requestId": A request ID to identify
  3100  // requests. Specify a unique request ID so that if you must retry your
  3101  // request, the server will know to ignore the request if it has already been
  3102  // completed. The server will guarantee that for at least 60 minutes since the
  3103  // first request. For example, consider a situation where you make an initial
  3104  // request and the request times out. If you make the request again with the
  3105  // same request ID, the server can check if original operation with the same
  3106  // request ID was received, and if so, will ignore the second request. This
  3107  // prevents clients from accidentally creating duplicate commitments. The
  3108  // request ID must be a valid UUID with the exception that zero UUID is not
  3109  // supported (00000000-0000-0000-0000-000000000000).
  3110  func (c *ProjectsLocationsConnectionProfilesCreateCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesCreateCall {
  3111  	c.urlParams_.Set("requestId", requestId)
  3112  	return c
  3113  }
  3114  
  3115  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  3116  // connection profile, but don't create any resources. The default is false.
  3117  func (c *ProjectsLocationsConnectionProfilesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionProfilesCreateCall {
  3118  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  3119  	return c
  3120  }
  3121  
  3122  // Fields allows partial responses to be retrieved. See
  3123  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3124  // details.
  3125  func (c *ProjectsLocationsConnectionProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesCreateCall {
  3126  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3127  	return c
  3128  }
  3129  
  3130  // Context sets the context to be used in this call's Do method.
  3131  func (c *ProjectsLocationsConnectionProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesCreateCall {
  3132  	c.ctx_ = ctx
  3133  	return c
  3134  }
  3135  
  3136  // Header returns a http.Header that can be modified by the caller to add
  3137  // headers to the request.
  3138  func (c *ProjectsLocationsConnectionProfilesCreateCall) Header() http.Header {
  3139  	if c.header_ == nil {
  3140  		c.header_ = make(http.Header)
  3141  	}
  3142  	return c.header_
  3143  }
  3144  
  3145  func (c *ProjectsLocationsConnectionProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
  3146  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3147  	var body io.Reader = nil
  3148  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile)
  3149  	if err != nil {
  3150  		return nil, err
  3151  	}
  3152  	c.urlParams_.Set("alt", alt)
  3153  	c.urlParams_.Set("prettyPrint", "false")
  3154  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles")
  3155  	urls += "?" + c.urlParams_.Encode()
  3156  	req, err := http.NewRequest("POST", urls, body)
  3157  	if err != nil {
  3158  		return nil, err
  3159  	}
  3160  	req.Header = reqHeaders
  3161  	googleapi.Expand(req.URL, map[string]string{
  3162  		"parent": c.parent,
  3163  	})
  3164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3165  }
  3166  
  3167  // Do executes the "datastream.projects.locations.connectionProfiles.create" call.
  3168  // Any non-2xx status code is an error. Response headers are in either
  3169  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3170  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3171  // whether the returned error was because http.StatusNotModified was returned.
  3172  func (c *ProjectsLocationsConnectionProfilesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3173  	gensupport.SetOptions(c.urlParams_, opts...)
  3174  	res, err := c.doRequest("json")
  3175  	if res != nil && res.StatusCode == http.StatusNotModified {
  3176  		if res.Body != nil {
  3177  			res.Body.Close()
  3178  		}
  3179  		return nil, gensupport.WrapError(&googleapi.Error{
  3180  			Code:   res.StatusCode,
  3181  			Header: res.Header,
  3182  		})
  3183  	}
  3184  	if err != nil {
  3185  		return nil, err
  3186  	}
  3187  	defer googleapi.CloseBody(res)
  3188  	if err := googleapi.CheckResponse(res); err != nil {
  3189  		return nil, gensupport.WrapError(err)
  3190  	}
  3191  	ret := &Operation{
  3192  		ServerResponse: googleapi.ServerResponse{
  3193  			Header:         res.Header,
  3194  			HTTPStatusCode: res.StatusCode,
  3195  		},
  3196  	}
  3197  	target := &ret
  3198  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3199  		return nil, err
  3200  	}
  3201  	return ret, nil
  3202  }
  3203  
  3204  type ProjectsLocationsConnectionProfilesDeleteCall struct {
  3205  	s          *Service
  3206  	name       string
  3207  	urlParams_ gensupport.URLParams
  3208  	ctx_       context.Context
  3209  	header_    http.Header
  3210  }
  3211  
  3212  // Delete: Use this method to delete a connection profile.
  3213  //
  3214  // - name: The name of the connection profile resource to delete.
  3215  func (r *ProjectsLocationsConnectionProfilesService) Delete(name string) *ProjectsLocationsConnectionProfilesDeleteCall {
  3216  	c := &ProjectsLocationsConnectionProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3217  	c.name = name
  3218  	return c
  3219  }
  3220  
  3221  // RequestId sets the optional parameter "requestId": A request ID to identify
  3222  // requests. Specify a unique request ID so that if you must retry your
  3223  // request, the server will know to ignore the request if it has already been
  3224  // completed. The server will guarantee that for at least 60 minutes after the
  3225  // first request. For example, consider a situation where you make an initial
  3226  // request and the request times out. If you make the request again with the
  3227  // same request ID, the server can check if original operation with the same
  3228  // request ID was received, and if so, will ignore the second request. This
  3229  // prevents clients from accidentally creating duplicate commitments. The
  3230  // request ID must be a valid UUID with the exception that zero UUID is not
  3231  // supported (00000000-0000-0000-0000-000000000000).
  3232  func (c *ProjectsLocationsConnectionProfilesDeleteCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesDeleteCall {
  3233  	c.urlParams_.Set("requestId", requestId)
  3234  	return c
  3235  }
  3236  
  3237  // Fields allows partial responses to be retrieved. See
  3238  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3239  // details.
  3240  func (c *ProjectsLocationsConnectionProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesDeleteCall {
  3241  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3242  	return c
  3243  }
  3244  
  3245  // Context sets the context to be used in this call's Do method.
  3246  func (c *ProjectsLocationsConnectionProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesDeleteCall {
  3247  	c.ctx_ = ctx
  3248  	return c
  3249  }
  3250  
  3251  // Header returns a http.Header that can be modified by the caller to add
  3252  // headers to the request.
  3253  func (c *ProjectsLocationsConnectionProfilesDeleteCall) Header() http.Header {
  3254  	if c.header_ == nil {
  3255  		c.header_ = make(http.Header)
  3256  	}
  3257  	return c.header_
  3258  }
  3259  
  3260  func (c *ProjectsLocationsConnectionProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
  3261  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3262  	var body io.Reader = nil
  3263  	c.urlParams_.Set("alt", alt)
  3264  	c.urlParams_.Set("prettyPrint", "false")
  3265  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3266  	urls += "?" + c.urlParams_.Encode()
  3267  	req, err := http.NewRequest("DELETE", urls, body)
  3268  	if err != nil {
  3269  		return nil, err
  3270  	}
  3271  	req.Header = reqHeaders
  3272  	googleapi.Expand(req.URL, map[string]string{
  3273  		"name": c.name,
  3274  	})
  3275  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3276  }
  3277  
  3278  // Do executes the "datastream.projects.locations.connectionProfiles.delete" call.
  3279  // Any non-2xx status code is an error. Response headers are in either
  3280  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3281  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3282  // whether the returned error was because http.StatusNotModified was returned.
  3283  func (c *ProjectsLocationsConnectionProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3284  	gensupport.SetOptions(c.urlParams_, opts...)
  3285  	res, err := c.doRequest("json")
  3286  	if res != nil && res.StatusCode == http.StatusNotModified {
  3287  		if res.Body != nil {
  3288  			res.Body.Close()
  3289  		}
  3290  		return nil, gensupport.WrapError(&googleapi.Error{
  3291  			Code:   res.StatusCode,
  3292  			Header: res.Header,
  3293  		})
  3294  	}
  3295  	if err != nil {
  3296  		return nil, err
  3297  	}
  3298  	defer googleapi.CloseBody(res)
  3299  	if err := googleapi.CheckResponse(res); err != nil {
  3300  		return nil, gensupport.WrapError(err)
  3301  	}
  3302  	ret := &Operation{
  3303  		ServerResponse: googleapi.ServerResponse{
  3304  			Header:         res.Header,
  3305  			HTTPStatusCode: res.StatusCode,
  3306  		},
  3307  	}
  3308  	target := &ret
  3309  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3310  		return nil, err
  3311  	}
  3312  	return ret, nil
  3313  }
  3314  
  3315  type ProjectsLocationsConnectionProfilesDiscoverCall struct {
  3316  	s                                *Service
  3317  	parent                           string
  3318  	discoverconnectionprofilerequest *DiscoverConnectionProfileRequest
  3319  	urlParams_                       gensupport.URLParams
  3320  	ctx_                             context.Context
  3321  	header_                          http.Header
  3322  }
  3323  
  3324  // Discover: Use this method to discover a connection profile. The discover API
  3325  // call exposes the data objects and metadata belonging to the profile.
  3326  // Typically, a request returns children data objects of a parent data object
  3327  // that's optionally supplied in the request.
  3328  //
  3329  //   - parent: The parent resource of the connection profile type. Must be in the
  3330  //     format `projects/*/locations/*`.
  3331  func (r *ProjectsLocationsConnectionProfilesService) Discover(parent string, discoverconnectionprofilerequest *DiscoverConnectionProfileRequest) *ProjectsLocationsConnectionProfilesDiscoverCall {
  3332  	c := &ProjectsLocationsConnectionProfilesDiscoverCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3333  	c.parent = parent
  3334  	c.discoverconnectionprofilerequest = discoverconnectionprofilerequest
  3335  	return c
  3336  }
  3337  
  3338  // Fields allows partial responses to be retrieved. See
  3339  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3340  // details.
  3341  func (c *ProjectsLocationsConnectionProfilesDiscoverCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesDiscoverCall {
  3342  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3343  	return c
  3344  }
  3345  
  3346  // Context sets the context to be used in this call's Do method.
  3347  func (c *ProjectsLocationsConnectionProfilesDiscoverCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesDiscoverCall {
  3348  	c.ctx_ = ctx
  3349  	return c
  3350  }
  3351  
  3352  // Header returns a http.Header that can be modified by the caller to add
  3353  // headers to the request.
  3354  func (c *ProjectsLocationsConnectionProfilesDiscoverCall) Header() http.Header {
  3355  	if c.header_ == nil {
  3356  		c.header_ = make(http.Header)
  3357  	}
  3358  	return c.header_
  3359  }
  3360  
  3361  func (c *ProjectsLocationsConnectionProfilesDiscoverCall) doRequest(alt string) (*http.Response, error) {
  3362  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3363  	var body io.Reader = nil
  3364  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.discoverconnectionprofilerequest)
  3365  	if err != nil {
  3366  		return nil, err
  3367  	}
  3368  	c.urlParams_.Set("alt", alt)
  3369  	c.urlParams_.Set("prettyPrint", "false")
  3370  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles:discover")
  3371  	urls += "?" + c.urlParams_.Encode()
  3372  	req, err := http.NewRequest("POST", urls, body)
  3373  	if err != nil {
  3374  		return nil, err
  3375  	}
  3376  	req.Header = reqHeaders
  3377  	googleapi.Expand(req.URL, map[string]string{
  3378  		"parent": c.parent,
  3379  	})
  3380  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3381  }
  3382  
  3383  // Do executes the "datastream.projects.locations.connectionProfiles.discover" call.
  3384  // Any non-2xx status code is an error. Response headers are in either
  3385  // *DiscoverConnectionProfileResponse.ServerResponse.Header or (if a response
  3386  // was returned at all) in error.(*googleapi.Error).Header. Use
  3387  // googleapi.IsNotModified to check whether the returned error was because
  3388  // http.StatusNotModified was returned.
  3389  func (c *ProjectsLocationsConnectionProfilesDiscoverCall) Do(opts ...googleapi.CallOption) (*DiscoverConnectionProfileResponse, error) {
  3390  	gensupport.SetOptions(c.urlParams_, opts...)
  3391  	res, err := c.doRequest("json")
  3392  	if res != nil && res.StatusCode == http.StatusNotModified {
  3393  		if res.Body != nil {
  3394  			res.Body.Close()
  3395  		}
  3396  		return nil, gensupport.WrapError(&googleapi.Error{
  3397  			Code:   res.StatusCode,
  3398  			Header: res.Header,
  3399  		})
  3400  	}
  3401  	if err != nil {
  3402  		return nil, err
  3403  	}
  3404  	defer googleapi.CloseBody(res)
  3405  	if err := googleapi.CheckResponse(res); err != nil {
  3406  		return nil, gensupport.WrapError(err)
  3407  	}
  3408  	ret := &DiscoverConnectionProfileResponse{
  3409  		ServerResponse: googleapi.ServerResponse{
  3410  			Header:         res.Header,
  3411  			HTTPStatusCode: res.StatusCode,
  3412  		},
  3413  	}
  3414  	target := &ret
  3415  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3416  		return nil, err
  3417  	}
  3418  	return ret, nil
  3419  }
  3420  
  3421  type ProjectsLocationsConnectionProfilesGetCall struct {
  3422  	s            *Service
  3423  	name         string
  3424  	urlParams_   gensupport.URLParams
  3425  	ifNoneMatch_ string
  3426  	ctx_         context.Context
  3427  	header_      http.Header
  3428  }
  3429  
  3430  // Get: Use this method to get details about a connection profile.
  3431  //
  3432  // - name: The name of the connection profile resource to get.
  3433  func (r *ProjectsLocationsConnectionProfilesService) Get(name string) *ProjectsLocationsConnectionProfilesGetCall {
  3434  	c := &ProjectsLocationsConnectionProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3435  	c.name = name
  3436  	return c
  3437  }
  3438  
  3439  // Fields allows partial responses to be retrieved. See
  3440  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3441  // details.
  3442  func (c *ProjectsLocationsConnectionProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesGetCall {
  3443  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3444  	return c
  3445  }
  3446  
  3447  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3448  // object's ETag matches the given value. This is useful for getting updates
  3449  // only after the object has changed since the last request.
  3450  func (c *ProjectsLocationsConnectionProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesGetCall {
  3451  	c.ifNoneMatch_ = entityTag
  3452  	return c
  3453  }
  3454  
  3455  // Context sets the context to be used in this call's Do method.
  3456  func (c *ProjectsLocationsConnectionProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesGetCall {
  3457  	c.ctx_ = ctx
  3458  	return c
  3459  }
  3460  
  3461  // Header returns a http.Header that can be modified by the caller to add
  3462  // headers to the request.
  3463  func (c *ProjectsLocationsConnectionProfilesGetCall) Header() http.Header {
  3464  	if c.header_ == nil {
  3465  		c.header_ = make(http.Header)
  3466  	}
  3467  	return c.header_
  3468  }
  3469  
  3470  func (c *ProjectsLocationsConnectionProfilesGetCall) doRequest(alt string) (*http.Response, error) {
  3471  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3472  	if c.ifNoneMatch_ != "" {
  3473  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3474  	}
  3475  	var body io.Reader = nil
  3476  	c.urlParams_.Set("alt", alt)
  3477  	c.urlParams_.Set("prettyPrint", "false")
  3478  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3479  	urls += "?" + c.urlParams_.Encode()
  3480  	req, err := http.NewRequest("GET", urls, body)
  3481  	if err != nil {
  3482  		return nil, err
  3483  	}
  3484  	req.Header = reqHeaders
  3485  	googleapi.Expand(req.URL, map[string]string{
  3486  		"name": c.name,
  3487  	})
  3488  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3489  }
  3490  
  3491  // Do executes the "datastream.projects.locations.connectionProfiles.get" call.
  3492  // Any non-2xx status code is an error. Response headers are in either
  3493  // *ConnectionProfile.ServerResponse.Header or (if a response was returned at
  3494  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  3495  // check whether the returned error was because http.StatusNotModified was
  3496  // returned.
  3497  func (c *ProjectsLocationsConnectionProfilesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionProfile, error) {
  3498  	gensupport.SetOptions(c.urlParams_, opts...)
  3499  	res, err := c.doRequest("json")
  3500  	if res != nil && res.StatusCode == http.StatusNotModified {
  3501  		if res.Body != nil {
  3502  			res.Body.Close()
  3503  		}
  3504  		return nil, gensupport.WrapError(&googleapi.Error{
  3505  			Code:   res.StatusCode,
  3506  			Header: res.Header,
  3507  		})
  3508  	}
  3509  	if err != nil {
  3510  		return nil, err
  3511  	}
  3512  	defer googleapi.CloseBody(res)
  3513  	if err := googleapi.CheckResponse(res); err != nil {
  3514  		return nil, gensupport.WrapError(err)
  3515  	}
  3516  	ret := &ConnectionProfile{
  3517  		ServerResponse: googleapi.ServerResponse{
  3518  			Header:         res.Header,
  3519  			HTTPStatusCode: res.StatusCode,
  3520  		},
  3521  	}
  3522  	target := &ret
  3523  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3524  		return nil, err
  3525  	}
  3526  	return ret, nil
  3527  }
  3528  
  3529  type ProjectsLocationsConnectionProfilesListCall struct {
  3530  	s            *Service
  3531  	parent       string
  3532  	urlParams_   gensupport.URLParams
  3533  	ifNoneMatch_ string
  3534  	ctx_         context.Context
  3535  	header_      http.Header
  3536  }
  3537  
  3538  // List: Use this method to list connection profiles created in a project and
  3539  // location.
  3540  //
  3541  // - parent: The parent that owns the collection of connection profiles.
  3542  func (r *ProjectsLocationsConnectionProfilesService) List(parent string) *ProjectsLocationsConnectionProfilesListCall {
  3543  	c := &ProjectsLocationsConnectionProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3544  	c.parent = parent
  3545  	return c
  3546  }
  3547  
  3548  // Filter sets the optional parameter "filter": Filter request.
  3549  func (c *ProjectsLocationsConnectionProfilesListCall) Filter(filter string) *ProjectsLocationsConnectionProfilesListCall {
  3550  	c.urlParams_.Set("filter", filter)
  3551  	return c
  3552  }
  3553  
  3554  // OrderBy sets the optional parameter "orderBy": Order by fields for the
  3555  // result.
  3556  func (c *ProjectsLocationsConnectionProfilesListCall) OrderBy(orderBy string) *ProjectsLocationsConnectionProfilesListCall {
  3557  	c.urlParams_.Set("orderBy", orderBy)
  3558  	return c
  3559  }
  3560  
  3561  // PageSize sets the optional parameter "pageSize": Maximum number of
  3562  // connection profiles to return. If unspecified, at most 50 connection
  3563  // profiles will be returned. The maximum value is 1000; values above 1000 will
  3564  // be coerced to 1000.
  3565  func (c *ProjectsLocationsConnectionProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConnectionProfilesListCall {
  3566  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  3567  	return c
  3568  }
  3569  
  3570  // PageToken sets the optional parameter "pageToken": Page token received from
  3571  // a previous `ListConnectionProfiles` call. Provide this to retrieve the
  3572  // subsequent page. When paginating, all other parameters provided to
  3573  // `ListConnectionProfiles` must match the call that provided the page token.
  3574  func (c *ProjectsLocationsConnectionProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConnectionProfilesListCall {
  3575  	c.urlParams_.Set("pageToken", pageToken)
  3576  	return c
  3577  }
  3578  
  3579  // Fields allows partial responses to be retrieved. See
  3580  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3581  // details.
  3582  func (c *ProjectsLocationsConnectionProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesListCall {
  3583  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3584  	return c
  3585  }
  3586  
  3587  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  3588  // object's ETag matches the given value. This is useful for getting updates
  3589  // only after the object has changed since the last request.
  3590  func (c *ProjectsLocationsConnectionProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConnectionProfilesListCall {
  3591  	c.ifNoneMatch_ = entityTag
  3592  	return c
  3593  }
  3594  
  3595  // Context sets the context to be used in this call's Do method.
  3596  func (c *ProjectsLocationsConnectionProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesListCall {
  3597  	c.ctx_ = ctx
  3598  	return c
  3599  }
  3600  
  3601  // Header returns a http.Header that can be modified by the caller to add
  3602  // headers to the request.
  3603  func (c *ProjectsLocationsConnectionProfilesListCall) Header() http.Header {
  3604  	if c.header_ == nil {
  3605  		c.header_ = make(http.Header)
  3606  	}
  3607  	return c.header_
  3608  }
  3609  
  3610  func (c *ProjectsLocationsConnectionProfilesListCall) doRequest(alt string) (*http.Response, error) {
  3611  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3612  	if c.ifNoneMatch_ != "" {
  3613  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  3614  	}
  3615  	var body io.Reader = nil
  3616  	c.urlParams_.Set("alt", alt)
  3617  	c.urlParams_.Set("prettyPrint", "false")
  3618  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/connectionProfiles")
  3619  	urls += "?" + c.urlParams_.Encode()
  3620  	req, err := http.NewRequest("GET", urls, body)
  3621  	if err != nil {
  3622  		return nil, err
  3623  	}
  3624  	req.Header = reqHeaders
  3625  	googleapi.Expand(req.URL, map[string]string{
  3626  		"parent": c.parent,
  3627  	})
  3628  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3629  }
  3630  
  3631  // Do executes the "datastream.projects.locations.connectionProfiles.list" call.
  3632  // Any non-2xx status code is an error. Response headers are in either
  3633  // *ListConnectionProfilesResponse.ServerResponse.Header or (if a response was
  3634  // returned at all) in error.(*googleapi.Error).Header. Use
  3635  // googleapi.IsNotModified to check whether the returned error was because
  3636  // http.StatusNotModified was returned.
  3637  func (c *ProjectsLocationsConnectionProfilesListCall) Do(opts ...googleapi.CallOption) (*ListConnectionProfilesResponse, error) {
  3638  	gensupport.SetOptions(c.urlParams_, opts...)
  3639  	res, err := c.doRequest("json")
  3640  	if res != nil && res.StatusCode == http.StatusNotModified {
  3641  		if res.Body != nil {
  3642  			res.Body.Close()
  3643  		}
  3644  		return nil, gensupport.WrapError(&googleapi.Error{
  3645  			Code:   res.StatusCode,
  3646  			Header: res.Header,
  3647  		})
  3648  	}
  3649  	if err != nil {
  3650  		return nil, err
  3651  	}
  3652  	defer googleapi.CloseBody(res)
  3653  	if err := googleapi.CheckResponse(res); err != nil {
  3654  		return nil, gensupport.WrapError(err)
  3655  	}
  3656  	ret := &ListConnectionProfilesResponse{
  3657  		ServerResponse: googleapi.ServerResponse{
  3658  			Header:         res.Header,
  3659  			HTTPStatusCode: res.StatusCode,
  3660  		},
  3661  	}
  3662  	target := &ret
  3663  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3664  		return nil, err
  3665  	}
  3666  	return ret, nil
  3667  }
  3668  
  3669  // Pages invokes f for each page of results.
  3670  // A non-nil error returned from f will halt the iteration.
  3671  // The provided context supersedes any context provided to the Context method.
  3672  func (c *ProjectsLocationsConnectionProfilesListCall) Pages(ctx context.Context, f func(*ListConnectionProfilesResponse) error) error {
  3673  	c.ctx_ = ctx
  3674  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  3675  	for {
  3676  		x, err := c.Do()
  3677  		if err != nil {
  3678  			return err
  3679  		}
  3680  		if err := f(x); err != nil {
  3681  			return err
  3682  		}
  3683  		if x.NextPageToken == "" {
  3684  			return nil
  3685  		}
  3686  		c.PageToken(x.NextPageToken)
  3687  	}
  3688  }
  3689  
  3690  type ProjectsLocationsConnectionProfilesPatchCall struct {
  3691  	s                 *Service
  3692  	name              string
  3693  	connectionprofile *ConnectionProfile
  3694  	urlParams_        gensupport.URLParams
  3695  	ctx_              context.Context
  3696  	header_           http.Header
  3697  }
  3698  
  3699  // Patch: Use this method to update the parameters of a connection profile.
  3700  //
  3701  // - name: Output only. The resource's name.
  3702  func (r *ProjectsLocationsConnectionProfilesService) Patch(name string, connectionprofile *ConnectionProfile) *ProjectsLocationsConnectionProfilesPatchCall {
  3703  	c := &ProjectsLocationsConnectionProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3704  	c.name = name
  3705  	c.connectionprofile = connectionprofile
  3706  	return c
  3707  }
  3708  
  3709  // Force sets the optional parameter "force": Update the connection profile
  3710  // without validating it.
  3711  func (c *ProjectsLocationsConnectionProfilesPatchCall) Force(force bool) *ProjectsLocationsConnectionProfilesPatchCall {
  3712  	c.urlParams_.Set("force", fmt.Sprint(force))
  3713  	return c
  3714  }
  3715  
  3716  // RequestId sets the optional parameter "requestId": A request ID to identify
  3717  // requests. Specify a unique request ID so that if you must retry your
  3718  // request, the server will know to ignore the request if it has already been
  3719  // completed. The server will guarantee that for at least 60 minutes since the
  3720  // first request. For example, consider a situation where you make an initial
  3721  // request and the request times out. If you make the request again with the
  3722  // same request ID, the server can check if original operation with the same
  3723  // request ID was received, and if so, will ignore the second request. This
  3724  // prevents clients from accidentally creating duplicate commitments. The
  3725  // request ID must be a valid UUID with the exception that zero UUID is not
  3726  // supported (00000000-0000-0000-0000-000000000000).
  3727  func (c *ProjectsLocationsConnectionProfilesPatchCall) RequestId(requestId string) *ProjectsLocationsConnectionProfilesPatchCall {
  3728  	c.urlParams_.Set("requestId", requestId)
  3729  	return c
  3730  }
  3731  
  3732  // UpdateMask sets the optional parameter "updateMask": Field mask is used to
  3733  // specify the fields to be overwritten in the ConnectionProfile resource by
  3734  // the update. The fields specified in the update_mask are relative to the
  3735  // resource, not the full request. A field will be overwritten if it is in the
  3736  // mask. If the user does not provide a mask then all fields will be
  3737  // overwritten.
  3738  func (c *ProjectsLocationsConnectionProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConnectionProfilesPatchCall {
  3739  	c.urlParams_.Set("updateMask", updateMask)
  3740  	return c
  3741  }
  3742  
  3743  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  3744  // connection profile, but don't update any resources. The default is false.
  3745  func (c *ProjectsLocationsConnectionProfilesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsConnectionProfilesPatchCall {
  3746  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  3747  	return c
  3748  }
  3749  
  3750  // Fields allows partial responses to be retrieved. See
  3751  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3752  // details.
  3753  func (c *ProjectsLocationsConnectionProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConnectionProfilesPatchCall {
  3754  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3755  	return c
  3756  }
  3757  
  3758  // Context sets the context to be used in this call's Do method.
  3759  func (c *ProjectsLocationsConnectionProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConnectionProfilesPatchCall {
  3760  	c.ctx_ = ctx
  3761  	return c
  3762  }
  3763  
  3764  // Header returns a http.Header that can be modified by the caller to add
  3765  // headers to the request.
  3766  func (c *ProjectsLocationsConnectionProfilesPatchCall) Header() http.Header {
  3767  	if c.header_ == nil {
  3768  		c.header_ = make(http.Header)
  3769  	}
  3770  	return c.header_
  3771  }
  3772  
  3773  func (c *ProjectsLocationsConnectionProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
  3774  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3775  	var body io.Reader = nil
  3776  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.connectionprofile)
  3777  	if err != nil {
  3778  		return nil, err
  3779  	}
  3780  	c.urlParams_.Set("alt", alt)
  3781  	c.urlParams_.Set("prettyPrint", "false")
  3782  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3783  	urls += "?" + c.urlParams_.Encode()
  3784  	req, err := http.NewRequest("PATCH", urls, body)
  3785  	if err != nil {
  3786  		return nil, err
  3787  	}
  3788  	req.Header = reqHeaders
  3789  	googleapi.Expand(req.URL, map[string]string{
  3790  		"name": c.name,
  3791  	})
  3792  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3793  }
  3794  
  3795  // Do executes the "datastream.projects.locations.connectionProfiles.patch" call.
  3796  // Any non-2xx status code is an error. Response headers are in either
  3797  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  3798  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3799  // whether the returned error was because http.StatusNotModified was returned.
  3800  func (c *ProjectsLocationsConnectionProfilesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  3801  	gensupport.SetOptions(c.urlParams_, opts...)
  3802  	res, err := c.doRequest("json")
  3803  	if res != nil && res.StatusCode == http.StatusNotModified {
  3804  		if res.Body != nil {
  3805  			res.Body.Close()
  3806  		}
  3807  		return nil, gensupport.WrapError(&googleapi.Error{
  3808  			Code:   res.StatusCode,
  3809  			Header: res.Header,
  3810  		})
  3811  	}
  3812  	if err != nil {
  3813  		return nil, err
  3814  	}
  3815  	defer googleapi.CloseBody(res)
  3816  	if err := googleapi.CheckResponse(res); err != nil {
  3817  		return nil, gensupport.WrapError(err)
  3818  	}
  3819  	ret := &Operation{
  3820  		ServerResponse: googleapi.ServerResponse{
  3821  			Header:         res.Header,
  3822  			HTTPStatusCode: res.StatusCode,
  3823  		},
  3824  	}
  3825  	target := &ret
  3826  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3827  		return nil, err
  3828  	}
  3829  	return ret, nil
  3830  }
  3831  
  3832  type ProjectsLocationsOperationsCancelCall struct {
  3833  	s                      *Service
  3834  	name                   string
  3835  	canceloperationrequest *CancelOperationRequest
  3836  	urlParams_             gensupport.URLParams
  3837  	ctx_                   context.Context
  3838  	header_                http.Header
  3839  }
  3840  
  3841  // Cancel: Starts asynchronous cancellation on a long-running operation. The
  3842  // server makes a best effort to cancel the operation, but success is not
  3843  // guaranteed. If the server doesn't support this method, it returns
  3844  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
  3845  // other methods to check whether the cancellation succeeded or whether the
  3846  // operation completed despite cancellation. On successful cancellation, the
  3847  // operation is not deleted; instead, it becomes an operation with an
  3848  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
  3849  // `Code.CANCELLED`.
  3850  //
  3851  // - name: The name of the operation resource to be cancelled.
  3852  func (r *ProjectsLocationsOperationsService) Cancel(name string, canceloperationrequest *CancelOperationRequest) *ProjectsLocationsOperationsCancelCall {
  3853  	c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3854  	c.name = name
  3855  	c.canceloperationrequest = canceloperationrequest
  3856  	return c
  3857  }
  3858  
  3859  // Fields allows partial responses to be retrieved. See
  3860  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3861  // details.
  3862  func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
  3863  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3864  	return c
  3865  }
  3866  
  3867  // Context sets the context to be used in this call's Do method.
  3868  func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
  3869  	c.ctx_ = ctx
  3870  	return c
  3871  }
  3872  
  3873  // Header returns a http.Header that can be modified by the caller to add
  3874  // headers to the request.
  3875  func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
  3876  	if c.header_ == nil {
  3877  		c.header_ = make(http.Header)
  3878  	}
  3879  	return c.header_
  3880  }
  3881  
  3882  func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
  3883  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  3884  	var body io.Reader = nil
  3885  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.canceloperationrequest)
  3886  	if err != nil {
  3887  		return nil, err
  3888  	}
  3889  	c.urlParams_.Set("alt", alt)
  3890  	c.urlParams_.Set("prettyPrint", "false")
  3891  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
  3892  	urls += "?" + c.urlParams_.Encode()
  3893  	req, err := http.NewRequest("POST", urls, body)
  3894  	if err != nil {
  3895  		return nil, err
  3896  	}
  3897  	req.Header = reqHeaders
  3898  	googleapi.Expand(req.URL, map[string]string{
  3899  		"name": c.name,
  3900  	})
  3901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  3902  }
  3903  
  3904  // Do executes the "datastream.projects.locations.operations.cancel" call.
  3905  // Any non-2xx status code is an error. Response headers are in either
  3906  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  3907  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  3908  // whether the returned error was because http.StatusNotModified was returned.
  3909  func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  3910  	gensupport.SetOptions(c.urlParams_, opts...)
  3911  	res, err := c.doRequest("json")
  3912  	if res != nil && res.StatusCode == http.StatusNotModified {
  3913  		if res.Body != nil {
  3914  			res.Body.Close()
  3915  		}
  3916  		return nil, gensupport.WrapError(&googleapi.Error{
  3917  			Code:   res.StatusCode,
  3918  			Header: res.Header,
  3919  		})
  3920  	}
  3921  	if err != nil {
  3922  		return nil, err
  3923  	}
  3924  	defer googleapi.CloseBody(res)
  3925  	if err := googleapi.CheckResponse(res); err != nil {
  3926  		return nil, gensupport.WrapError(err)
  3927  	}
  3928  	ret := &Empty{
  3929  		ServerResponse: googleapi.ServerResponse{
  3930  			Header:         res.Header,
  3931  			HTTPStatusCode: res.StatusCode,
  3932  		},
  3933  	}
  3934  	target := &ret
  3935  	if err := gensupport.DecodeResponse(target, res); err != nil {
  3936  		return nil, err
  3937  	}
  3938  	return ret, nil
  3939  }
  3940  
  3941  type ProjectsLocationsOperationsDeleteCall struct {
  3942  	s          *Service
  3943  	name       string
  3944  	urlParams_ gensupport.URLParams
  3945  	ctx_       context.Context
  3946  	header_    http.Header
  3947  }
  3948  
  3949  // Delete: Deletes a long-running operation. This method indicates that the
  3950  // client is no longer interested in the operation result. It does not cancel
  3951  // the operation. If the server doesn't support this method, it returns
  3952  // `google.rpc.Code.UNIMPLEMENTED`.
  3953  //
  3954  // - name: The name of the operation resource to be deleted.
  3955  func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
  3956  	c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  3957  	c.name = name
  3958  	return c
  3959  }
  3960  
  3961  // Fields allows partial responses to be retrieved. See
  3962  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  3963  // details.
  3964  func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall {
  3965  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  3966  	return c
  3967  }
  3968  
  3969  // Context sets the context to be used in this call's Do method.
  3970  func (c *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall {
  3971  	c.ctx_ = ctx
  3972  	return c
  3973  }
  3974  
  3975  // Header returns a http.Header that can be modified by the caller to add
  3976  // headers to the request.
  3977  func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
  3978  	if c.header_ == nil {
  3979  		c.header_ = make(http.Header)
  3980  	}
  3981  	return c.header_
  3982  }
  3983  
  3984  func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
  3985  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  3986  	var body io.Reader = nil
  3987  	c.urlParams_.Set("alt", alt)
  3988  	c.urlParams_.Set("prettyPrint", "false")
  3989  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  3990  	urls += "?" + c.urlParams_.Encode()
  3991  	req, err := http.NewRequest("DELETE", urls, body)
  3992  	if err != nil {
  3993  		return nil, err
  3994  	}
  3995  	req.Header = reqHeaders
  3996  	googleapi.Expand(req.URL, map[string]string{
  3997  		"name": c.name,
  3998  	})
  3999  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4000  }
  4001  
  4002  // Do executes the "datastream.projects.locations.operations.delete" call.
  4003  // Any non-2xx status code is an error. Response headers are in either
  4004  // *Empty.ServerResponse.Header or (if a response was returned at all) in
  4005  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4006  // whether the returned error was because http.StatusNotModified was returned.
  4007  func (c *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
  4008  	gensupport.SetOptions(c.urlParams_, opts...)
  4009  	res, err := c.doRequest("json")
  4010  	if res != nil && res.StatusCode == http.StatusNotModified {
  4011  		if res.Body != nil {
  4012  			res.Body.Close()
  4013  		}
  4014  		return nil, gensupport.WrapError(&googleapi.Error{
  4015  			Code:   res.StatusCode,
  4016  			Header: res.Header,
  4017  		})
  4018  	}
  4019  	if err != nil {
  4020  		return nil, err
  4021  	}
  4022  	defer googleapi.CloseBody(res)
  4023  	if err := googleapi.CheckResponse(res); err != nil {
  4024  		return nil, gensupport.WrapError(err)
  4025  	}
  4026  	ret := &Empty{
  4027  		ServerResponse: googleapi.ServerResponse{
  4028  			Header:         res.Header,
  4029  			HTTPStatusCode: res.StatusCode,
  4030  		},
  4031  	}
  4032  	target := &ret
  4033  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4034  		return nil, err
  4035  	}
  4036  	return ret, nil
  4037  }
  4038  
  4039  type ProjectsLocationsOperationsGetCall struct {
  4040  	s            *Service
  4041  	name         string
  4042  	urlParams_   gensupport.URLParams
  4043  	ifNoneMatch_ string
  4044  	ctx_         context.Context
  4045  	header_      http.Header
  4046  }
  4047  
  4048  // Get: Gets the latest state of a long-running operation. Clients can use this
  4049  // method to poll the operation result at intervals as recommended by the API
  4050  // service.
  4051  //
  4052  // - name: The name of the operation resource.
  4053  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
  4054  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4055  	c.name = name
  4056  	return c
  4057  }
  4058  
  4059  // Fields allows partial responses to be retrieved. See
  4060  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4061  // details.
  4062  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
  4063  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4064  	return c
  4065  }
  4066  
  4067  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4068  // object's ETag matches the given value. This is useful for getting updates
  4069  // only after the object has changed since the last request.
  4070  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
  4071  	c.ifNoneMatch_ = entityTag
  4072  	return c
  4073  }
  4074  
  4075  // Context sets the context to be used in this call's Do method.
  4076  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
  4077  	c.ctx_ = ctx
  4078  	return c
  4079  }
  4080  
  4081  // Header returns a http.Header that can be modified by the caller to add
  4082  // headers to the request.
  4083  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
  4084  	if c.header_ == nil {
  4085  		c.header_ = make(http.Header)
  4086  	}
  4087  	return c.header_
  4088  }
  4089  
  4090  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
  4091  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4092  	if c.ifNoneMatch_ != "" {
  4093  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4094  	}
  4095  	var body io.Reader = nil
  4096  	c.urlParams_.Set("alt", alt)
  4097  	c.urlParams_.Set("prettyPrint", "false")
  4098  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4099  	urls += "?" + c.urlParams_.Encode()
  4100  	req, err := http.NewRequest("GET", urls, body)
  4101  	if err != nil {
  4102  		return nil, err
  4103  	}
  4104  	req.Header = reqHeaders
  4105  	googleapi.Expand(req.URL, map[string]string{
  4106  		"name": c.name,
  4107  	})
  4108  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4109  }
  4110  
  4111  // Do executes the "datastream.projects.locations.operations.get" call.
  4112  // Any non-2xx status code is an error. Response headers are in either
  4113  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4114  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4115  // whether the returned error was because http.StatusNotModified was returned.
  4116  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4117  	gensupport.SetOptions(c.urlParams_, opts...)
  4118  	res, err := c.doRequest("json")
  4119  	if res != nil && res.StatusCode == http.StatusNotModified {
  4120  		if res.Body != nil {
  4121  			res.Body.Close()
  4122  		}
  4123  		return nil, gensupport.WrapError(&googleapi.Error{
  4124  			Code:   res.StatusCode,
  4125  			Header: res.Header,
  4126  		})
  4127  	}
  4128  	if err != nil {
  4129  		return nil, err
  4130  	}
  4131  	defer googleapi.CloseBody(res)
  4132  	if err := googleapi.CheckResponse(res); err != nil {
  4133  		return nil, gensupport.WrapError(err)
  4134  	}
  4135  	ret := &Operation{
  4136  		ServerResponse: googleapi.ServerResponse{
  4137  			Header:         res.Header,
  4138  			HTTPStatusCode: res.StatusCode,
  4139  		},
  4140  	}
  4141  	target := &ret
  4142  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4143  		return nil, err
  4144  	}
  4145  	return ret, nil
  4146  }
  4147  
  4148  type ProjectsLocationsOperationsListCall struct {
  4149  	s            *Service
  4150  	name         string
  4151  	urlParams_   gensupport.URLParams
  4152  	ifNoneMatch_ string
  4153  	ctx_         context.Context
  4154  	header_      http.Header
  4155  }
  4156  
  4157  // List: Lists operations that match the specified filter in the request. If
  4158  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
  4159  //
  4160  // - name: The name of the operation's parent resource.
  4161  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
  4162  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4163  	c.name = name
  4164  	return c
  4165  }
  4166  
  4167  // Filter sets the optional parameter "filter": The standard list filter.
  4168  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
  4169  	c.urlParams_.Set("filter", filter)
  4170  	return c
  4171  }
  4172  
  4173  // PageSize sets the optional parameter "pageSize": The standard list page
  4174  // size.
  4175  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
  4176  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4177  	return c
  4178  }
  4179  
  4180  // PageToken sets the optional parameter "pageToken": The standard list page
  4181  // token.
  4182  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
  4183  	c.urlParams_.Set("pageToken", pageToken)
  4184  	return c
  4185  }
  4186  
  4187  // Fields allows partial responses to be retrieved. See
  4188  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4189  // details.
  4190  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
  4191  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4192  	return c
  4193  }
  4194  
  4195  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4196  // object's ETag matches the given value. This is useful for getting updates
  4197  // only after the object has changed since the last request.
  4198  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
  4199  	c.ifNoneMatch_ = entityTag
  4200  	return c
  4201  }
  4202  
  4203  // Context sets the context to be used in this call's Do method.
  4204  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
  4205  	c.ctx_ = ctx
  4206  	return c
  4207  }
  4208  
  4209  // Header returns a http.Header that can be modified by the caller to add
  4210  // headers to the request.
  4211  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
  4212  	if c.header_ == nil {
  4213  		c.header_ = make(http.Header)
  4214  	}
  4215  	return c.header_
  4216  }
  4217  
  4218  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
  4219  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4220  	if c.ifNoneMatch_ != "" {
  4221  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4222  	}
  4223  	var body io.Reader = nil
  4224  	c.urlParams_.Set("alt", alt)
  4225  	c.urlParams_.Set("prettyPrint", "false")
  4226  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
  4227  	urls += "?" + c.urlParams_.Encode()
  4228  	req, err := http.NewRequest("GET", urls, body)
  4229  	if err != nil {
  4230  		return nil, err
  4231  	}
  4232  	req.Header = reqHeaders
  4233  	googleapi.Expand(req.URL, map[string]string{
  4234  		"name": c.name,
  4235  	})
  4236  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4237  }
  4238  
  4239  // Do executes the "datastream.projects.locations.operations.list" call.
  4240  // Any non-2xx status code is an error. Response headers are in either
  4241  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
  4242  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4243  // check whether the returned error was because http.StatusNotModified was
  4244  // returned.
  4245  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
  4246  	gensupport.SetOptions(c.urlParams_, opts...)
  4247  	res, err := c.doRequest("json")
  4248  	if res != nil && res.StatusCode == http.StatusNotModified {
  4249  		if res.Body != nil {
  4250  			res.Body.Close()
  4251  		}
  4252  		return nil, gensupport.WrapError(&googleapi.Error{
  4253  			Code:   res.StatusCode,
  4254  			Header: res.Header,
  4255  		})
  4256  	}
  4257  	if err != nil {
  4258  		return nil, err
  4259  	}
  4260  	defer googleapi.CloseBody(res)
  4261  	if err := googleapi.CheckResponse(res); err != nil {
  4262  		return nil, gensupport.WrapError(err)
  4263  	}
  4264  	ret := &ListOperationsResponse{
  4265  		ServerResponse: googleapi.ServerResponse{
  4266  			Header:         res.Header,
  4267  			HTTPStatusCode: res.StatusCode,
  4268  		},
  4269  	}
  4270  	target := &ret
  4271  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4272  		return nil, err
  4273  	}
  4274  	return ret, nil
  4275  }
  4276  
  4277  // Pages invokes f for each page of results.
  4278  // A non-nil error returned from f will halt the iteration.
  4279  // The provided context supersedes any context provided to the Context method.
  4280  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
  4281  	c.ctx_ = ctx
  4282  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4283  	for {
  4284  		x, err := c.Do()
  4285  		if err != nil {
  4286  			return err
  4287  		}
  4288  		if err := f(x); err != nil {
  4289  			return err
  4290  		}
  4291  		if x.NextPageToken == "" {
  4292  			return nil
  4293  		}
  4294  		c.PageToken(x.NextPageToken)
  4295  	}
  4296  }
  4297  
  4298  type ProjectsLocationsPrivateConnectionsCreateCall struct {
  4299  	s                 *Service
  4300  	parent            string
  4301  	privateconnection *PrivateConnection
  4302  	urlParams_        gensupport.URLParams
  4303  	ctx_              context.Context
  4304  	header_           http.Header
  4305  }
  4306  
  4307  // Create: Use this method to create a private connectivity configuration.
  4308  //
  4309  // - parent: The parent that owns the collection of PrivateConnections.
  4310  func (r *ProjectsLocationsPrivateConnectionsService) Create(parent string, privateconnection *PrivateConnection) *ProjectsLocationsPrivateConnectionsCreateCall {
  4311  	c := &ProjectsLocationsPrivateConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4312  	c.parent = parent
  4313  	c.privateconnection = privateconnection
  4314  	return c
  4315  }
  4316  
  4317  // Force sets the optional parameter "force": If set to true, will skip
  4318  // validations.
  4319  func (c *ProjectsLocationsPrivateConnectionsCreateCall) Force(force bool) *ProjectsLocationsPrivateConnectionsCreateCall {
  4320  	c.urlParams_.Set("force", fmt.Sprint(force))
  4321  	return c
  4322  }
  4323  
  4324  // PrivateConnectionId sets the optional parameter "privateConnectionId":
  4325  // Required. The private connectivity identifier.
  4326  func (c *ProjectsLocationsPrivateConnectionsCreateCall) PrivateConnectionId(privateConnectionId string) *ProjectsLocationsPrivateConnectionsCreateCall {
  4327  	c.urlParams_.Set("privateConnectionId", privateConnectionId)
  4328  	return c
  4329  }
  4330  
  4331  // RequestId sets the optional parameter "requestId": A request ID to identify
  4332  // requests. Specify a unique request ID so that if you must retry your
  4333  // request, the server will know to ignore the request if it has already been
  4334  // completed. The server will guarantee that for at least 60 minutes since the
  4335  // first request. For example, consider a situation where you make an initial
  4336  // request and the request times out. If you make the request again with the
  4337  // same request ID, the server can check if original operation with the same
  4338  // request ID was received, and if so, will ignore the second request. This
  4339  // prevents clients from accidentally creating duplicate commitments. The
  4340  // request ID must be a valid UUID with the exception that zero UUID is not
  4341  // supported (00000000-0000-0000-0000-000000000000).
  4342  func (c *ProjectsLocationsPrivateConnectionsCreateCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsCreateCall {
  4343  	c.urlParams_.Set("requestId", requestId)
  4344  	return c
  4345  }
  4346  
  4347  // Fields allows partial responses to be retrieved. See
  4348  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4349  // details.
  4350  func (c *ProjectsLocationsPrivateConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsCreateCall {
  4351  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4352  	return c
  4353  }
  4354  
  4355  // Context sets the context to be used in this call's Do method.
  4356  func (c *ProjectsLocationsPrivateConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsCreateCall {
  4357  	c.ctx_ = ctx
  4358  	return c
  4359  }
  4360  
  4361  // Header returns a http.Header that can be modified by the caller to add
  4362  // headers to the request.
  4363  func (c *ProjectsLocationsPrivateConnectionsCreateCall) Header() http.Header {
  4364  	if c.header_ == nil {
  4365  		c.header_ = make(http.Header)
  4366  	}
  4367  	return c.header_
  4368  }
  4369  
  4370  func (c *ProjectsLocationsPrivateConnectionsCreateCall) doRequest(alt string) (*http.Response, error) {
  4371  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4372  	var body io.Reader = nil
  4373  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.privateconnection)
  4374  	if err != nil {
  4375  		return nil, err
  4376  	}
  4377  	c.urlParams_.Set("alt", alt)
  4378  	c.urlParams_.Set("prettyPrint", "false")
  4379  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/privateConnections")
  4380  	urls += "?" + c.urlParams_.Encode()
  4381  	req, err := http.NewRequest("POST", urls, body)
  4382  	if err != nil {
  4383  		return nil, err
  4384  	}
  4385  	req.Header = reqHeaders
  4386  	googleapi.Expand(req.URL, map[string]string{
  4387  		"parent": c.parent,
  4388  	})
  4389  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4390  }
  4391  
  4392  // Do executes the "datastream.projects.locations.privateConnections.create" call.
  4393  // Any non-2xx status code is an error. Response headers are in either
  4394  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4395  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4396  // whether the returned error was because http.StatusNotModified was returned.
  4397  func (c *ProjectsLocationsPrivateConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4398  	gensupport.SetOptions(c.urlParams_, opts...)
  4399  	res, err := c.doRequest("json")
  4400  	if res != nil && res.StatusCode == http.StatusNotModified {
  4401  		if res.Body != nil {
  4402  			res.Body.Close()
  4403  		}
  4404  		return nil, gensupport.WrapError(&googleapi.Error{
  4405  			Code:   res.StatusCode,
  4406  			Header: res.Header,
  4407  		})
  4408  	}
  4409  	if err != nil {
  4410  		return nil, err
  4411  	}
  4412  	defer googleapi.CloseBody(res)
  4413  	if err := googleapi.CheckResponse(res); err != nil {
  4414  		return nil, gensupport.WrapError(err)
  4415  	}
  4416  	ret := &Operation{
  4417  		ServerResponse: googleapi.ServerResponse{
  4418  			Header:         res.Header,
  4419  			HTTPStatusCode: res.StatusCode,
  4420  		},
  4421  	}
  4422  	target := &ret
  4423  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4424  		return nil, err
  4425  	}
  4426  	return ret, nil
  4427  }
  4428  
  4429  type ProjectsLocationsPrivateConnectionsDeleteCall struct {
  4430  	s          *Service
  4431  	name       string
  4432  	urlParams_ gensupport.URLParams
  4433  	ctx_       context.Context
  4434  	header_    http.Header
  4435  }
  4436  
  4437  // Delete: Use this method to delete a private connectivity configuration.
  4438  //
  4439  // - name: The name of the private connectivity configuration to delete.
  4440  func (r *ProjectsLocationsPrivateConnectionsService) Delete(name string) *ProjectsLocationsPrivateConnectionsDeleteCall {
  4441  	c := &ProjectsLocationsPrivateConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4442  	c.name = name
  4443  	return c
  4444  }
  4445  
  4446  // Force sets the optional parameter "force": If set to true, any child routes
  4447  // that belong to this PrivateConnection will also be deleted.
  4448  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Force(force bool) *ProjectsLocationsPrivateConnectionsDeleteCall {
  4449  	c.urlParams_.Set("force", fmt.Sprint(force))
  4450  	return c
  4451  }
  4452  
  4453  // RequestId sets the optional parameter "requestId": A request ID to identify
  4454  // requests. Specify a unique request ID so that if you must retry your
  4455  // request, the server will know to ignore the request if it has already been
  4456  // completed. The server will guarantee that for at least 60 minutes after the
  4457  // first request. For example, consider a situation where you make an initial
  4458  // request and the request times out. If you make the request again with the
  4459  // same request ID, the server can check if original operation with the same
  4460  // request ID was received, and if so, will ignore the second request. This
  4461  // prevents clients from accidentally creating duplicate commitments. The
  4462  // request ID must be a valid UUID with the exception that zero UUID is not
  4463  // supported (00000000-0000-0000-0000-000000000000).
  4464  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsDeleteCall {
  4465  	c.urlParams_.Set("requestId", requestId)
  4466  	return c
  4467  }
  4468  
  4469  // Fields allows partial responses to be retrieved. See
  4470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4471  // details.
  4472  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsDeleteCall {
  4473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4474  	return c
  4475  }
  4476  
  4477  // Context sets the context to be used in this call's Do method.
  4478  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsDeleteCall {
  4479  	c.ctx_ = ctx
  4480  	return c
  4481  }
  4482  
  4483  // Header returns a http.Header that can be modified by the caller to add
  4484  // headers to the request.
  4485  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Header() http.Header {
  4486  	if c.header_ == nil {
  4487  		c.header_ = make(http.Header)
  4488  	}
  4489  	return c.header_
  4490  }
  4491  
  4492  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
  4493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4494  	var body io.Reader = nil
  4495  	c.urlParams_.Set("alt", alt)
  4496  	c.urlParams_.Set("prettyPrint", "false")
  4497  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4498  	urls += "?" + c.urlParams_.Encode()
  4499  	req, err := http.NewRequest("DELETE", urls, body)
  4500  	if err != nil {
  4501  		return nil, err
  4502  	}
  4503  	req.Header = reqHeaders
  4504  	googleapi.Expand(req.URL, map[string]string{
  4505  		"name": c.name,
  4506  	})
  4507  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4508  }
  4509  
  4510  // Do executes the "datastream.projects.locations.privateConnections.delete" call.
  4511  // Any non-2xx status code is an error. Response headers are in either
  4512  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4513  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4514  // whether the returned error was because http.StatusNotModified was returned.
  4515  func (c *ProjectsLocationsPrivateConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4516  	gensupport.SetOptions(c.urlParams_, opts...)
  4517  	res, err := c.doRequest("json")
  4518  	if res != nil && res.StatusCode == http.StatusNotModified {
  4519  		if res.Body != nil {
  4520  			res.Body.Close()
  4521  		}
  4522  		return nil, gensupport.WrapError(&googleapi.Error{
  4523  			Code:   res.StatusCode,
  4524  			Header: res.Header,
  4525  		})
  4526  	}
  4527  	if err != nil {
  4528  		return nil, err
  4529  	}
  4530  	defer googleapi.CloseBody(res)
  4531  	if err := googleapi.CheckResponse(res); err != nil {
  4532  		return nil, gensupport.WrapError(err)
  4533  	}
  4534  	ret := &Operation{
  4535  		ServerResponse: googleapi.ServerResponse{
  4536  			Header:         res.Header,
  4537  			HTTPStatusCode: res.StatusCode,
  4538  		},
  4539  	}
  4540  	target := &ret
  4541  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4542  		return nil, err
  4543  	}
  4544  	return ret, nil
  4545  }
  4546  
  4547  type ProjectsLocationsPrivateConnectionsGetCall struct {
  4548  	s            *Service
  4549  	name         string
  4550  	urlParams_   gensupport.URLParams
  4551  	ifNoneMatch_ string
  4552  	ctx_         context.Context
  4553  	header_      http.Header
  4554  }
  4555  
  4556  // Get: Use this method to get details about a private connectivity
  4557  // configuration.
  4558  //
  4559  // - name: The name of the private connectivity configuration to get.
  4560  func (r *ProjectsLocationsPrivateConnectionsService) Get(name string) *ProjectsLocationsPrivateConnectionsGetCall {
  4561  	c := &ProjectsLocationsPrivateConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4562  	c.name = name
  4563  	return c
  4564  }
  4565  
  4566  // Fields allows partial responses to be retrieved. See
  4567  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4568  // details.
  4569  func (c *ProjectsLocationsPrivateConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsGetCall {
  4570  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4571  	return c
  4572  }
  4573  
  4574  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4575  // object's ETag matches the given value. This is useful for getting updates
  4576  // only after the object has changed since the last request.
  4577  func (c *ProjectsLocationsPrivateConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsGetCall {
  4578  	c.ifNoneMatch_ = entityTag
  4579  	return c
  4580  }
  4581  
  4582  // Context sets the context to be used in this call's Do method.
  4583  func (c *ProjectsLocationsPrivateConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsGetCall {
  4584  	c.ctx_ = ctx
  4585  	return c
  4586  }
  4587  
  4588  // Header returns a http.Header that can be modified by the caller to add
  4589  // headers to the request.
  4590  func (c *ProjectsLocationsPrivateConnectionsGetCall) Header() http.Header {
  4591  	if c.header_ == nil {
  4592  		c.header_ = make(http.Header)
  4593  	}
  4594  	return c.header_
  4595  }
  4596  
  4597  func (c *ProjectsLocationsPrivateConnectionsGetCall) doRequest(alt string) (*http.Response, error) {
  4598  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4599  	if c.ifNoneMatch_ != "" {
  4600  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4601  	}
  4602  	var body io.Reader = nil
  4603  	c.urlParams_.Set("alt", alt)
  4604  	c.urlParams_.Set("prettyPrint", "false")
  4605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  4606  	urls += "?" + c.urlParams_.Encode()
  4607  	req, err := http.NewRequest("GET", urls, body)
  4608  	if err != nil {
  4609  		return nil, err
  4610  	}
  4611  	req.Header = reqHeaders
  4612  	googleapi.Expand(req.URL, map[string]string{
  4613  		"name": c.name,
  4614  	})
  4615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4616  }
  4617  
  4618  // Do executes the "datastream.projects.locations.privateConnections.get" call.
  4619  // Any non-2xx status code is an error. Response headers are in either
  4620  // *PrivateConnection.ServerResponse.Header or (if a response was returned at
  4621  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  4622  // check whether the returned error was because http.StatusNotModified was
  4623  // returned.
  4624  func (c *ProjectsLocationsPrivateConnectionsGetCall) Do(opts ...googleapi.CallOption) (*PrivateConnection, error) {
  4625  	gensupport.SetOptions(c.urlParams_, opts...)
  4626  	res, err := c.doRequest("json")
  4627  	if res != nil && res.StatusCode == http.StatusNotModified {
  4628  		if res.Body != nil {
  4629  			res.Body.Close()
  4630  		}
  4631  		return nil, gensupport.WrapError(&googleapi.Error{
  4632  			Code:   res.StatusCode,
  4633  			Header: res.Header,
  4634  		})
  4635  	}
  4636  	if err != nil {
  4637  		return nil, err
  4638  	}
  4639  	defer googleapi.CloseBody(res)
  4640  	if err := googleapi.CheckResponse(res); err != nil {
  4641  		return nil, gensupport.WrapError(err)
  4642  	}
  4643  	ret := &PrivateConnection{
  4644  		ServerResponse: googleapi.ServerResponse{
  4645  			Header:         res.Header,
  4646  			HTTPStatusCode: res.StatusCode,
  4647  		},
  4648  	}
  4649  	target := &ret
  4650  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4651  		return nil, err
  4652  	}
  4653  	return ret, nil
  4654  }
  4655  
  4656  type ProjectsLocationsPrivateConnectionsListCall struct {
  4657  	s            *Service
  4658  	parent       string
  4659  	urlParams_   gensupport.URLParams
  4660  	ifNoneMatch_ string
  4661  	ctx_         context.Context
  4662  	header_      http.Header
  4663  }
  4664  
  4665  // List: Use this method to list private connectivity configurations in a
  4666  // project and location.
  4667  //
  4668  //   - parent: The parent that owns the collection of private connectivity
  4669  //     configurations.
  4670  func (r *ProjectsLocationsPrivateConnectionsService) List(parent string) *ProjectsLocationsPrivateConnectionsListCall {
  4671  	c := &ProjectsLocationsPrivateConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4672  	c.parent = parent
  4673  	return c
  4674  }
  4675  
  4676  // Filter sets the optional parameter "filter": Filter request.
  4677  func (c *ProjectsLocationsPrivateConnectionsListCall) Filter(filter string) *ProjectsLocationsPrivateConnectionsListCall {
  4678  	c.urlParams_.Set("filter", filter)
  4679  	return c
  4680  }
  4681  
  4682  // OrderBy sets the optional parameter "orderBy": Order by fields for the
  4683  // result.
  4684  func (c *ProjectsLocationsPrivateConnectionsListCall) OrderBy(orderBy string) *ProjectsLocationsPrivateConnectionsListCall {
  4685  	c.urlParams_.Set("orderBy", orderBy)
  4686  	return c
  4687  }
  4688  
  4689  // PageSize sets the optional parameter "pageSize": Maximum number of private
  4690  // connectivity configurations to return. If unspecified, at most 50 private
  4691  // connectivity configurations that will be returned. The maximum value is
  4692  // 1000; values above 1000 will be coerced to 1000.
  4693  func (c *ProjectsLocationsPrivateConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsPrivateConnectionsListCall {
  4694  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  4695  	return c
  4696  }
  4697  
  4698  // PageToken sets the optional parameter "pageToken": Page token received from
  4699  // a previous `ListPrivateConnections` call. Provide this to retrieve the
  4700  // subsequent page. When paginating, all other parameters provided to
  4701  // `ListPrivateConnections` must match the call that provided the page token.
  4702  func (c *ProjectsLocationsPrivateConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsPrivateConnectionsListCall {
  4703  	c.urlParams_.Set("pageToken", pageToken)
  4704  	return c
  4705  }
  4706  
  4707  // Fields allows partial responses to be retrieved. See
  4708  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4709  // details.
  4710  func (c *ProjectsLocationsPrivateConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsListCall {
  4711  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4712  	return c
  4713  }
  4714  
  4715  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  4716  // object's ETag matches the given value. This is useful for getting updates
  4717  // only after the object has changed since the last request.
  4718  func (c *ProjectsLocationsPrivateConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsListCall {
  4719  	c.ifNoneMatch_ = entityTag
  4720  	return c
  4721  }
  4722  
  4723  // Context sets the context to be used in this call's Do method.
  4724  func (c *ProjectsLocationsPrivateConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsListCall {
  4725  	c.ctx_ = ctx
  4726  	return c
  4727  }
  4728  
  4729  // Header returns a http.Header that can be modified by the caller to add
  4730  // headers to the request.
  4731  func (c *ProjectsLocationsPrivateConnectionsListCall) Header() http.Header {
  4732  	if c.header_ == nil {
  4733  		c.header_ = make(http.Header)
  4734  	}
  4735  	return c.header_
  4736  }
  4737  
  4738  func (c *ProjectsLocationsPrivateConnectionsListCall) doRequest(alt string) (*http.Response, error) {
  4739  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  4740  	if c.ifNoneMatch_ != "" {
  4741  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  4742  	}
  4743  	var body io.Reader = nil
  4744  	c.urlParams_.Set("alt", alt)
  4745  	c.urlParams_.Set("prettyPrint", "false")
  4746  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/privateConnections")
  4747  	urls += "?" + c.urlParams_.Encode()
  4748  	req, err := http.NewRequest("GET", urls, body)
  4749  	if err != nil {
  4750  		return nil, err
  4751  	}
  4752  	req.Header = reqHeaders
  4753  	googleapi.Expand(req.URL, map[string]string{
  4754  		"parent": c.parent,
  4755  	})
  4756  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4757  }
  4758  
  4759  // Do executes the "datastream.projects.locations.privateConnections.list" call.
  4760  // Any non-2xx status code is an error. Response headers are in either
  4761  // *ListPrivateConnectionsResponse.ServerResponse.Header or (if a response was
  4762  // returned at all) in error.(*googleapi.Error).Header. Use
  4763  // googleapi.IsNotModified to check whether the returned error was because
  4764  // http.StatusNotModified was returned.
  4765  func (c *ProjectsLocationsPrivateConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListPrivateConnectionsResponse, error) {
  4766  	gensupport.SetOptions(c.urlParams_, opts...)
  4767  	res, err := c.doRequest("json")
  4768  	if res != nil && res.StatusCode == http.StatusNotModified {
  4769  		if res.Body != nil {
  4770  			res.Body.Close()
  4771  		}
  4772  		return nil, gensupport.WrapError(&googleapi.Error{
  4773  			Code:   res.StatusCode,
  4774  			Header: res.Header,
  4775  		})
  4776  	}
  4777  	if err != nil {
  4778  		return nil, err
  4779  	}
  4780  	defer googleapi.CloseBody(res)
  4781  	if err := googleapi.CheckResponse(res); err != nil {
  4782  		return nil, gensupport.WrapError(err)
  4783  	}
  4784  	ret := &ListPrivateConnectionsResponse{
  4785  		ServerResponse: googleapi.ServerResponse{
  4786  			Header:         res.Header,
  4787  			HTTPStatusCode: res.StatusCode,
  4788  		},
  4789  	}
  4790  	target := &ret
  4791  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4792  		return nil, err
  4793  	}
  4794  	return ret, nil
  4795  }
  4796  
  4797  // Pages invokes f for each page of results.
  4798  // A non-nil error returned from f will halt the iteration.
  4799  // The provided context supersedes any context provided to the Context method.
  4800  func (c *ProjectsLocationsPrivateConnectionsListCall) Pages(ctx context.Context, f func(*ListPrivateConnectionsResponse) error) error {
  4801  	c.ctx_ = ctx
  4802  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  4803  	for {
  4804  		x, err := c.Do()
  4805  		if err != nil {
  4806  			return err
  4807  		}
  4808  		if err := f(x); err != nil {
  4809  			return err
  4810  		}
  4811  		if x.NextPageToken == "" {
  4812  			return nil
  4813  		}
  4814  		c.PageToken(x.NextPageToken)
  4815  	}
  4816  }
  4817  
  4818  type ProjectsLocationsPrivateConnectionsRoutesCreateCall struct {
  4819  	s          *Service
  4820  	parent     string
  4821  	route      *Route
  4822  	urlParams_ gensupport.URLParams
  4823  	ctx_       context.Context
  4824  	header_    http.Header
  4825  }
  4826  
  4827  // Create: Use this method to create a route for a private connectivity
  4828  // configuration in a project and location.
  4829  //
  4830  // - parent: The parent that owns the collection of Routes.
  4831  func (r *ProjectsLocationsPrivateConnectionsRoutesService) Create(parent string, route *Route) *ProjectsLocationsPrivateConnectionsRoutesCreateCall {
  4832  	c := &ProjectsLocationsPrivateConnectionsRoutesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4833  	c.parent = parent
  4834  	c.route = route
  4835  	return c
  4836  }
  4837  
  4838  // RequestId sets the optional parameter "requestId": A request ID to identify
  4839  // requests. Specify a unique request ID so that if you must retry your
  4840  // request, the server will know to ignore the request if it has already been
  4841  // completed. The server will guarantee that for at least 60 minutes since the
  4842  // first request. For example, consider a situation where you make an initial
  4843  // request and the request times out. If you make the request again with the
  4844  // same request ID, the server can check if original operation with the same
  4845  // request ID was received, and if so, will ignore the second request. This
  4846  // prevents clients from accidentally creating duplicate commitments. The
  4847  // request ID must be a valid UUID with the exception that zero UUID is not
  4848  // supported (00000000-0000-0000-0000-000000000000).
  4849  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsRoutesCreateCall {
  4850  	c.urlParams_.Set("requestId", requestId)
  4851  	return c
  4852  }
  4853  
  4854  // RouteId sets the optional parameter "routeId": Required. The Route
  4855  // identifier.
  4856  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) RouteId(routeId string) *ProjectsLocationsPrivateConnectionsRoutesCreateCall {
  4857  	c.urlParams_.Set("routeId", routeId)
  4858  	return c
  4859  }
  4860  
  4861  // Fields allows partial responses to be retrieved. See
  4862  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4863  // details.
  4864  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsRoutesCreateCall {
  4865  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4866  	return c
  4867  }
  4868  
  4869  // Context sets the context to be used in this call's Do method.
  4870  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsRoutesCreateCall {
  4871  	c.ctx_ = ctx
  4872  	return c
  4873  }
  4874  
  4875  // Header returns a http.Header that can be modified by the caller to add
  4876  // headers to the request.
  4877  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) Header() http.Header {
  4878  	if c.header_ == nil {
  4879  		c.header_ = make(http.Header)
  4880  	}
  4881  	return c.header_
  4882  }
  4883  
  4884  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) doRequest(alt string) (*http.Response, error) {
  4885  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  4886  	var body io.Reader = nil
  4887  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.route)
  4888  	if err != nil {
  4889  		return nil, err
  4890  	}
  4891  	c.urlParams_.Set("alt", alt)
  4892  	c.urlParams_.Set("prettyPrint", "false")
  4893  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes")
  4894  	urls += "?" + c.urlParams_.Encode()
  4895  	req, err := http.NewRequest("POST", urls, body)
  4896  	if err != nil {
  4897  		return nil, err
  4898  	}
  4899  	req.Header = reqHeaders
  4900  	googleapi.Expand(req.URL, map[string]string{
  4901  		"parent": c.parent,
  4902  	})
  4903  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  4904  }
  4905  
  4906  // Do executes the "datastream.projects.locations.privateConnections.routes.create" call.
  4907  // Any non-2xx status code is an error. Response headers are in either
  4908  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  4909  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  4910  // whether the returned error was because http.StatusNotModified was returned.
  4911  func (c *ProjectsLocationsPrivateConnectionsRoutesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  4912  	gensupport.SetOptions(c.urlParams_, opts...)
  4913  	res, err := c.doRequest("json")
  4914  	if res != nil && res.StatusCode == http.StatusNotModified {
  4915  		if res.Body != nil {
  4916  			res.Body.Close()
  4917  		}
  4918  		return nil, gensupport.WrapError(&googleapi.Error{
  4919  			Code:   res.StatusCode,
  4920  			Header: res.Header,
  4921  		})
  4922  	}
  4923  	if err != nil {
  4924  		return nil, err
  4925  	}
  4926  	defer googleapi.CloseBody(res)
  4927  	if err := googleapi.CheckResponse(res); err != nil {
  4928  		return nil, gensupport.WrapError(err)
  4929  	}
  4930  	ret := &Operation{
  4931  		ServerResponse: googleapi.ServerResponse{
  4932  			Header:         res.Header,
  4933  			HTTPStatusCode: res.StatusCode,
  4934  		},
  4935  	}
  4936  	target := &ret
  4937  	if err := gensupport.DecodeResponse(target, res); err != nil {
  4938  		return nil, err
  4939  	}
  4940  	return ret, nil
  4941  }
  4942  
  4943  type ProjectsLocationsPrivateConnectionsRoutesDeleteCall struct {
  4944  	s          *Service
  4945  	name       string
  4946  	urlParams_ gensupport.URLParams
  4947  	ctx_       context.Context
  4948  	header_    http.Header
  4949  }
  4950  
  4951  // Delete: Use this method to delete a route.
  4952  //
  4953  // - name: The name of the Route resource to delete.
  4954  func (r *ProjectsLocationsPrivateConnectionsRoutesService) Delete(name string) *ProjectsLocationsPrivateConnectionsRoutesDeleteCall {
  4955  	c := &ProjectsLocationsPrivateConnectionsRoutesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  4956  	c.name = name
  4957  	return c
  4958  }
  4959  
  4960  // RequestId sets the optional parameter "requestId": A request ID to identify
  4961  // requests. Specify a unique request ID so that if you must retry your
  4962  // request, the server will know to ignore the request if it has already been
  4963  // completed. The server will guarantee that for at least 60 minutes after the
  4964  // first request. For example, consider a situation where you make an initial
  4965  // request and the request times out. If you make the request again with the
  4966  // same request ID, the server can check if original operation with the same
  4967  // request ID was received, and if so, will ignore the second request. This
  4968  // prevents clients from accidentally creating duplicate commitments. The
  4969  // request ID must be a valid UUID with the exception that zero UUID is not
  4970  // supported (00000000-0000-0000-0000-000000000000).
  4971  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) RequestId(requestId string) *ProjectsLocationsPrivateConnectionsRoutesDeleteCall {
  4972  	c.urlParams_.Set("requestId", requestId)
  4973  	return c
  4974  }
  4975  
  4976  // Fields allows partial responses to be retrieved. See
  4977  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  4978  // details.
  4979  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsRoutesDeleteCall {
  4980  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  4981  	return c
  4982  }
  4983  
  4984  // Context sets the context to be used in this call's Do method.
  4985  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsRoutesDeleteCall {
  4986  	c.ctx_ = ctx
  4987  	return c
  4988  }
  4989  
  4990  // Header returns a http.Header that can be modified by the caller to add
  4991  // headers to the request.
  4992  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) Header() http.Header {
  4993  	if c.header_ == nil {
  4994  		c.header_ = make(http.Header)
  4995  	}
  4996  	return c.header_
  4997  }
  4998  
  4999  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) doRequest(alt string) (*http.Response, error) {
  5000  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5001  	var body io.Reader = nil
  5002  	c.urlParams_.Set("alt", alt)
  5003  	c.urlParams_.Set("prettyPrint", "false")
  5004  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5005  	urls += "?" + c.urlParams_.Encode()
  5006  	req, err := http.NewRequest("DELETE", urls, body)
  5007  	if err != nil {
  5008  		return nil, err
  5009  	}
  5010  	req.Header = reqHeaders
  5011  	googleapi.Expand(req.URL, map[string]string{
  5012  		"name": c.name,
  5013  	})
  5014  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5015  }
  5016  
  5017  // Do executes the "datastream.projects.locations.privateConnections.routes.delete" call.
  5018  // Any non-2xx status code is an error. Response headers are in either
  5019  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5020  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5021  // whether the returned error was because http.StatusNotModified was returned.
  5022  func (c *ProjectsLocationsPrivateConnectionsRoutesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5023  	gensupport.SetOptions(c.urlParams_, opts...)
  5024  	res, err := c.doRequest("json")
  5025  	if res != nil && res.StatusCode == http.StatusNotModified {
  5026  		if res.Body != nil {
  5027  			res.Body.Close()
  5028  		}
  5029  		return nil, gensupport.WrapError(&googleapi.Error{
  5030  			Code:   res.StatusCode,
  5031  			Header: res.Header,
  5032  		})
  5033  	}
  5034  	if err != nil {
  5035  		return nil, err
  5036  	}
  5037  	defer googleapi.CloseBody(res)
  5038  	if err := googleapi.CheckResponse(res); err != nil {
  5039  		return nil, gensupport.WrapError(err)
  5040  	}
  5041  	ret := &Operation{
  5042  		ServerResponse: googleapi.ServerResponse{
  5043  			Header:         res.Header,
  5044  			HTTPStatusCode: res.StatusCode,
  5045  		},
  5046  	}
  5047  	target := &ret
  5048  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5049  		return nil, err
  5050  	}
  5051  	return ret, nil
  5052  }
  5053  
  5054  type ProjectsLocationsPrivateConnectionsRoutesGetCall struct {
  5055  	s            *Service
  5056  	name         string
  5057  	urlParams_   gensupport.URLParams
  5058  	ifNoneMatch_ string
  5059  	ctx_         context.Context
  5060  	header_      http.Header
  5061  }
  5062  
  5063  // Get: Use this method to get details about a route.
  5064  //
  5065  // - name: The name of the Route resource to get.
  5066  func (r *ProjectsLocationsPrivateConnectionsRoutesService) Get(name string) *ProjectsLocationsPrivateConnectionsRoutesGetCall {
  5067  	c := &ProjectsLocationsPrivateConnectionsRoutesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5068  	c.name = name
  5069  	return c
  5070  }
  5071  
  5072  // Fields allows partial responses to be retrieved. See
  5073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5074  // details.
  5075  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsRoutesGetCall {
  5076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5077  	return c
  5078  }
  5079  
  5080  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5081  // object's ETag matches the given value. This is useful for getting updates
  5082  // only after the object has changed since the last request.
  5083  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsRoutesGetCall {
  5084  	c.ifNoneMatch_ = entityTag
  5085  	return c
  5086  }
  5087  
  5088  // Context sets the context to be used in this call's Do method.
  5089  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsRoutesGetCall {
  5090  	c.ctx_ = ctx
  5091  	return c
  5092  }
  5093  
  5094  // Header returns a http.Header that can be modified by the caller to add
  5095  // headers to the request.
  5096  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) Header() http.Header {
  5097  	if c.header_ == nil {
  5098  		c.header_ = make(http.Header)
  5099  	}
  5100  	return c.header_
  5101  }
  5102  
  5103  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) doRequest(alt string) (*http.Response, error) {
  5104  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5105  	if c.ifNoneMatch_ != "" {
  5106  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5107  	}
  5108  	var body io.Reader = nil
  5109  	c.urlParams_.Set("alt", alt)
  5110  	c.urlParams_.Set("prettyPrint", "false")
  5111  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5112  	urls += "?" + c.urlParams_.Encode()
  5113  	req, err := http.NewRequest("GET", urls, body)
  5114  	if err != nil {
  5115  		return nil, err
  5116  	}
  5117  	req.Header = reqHeaders
  5118  	googleapi.Expand(req.URL, map[string]string{
  5119  		"name": c.name,
  5120  	})
  5121  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5122  }
  5123  
  5124  // Do executes the "datastream.projects.locations.privateConnections.routes.get" call.
  5125  // Any non-2xx status code is an error. Response headers are in either
  5126  // *Route.ServerResponse.Header or (if a response was returned at all) in
  5127  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5128  // whether the returned error was because http.StatusNotModified was returned.
  5129  func (c *ProjectsLocationsPrivateConnectionsRoutesGetCall) Do(opts ...googleapi.CallOption) (*Route, error) {
  5130  	gensupport.SetOptions(c.urlParams_, opts...)
  5131  	res, err := c.doRequest("json")
  5132  	if res != nil && res.StatusCode == http.StatusNotModified {
  5133  		if res.Body != nil {
  5134  			res.Body.Close()
  5135  		}
  5136  		return nil, gensupport.WrapError(&googleapi.Error{
  5137  			Code:   res.StatusCode,
  5138  			Header: res.Header,
  5139  		})
  5140  	}
  5141  	if err != nil {
  5142  		return nil, err
  5143  	}
  5144  	defer googleapi.CloseBody(res)
  5145  	if err := googleapi.CheckResponse(res); err != nil {
  5146  		return nil, gensupport.WrapError(err)
  5147  	}
  5148  	ret := &Route{
  5149  		ServerResponse: googleapi.ServerResponse{
  5150  			Header:         res.Header,
  5151  			HTTPStatusCode: res.StatusCode,
  5152  		},
  5153  	}
  5154  	target := &ret
  5155  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5156  		return nil, err
  5157  	}
  5158  	return ret, nil
  5159  }
  5160  
  5161  type ProjectsLocationsPrivateConnectionsRoutesListCall struct {
  5162  	s            *Service
  5163  	parent       string
  5164  	urlParams_   gensupport.URLParams
  5165  	ifNoneMatch_ string
  5166  	ctx_         context.Context
  5167  	header_      http.Header
  5168  }
  5169  
  5170  // List: Use this method to list routes created for a private connectivity
  5171  // configuration in a project and location.
  5172  //
  5173  // - parent: The parent that owns the collection of Routess.
  5174  func (r *ProjectsLocationsPrivateConnectionsRoutesService) List(parent string) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5175  	c := &ProjectsLocationsPrivateConnectionsRoutesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5176  	c.parent = parent
  5177  	return c
  5178  }
  5179  
  5180  // Filter sets the optional parameter "filter": Filter request.
  5181  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Filter(filter string) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5182  	c.urlParams_.Set("filter", filter)
  5183  	return c
  5184  }
  5185  
  5186  // OrderBy sets the optional parameter "orderBy": Order by fields for the
  5187  // result.
  5188  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) OrderBy(orderBy string) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5189  	c.urlParams_.Set("orderBy", orderBy)
  5190  	return c
  5191  }
  5192  
  5193  // PageSize sets the optional parameter "pageSize": Maximum number of Routes to
  5194  // return. The service may return fewer than this value. If unspecified, at
  5195  // most 50 Routes will be returned. The maximum value is 1000; values above
  5196  // 1000 will be coerced to 1000.
  5197  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) PageSize(pageSize int64) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5198  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5199  	return c
  5200  }
  5201  
  5202  // PageToken sets the optional parameter "pageToken": Page token received from
  5203  // a previous `ListRoutes` call. Provide this to retrieve the subsequent page.
  5204  // When paginating, all other parameters provided to `ListRoutes` must match
  5205  // the call that provided the page token.
  5206  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) PageToken(pageToken string) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5207  	c.urlParams_.Set("pageToken", pageToken)
  5208  	return c
  5209  }
  5210  
  5211  // Fields allows partial responses to be retrieved. See
  5212  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5213  // details.
  5214  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5215  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5216  	return c
  5217  }
  5218  
  5219  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5220  // object's ETag matches the given value. This is useful for getting updates
  5221  // only after the object has changed since the last request.
  5222  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5223  	c.ifNoneMatch_ = entityTag
  5224  	return c
  5225  }
  5226  
  5227  // Context sets the context to be used in this call's Do method.
  5228  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Context(ctx context.Context) *ProjectsLocationsPrivateConnectionsRoutesListCall {
  5229  	c.ctx_ = ctx
  5230  	return c
  5231  }
  5232  
  5233  // Header returns a http.Header that can be modified by the caller to add
  5234  // headers to the request.
  5235  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Header() http.Header {
  5236  	if c.header_ == nil {
  5237  		c.header_ = make(http.Header)
  5238  	}
  5239  	return c.header_
  5240  }
  5241  
  5242  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) doRequest(alt string) (*http.Response, error) {
  5243  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5244  	if c.ifNoneMatch_ != "" {
  5245  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5246  	}
  5247  	var body io.Reader = nil
  5248  	c.urlParams_.Set("alt", alt)
  5249  	c.urlParams_.Set("prettyPrint", "false")
  5250  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/routes")
  5251  	urls += "?" + c.urlParams_.Encode()
  5252  	req, err := http.NewRequest("GET", urls, body)
  5253  	if err != nil {
  5254  		return nil, err
  5255  	}
  5256  	req.Header = reqHeaders
  5257  	googleapi.Expand(req.URL, map[string]string{
  5258  		"parent": c.parent,
  5259  	})
  5260  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5261  }
  5262  
  5263  // Do executes the "datastream.projects.locations.privateConnections.routes.list" call.
  5264  // Any non-2xx status code is an error. Response headers are in either
  5265  // *ListRoutesResponse.ServerResponse.Header or (if a response was returned at
  5266  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5267  // check whether the returned error was because http.StatusNotModified was
  5268  // returned.
  5269  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Do(opts ...googleapi.CallOption) (*ListRoutesResponse, error) {
  5270  	gensupport.SetOptions(c.urlParams_, opts...)
  5271  	res, err := c.doRequest("json")
  5272  	if res != nil && res.StatusCode == http.StatusNotModified {
  5273  		if res.Body != nil {
  5274  			res.Body.Close()
  5275  		}
  5276  		return nil, gensupport.WrapError(&googleapi.Error{
  5277  			Code:   res.StatusCode,
  5278  			Header: res.Header,
  5279  		})
  5280  	}
  5281  	if err != nil {
  5282  		return nil, err
  5283  	}
  5284  	defer googleapi.CloseBody(res)
  5285  	if err := googleapi.CheckResponse(res); err != nil {
  5286  		return nil, gensupport.WrapError(err)
  5287  	}
  5288  	ret := &ListRoutesResponse{
  5289  		ServerResponse: googleapi.ServerResponse{
  5290  			Header:         res.Header,
  5291  			HTTPStatusCode: res.StatusCode,
  5292  		},
  5293  	}
  5294  	target := &ret
  5295  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5296  		return nil, err
  5297  	}
  5298  	return ret, nil
  5299  }
  5300  
  5301  // Pages invokes f for each page of results.
  5302  // A non-nil error returned from f will halt the iteration.
  5303  // The provided context supersedes any context provided to the Context method.
  5304  func (c *ProjectsLocationsPrivateConnectionsRoutesListCall) Pages(ctx context.Context, f func(*ListRoutesResponse) error) error {
  5305  	c.ctx_ = ctx
  5306  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5307  	for {
  5308  		x, err := c.Do()
  5309  		if err != nil {
  5310  			return err
  5311  		}
  5312  		if err := f(x); err != nil {
  5313  			return err
  5314  		}
  5315  		if x.NextPageToken == "" {
  5316  			return nil
  5317  		}
  5318  		c.PageToken(x.NextPageToken)
  5319  	}
  5320  }
  5321  
  5322  type ProjectsLocationsStreamsCreateCall struct {
  5323  	s          *Service
  5324  	parent     string
  5325  	stream     *Stream
  5326  	urlParams_ gensupport.URLParams
  5327  	ctx_       context.Context
  5328  	header_    http.Header
  5329  }
  5330  
  5331  // Create: Use this method to create a stream.
  5332  //
  5333  // - parent: The parent that owns the collection of streams.
  5334  func (r *ProjectsLocationsStreamsService) Create(parent string, stream *Stream) *ProjectsLocationsStreamsCreateCall {
  5335  	c := &ProjectsLocationsStreamsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5336  	c.parent = parent
  5337  	c.stream = stream
  5338  	return c
  5339  }
  5340  
  5341  // Force sets the optional parameter "force": Create the stream without
  5342  // validating it.
  5343  func (c *ProjectsLocationsStreamsCreateCall) Force(force bool) *ProjectsLocationsStreamsCreateCall {
  5344  	c.urlParams_.Set("force", fmt.Sprint(force))
  5345  	return c
  5346  }
  5347  
  5348  // RequestId sets the optional parameter "requestId": A request ID to identify
  5349  // requests. Specify a unique request ID so that if you must retry your
  5350  // request, the server will know to ignore the request if it has already been
  5351  // completed. The server will guarantee that for at least 60 minutes since the
  5352  // first request. For example, consider a situation where you make an initial
  5353  // request and the request times out. If you make the request again with the
  5354  // same request ID, the server can check if original operation with the same
  5355  // request ID was received, and if so, will ignore the second request. This
  5356  // prevents clients from accidentally creating duplicate commitments. The
  5357  // request ID must be a valid UUID with the exception that zero UUID is not
  5358  // supported (00000000-0000-0000-0000-000000000000).
  5359  func (c *ProjectsLocationsStreamsCreateCall) RequestId(requestId string) *ProjectsLocationsStreamsCreateCall {
  5360  	c.urlParams_.Set("requestId", requestId)
  5361  	return c
  5362  }
  5363  
  5364  // StreamId sets the optional parameter "streamId": Required. The stream
  5365  // identifier.
  5366  func (c *ProjectsLocationsStreamsCreateCall) StreamId(streamId string) *ProjectsLocationsStreamsCreateCall {
  5367  	c.urlParams_.Set("streamId", streamId)
  5368  	return c
  5369  }
  5370  
  5371  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  5372  // stream, but don't create any resources. The default is false.
  5373  func (c *ProjectsLocationsStreamsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsStreamsCreateCall {
  5374  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5375  	return c
  5376  }
  5377  
  5378  // Fields allows partial responses to be retrieved. See
  5379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5380  // details.
  5381  func (c *ProjectsLocationsStreamsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsCreateCall {
  5382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5383  	return c
  5384  }
  5385  
  5386  // Context sets the context to be used in this call's Do method.
  5387  func (c *ProjectsLocationsStreamsCreateCall) Context(ctx context.Context) *ProjectsLocationsStreamsCreateCall {
  5388  	c.ctx_ = ctx
  5389  	return c
  5390  }
  5391  
  5392  // Header returns a http.Header that can be modified by the caller to add
  5393  // headers to the request.
  5394  func (c *ProjectsLocationsStreamsCreateCall) Header() http.Header {
  5395  	if c.header_ == nil {
  5396  		c.header_ = make(http.Header)
  5397  	}
  5398  	return c.header_
  5399  }
  5400  
  5401  func (c *ProjectsLocationsStreamsCreateCall) doRequest(alt string) (*http.Response, error) {
  5402  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5403  	var body io.Reader = nil
  5404  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.stream)
  5405  	if err != nil {
  5406  		return nil, err
  5407  	}
  5408  	c.urlParams_.Set("alt", alt)
  5409  	c.urlParams_.Set("prettyPrint", "false")
  5410  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/streams")
  5411  	urls += "?" + c.urlParams_.Encode()
  5412  	req, err := http.NewRequest("POST", urls, body)
  5413  	if err != nil {
  5414  		return nil, err
  5415  	}
  5416  	req.Header = reqHeaders
  5417  	googleapi.Expand(req.URL, map[string]string{
  5418  		"parent": c.parent,
  5419  	})
  5420  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5421  }
  5422  
  5423  // Do executes the "datastream.projects.locations.streams.create" call.
  5424  // Any non-2xx status code is an error. Response headers are in either
  5425  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5426  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5427  // whether the returned error was because http.StatusNotModified was returned.
  5428  func (c *ProjectsLocationsStreamsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5429  	gensupport.SetOptions(c.urlParams_, opts...)
  5430  	res, err := c.doRequest("json")
  5431  	if res != nil && res.StatusCode == http.StatusNotModified {
  5432  		if res.Body != nil {
  5433  			res.Body.Close()
  5434  		}
  5435  		return nil, gensupport.WrapError(&googleapi.Error{
  5436  			Code:   res.StatusCode,
  5437  			Header: res.Header,
  5438  		})
  5439  	}
  5440  	if err != nil {
  5441  		return nil, err
  5442  	}
  5443  	defer googleapi.CloseBody(res)
  5444  	if err := googleapi.CheckResponse(res); err != nil {
  5445  		return nil, gensupport.WrapError(err)
  5446  	}
  5447  	ret := &Operation{
  5448  		ServerResponse: googleapi.ServerResponse{
  5449  			Header:         res.Header,
  5450  			HTTPStatusCode: res.StatusCode,
  5451  		},
  5452  	}
  5453  	target := &ret
  5454  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5455  		return nil, err
  5456  	}
  5457  	return ret, nil
  5458  }
  5459  
  5460  type ProjectsLocationsStreamsDeleteCall struct {
  5461  	s          *Service
  5462  	name       string
  5463  	urlParams_ gensupport.URLParams
  5464  	ctx_       context.Context
  5465  	header_    http.Header
  5466  }
  5467  
  5468  // Delete: Use this method to delete a stream.
  5469  //
  5470  // - name: The name of the stream resource to delete.
  5471  func (r *ProjectsLocationsStreamsService) Delete(name string) *ProjectsLocationsStreamsDeleteCall {
  5472  	c := &ProjectsLocationsStreamsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5473  	c.name = name
  5474  	return c
  5475  }
  5476  
  5477  // RequestId sets the optional parameter "requestId": A request ID to identify
  5478  // requests. Specify a unique request ID so that if you must retry your
  5479  // request, the server will know to ignore the request if it has already been
  5480  // completed. The server will guarantee that for at least 60 minutes after the
  5481  // first request. For example, consider a situation where you make an initial
  5482  // request and the request times out. If you make the request again with the
  5483  // same request ID, the server can check if original operation with the same
  5484  // request ID was received, and if so, will ignore the second request. This
  5485  // prevents clients from accidentally creating duplicate commitments. The
  5486  // request ID must be a valid UUID with the exception that zero UUID is not
  5487  // supported (00000000-0000-0000-0000-000000000000).
  5488  func (c *ProjectsLocationsStreamsDeleteCall) RequestId(requestId string) *ProjectsLocationsStreamsDeleteCall {
  5489  	c.urlParams_.Set("requestId", requestId)
  5490  	return c
  5491  }
  5492  
  5493  // Fields allows partial responses to be retrieved. See
  5494  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5495  // details.
  5496  func (c *ProjectsLocationsStreamsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsDeleteCall {
  5497  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5498  	return c
  5499  }
  5500  
  5501  // Context sets the context to be used in this call's Do method.
  5502  func (c *ProjectsLocationsStreamsDeleteCall) Context(ctx context.Context) *ProjectsLocationsStreamsDeleteCall {
  5503  	c.ctx_ = ctx
  5504  	return c
  5505  }
  5506  
  5507  // Header returns a http.Header that can be modified by the caller to add
  5508  // headers to the request.
  5509  func (c *ProjectsLocationsStreamsDeleteCall) Header() http.Header {
  5510  	if c.header_ == nil {
  5511  		c.header_ = make(http.Header)
  5512  	}
  5513  	return c.header_
  5514  }
  5515  
  5516  func (c *ProjectsLocationsStreamsDeleteCall) doRequest(alt string) (*http.Response, error) {
  5517  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5518  	var body io.Reader = nil
  5519  	c.urlParams_.Set("alt", alt)
  5520  	c.urlParams_.Set("prettyPrint", "false")
  5521  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5522  	urls += "?" + c.urlParams_.Encode()
  5523  	req, err := http.NewRequest("DELETE", urls, body)
  5524  	if err != nil {
  5525  		return nil, err
  5526  	}
  5527  	req.Header = reqHeaders
  5528  	googleapi.Expand(req.URL, map[string]string{
  5529  		"name": c.name,
  5530  	})
  5531  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5532  }
  5533  
  5534  // Do executes the "datastream.projects.locations.streams.delete" call.
  5535  // Any non-2xx status code is an error. Response headers are in either
  5536  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5537  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5538  // whether the returned error was because http.StatusNotModified was returned.
  5539  func (c *ProjectsLocationsStreamsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5540  	gensupport.SetOptions(c.urlParams_, opts...)
  5541  	res, err := c.doRequest("json")
  5542  	if res != nil && res.StatusCode == http.StatusNotModified {
  5543  		if res.Body != nil {
  5544  			res.Body.Close()
  5545  		}
  5546  		return nil, gensupport.WrapError(&googleapi.Error{
  5547  			Code:   res.StatusCode,
  5548  			Header: res.Header,
  5549  		})
  5550  	}
  5551  	if err != nil {
  5552  		return nil, err
  5553  	}
  5554  	defer googleapi.CloseBody(res)
  5555  	if err := googleapi.CheckResponse(res); err != nil {
  5556  		return nil, gensupport.WrapError(err)
  5557  	}
  5558  	ret := &Operation{
  5559  		ServerResponse: googleapi.ServerResponse{
  5560  			Header:         res.Header,
  5561  			HTTPStatusCode: res.StatusCode,
  5562  		},
  5563  	}
  5564  	target := &ret
  5565  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5566  		return nil, err
  5567  	}
  5568  	return ret, nil
  5569  }
  5570  
  5571  type ProjectsLocationsStreamsGetCall struct {
  5572  	s            *Service
  5573  	name         string
  5574  	urlParams_   gensupport.URLParams
  5575  	ifNoneMatch_ string
  5576  	ctx_         context.Context
  5577  	header_      http.Header
  5578  }
  5579  
  5580  // Get: Use this method to get details about a stream.
  5581  //
  5582  // - name: The name of the stream resource to get.
  5583  func (r *ProjectsLocationsStreamsService) Get(name string) *ProjectsLocationsStreamsGetCall {
  5584  	c := &ProjectsLocationsStreamsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5585  	c.name = name
  5586  	return c
  5587  }
  5588  
  5589  // Fields allows partial responses to be retrieved. See
  5590  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5591  // details.
  5592  func (c *ProjectsLocationsStreamsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsGetCall {
  5593  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5594  	return c
  5595  }
  5596  
  5597  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5598  // object's ETag matches the given value. This is useful for getting updates
  5599  // only after the object has changed since the last request.
  5600  func (c *ProjectsLocationsStreamsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsStreamsGetCall {
  5601  	c.ifNoneMatch_ = entityTag
  5602  	return c
  5603  }
  5604  
  5605  // Context sets the context to be used in this call's Do method.
  5606  func (c *ProjectsLocationsStreamsGetCall) Context(ctx context.Context) *ProjectsLocationsStreamsGetCall {
  5607  	c.ctx_ = ctx
  5608  	return c
  5609  }
  5610  
  5611  // Header returns a http.Header that can be modified by the caller to add
  5612  // headers to the request.
  5613  func (c *ProjectsLocationsStreamsGetCall) Header() http.Header {
  5614  	if c.header_ == nil {
  5615  		c.header_ = make(http.Header)
  5616  	}
  5617  	return c.header_
  5618  }
  5619  
  5620  func (c *ProjectsLocationsStreamsGetCall) doRequest(alt string) (*http.Response, error) {
  5621  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5622  	if c.ifNoneMatch_ != "" {
  5623  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5624  	}
  5625  	var body io.Reader = nil
  5626  	c.urlParams_.Set("alt", alt)
  5627  	c.urlParams_.Set("prettyPrint", "false")
  5628  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5629  	urls += "?" + c.urlParams_.Encode()
  5630  	req, err := http.NewRequest("GET", urls, body)
  5631  	if err != nil {
  5632  		return nil, err
  5633  	}
  5634  	req.Header = reqHeaders
  5635  	googleapi.Expand(req.URL, map[string]string{
  5636  		"name": c.name,
  5637  	})
  5638  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5639  }
  5640  
  5641  // Do executes the "datastream.projects.locations.streams.get" call.
  5642  // Any non-2xx status code is an error. Response headers are in either
  5643  // *Stream.ServerResponse.Header or (if a response was returned at all) in
  5644  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5645  // whether the returned error was because http.StatusNotModified was returned.
  5646  func (c *ProjectsLocationsStreamsGetCall) Do(opts ...googleapi.CallOption) (*Stream, error) {
  5647  	gensupport.SetOptions(c.urlParams_, opts...)
  5648  	res, err := c.doRequest("json")
  5649  	if res != nil && res.StatusCode == http.StatusNotModified {
  5650  		if res.Body != nil {
  5651  			res.Body.Close()
  5652  		}
  5653  		return nil, gensupport.WrapError(&googleapi.Error{
  5654  			Code:   res.StatusCode,
  5655  			Header: res.Header,
  5656  		})
  5657  	}
  5658  	if err != nil {
  5659  		return nil, err
  5660  	}
  5661  	defer googleapi.CloseBody(res)
  5662  	if err := googleapi.CheckResponse(res); err != nil {
  5663  		return nil, gensupport.WrapError(err)
  5664  	}
  5665  	ret := &Stream{
  5666  		ServerResponse: googleapi.ServerResponse{
  5667  			Header:         res.Header,
  5668  			HTTPStatusCode: res.StatusCode,
  5669  		},
  5670  	}
  5671  	target := &ret
  5672  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5673  		return nil, err
  5674  	}
  5675  	return ret, nil
  5676  }
  5677  
  5678  type ProjectsLocationsStreamsListCall struct {
  5679  	s            *Service
  5680  	parent       string
  5681  	urlParams_   gensupport.URLParams
  5682  	ifNoneMatch_ string
  5683  	ctx_         context.Context
  5684  	header_      http.Header
  5685  }
  5686  
  5687  // List: Use this method to list streams in a project and location.
  5688  //
  5689  // - parent: The parent that owns the collection of streams.
  5690  func (r *ProjectsLocationsStreamsService) List(parent string) *ProjectsLocationsStreamsListCall {
  5691  	c := &ProjectsLocationsStreamsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5692  	c.parent = parent
  5693  	return c
  5694  }
  5695  
  5696  // Filter sets the optional parameter "filter": Filter request.
  5697  func (c *ProjectsLocationsStreamsListCall) Filter(filter string) *ProjectsLocationsStreamsListCall {
  5698  	c.urlParams_.Set("filter", filter)
  5699  	return c
  5700  }
  5701  
  5702  // OrderBy sets the optional parameter "orderBy": Order by fields for the
  5703  // result.
  5704  func (c *ProjectsLocationsStreamsListCall) OrderBy(orderBy string) *ProjectsLocationsStreamsListCall {
  5705  	c.urlParams_.Set("orderBy", orderBy)
  5706  	return c
  5707  }
  5708  
  5709  // PageSize sets the optional parameter "pageSize": Maximum number of streams
  5710  // to return. If unspecified, at most 50 streams will be returned. The maximum
  5711  // value is 1000; values above 1000 will be coerced to 1000.
  5712  func (c *ProjectsLocationsStreamsListCall) PageSize(pageSize int64) *ProjectsLocationsStreamsListCall {
  5713  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  5714  	return c
  5715  }
  5716  
  5717  // PageToken sets the optional parameter "pageToken": Page token received from
  5718  // a previous `ListStreams` call. Provide this to retrieve the subsequent page.
  5719  // When paginating, all other parameters provided to `ListStreams` must match
  5720  // the call that provided the page token.
  5721  func (c *ProjectsLocationsStreamsListCall) PageToken(pageToken string) *ProjectsLocationsStreamsListCall {
  5722  	c.urlParams_.Set("pageToken", pageToken)
  5723  	return c
  5724  }
  5725  
  5726  // Fields allows partial responses to be retrieved. See
  5727  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5728  // details.
  5729  func (c *ProjectsLocationsStreamsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsListCall {
  5730  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5731  	return c
  5732  }
  5733  
  5734  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  5735  // object's ETag matches the given value. This is useful for getting updates
  5736  // only after the object has changed since the last request.
  5737  func (c *ProjectsLocationsStreamsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsStreamsListCall {
  5738  	c.ifNoneMatch_ = entityTag
  5739  	return c
  5740  }
  5741  
  5742  // Context sets the context to be used in this call's Do method.
  5743  func (c *ProjectsLocationsStreamsListCall) Context(ctx context.Context) *ProjectsLocationsStreamsListCall {
  5744  	c.ctx_ = ctx
  5745  	return c
  5746  }
  5747  
  5748  // Header returns a http.Header that can be modified by the caller to add
  5749  // headers to the request.
  5750  func (c *ProjectsLocationsStreamsListCall) Header() http.Header {
  5751  	if c.header_ == nil {
  5752  		c.header_ = make(http.Header)
  5753  	}
  5754  	return c.header_
  5755  }
  5756  
  5757  func (c *ProjectsLocationsStreamsListCall) doRequest(alt string) (*http.Response, error) {
  5758  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  5759  	if c.ifNoneMatch_ != "" {
  5760  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  5761  	}
  5762  	var body io.Reader = nil
  5763  	c.urlParams_.Set("alt", alt)
  5764  	c.urlParams_.Set("prettyPrint", "false")
  5765  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/streams")
  5766  	urls += "?" + c.urlParams_.Encode()
  5767  	req, err := http.NewRequest("GET", urls, body)
  5768  	if err != nil {
  5769  		return nil, err
  5770  	}
  5771  	req.Header = reqHeaders
  5772  	googleapi.Expand(req.URL, map[string]string{
  5773  		"parent": c.parent,
  5774  	})
  5775  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5776  }
  5777  
  5778  // Do executes the "datastream.projects.locations.streams.list" call.
  5779  // Any non-2xx status code is an error. Response headers are in either
  5780  // *ListStreamsResponse.ServerResponse.Header or (if a response was returned at
  5781  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  5782  // check whether the returned error was because http.StatusNotModified was
  5783  // returned.
  5784  func (c *ProjectsLocationsStreamsListCall) Do(opts ...googleapi.CallOption) (*ListStreamsResponse, error) {
  5785  	gensupport.SetOptions(c.urlParams_, opts...)
  5786  	res, err := c.doRequest("json")
  5787  	if res != nil && res.StatusCode == http.StatusNotModified {
  5788  		if res.Body != nil {
  5789  			res.Body.Close()
  5790  		}
  5791  		return nil, gensupport.WrapError(&googleapi.Error{
  5792  			Code:   res.StatusCode,
  5793  			Header: res.Header,
  5794  		})
  5795  	}
  5796  	if err != nil {
  5797  		return nil, err
  5798  	}
  5799  	defer googleapi.CloseBody(res)
  5800  	if err := googleapi.CheckResponse(res); err != nil {
  5801  		return nil, gensupport.WrapError(err)
  5802  	}
  5803  	ret := &ListStreamsResponse{
  5804  		ServerResponse: googleapi.ServerResponse{
  5805  			Header:         res.Header,
  5806  			HTTPStatusCode: res.StatusCode,
  5807  		},
  5808  	}
  5809  	target := &ret
  5810  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5811  		return nil, err
  5812  	}
  5813  	return ret, nil
  5814  }
  5815  
  5816  // Pages invokes f for each page of results.
  5817  // A non-nil error returned from f will halt the iteration.
  5818  // The provided context supersedes any context provided to the Context method.
  5819  func (c *ProjectsLocationsStreamsListCall) Pages(ctx context.Context, f func(*ListStreamsResponse) error) error {
  5820  	c.ctx_ = ctx
  5821  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  5822  	for {
  5823  		x, err := c.Do()
  5824  		if err != nil {
  5825  			return err
  5826  		}
  5827  		if err := f(x); err != nil {
  5828  			return err
  5829  		}
  5830  		if x.NextPageToken == "" {
  5831  			return nil
  5832  		}
  5833  		c.PageToken(x.NextPageToken)
  5834  	}
  5835  }
  5836  
  5837  type ProjectsLocationsStreamsPatchCall struct {
  5838  	s          *Service
  5839  	name       string
  5840  	stream     *Stream
  5841  	urlParams_ gensupport.URLParams
  5842  	ctx_       context.Context
  5843  	header_    http.Header
  5844  }
  5845  
  5846  // Patch: Use this method to update the configuration of a stream.
  5847  //
  5848  // - name: Output only. The stream's name.
  5849  func (r *ProjectsLocationsStreamsService) Patch(name string, stream *Stream) *ProjectsLocationsStreamsPatchCall {
  5850  	c := &ProjectsLocationsStreamsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5851  	c.name = name
  5852  	c.stream = stream
  5853  	return c
  5854  }
  5855  
  5856  // Force sets the optional parameter "force": Update the stream without
  5857  // validating it.
  5858  func (c *ProjectsLocationsStreamsPatchCall) Force(force bool) *ProjectsLocationsStreamsPatchCall {
  5859  	c.urlParams_.Set("force", fmt.Sprint(force))
  5860  	return c
  5861  }
  5862  
  5863  // RequestId sets the optional parameter "requestId": A request ID to identify
  5864  // requests. Specify a unique request ID so that if you must retry your
  5865  // request, the server will know to ignore the request if it has already been
  5866  // completed. The server will guarantee that for at least 60 minutes since the
  5867  // first request. For example, consider a situation where you make an initial
  5868  // request and the request times out. If you make the request again with the
  5869  // same request ID, the server can check if original operation with the same
  5870  // request ID was received, and if so, will ignore the second request. This
  5871  // prevents clients from accidentally creating duplicate commitments. The
  5872  // request ID must be a valid UUID with the exception that zero UUID is not
  5873  // supported (00000000-0000-0000-0000-000000000000).
  5874  func (c *ProjectsLocationsStreamsPatchCall) RequestId(requestId string) *ProjectsLocationsStreamsPatchCall {
  5875  	c.urlParams_.Set("requestId", requestId)
  5876  	return c
  5877  }
  5878  
  5879  // UpdateMask sets the optional parameter "updateMask": Field mask is used to
  5880  // specify the fields to be overwritten in the stream resource by the update.
  5881  // The fields specified in the update_mask are relative to the resource, not
  5882  // the full request. A field will be overwritten if it is in the mask. If the
  5883  // user does not provide a mask then all fields will be overwritten.
  5884  func (c *ProjectsLocationsStreamsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsStreamsPatchCall {
  5885  	c.urlParams_.Set("updateMask", updateMask)
  5886  	return c
  5887  }
  5888  
  5889  // ValidateOnly sets the optional parameter "validateOnly": Only validate the
  5890  // stream with the changes, without actually updating it. The default is false.
  5891  func (c *ProjectsLocationsStreamsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsStreamsPatchCall {
  5892  	c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly))
  5893  	return c
  5894  }
  5895  
  5896  // Fields allows partial responses to be retrieved. See
  5897  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  5898  // details.
  5899  func (c *ProjectsLocationsStreamsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsPatchCall {
  5900  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  5901  	return c
  5902  }
  5903  
  5904  // Context sets the context to be used in this call's Do method.
  5905  func (c *ProjectsLocationsStreamsPatchCall) Context(ctx context.Context) *ProjectsLocationsStreamsPatchCall {
  5906  	c.ctx_ = ctx
  5907  	return c
  5908  }
  5909  
  5910  // Header returns a http.Header that can be modified by the caller to add
  5911  // headers to the request.
  5912  func (c *ProjectsLocationsStreamsPatchCall) Header() http.Header {
  5913  	if c.header_ == nil {
  5914  		c.header_ = make(http.Header)
  5915  	}
  5916  	return c.header_
  5917  }
  5918  
  5919  func (c *ProjectsLocationsStreamsPatchCall) doRequest(alt string) (*http.Response, error) {
  5920  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  5921  	var body io.Reader = nil
  5922  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.stream)
  5923  	if err != nil {
  5924  		return nil, err
  5925  	}
  5926  	c.urlParams_.Set("alt", alt)
  5927  	c.urlParams_.Set("prettyPrint", "false")
  5928  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  5929  	urls += "?" + c.urlParams_.Encode()
  5930  	req, err := http.NewRequest("PATCH", urls, body)
  5931  	if err != nil {
  5932  		return nil, err
  5933  	}
  5934  	req.Header = reqHeaders
  5935  	googleapi.Expand(req.URL, map[string]string{
  5936  		"name": c.name,
  5937  	})
  5938  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  5939  }
  5940  
  5941  // Do executes the "datastream.projects.locations.streams.patch" call.
  5942  // Any non-2xx status code is an error. Response headers are in either
  5943  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  5944  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  5945  // whether the returned error was because http.StatusNotModified was returned.
  5946  func (c *ProjectsLocationsStreamsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  5947  	gensupport.SetOptions(c.urlParams_, opts...)
  5948  	res, err := c.doRequest("json")
  5949  	if res != nil && res.StatusCode == http.StatusNotModified {
  5950  		if res.Body != nil {
  5951  			res.Body.Close()
  5952  		}
  5953  		return nil, gensupport.WrapError(&googleapi.Error{
  5954  			Code:   res.StatusCode,
  5955  			Header: res.Header,
  5956  		})
  5957  	}
  5958  	if err != nil {
  5959  		return nil, err
  5960  	}
  5961  	defer googleapi.CloseBody(res)
  5962  	if err := googleapi.CheckResponse(res); err != nil {
  5963  		return nil, gensupport.WrapError(err)
  5964  	}
  5965  	ret := &Operation{
  5966  		ServerResponse: googleapi.ServerResponse{
  5967  			Header:         res.Header,
  5968  			HTTPStatusCode: res.StatusCode,
  5969  		},
  5970  	}
  5971  	target := &ret
  5972  	if err := gensupport.DecodeResponse(target, res); err != nil {
  5973  		return nil, err
  5974  	}
  5975  	return ret, nil
  5976  }
  5977  
  5978  type ProjectsLocationsStreamsRunCall struct {
  5979  	s                *Service
  5980  	name             string
  5981  	runstreamrequest *RunStreamRequest
  5982  	urlParams_       gensupport.URLParams
  5983  	ctx_             context.Context
  5984  	header_          http.Header
  5985  }
  5986  
  5987  // Run: Use this method to start, resume or recover a stream with a non default
  5988  // CDC strategy. NOTE: This feature is currently experimental.
  5989  //
  5990  //   - name: Name of the stream resource to start, in the format:
  5991  //     projects/{project_id}/locations/{location}/streams/{stream_name}.
  5992  func (r *ProjectsLocationsStreamsService) Run(name string, runstreamrequest *RunStreamRequest) *ProjectsLocationsStreamsRunCall {
  5993  	c := &ProjectsLocationsStreamsRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  5994  	c.name = name
  5995  	c.runstreamrequest = runstreamrequest
  5996  	return c
  5997  }
  5998  
  5999  // Fields allows partial responses to be retrieved. See
  6000  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6001  // details.
  6002  func (c *ProjectsLocationsStreamsRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsRunCall {
  6003  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6004  	return c
  6005  }
  6006  
  6007  // Context sets the context to be used in this call's Do method.
  6008  func (c *ProjectsLocationsStreamsRunCall) Context(ctx context.Context) *ProjectsLocationsStreamsRunCall {
  6009  	c.ctx_ = ctx
  6010  	return c
  6011  }
  6012  
  6013  // Header returns a http.Header that can be modified by the caller to add
  6014  // headers to the request.
  6015  func (c *ProjectsLocationsStreamsRunCall) Header() http.Header {
  6016  	if c.header_ == nil {
  6017  		c.header_ = make(http.Header)
  6018  	}
  6019  	return c.header_
  6020  }
  6021  
  6022  func (c *ProjectsLocationsStreamsRunCall) doRequest(alt string) (*http.Response, error) {
  6023  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6024  	var body io.Reader = nil
  6025  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.runstreamrequest)
  6026  	if err != nil {
  6027  		return nil, err
  6028  	}
  6029  	c.urlParams_.Set("alt", alt)
  6030  	c.urlParams_.Set("prettyPrint", "false")
  6031  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:run")
  6032  	urls += "?" + c.urlParams_.Encode()
  6033  	req, err := http.NewRequest("POST", urls, body)
  6034  	if err != nil {
  6035  		return nil, err
  6036  	}
  6037  	req.Header = reqHeaders
  6038  	googleapi.Expand(req.URL, map[string]string{
  6039  		"name": c.name,
  6040  	})
  6041  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6042  }
  6043  
  6044  // Do executes the "datastream.projects.locations.streams.run" call.
  6045  // Any non-2xx status code is an error. Response headers are in either
  6046  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  6047  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6048  // whether the returned error was because http.StatusNotModified was returned.
  6049  func (c *ProjectsLocationsStreamsRunCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  6050  	gensupport.SetOptions(c.urlParams_, opts...)
  6051  	res, err := c.doRequest("json")
  6052  	if res != nil && res.StatusCode == http.StatusNotModified {
  6053  		if res.Body != nil {
  6054  			res.Body.Close()
  6055  		}
  6056  		return nil, gensupport.WrapError(&googleapi.Error{
  6057  			Code:   res.StatusCode,
  6058  			Header: res.Header,
  6059  		})
  6060  	}
  6061  	if err != nil {
  6062  		return nil, err
  6063  	}
  6064  	defer googleapi.CloseBody(res)
  6065  	if err := googleapi.CheckResponse(res); err != nil {
  6066  		return nil, gensupport.WrapError(err)
  6067  	}
  6068  	ret := &Operation{
  6069  		ServerResponse: googleapi.ServerResponse{
  6070  			Header:         res.Header,
  6071  			HTTPStatusCode: res.StatusCode,
  6072  		},
  6073  	}
  6074  	target := &ret
  6075  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6076  		return nil, err
  6077  	}
  6078  	return ret, nil
  6079  }
  6080  
  6081  type ProjectsLocationsStreamsObjectsGetCall struct {
  6082  	s            *Service
  6083  	name         string
  6084  	urlParams_   gensupport.URLParams
  6085  	ifNoneMatch_ string
  6086  	ctx_         context.Context
  6087  	header_      http.Header
  6088  }
  6089  
  6090  // Get: Use this method to get details about a stream object.
  6091  //
  6092  // - name: The name of the stream object resource to get.
  6093  func (r *ProjectsLocationsStreamsObjectsService) Get(name string) *ProjectsLocationsStreamsObjectsGetCall {
  6094  	c := &ProjectsLocationsStreamsObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6095  	c.name = name
  6096  	return c
  6097  }
  6098  
  6099  // Fields allows partial responses to be retrieved. See
  6100  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6101  // details.
  6102  func (c *ProjectsLocationsStreamsObjectsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsObjectsGetCall {
  6103  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6104  	return c
  6105  }
  6106  
  6107  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6108  // object's ETag matches the given value. This is useful for getting updates
  6109  // only after the object has changed since the last request.
  6110  func (c *ProjectsLocationsStreamsObjectsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsStreamsObjectsGetCall {
  6111  	c.ifNoneMatch_ = entityTag
  6112  	return c
  6113  }
  6114  
  6115  // Context sets the context to be used in this call's Do method.
  6116  func (c *ProjectsLocationsStreamsObjectsGetCall) Context(ctx context.Context) *ProjectsLocationsStreamsObjectsGetCall {
  6117  	c.ctx_ = ctx
  6118  	return c
  6119  }
  6120  
  6121  // Header returns a http.Header that can be modified by the caller to add
  6122  // headers to the request.
  6123  func (c *ProjectsLocationsStreamsObjectsGetCall) Header() http.Header {
  6124  	if c.header_ == nil {
  6125  		c.header_ = make(http.Header)
  6126  	}
  6127  	return c.header_
  6128  }
  6129  
  6130  func (c *ProjectsLocationsStreamsObjectsGetCall) doRequest(alt string) (*http.Response, error) {
  6131  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6132  	if c.ifNoneMatch_ != "" {
  6133  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6134  	}
  6135  	var body io.Reader = nil
  6136  	c.urlParams_.Set("alt", alt)
  6137  	c.urlParams_.Set("prettyPrint", "false")
  6138  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
  6139  	urls += "?" + c.urlParams_.Encode()
  6140  	req, err := http.NewRequest("GET", urls, body)
  6141  	if err != nil {
  6142  		return nil, err
  6143  	}
  6144  	req.Header = reqHeaders
  6145  	googleapi.Expand(req.URL, map[string]string{
  6146  		"name": c.name,
  6147  	})
  6148  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6149  }
  6150  
  6151  // Do executes the "datastream.projects.locations.streams.objects.get" call.
  6152  // Any non-2xx status code is an error. Response headers are in either
  6153  // *StreamObject.ServerResponse.Header or (if a response was returned at all)
  6154  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6155  // whether the returned error was because http.StatusNotModified was returned.
  6156  func (c *ProjectsLocationsStreamsObjectsGetCall) Do(opts ...googleapi.CallOption) (*StreamObject, error) {
  6157  	gensupport.SetOptions(c.urlParams_, opts...)
  6158  	res, err := c.doRequest("json")
  6159  	if res != nil && res.StatusCode == http.StatusNotModified {
  6160  		if res.Body != nil {
  6161  			res.Body.Close()
  6162  		}
  6163  		return nil, gensupport.WrapError(&googleapi.Error{
  6164  			Code:   res.StatusCode,
  6165  			Header: res.Header,
  6166  		})
  6167  	}
  6168  	if err != nil {
  6169  		return nil, err
  6170  	}
  6171  	defer googleapi.CloseBody(res)
  6172  	if err := googleapi.CheckResponse(res); err != nil {
  6173  		return nil, gensupport.WrapError(err)
  6174  	}
  6175  	ret := &StreamObject{
  6176  		ServerResponse: googleapi.ServerResponse{
  6177  			Header:         res.Header,
  6178  			HTTPStatusCode: res.StatusCode,
  6179  		},
  6180  	}
  6181  	target := &ret
  6182  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6183  		return nil, err
  6184  	}
  6185  	return ret, nil
  6186  }
  6187  
  6188  type ProjectsLocationsStreamsObjectsListCall struct {
  6189  	s            *Service
  6190  	parent       string
  6191  	urlParams_   gensupport.URLParams
  6192  	ifNoneMatch_ string
  6193  	ctx_         context.Context
  6194  	header_      http.Header
  6195  }
  6196  
  6197  // List: Use this method to list the objects of a specific stream.
  6198  //
  6199  // - parent: The parent stream that owns the collection of objects.
  6200  func (r *ProjectsLocationsStreamsObjectsService) List(parent string) *ProjectsLocationsStreamsObjectsListCall {
  6201  	c := &ProjectsLocationsStreamsObjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6202  	c.parent = parent
  6203  	return c
  6204  }
  6205  
  6206  // PageSize sets the optional parameter "pageSize": Maximum number of objects
  6207  // to return. Default is 50. The maximum value is 1000; values above 1000 will
  6208  // be coerced to 1000.
  6209  func (c *ProjectsLocationsStreamsObjectsListCall) PageSize(pageSize int64) *ProjectsLocationsStreamsObjectsListCall {
  6210  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  6211  	return c
  6212  }
  6213  
  6214  // PageToken sets the optional parameter "pageToken": Page token received from
  6215  // a previous `ListStreamObjectsRequest` call. Provide this to retrieve the
  6216  // subsequent page. When paginating, all other parameters provided to
  6217  // `ListStreamObjectsRequest` must match the call that provided the page token.
  6218  func (c *ProjectsLocationsStreamsObjectsListCall) PageToken(pageToken string) *ProjectsLocationsStreamsObjectsListCall {
  6219  	c.urlParams_.Set("pageToken", pageToken)
  6220  	return c
  6221  }
  6222  
  6223  // Fields allows partial responses to be retrieved. See
  6224  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6225  // details.
  6226  func (c *ProjectsLocationsStreamsObjectsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsObjectsListCall {
  6227  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6228  	return c
  6229  }
  6230  
  6231  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  6232  // object's ETag matches the given value. This is useful for getting updates
  6233  // only after the object has changed since the last request.
  6234  func (c *ProjectsLocationsStreamsObjectsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsStreamsObjectsListCall {
  6235  	c.ifNoneMatch_ = entityTag
  6236  	return c
  6237  }
  6238  
  6239  // Context sets the context to be used in this call's Do method.
  6240  func (c *ProjectsLocationsStreamsObjectsListCall) Context(ctx context.Context) *ProjectsLocationsStreamsObjectsListCall {
  6241  	c.ctx_ = ctx
  6242  	return c
  6243  }
  6244  
  6245  // Header returns a http.Header that can be modified by the caller to add
  6246  // headers to the request.
  6247  func (c *ProjectsLocationsStreamsObjectsListCall) Header() http.Header {
  6248  	if c.header_ == nil {
  6249  		c.header_ = make(http.Header)
  6250  	}
  6251  	return c.header_
  6252  }
  6253  
  6254  func (c *ProjectsLocationsStreamsObjectsListCall) doRequest(alt string) (*http.Response, error) {
  6255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  6256  	if c.ifNoneMatch_ != "" {
  6257  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  6258  	}
  6259  	var body io.Reader = nil
  6260  	c.urlParams_.Set("alt", alt)
  6261  	c.urlParams_.Set("prettyPrint", "false")
  6262  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/objects")
  6263  	urls += "?" + c.urlParams_.Encode()
  6264  	req, err := http.NewRequest("GET", urls, body)
  6265  	if err != nil {
  6266  		return nil, err
  6267  	}
  6268  	req.Header = reqHeaders
  6269  	googleapi.Expand(req.URL, map[string]string{
  6270  		"parent": c.parent,
  6271  	})
  6272  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6273  }
  6274  
  6275  // Do executes the "datastream.projects.locations.streams.objects.list" call.
  6276  // Any non-2xx status code is an error. Response headers are in either
  6277  // *ListStreamObjectsResponse.ServerResponse.Header or (if a response was
  6278  // returned at all) in error.(*googleapi.Error).Header. Use
  6279  // googleapi.IsNotModified to check whether the returned error was because
  6280  // http.StatusNotModified was returned.
  6281  func (c *ProjectsLocationsStreamsObjectsListCall) Do(opts ...googleapi.CallOption) (*ListStreamObjectsResponse, error) {
  6282  	gensupport.SetOptions(c.urlParams_, opts...)
  6283  	res, err := c.doRequest("json")
  6284  	if res != nil && res.StatusCode == http.StatusNotModified {
  6285  		if res.Body != nil {
  6286  			res.Body.Close()
  6287  		}
  6288  		return nil, gensupport.WrapError(&googleapi.Error{
  6289  			Code:   res.StatusCode,
  6290  			Header: res.Header,
  6291  		})
  6292  	}
  6293  	if err != nil {
  6294  		return nil, err
  6295  	}
  6296  	defer googleapi.CloseBody(res)
  6297  	if err := googleapi.CheckResponse(res); err != nil {
  6298  		return nil, gensupport.WrapError(err)
  6299  	}
  6300  	ret := &ListStreamObjectsResponse{
  6301  		ServerResponse: googleapi.ServerResponse{
  6302  			Header:         res.Header,
  6303  			HTTPStatusCode: res.StatusCode,
  6304  		},
  6305  	}
  6306  	target := &ret
  6307  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6308  		return nil, err
  6309  	}
  6310  	return ret, nil
  6311  }
  6312  
  6313  // Pages invokes f for each page of results.
  6314  // A non-nil error returned from f will halt the iteration.
  6315  // The provided context supersedes any context provided to the Context method.
  6316  func (c *ProjectsLocationsStreamsObjectsListCall) Pages(ctx context.Context, f func(*ListStreamObjectsResponse) error) error {
  6317  	c.ctx_ = ctx
  6318  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  6319  	for {
  6320  		x, err := c.Do()
  6321  		if err != nil {
  6322  			return err
  6323  		}
  6324  		if err := f(x); err != nil {
  6325  			return err
  6326  		}
  6327  		if x.NextPageToken == "" {
  6328  			return nil
  6329  		}
  6330  		c.PageToken(x.NextPageToken)
  6331  	}
  6332  }
  6333  
  6334  type ProjectsLocationsStreamsObjectsLookupCall struct {
  6335  	s                         *Service
  6336  	parent                    string
  6337  	lookupstreamobjectrequest *LookupStreamObjectRequest
  6338  	urlParams_                gensupport.URLParams
  6339  	ctx_                      context.Context
  6340  	header_                   http.Header
  6341  }
  6342  
  6343  // Lookup: Use this method to look up a stream object by its source object
  6344  // identifier.
  6345  //
  6346  // - parent: The parent stream that owns the collection of objects.
  6347  func (r *ProjectsLocationsStreamsObjectsService) Lookup(parent string, lookupstreamobjectrequest *LookupStreamObjectRequest) *ProjectsLocationsStreamsObjectsLookupCall {
  6348  	c := &ProjectsLocationsStreamsObjectsLookupCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6349  	c.parent = parent
  6350  	c.lookupstreamobjectrequest = lookupstreamobjectrequest
  6351  	return c
  6352  }
  6353  
  6354  // Fields allows partial responses to be retrieved. See
  6355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6356  // details.
  6357  func (c *ProjectsLocationsStreamsObjectsLookupCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsObjectsLookupCall {
  6358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6359  	return c
  6360  }
  6361  
  6362  // Context sets the context to be used in this call's Do method.
  6363  func (c *ProjectsLocationsStreamsObjectsLookupCall) Context(ctx context.Context) *ProjectsLocationsStreamsObjectsLookupCall {
  6364  	c.ctx_ = ctx
  6365  	return c
  6366  }
  6367  
  6368  // Header returns a http.Header that can be modified by the caller to add
  6369  // headers to the request.
  6370  func (c *ProjectsLocationsStreamsObjectsLookupCall) Header() http.Header {
  6371  	if c.header_ == nil {
  6372  		c.header_ = make(http.Header)
  6373  	}
  6374  	return c.header_
  6375  }
  6376  
  6377  func (c *ProjectsLocationsStreamsObjectsLookupCall) doRequest(alt string) (*http.Response, error) {
  6378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6379  	var body io.Reader = nil
  6380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.lookupstreamobjectrequest)
  6381  	if err != nil {
  6382  		return nil, err
  6383  	}
  6384  	c.urlParams_.Set("alt", alt)
  6385  	c.urlParams_.Set("prettyPrint", "false")
  6386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/objects:lookup")
  6387  	urls += "?" + c.urlParams_.Encode()
  6388  	req, err := http.NewRequest("POST", urls, body)
  6389  	if err != nil {
  6390  		return nil, err
  6391  	}
  6392  	req.Header = reqHeaders
  6393  	googleapi.Expand(req.URL, map[string]string{
  6394  		"parent": c.parent,
  6395  	})
  6396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6397  }
  6398  
  6399  // Do executes the "datastream.projects.locations.streams.objects.lookup" call.
  6400  // Any non-2xx status code is an error. Response headers are in either
  6401  // *StreamObject.ServerResponse.Header or (if a response was returned at all)
  6402  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  6403  // whether the returned error was because http.StatusNotModified was returned.
  6404  func (c *ProjectsLocationsStreamsObjectsLookupCall) Do(opts ...googleapi.CallOption) (*StreamObject, error) {
  6405  	gensupport.SetOptions(c.urlParams_, opts...)
  6406  	res, err := c.doRequest("json")
  6407  	if res != nil && res.StatusCode == http.StatusNotModified {
  6408  		if res.Body != nil {
  6409  			res.Body.Close()
  6410  		}
  6411  		return nil, gensupport.WrapError(&googleapi.Error{
  6412  			Code:   res.StatusCode,
  6413  			Header: res.Header,
  6414  		})
  6415  	}
  6416  	if err != nil {
  6417  		return nil, err
  6418  	}
  6419  	defer googleapi.CloseBody(res)
  6420  	if err := googleapi.CheckResponse(res); err != nil {
  6421  		return nil, gensupport.WrapError(err)
  6422  	}
  6423  	ret := &StreamObject{
  6424  		ServerResponse: googleapi.ServerResponse{
  6425  			Header:         res.Header,
  6426  			HTTPStatusCode: res.StatusCode,
  6427  		},
  6428  	}
  6429  	target := &ret
  6430  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6431  		return nil, err
  6432  	}
  6433  	return ret, nil
  6434  }
  6435  
  6436  type ProjectsLocationsStreamsObjectsStartBackfillJobCall struct {
  6437  	s                       *Service
  6438  	object                  string
  6439  	startbackfilljobrequest *StartBackfillJobRequest
  6440  	urlParams_              gensupport.URLParams
  6441  	ctx_                    context.Context
  6442  	header_                 http.Header
  6443  }
  6444  
  6445  // StartBackfillJob: Use this method to start a backfill job for the specified
  6446  // stream object.
  6447  //
  6448  //   - object: The name of the stream object resource to start a backfill job
  6449  //     for.
  6450  func (r *ProjectsLocationsStreamsObjectsService) StartBackfillJob(object string, startbackfilljobrequest *StartBackfillJobRequest) *ProjectsLocationsStreamsObjectsStartBackfillJobCall {
  6451  	c := &ProjectsLocationsStreamsObjectsStartBackfillJobCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6452  	c.object = object
  6453  	c.startbackfilljobrequest = startbackfilljobrequest
  6454  	return c
  6455  }
  6456  
  6457  // Fields allows partial responses to be retrieved. See
  6458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6459  // details.
  6460  func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsObjectsStartBackfillJobCall {
  6461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6462  	return c
  6463  }
  6464  
  6465  // Context sets the context to be used in this call's Do method.
  6466  func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) Context(ctx context.Context) *ProjectsLocationsStreamsObjectsStartBackfillJobCall {
  6467  	c.ctx_ = ctx
  6468  	return c
  6469  }
  6470  
  6471  // Header returns a http.Header that can be modified by the caller to add
  6472  // headers to the request.
  6473  func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) Header() http.Header {
  6474  	if c.header_ == nil {
  6475  		c.header_ = make(http.Header)
  6476  	}
  6477  	return c.header_
  6478  }
  6479  
  6480  func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) doRequest(alt string) (*http.Response, error) {
  6481  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6482  	var body io.Reader = nil
  6483  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.startbackfilljobrequest)
  6484  	if err != nil {
  6485  		return nil, err
  6486  	}
  6487  	c.urlParams_.Set("alt", alt)
  6488  	c.urlParams_.Set("prettyPrint", "false")
  6489  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+object}:startBackfillJob")
  6490  	urls += "?" + c.urlParams_.Encode()
  6491  	req, err := http.NewRequest("POST", urls, body)
  6492  	if err != nil {
  6493  		return nil, err
  6494  	}
  6495  	req.Header = reqHeaders
  6496  	googleapi.Expand(req.URL, map[string]string{
  6497  		"object": c.object,
  6498  	})
  6499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6500  }
  6501  
  6502  // Do executes the "datastream.projects.locations.streams.objects.startBackfillJob" call.
  6503  // Any non-2xx status code is an error. Response headers are in either
  6504  // *StartBackfillJobResponse.ServerResponse.Header or (if a response was
  6505  // returned at all) in error.(*googleapi.Error).Header. Use
  6506  // googleapi.IsNotModified to check whether the returned error was because
  6507  // http.StatusNotModified was returned.
  6508  func (c *ProjectsLocationsStreamsObjectsStartBackfillJobCall) Do(opts ...googleapi.CallOption) (*StartBackfillJobResponse, error) {
  6509  	gensupport.SetOptions(c.urlParams_, opts...)
  6510  	res, err := c.doRequest("json")
  6511  	if res != nil && res.StatusCode == http.StatusNotModified {
  6512  		if res.Body != nil {
  6513  			res.Body.Close()
  6514  		}
  6515  		return nil, gensupport.WrapError(&googleapi.Error{
  6516  			Code:   res.StatusCode,
  6517  			Header: res.Header,
  6518  		})
  6519  	}
  6520  	if err != nil {
  6521  		return nil, err
  6522  	}
  6523  	defer googleapi.CloseBody(res)
  6524  	if err := googleapi.CheckResponse(res); err != nil {
  6525  		return nil, gensupport.WrapError(err)
  6526  	}
  6527  	ret := &StartBackfillJobResponse{
  6528  		ServerResponse: googleapi.ServerResponse{
  6529  			Header:         res.Header,
  6530  			HTTPStatusCode: res.StatusCode,
  6531  		},
  6532  	}
  6533  	target := &ret
  6534  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6535  		return nil, err
  6536  	}
  6537  	return ret, nil
  6538  }
  6539  
  6540  type ProjectsLocationsStreamsObjectsStopBackfillJobCall struct {
  6541  	s                      *Service
  6542  	object                 string
  6543  	stopbackfilljobrequest *StopBackfillJobRequest
  6544  	urlParams_             gensupport.URLParams
  6545  	ctx_                   context.Context
  6546  	header_                http.Header
  6547  }
  6548  
  6549  // StopBackfillJob: Use this method to stop a backfill job for the specified
  6550  // stream object.
  6551  //
  6552  //   - object: The name of the stream object resource to stop the backfill job
  6553  //     for.
  6554  func (r *ProjectsLocationsStreamsObjectsService) StopBackfillJob(object string, stopbackfilljobrequest *StopBackfillJobRequest) *ProjectsLocationsStreamsObjectsStopBackfillJobCall {
  6555  	c := &ProjectsLocationsStreamsObjectsStopBackfillJobCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  6556  	c.object = object
  6557  	c.stopbackfilljobrequest = stopbackfilljobrequest
  6558  	return c
  6559  }
  6560  
  6561  // Fields allows partial responses to be retrieved. See
  6562  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  6563  // details.
  6564  func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) Fields(s ...googleapi.Field) *ProjectsLocationsStreamsObjectsStopBackfillJobCall {
  6565  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  6566  	return c
  6567  }
  6568  
  6569  // Context sets the context to be used in this call's Do method.
  6570  func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) Context(ctx context.Context) *ProjectsLocationsStreamsObjectsStopBackfillJobCall {
  6571  	c.ctx_ = ctx
  6572  	return c
  6573  }
  6574  
  6575  // Header returns a http.Header that can be modified by the caller to add
  6576  // headers to the request.
  6577  func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) Header() http.Header {
  6578  	if c.header_ == nil {
  6579  		c.header_ = make(http.Header)
  6580  	}
  6581  	return c.header_
  6582  }
  6583  
  6584  func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) doRequest(alt string) (*http.Response, error) {
  6585  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  6586  	var body io.Reader = nil
  6587  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.stopbackfilljobrequest)
  6588  	if err != nil {
  6589  		return nil, err
  6590  	}
  6591  	c.urlParams_.Set("alt", alt)
  6592  	c.urlParams_.Set("prettyPrint", "false")
  6593  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+object}:stopBackfillJob")
  6594  	urls += "?" + c.urlParams_.Encode()
  6595  	req, err := http.NewRequest("POST", urls, body)
  6596  	if err != nil {
  6597  		return nil, err
  6598  	}
  6599  	req.Header = reqHeaders
  6600  	googleapi.Expand(req.URL, map[string]string{
  6601  		"object": c.object,
  6602  	})
  6603  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  6604  }
  6605  
  6606  // Do executes the "datastream.projects.locations.streams.objects.stopBackfillJob" call.
  6607  // Any non-2xx status code is an error. Response headers are in either
  6608  // *StopBackfillJobResponse.ServerResponse.Header or (if a response was
  6609  // returned at all) in error.(*googleapi.Error).Header. Use
  6610  // googleapi.IsNotModified to check whether the returned error was because
  6611  // http.StatusNotModified was returned.
  6612  func (c *ProjectsLocationsStreamsObjectsStopBackfillJobCall) Do(opts ...googleapi.CallOption) (*StopBackfillJobResponse, error) {
  6613  	gensupport.SetOptions(c.urlParams_, opts...)
  6614  	res, err := c.doRequest("json")
  6615  	if res != nil && res.StatusCode == http.StatusNotModified {
  6616  		if res.Body != nil {
  6617  			res.Body.Close()
  6618  		}
  6619  		return nil, gensupport.WrapError(&googleapi.Error{
  6620  			Code:   res.StatusCode,
  6621  			Header: res.Header,
  6622  		})
  6623  	}
  6624  	if err != nil {
  6625  		return nil, err
  6626  	}
  6627  	defer googleapi.CloseBody(res)
  6628  	if err := googleapi.CheckResponse(res); err != nil {
  6629  		return nil, gensupport.WrapError(err)
  6630  	}
  6631  	ret := &StopBackfillJobResponse{
  6632  		ServerResponse: googleapi.ServerResponse{
  6633  			Header:         res.Header,
  6634  			HTTPStatusCode: res.StatusCode,
  6635  		},
  6636  	}
  6637  	target := &ret
  6638  	if err := gensupport.DecodeResponse(target, res); err != nil {
  6639  		return nil, err
  6640  	}
  6641  	return ret, nil
  6642  }
  6643  

View as plain text