...

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

Documentation: google.golang.org/api/walletobjects/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 walletobjects provides access to the Google Wallet API.
     8  //
     9  // For product documentation, see: https://developers.google.com/pay/passes
    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/walletobjects/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	walletobjectsService, err := walletobjects.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  //	walletobjectsService, err := walletobjects.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  //	walletobjectsService, err := walletobjects.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package walletobjects // import "google.golang.org/api/walletobjects/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 = "walletobjects:v1"
    90  const apiName = "walletobjects"
    91  const apiVersion = "v1"
    92  const basePath = "https://walletobjects.googleapis.com/"
    93  const basePathTemplate = "https://walletobjects.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://walletobjects.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// Private Service: https://www.googleapis.com/auth/wallet_object.issuer
    99  	WalletObjectIssuerScope = "https://www.googleapis.com/auth/wallet_object.issuer"
   100  )
   101  
   102  // NewService creates a new Service.
   103  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   104  	scopesOption := internaloption.WithDefaultScopes(
   105  		"https://www.googleapis.com/auth/wallet_object.issuer",
   106  	)
   107  	// NOTE: prepend, so we don't override user-specified scopes.
   108  	opts = append([]option.ClientOption{scopesOption}, opts...)
   109  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   110  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   111  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   112  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   113  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	s, err := New(client)
   118  	if err != nil {
   119  		return nil, err
   120  	}
   121  	if endpoint != "" {
   122  		s.BasePath = endpoint
   123  	}
   124  	return s, nil
   125  }
   126  
   127  // New creates a new Service. It uses the provided http.Client for requests.
   128  //
   129  // Deprecated: please use NewService instead.
   130  // To provide a custom HTTP client, use option.WithHTTPClient.
   131  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   132  func New(client *http.Client) (*Service, error) {
   133  	if client == nil {
   134  		return nil, errors.New("client is nil")
   135  	}
   136  	s := &Service{client: client, BasePath: basePath}
   137  	s.Eventticketclass = NewEventticketclassService(s)
   138  	s.Eventticketobject = NewEventticketobjectService(s)
   139  	s.Flightclass = NewFlightclassService(s)
   140  	s.Flightobject = NewFlightobjectService(s)
   141  	s.Genericclass = NewGenericclassService(s)
   142  	s.Genericobject = NewGenericobjectService(s)
   143  	s.Giftcardclass = NewGiftcardclassService(s)
   144  	s.Giftcardobject = NewGiftcardobjectService(s)
   145  	s.Issuer = NewIssuerService(s)
   146  	s.Jwt = NewJwtService(s)
   147  	s.Loyaltyclass = NewLoyaltyclassService(s)
   148  	s.Loyaltyobject = NewLoyaltyobjectService(s)
   149  	s.Media = NewMediaService(s)
   150  	s.Offerclass = NewOfferclassService(s)
   151  	s.Offerobject = NewOfferobjectService(s)
   152  	s.Permissions = NewPermissionsService(s)
   153  	s.Smarttap = NewSmarttapService(s)
   154  	s.Transitclass = NewTransitclassService(s)
   155  	s.Transitobject = NewTransitobjectService(s)
   156  	return s, nil
   157  }
   158  
   159  type Service struct {
   160  	client    *http.Client
   161  	BasePath  string // API endpoint base URL
   162  	UserAgent string // optional additional User-Agent fragment
   163  
   164  	Eventticketclass *EventticketclassService
   165  
   166  	Eventticketobject *EventticketobjectService
   167  
   168  	Flightclass *FlightclassService
   169  
   170  	Flightobject *FlightobjectService
   171  
   172  	Genericclass *GenericclassService
   173  
   174  	Genericobject *GenericobjectService
   175  
   176  	Giftcardclass *GiftcardclassService
   177  
   178  	Giftcardobject *GiftcardobjectService
   179  
   180  	Issuer *IssuerService
   181  
   182  	Jwt *JwtService
   183  
   184  	Loyaltyclass *LoyaltyclassService
   185  
   186  	Loyaltyobject *LoyaltyobjectService
   187  
   188  	Media *MediaService
   189  
   190  	Offerclass *OfferclassService
   191  
   192  	Offerobject *OfferobjectService
   193  
   194  	Permissions *PermissionsService
   195  
   196  	Smarttap *SmarttapService
   197  
   198  	Transitclass *TransitclassService
   199  
   200  	Transitobject *TransitobjectService
   201  }
   202  
   203  func (s *Service) userAgent() string {
   204  	if s.UserAgent == "" {
   205  		return googleapi.UserAgent
   206  	}
   207  	return googleapi.UserAgent + " " + s.UserAgent
   208  }
   209  
   210  func NewEventticketclassService(s *Service) *EventticketclassService {
   211  	rs := &EventticketclassService{s: s}
   212  	return rs
   213  }
   214  
   215  type EventticketclassService struct {
   216  	s *Service
   217  }
   218  
   219  func NewEventticketobjectService(s *Service) *EventticketobjectService {
   220  	rs := &EventticketobjectService{s: s}
   221  	return rs
   222  }
   223  
   224  type EventticketobjectService struct {
   225  	s *Service
   226  }
   227  
   228  func NewFlightclassService(s *Service) *FlightclassService {
   229  	rs := &FlightclassService{s: s}
   230  	return rs
   231  }
   232  
   233  type FlightclassService struct {
   234  	s *Service
   235  }
   236  
   237  func NewFlightobjectService(s *Service) *FlightobjectService {
   238  	rs := &FlightobjectService{s: s}
   239  	return rs
   240  }
   241  
   242  type FlightobjectService struct {
   243  	s *Service
   244  }
   245  
   246  func NewGenericclassService(s *Service) *GenericclassService {
   247  	rs := &GenericclassService{s: s}
   248  	return rs
   249  }
   250  
   251  type GenericclassService struct {
   252  	s *Service
   253  }
   254  
   255  func NewGenericobjectService(s *Service) *GenericobjectService {
   256  	rs := &GenericobjectService{s: s}
   257  	return rs
   258  }
   259  
   260  type GenericobjectService struct {
   261  	s *Service
   262  }
   263  
   264  func NewGiftcardclassService(s *Service) *GiftcardclassService {
   265  	rs := &GiftcardclassService{s: s}
   266  	return rs
   267  }
   268  
   269  type GiftcardclassService struct {
   270  	s *Service
   271  }
   272  
   273  func NewGiftcardobjectService(s *Service) *GiftcardobjectService {
   274  	rs := &GiftcardobjectService{s: s}
   275  	return rs
   276  }
   277  
   278  type GiftcardobjectService struct {
   279  	s *Service
   280  }
   281  
   282  func NewIssuerService(s *Service) *IssuerService {
   283  	rs := &IssuerService{s: s}
   284  	return rs
   285  }
   286  
   287  type IssuerService struct {
   288  	s *Service
   289  }
   290  
   291  func NewJwtService(s *Service) *JwtService {
   292  	rs := &JwtService{s: s}
   293  	return rs
   294  }
   295  
   296  type JwtService struct {
   297  	s *Service
   298  }
   299  
   300  func NewLoyaltyclassService(s *Service) *LoyaltyclassService {
   301  	rs := &LoyaltyclassService{s: s}
   302  	return rs
   303  }
   304  
   305  type LoyaltyclassService struct {
   306  	s *Service
   307  }
   308  
   309  func NewLoyaltyobjectService(s *Service) *LoyaltyobjectService {
   310  	rs := &LoyaltyobjectService{s: s}
   311  	return rs
   312  }
   313  
   314  type LoyaltyobjectService struct {
   315  	s *Service
   316  }
   317  
   318  func NewMediaService(s *Service) *MediaService {
   319  	rs := &MediaService{s: s}
   320  	return rs
   321  }
   322  
   323  type MediaService struct {
   324  	s *Service
   325  }
   326  
   327  func NewOfferclassService(s *Service) *OfferclassService {
   328  	rs := &OfferclassService{s: s}
   329  	return rs
   330  }
   331  
   332  type OfferclassService struct {
   333  	s *Service
   334  }
   335  
   336  func NewOfferobjectService(s *Service) *OfferobjectService {
   337  	rs := &OfferobjectService{s: s}
   338  	return rs
   339  }
   340  
   341  type OfferobjectService struct {
   342  	s *Service
   343  }
   344  
   345  func NewPermissionsService(s *Service) *PermissionsService {
   346  	rs := &PermissionsService{s: s}
   347  	return rs
   348  }
   349  
   350  type PermissionsService struct {
   351  	s *Service
   352  }
   353  
   354  func NewSmarttapService(s *Service) *SmarttapService {
   355  	rs := &SmarttapService{s: s}
   356  	return rs
   357  }
   358  
   359  type SmarttapService struct {
   360  	s *Service
   361  }
   362  
   363  func NewTransitclassService(s *Service) *TransitclassService {
   364  	rs := &TransitclassService{s: s}
   365  	return rs
   366  }
   367  
   368  type TransitclassService struct {
   369  	s *Service
   370  }
   371  
   372  func NewTransitobjectService(s *Service) *TransitobjectService {
   373  	rs := &TransitobjectService{s: s}
   374  	return rs
   375  }
   376  
   377  type TransitobjectService struct {
   378  	s *Service
   379  }
   380  
   381  // ActivationOptions: ActivationOptions for the class
   382  type ActivationOptions struct {
   383  	// ActivationUrl: HTTPS URL that supports REST semantics. Would be used for
   384  	// requesting activation from partners for given valuable, triggered by the
   385  	// users.
   386  	ActivationUrl string `json:"activationUrl,omitempty"`
   387  	// AllowReactivation: Flag to allow users to make activation call from
   388  	// different device. This allows client to render the activation button enabled
   389  	// even if the activationStatus is ACTIVATED but the requested device is
   390  	// different than the current device.
   391  	AllowReactivation bool `json:"allowReactivation,omitempty"`
   392  	// ForceSendFields is a list of field names (e.g. "ActivationUrl") to
   393  	// unconditionally include in API requests. By default, fields with empty or
   394  	// default values are omitted from API requests. See
   395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   396  	// details.
   397  	ForceSendFields []string `json:"-"`
   398  	// NullFields is a list of field names (e.g. "ActivationUrl") to include in API
   399  	// requests with the JSON null value. By default, fields with empty values are
   400  	// omitted from API requests. See
   401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   402  	NullFields []string `json:"-"`
   403  }
   404  
   405  func (s *ActivationOptions) MarshalJSON() ([]byte, error) {
   406  	type NoMethod ActivationOptions
   407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   408  }
   409  
   410  // ActivationStatus: The activation status of the object. This field includes
   411  // activation status if valuable supports activation.
   412  type ActivationStatus struct {
   413  	// Possible values:
   414  	//   "UNKNOWN_STATE"
   415  	//   "NOT_ACTIVATED" - Not-Activated, this is the default status
   416  	//   "not_activated" - Legacy alias for `NOT_ACTIVATED`. Deprecated.
   417  	//   "ACTIVATED" - Activated
   418  	//   "activated" - Legacy alias for `ACTIVATED`. Deprecated.
   419  	State string `json:"state,omitempty"`
   420  	// ForceSendFields is a list of field names (e.g. "State") to unconditionally
   421  	// include in API requests. By default, fields with empty or default values are
   422  	// omitted from API requests. See
   423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   424  	// details.
   425  	ForceSendFields []string `json:"-"`
   426  	// NullFields is a list of field names (e.g. "State") to include in API
   427  	// requests with the JSON null value. By default, fields with empty values are
   428  	// omitted from API requests. See
   429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   430  	NullFields []string `json:"-"`
   431  }
   432  
   433  func (s *ActivationStatus) MarshalJSON() ([]byte, error) {
   434  	type NoMethod ActivationStatus
   435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   436  }
   437  
   438  // AddMessageRequest: Resource used when the AddMessage endpoints are called.
   439  type AddMessageRequest struct {
   440  	Message *Message `json:"message,omitempty"`
   441  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
   442  	// include in API requests. By default, fields with empty or default values are
   443  	// omitted from API requests. See
   444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   445  	// details.
   446  	ForceSendFields []string `json:"-"`
   447  	// NullFields is a list of field names (e.g. "Message") to include in API
   448  	// requests with the JSON null value. By default, fields with empty values are
   449  	// omitted from API requests. See
   450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   451  	NullFields []string `json:"-"`
   452  }
   453  
   454  func (s *AddMessageRequest) MarshalJSON() ([]byte, error) {
   455  	type NoMethod AddMessageRequest
   456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   457  }
   458  
   459  type AirportInfo struct {
   460  	// AirportIataCode: Three character IATA airport code. This is a required field
   461  	// for `origin` and `destination`. Eg: "SFO"
   462  	AirportIataCode string `json:"airportIataCode,omitempty"`
   463  	// AirportNameOverride: Optional field that overrides the airport city name
   464  	// defined by IATA. By default, Google takes the `airportIataCode` provided and
   465  	// maps it to the official airport city name defined by IATA. Official IATA
   466  	// airport city names can be found at IATA airport city names website. For
   467  	// example, for the airport IATA code "LTN", IATA website tells us that the
   468  	// corresponding airport city is "London". If this field is not populated,
   469  	// Google would display "London". However, populating this field with a custom
   470  	// name (eg: "London Luton") would override it.
   471  	AirportNameOverride *LocalizedString `json:"airportNameOverride,omitempty"`
   472  	// Gate: A name of the gate. Eg: "B59" or "59"
   473  	Gate string `json:"gate,omitempty"`
   474  	// Kind: Identifies what kind of resource this is. Value: the fixed string
   475  	// "walletobjects#airportInfo".
   476  	Kind string `json:"kind,omitempty"`
   477  	// Terminal: Terminal name. Eg: "INTL" or "I"
   478  	Terminal string `json:"terminal,omitempty"`
   479  	// ForceSendFields is a list of field names (e.g. "AirportIataCode") to
   480  	// unconditionally include in API requests. By default, fields with empty or
   481  	// default values are omitted from API requests. See
   482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   483  	// details.
   484  	ForceSendFields []string `json:"-"`
   485  	// NullFields is a list of field names (e.g. "AirportIataCode") to include in
   486  	// API requests with the JSON null value. By default, fields with empty values
   487  	// are omitted from API requests. See
   488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   489  	NullFields []string `json:"-"`
   490  }
   491  
   492  func (s *AirportInfo) MarshalJSON() ([]byte, error) {
   493  	type NoMethod AirportInfo
   494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   495  }
   496  
   497  type AppLinkData struct {
   498  	// AndroidAppLinkInfo: Optional information about the partner app link. If
   499  	// included, the app link link module will be rendered on the valuable details
   500  	// on the android client.
   501  	AndroidAppLinkInfo *AppLinkDataAppLinkInfo `json:"androidAppLinkInfo,omitempty"`
   502  	// IosAppLinkInfo: Deprecated. Links to open iOS apps are not supported.
   503  	IosAppLinkInfo *AppLinkDataAppLinkInfo `json:"iosAppLinkInfo,omitempty"`
   504  	// WebAppLinkInfo: Optional information about the partner app link. If
   505  	// included, the app link link module will be rendered on the valuable details
   506  	// on the web client.
   507  	WebAppLinkInfo *AppLinkDataAppLinkInfo `json:"webAppLinkInfo,omitempty"`
   508  	// ForceSendFields is a list of field names (e.g. "AndroidAppLinkInfo") to
   509  	// unconditionally include in API requests. By default, fields with empty or
   510  	// default values are omitted from API requests. See
   511  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   512  	// details.
   513  	ForceSendFields []string `json:"-"`
   514  	// NullFields is a list of field names (e.g. "AndroidAppLinkInfo") to include
   515  	// in API requests with the JSON null value. By default, fields with empty
   516  	// values are omitted from API requests. See
   517  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   518  	NullFields []string `json:"-"`
   519  }
   520  
   521  func (s *AppLinkData) MarshalJSON() ([]byte, error) {
   522  	type NoMethod AppLinkData
   523  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   524  }
   525  
   526  type AppLinkDataAppLinkInfo struct {
   527  	// AppLogoImage: Optional image to be displayed in the App Link Module
   528  	AppLogoImage *Image `json:"appLogoImage,omitempty"`
   529  	// AppTarget: Url to follow when opening the App Link Module on clients. It
   530  	// will be used by partners to open their webpage or deeplink into their app.
   531  	AppTarget *AppLinkDataAppLinkInfoAppTarget `json:"appTarget,omitempty"`
   532  	// Description: String to be displayed in the description of the App Link
   533  	// Module Required
   534  	Description *LocalizedString `json:"description,omitempty"`
   535  	// Title: String to be displayed in the title of the App Link Module Required
   536  	Title *LocalizedString `json:"title,omitempty"`
   537  	// ForceSendFields is a list of field names (e.g. "AppLogoImage") to
   538  	// unconditionally include in API requests. By default, fields with empty or
   539  	// default values are omitted from API requests. See
   540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   541  	// details.
   542  	ForceSendFields []string `json:"-"`
   543  	// NullFields is a list of field names (e.g. "AppLogoImage") to include in API
   544  	// requests with the JSON null value. By default, fields with empty values are
   545  	// omitted from API requests. See
   546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   547  	NullFields []string `json:"-"`
   548  }
   549  
   550  func (s *AppLinkDataAppLinkInfo) MarshalJSON() ([]byte, error) {
   551  	type NoMethod AppLinkDataAppLinkInfo
   552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   553  }
   554  
   555  type AppLinkDataAppLinkInfoAppTarget struct {
   556  	// PackageName: Package name for AppTarget. For example: com.google.android.gm
   557  	PackageName string `json:"packageName,omitempty"`
   558  	// TargetUri: URI for AppTarget. The description on the URI must be set. Prefer
   559  	// setting package field instead, if this target is defined for your
   560  	// application.
   561  	TargetUri *Uri `json:"targetUri,omitempty"`
   562  	// ForceSendFields is a list of field names (e.g. "PackageName") to
   563  	// unconditionally include in API requests. By default, fields with empty or
   564  	// default values are omitted from API requests. See
   565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   566  	// details.
   567  	ForceSendFields []string `json:"-"`
   568  	// NullFields is a list of field names (e.g. "PackageName") to include in API
   569  	// requests with the JSON null value. By default, fields with empty values are
   570  	// omitted from API requests. See
   571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   572  	NullFields []string `json:"-"`
   573  }
   574  
   575  func (s *AppLinkDataAppLinkInfoAppTarget) MarshalJSON() ([]byte, error) {
   576  	type NoMethod AppLinkDataAppLinkInfoAppTarget
   577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   578  }
   579  
   580  type AuthenticationKey struct {
   581  	// Id: Available only to Smart Tap enabled partners. Contact support for
   582  	// additional guidance.
   583  	Id int64 `json:"id,omitempty"`
   584  	// PublicKeyPem: Available only to Smart Tap enabled partners. Contact support
   585  	// for additional guidance.
   586  	PublicKeyPem string `json:"publicKeyPem,omitempty"`
   587  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
   588  	// include in API requests. By default, fields with empty or default values are
   589  	// omitted from API requests. See
   590  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   591  	// details.
   592  	ForceSendFields []string `json:"-"`
   593  	// NullFields is a list of field names (e.g. "Id") to include in API requests
   594  	// with the JSON null value. By default, fields with empty values are omitted
   595  	// from API requests. See
   596  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   597  	NullFields []string `json:"-"`
   598  }
   599  
   600  func (s *AuthenticationKey) MarshalJSON() ([]byte, error) {
   601  	type NoMethod AuthenticationKey
   602  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   603  }
   604  
   605  type Barcode struct {
   606  	// AlternateText: An optional text that will override the default text that
   607  	// shows under the barcode. This field is intended for a human readable
   608  	// equivalent of the barcode value, used when the barcode cannot be scanned.
   609  	AlternateText string `json:"alternateText,omitempty"`
   610  	// Kind: Identifies what kind of resource this is. Value: the fixed string
   611  	// "walletobjects#barcode".
   612  	Kind string `json:"kind,omitempty"`
   613  	// RenderEncoding: The render encoding for the barcode. When specified, barcode
   614  	// is rendered in the given encoding. Otherwise best known encoding is chosen
   615  	// by Google.
   616  	//
   617  	// Possible values:
   618  	//   "RENDER_ENCODING_UNSPECIFIED"
   619  	//   "UTF_8" - UTF_8 encoding for barcodes. This is only supported for barcode
   620  	// type qrCode.
   621  	RenderEncoding string `json:"renderEncoding,omitempty"`
   622  	// ShowCodeText: Optional text that will be shown when the barcode is hidden
   623  	// behind a click action. This happens in cases where a pass has Smart Tap
   624  	// enabled. If not specified, a default is chosen by Google.
   625  	ShowCodeText *LocalizedString `json:"showCodeText,omitempty"`
   626  	// Type: The type of barcode.
   627  	//
   628  	// Possible values:
   629  	//   "BARCODE_TYPE_UNSPECIFIED"
   630  	//   "AZTEC" - Not supported for Rotating Barcodes.
   631  	//   "aztec" - Legacy alias for `AZTEC`. Deprecated. Not supported for Rotating
   632  	// Barcodes.
   633  	//   "CODE_39" - Not supported for Rotating Barcodes.
   634  	//   "code39" - Legacy alias for `CODE_39`. Deprecated. Not supported for
   635  	// Rotating Barcodes.
   636  	//   "CODE_128" - Not supported for Rotating Barcodes.
   637  	//   "code128" - Legacy alias for `CODE_128`. Deprecated. Not supported for
   638  	// Rotating Barcodes.
   639  	//   "CODABAR" - Not supported for Rotating Barcodes.
   640  	//   "codabar" - Legacy alias for `CODABAR`. Deprecated. Not supported for
   641  	// Rotating Barcodes.
   642  	//   "DATA_MATRIX" - A 2D matrix barcode consisting of black and white. Cells
   643  	// or modules are arranged in either a square or rectangle. Not supported for
   644  	// Rotating Barcodes.
   645  	//   "dataMatrix" - Legacy alias for `DATA_MATRIX`. Deprecated. Not supported
   646  	// for Rotating Barcodes.
   647  	//   "EAN_8" - Not supported for Rotating Barcodes.
   648  	//   "ean8" - Legacy alias for `EAN_8`. Deprecated. Not supported for Rotating
   649  	// Barcodes.
   650  	//   "EAN_13" - Not supported for Rotating Barcodes.
   651  	//   "ean13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
   652  	// Rotating Barcodes.
   653  	//   "EAN13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
   654  	// Rotating Barcodes.
   655  	//   "ITF_14" - 14 digit ITF code Not supported for Rotating Barcodes.
   656  	//   "itf14" - Legacy alias for `ITF_14`. Deprecated. Not supported for
   657  	// Rotating Barcodes.
   658  	//   "PDF_417" - Supported for Rotating Barcodes.
   659  	//   "pdf417" - Legacy alias for `PDF_417`. Deprecated.
   660  	//   "PDF417" - Legacy alias for `PDF_417`. Deprecated.
   661  	//   "QR_CODE" - Supported for Rotating Barcodes.
   662  	//   "qrCode" - Legacy alias for `QR_CODE`. Deprecated.
   663  	//   "qrcode" - Legacy alias for `QR_CODE`. Deprecated.
   664  	//   "UPC_A" - 11 or 12 digit codes Not supported for Rotating Barcodes.
   665  	//   "upcA" - Legacy alias for `UPC_A`. Deprecated. Not supported for Rotating
   666  	// Barcodes.
   667  	//   "TEXT_ONLY" - Renders the field as a text field. The `alternateText` field
   668  	// may not be used with a barcode of type `textOnly`. Not supported for
   669  	// Rotating Barcodes.
   670  	//   "textOnly" - Legacy alias for `TEXT_ONLY`. Deprecated. Not supported for
   671  	// Rotating Barcodes.
   672  	Type string `json:"type,omitempty"`
   673  	// Value: The value encoded in the barcode.
   674  	Value string `json:"value,omitempty"`
   675  	// ForceSendFields is a list of field names (e.g. "AlternateText") to
   676  	// unconditionally include in API requests. By default, fields with empty or
   677  	// default values are omitted from API requests. See
   678  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   679  	// details.
   680  	ForceSendFields []string `json:"-"`
   681  	// NullFields is a list of field names (e.g. "AlternateText") to include in API
   682  	// requests with the JSON null value. By default, fields with empty values are
   683  	// omitted from API requests. See
   684  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   685  	NullFields []string `json:"-"`
   686  }
   687  
   688  func (s *Barcode) MarshalJSON() ([]byte, error) {
   689  	type NoMethod Barcode
   690  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   691  }
   692  
   693  type BarcodeSectionDetail struct {
   694  	// FieldSelector: A reference to an existing text-based or image field to
   695  	// display.
   696  	FieldSelector *FieldSelector `json:"fieldSelector,omitempty"`
   697  	// ForceSendFields is a list of field names (e.g. "FieldSelector") to
   698  	// unconditionally include in API requests. By default, fields with empty or
   699  	// default values are omitted from API requests. See
   700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   701  	// details.
   702  	ForceSendFields []string `json:"-"`
   703  	// NullFields is a list of field names (e.g. "FieldSelector") to include in API
   704  	// requests with the JSON null value. By default, fields with empty values are
   705  	// omitted from API requests. See
   706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   707  	NullFields []string `json:"-"`
   708  }
   709  
   710  func (s *BarcodeSectionDetail) MarshalJSON() ([]byte, error) {
   711  	type NoMethod BarcodeSectionDetail
   712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   713  }
   714  
   715  // Blobstore2Info: Information to read/write to blobstore2.
   716  type Blobstore2Info struct {
   717  	// BlobGeneration: The blob generation id.
   718  	BlobGeneration int64 `json:"blobGeneration,omitempty,string"`
   719  	// BlobId: The blob id, e.g., /blobstore/prod/playground/scotty
   720  	BlobId string `json:"blobId,omitempty"`
   721  	// DownloadReadHandle: Read handle passed from Bigstore -> Scotty for a GCS
   722  	// download. This is a signed, serialized blobstore2.ReadHandle proto which
   723  	// must never be set outside of Bigstore, and is not applicable to non-GCS
   724  	// media downloads.
   725  	DownloadReadHandle string `json:"downloadReadHandle,omitempty"`
   726  	// ReadToken: The blob read token. Needed to read blobs that have not been
   727  	// replicated. Might not be available until the final call.
   728  	ReadToken string `json:"readToken,omitempty"`
   729  	// UploadMetadataContainer: Metadata passed from Blobstore -> Scotty for a new
   730  	// GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer
   731  	// proto which must never be consumed outside of Bigstore, and is not
   732  	// applicable to non-GCS media uploads.
   733  	UploadMetadataContainer string `json:"uploadMetadataContainer,omitempty"`
   734  	// ForceSendFields is a list of field names (e.g. "BlobGeneration") to
   735  	// unconditionally include in API requests. By default, fields with empty or
   736  	// default values are omitted from API requests. See
   737  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   738  	// details.
   739  	ForceSendFields []string `json:"-"`
   740  	// NullFields is a list of field names (e.g. "BlobGeneration") to include in
   741  	// API requests with the JSON null value. By default, fields with empty values
   742  	// are omitted from API requests. See
   743  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   744  	NullFields []string `json:"-"`
   745  }
   746  
   747  func (s *Blobstore2Info) MarshalJSON() ([]byte, error) {
   748  	type NoMethod Blobstore2Info
   749  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   750  }
   751  
   752  type BoardingAndSeatingInfo struct {
   753  	// BoardingDoor: Set this field only if this flight boards through more than
   754  	// one door or bridge and you want to explicitly print the door location on the
   755  	// boarding pass. Most airlines route their passengers to the right door or
   756  	// bridge by refering to doors/bridges by the `seatClass`. In those cases
   757  	// `boardingDoor` should not be set.
   758  	//
   759  	// Possible values:
   760  	//   "BOARDING_DOOR_UNSPECIFIED"
   761  	//   "FRONT"
   762  	//   "front" - Legacy alias for `FRONT`. Deprecated.
   763  	//   "BACK"
   764  	//   "back" - Legacy alias for `BACK`. Deprecated.
   765  	BoardingDoor string `json:"boardingDoor,omitempty"`
   766  	// BoardingGroup: The value of boarding group (or zone) this passenger shall
   767  	// board with. eg: "B" The label for this value will be determined by the
   768  	// `boardingPolicy` field in the `flightClass` referenced by this object.
   769  	BoardingGroup string `json:"boardingGroup,omitempty"`
   770  	// BoardingPosition: The value of boarding position. eg: "76"
   771  	BoardingPosition string `json:"boardingPosition,omitempty"`
   772  	// BoardingPrivilegeImage: A small image shown above the boarding barcode.
   773  	// Airlines can use it to communicate any special boarding privileges. In the
   774  	// event the security program logo is also set, this image might be rendered
   775  	// alongside the logo for that security program.
   776  	BoardingPrivilegeImage *Image `json:"boardingPrivilegeImage,omitempty"`
   777  	// Kind: Identifies what kind of resource this is. Value: the fixed string
   778  	// "walletobjects#boardingAndSeatingInfo".
   779  	Kind string `json:"kind,omitempty"`
   780  	// SeatAssignment: The passenger's seat assignment. To be used when there is no
   781  	// specific identifier to use in `seatNumber`. eg: "assigned at gate"
   782  	SeatAssignment *LocalizedString `json:"seatAssignment,omitempty"`
   783  	// SeatClass: The value of the seat class. eg: "Economy" or "Economy Plus"
   784  	SeatClass string `json:"seatClass,omitempty"`
   785  	// SeatNumber: The value of passenger seat. If there is no specific identifier,
   786  	// use `seatAssignment` instead. eg: "25A"
   787  	SeatNumber string `json:"seatNumber,omitempty"`
   788  	// SequenceNumber: The sequence number on the boarding pass. This usually
   789  	// matches the sequence in which the passengers checked in. Airline might use
   790  	// the number for manual boarding and bag tags. eg: "49"
   791  	SequenceNumber string `json:"sequenceNumber,omitempty"`
   792  	// ForceSendFields is a list of field names (e.g. "BoardingDoor") to
   793  	// unconditionally include in API requests. By default, fields with empty or
   794  	// default values are omitted from API requests. See
   795  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   796  	// details.
   797  	ForceSendFields []string `json:"-"`
   798  	// NullFields is a list of field names (e.g. "BoardingDoor") to include in API
   799  	// requests with the JSON null value. By default, fields with empty values are
   800  	// omitted from API requests. See
   801  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   802  	NullFields []string `json:"-"`
   803  }
   804  
   805  func (s *BoardingAndSeatingInfo) MarshalJSON() ([]byte, error) {
   806  	type NoMethod BoardingAndSeatingInfo
   807  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   808  }
   809  
   810  type BoardingAndSeatingPolicy struct {
   811  	// BoardingPolicy: Indicates the policy the airline uses for boarding. If
   812  	// unset, Google will default to `zoneBased`.
   813  	//
   814  	// Possible values:
   815  	//   "BOARDING_POLICY_UNSPECIFIED"
   816  	//   "ZONE_BASED"
   817  	//   "zoneBased" - Legacy alias for `ZONE_BASED`. Deprecated.
   818  	//   "GROUP_BASED"
   819  	//   "groupBased" - Legacy alias for `GROUP_BASED`. Deprecated.
   820  	//   "BOARDING_POLICY_OTHER"
   821  	//   "boardingPolicyOther" - Legacy alias for `BOARDING_POLICY_OTHER`.
   822  	// Deprecated.
   823  	BoardingPolicy string `json:"boardingPolicy,omitempty"`
   824  	// Kind: Identifies what kind of resource this is. Value: the fixed string
   825  	// "walletobjects#boardingAndSeatingPolicy".
   826  	Kind string `json:"kind,omitempty"`
   827  	// SeatClassPolicy: Seating policy which dictates how we display the seat
   828  	// class. If unset, Google will default to `cabinBased`.
   829  	//
   830  	// Possible values:
   831  	//   "SEAT_CLASS_POLICY_UNSPECIFIED"
   832  	//   "CABIN_BASED"
   833  	//   "cabinBased" - Legacy alias for `CABIN_BASED`. Deprecated.
   834  	//   "CLASS_BASED"
   835  	//   "classBased" - Legacy alias for `CLASS_BASED`. Deprecated.
   836  	//   "TIER_BASED"
   837  	//   "tierBased" - Legacy alias for `TIER_BASED`. Deprecated.
   838  	//   "SEAT_CLASS_POLICY_OTHER"
   839  	//   "seatClassPolicyOther" - Legacy alias for `SEAT_CLASS_POLICY_OTHER`.
   840  	// Deprecated.
   841  	SeatClassPolicy string `json:"seatClassPolicy,omitempty"`
   842  	// ForceSendFields is a list of field names (e.g. "BoardingPolicy") to
   843  	// unconditionally include in API requests. By default, fields with empty or
   844  	// default values are omitted from API requests. See
   845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   846  	// details.
   847  	ForceSendFields []string `json:"-"`
   848  	// NullFields is a list of field names (e.g. "BoardingPolicy") to include in
   849  	// API requests with the JSON null value. By default, fields with empty values
   850  	// are omitted from API requests. See
   851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   852  	NullFields []string `json:"-"`
   853  }
   854  
   855  func (s *BoardingAndSeatingPolicy) MarshalJSON() ([]byte, error) {
   856  	type NoMethod BoardingAndSeatingPolicy
   857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   858  }
   859  
   860  type CallbackOptions struct {
   861  	// UpdateRequestUrl: URL for the merchant endpoint that would be called to
   862  	// request updates. The URL should be hosted on HTTPS and robots.txt should
   863  	// allow the URL path to be accessible by UserAgent:Googlebot. Deprecated.
   864  	UpdateRequestUrl string `json:"updateRequestUrl,omitempty"`
   865  	// Url: The HTTPS url configured by the merchant. The URL should be hosted on
   866  	// HTTPS and robots.txt should allow the URL path to be accessible by
   867  	// UserAgent:Googlebot.
   868  	Url string `json:"url,omitempty"`
   869  	// ForceSendFields is a list of field names (e.g. "UpdateRequestUrl") to
   870  	// unconditionally include in API requests. By default, fields with empty or
   871  	// default values are omitted from API requests. See
   872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   873  	// details.
   874  	ForceSendFields []string `json:"-"`
   875  	// NullFields is a list of field names (e.g. "UpdateRequestUrl") to include in
   876  	// API requests with the JSON null value. By default, fields with empty values
   877  	// are omitted from API requests. See
   878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   879  	NullFields []string `json:"-"`
   880  }
   881  
   882  func (s *CallbackOptions) MarshalJSON() ([]byte, error) {
   883  	type NoMethod CallbackOptions
   884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   885  }
   886  
   887  type CardBarcodeSectionDetails struct {
   888  	// FirstBottomDetail: Optional information to display below the barcode.
   889  	FirstBottomDetail *BarcodeSectionDetail `json:"firstBottomDetail,omitempty"`
   890  	// FirstTopDetail: Optional information to display above the barcode. If
   891  	// `secondTopDetail` is defined, this will be displayed to the start side of
   892  	// this detail section.
   893  	FirstTopDetail *BarcodeSectionDetail `json:"firstTopDetail,omitempty"`
   894  	// SecondTopDetail: Optional second piece of information to display above the
   895  	// barcode. If `firstTopDetail` is defined, this will be displayed to the end
   896  	// side of this detail section.
   897  	SecondTopDetail *BarcodeSectionDetail `json:"secondTopDetail,omitempty"`
   898  	// ForceSendFields is a list of field names (e.g. "FirstBottomDetail") to
   899  	// unconditionally include in API requests. By default, fields with empty or
   900  	// default values are omitted from API requests. See
   901  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   902  	// details.
   903  	ForceSendFields []string `json:"-"`
   904  	// NullFields is a list of field names (e.g. "FirstBottomDetail") to include in
   905  	// API requests with the JSON null value. By default, fields with empty values
   906  	// are omitted from API requests. See
   907  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   908  	NullFields []string `json:"-"`
   909  }
   910  
   911  func (s *CardBarcodeSectionDetails) MarshalJSON() ([]byte, error) {
   912  	type NoMethod CardBarcodeSectionDetails
   913  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   914  }
   915  
   916  type CardRowOneItem struct {
   917  	// Item: The item to be displayed in the row. This item will be automatically
   918  	// centered.
   919  	Item *TemplateItem `json:"item,omitempty"`
   920  	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
   921  	// include in API requests. By default, fields with empty or default values are
   922  	// omitted from API requests. See
   923  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   924  	// details.
   925  	ForceSendFields []string `json:"-"`
   926  	// NullFields is a list of field names (e.g. "Item") to include in API requests
   927  	// with the JSON null value. By default, fields with empty values are omitted
   928  	// from API requests. See
   929  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   930  	NullFields []string `json:"-"`
   931  }
   932  
   933  func (s *CardRowOneItem) MarshalJSON() ([]byte, error) {
   934  	type NoMethod CardRowOneItem
   935  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   936  }
   937  
   938  type CardRowTemplateInfo struct {
   939  	// OneItem: Template for a row containing one item. Exactly one of "one_item",
   940  	// "two_items", "three_items" must be set.
   941  	OneItem *CardRowOneItem `json:"oneItem,omitempty"`
   942  	// ThreeItems: Template for a row containing three items. Exactly one of
   943  	// "one_item", "two_items", "three_items" must be set.
   944  	ThreeItems *CardRowThreeItems `json:"threeItems,omitempty"`
   945  	// TwoItems: Template for a row containing two items. Exactly one of
   946  	// "one_item", "two_items", "three_items" must be set.
   947  	TwoItems *CardRowTwoItems `json:"twoItems,omitempty"`
   948  	// ForceSendFields is a list of field names (e.g. "OneItem") to unconditionally
   949  	// include in API requests. By default, fields with empty or default values are
   950  	// omitted from API requests. See
   951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   952  	// details.
   953  	ForceSendFields []string `json:"-"`
   954  	// NullFields is a list of field names (e.g. "OneItem") to include in API
   955  	// requests with the JSON null value. By default, fields with empty values are
   956  	// omitted from API requests. See
   957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   958  	NullFields []string `json:"-"`
   959  }
   960  
   961  func (s *CardRowTemplateInfo) MarshalJSON() ([]byte, error) {
   962  	type NoMethod CardRowTemplateInfo
   963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   964  }
   965  
   966  type CardRowThreeItems struct {
   967  	// EndItem: The item to be displayed at the end of the row. This item will be
   968  	// aligned to the right.
   969  	EndItem *TemplateItem `json:"endItem,omitempty"`
   970  	// MiddleItem: The item to be displayed in the middle of the row. This item
   971  	// will be centered between the start and end items.
   972  	MiddleItem *TemplateItem `json:"middleItem,omitempty"`
   973  	// StartItem: The item to be displayed at the start of the row. This item will
   974  	// be aligned to the left.
   975  	StartItem *TemplateItem `json:"startItem,omitempty"`
   976  	// ForceSendFields is a list of field names (e.g. "EndItem") to unconditionally
   977  	// include in API requests. By default, fields with empty or default values are
   978  	// omitted from API requests. See
   979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   980  	// details.
   981  	ForceSendFields []string `json:"-"`
   982  	// NullFields is a list of field names (e.g. "EndItem") to include in API
   983  	// requests with the JSON null value. By default, fields with empty values are
   984  	// omitted from API requests. See
   985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   986  	NullFields []string `json:"-"`
   987  }
   988  
   989  func (s *CardRowThreeItems) MarshalJSON() ([]byte, error) {
   990  	type NoMethod CardRowThreeItems
   991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   992  }
   993  
   994  type CardRowTwoItems struct {
   995  	// EndItem: The item to be displayed at the end of the row. This item will be
   996  	// aligned to the right.
   997  	EndItem *TemplateItem `json:"endItem,omitempty"`
   998  	// StartItem: The item to be displayed at the start of the row. This item will
   999  	// be aligned to the left.
  1000  	StartItem *TemplateItem `json:"startItem,omitempty"`
  1001  	// ForceSendFields is a list of field names (e.g. "EndItem") to unconditionally
  1002  	// include in API requests. By default, fields with empty or default values are
  1003  	// omitted from API requests. See
  1004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1005  	// details.
  1006  	ForceSendFields []string `json:"-"`
  1007  	// NullFields is a list of field names (e.g. "EndItem") to include in API
  1008  	// requests with the JSON null value. By default, fields with empty values are
  1009  	// omitted from API requests. See
  1010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1011  	NullFields []string `json:"-"`
  1012  }
  1013  
  1014  func (s *CardRowTwoItems) MarshalJSON() ([]byte, error) {
  1015  	type NoMethod CardRowTwoItems
  1016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1017  }
  1018  
  1019  type CardTemplateOverride struct {
  1020  	// CardRowTemplateInfos: Template information for rows in the card view. At
  1021  	// most three rows are allowed to be specified.
  1022  	CardRowTemplateInfos []*CardRowTemplateInfo `json:"cardRowTemplateInfos,omitempty"`
  1023  	// ForceSendFields is a list of field names (e.g. "CardRowTemplateInfos") to
  1024  	// unconditionally include in API requests. By default, fields with empty or
  1025  	// default values are omitted from API requests. See
  1026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1027  	// details.
  1028  	ForceSendFields []string `json:"-"`
  1029  	// NullFields is a list of field names (e.g. "CardRowTemplateInfos") to include
  1030  	// in API requests with the JSON null value. By default, fields with empty
  1031  	// values are omitted from API requests. See
  1032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1033  	NullFields []string `json:"-"`
  1034  }
  1035  
  1036  func (s *CardTemplateOverride) MarshalJSON() ([]byte, error) {
  1037  	type NoMethod CardTemplateOverride
  1038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1039  }
  1040  
  1041  type ClassTemplateInfo struct {
  1042  	// CardBarcodeSectionDetails: Specifies extra information to be displayed above
  1043  	// and below the barcode.
  1044  	CardBarcodeSectionDetails *CardBarcodeSectionDetails `json:"cardBarcodeSectionDetails,omitempty"`
  1045  	// CardTemplateOverride: Override for the card view.
  1046  	CardTemplateOverride *CardTemplateOverride `json:"cardTemplateOverride,omitempty"`
  1047  	// DetailsTemplateOverride: Override for the details view (beneath the card
  1048  	// view).
  1049  	DetailsTemplateOverride *DetailsTemplateOverride `json:"detailsTemplateOverride,omitempty"`
  1050  	// ListTemplateOverride: Override for the passes list view.
  1051  	ListTemplateOverride *ListTemplateOverride `json:"listTemplateOverride,omitempty"`
  1052  	// ForceSendFields is a list of field names (e.g. "CardBarcodeSectionDetails")
  1053  	// to unconditionally include in API requests. By default, fields with empty or
  1054  	// default values are omitted from API requests. See
  1055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1056  	// details.
  1057  	ForceSendFields []string `json:"-"`
  1058  	// NullFields is a list of field names (e.g. "CardBarcodeSectionDetails") to
  1059  	// include in API requests with the JSON null value. By default, fields with
  1060  	// empty values are omitted from API requests. See
  1061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1062  	NullFields []string `json:"-"`
  1063  }
  1064  
  1065  func (s *ClassTemplateInfo) MarshalJSON() ([]byte, error) {
  1066  	type NoMethod ClassTemplateInfo
  1067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1068  }
  1069  
  1070  // CompositeMedia: A sequence of media data references representing composite
  1071  // data. Introduced to support Bigstore composite objects. For details, visit
  1072  // http://go/bigstore-composites.
  1073  type CompositeMedia struct {
  1074  	// BlobRef: Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This
  1075  	// should be the byte representation of a blobstore.BlobRef. Since Blobstore is
  1076  	// deprecating v1, use blobstore2_info instead. For now, any v2 blob will also
  1077  	// be represented in this field as v1 BlobRef.
  1078  	BlobRef string `json:"blobRef,omitempty"`
  1079  	// Blobstore2Info: Blobstore v2 info, set if reference_type is BLOBSTORE_REF
  1080  	// and it refers to a v2 blob.
  1081  	Blobstore2Info *Blobstore2Info `json:"blobstore2Info,omitempty"`
  1082  	// CosmoBinaryReference: A binary data reference for a media download. Serves
  1083  	// as a technology-agnostic binary reference in some Google infrastructure.
  1084  	// This value is a serialized storage_cosmo.BinaryReference proto. Storing it
  1085  	// as bytes is a hack to get around the fact that the cosmo proto (as well as
  1086  	// others it includes) doesn't support JavaScript. This prevents us from
  1087  	// including the actual type of this field.
  1088  	CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
  1089  	// Crc32cHash: crc32.c hash for the payload.
  1090  	Crc32cHash int64 `json:"crc32cHash,omitempty"`
  1091  	// Inline: Media data, set if reference_type is INLINE
  1092  	Inline string `json:"inline,omitempty"`
  1093  	// Length: Size of the data, in bytes
  1094  	Length int64 `json:"length,omitempty,string"`
  1095  	// Md5Hash: MD5 hash for the payload.
  1096  	Md5Hash string `json:"md5Hash,omitempty"`
  1097  	// ObjectId: Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
  1098  	ObjectId *ObjectId `json:"objectId,omitempty"`
  1099  	// Path: Path to the data, set if reference_type is PATH
  1100  	Path string `json:"path,omitempty"`
  1101  	// ReferenceType: Describes what the field reference contains.
  1102  	//
  1103  	// Possible values:
  1104  	//   "PATH" - Reference contains a GFS path or a local path.
  1105  	//   "BLOB_REF" - Reference points to a blobstore object. This could be either
  1106  	// a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info
  1107  	// first, since v1 is being deprecated.
  1108  	//   "INLINE" - Data is included into this proto buffer
  1109  	//   "BIGSTORE_REF" - Reference points to a bigstore object
  1110  	//   "COSMO_BINARY_REFERENCE" - Indicates the data is stored in
  1111  	// cosmo_binary_reference.
  1112  	ReferenceType string `json:"referenceType,omitempty"`
  1113  	// Sha1Hash: SHA-1 hash for the payload.
  1114  	Sha1Hash string `json:"sha1Hash,omitempty"`
  1115  	// ForceSendFields is a list of field names (e.g. "BlobRef") to unconditionally
  1116  	// include in API requests. By default, fields with empty or default values are
  1117  	// 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. "BlobRef") 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 *CompositeMedia) MarshalJSON() ([]byte, error) {
  1129  	type NoMethod CompositeMedia
  1130  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1131  }
  1132  
  1133  // ContentTypeInfo: Detailed Content-Type information from Scotty. The
  1134  // Content-Type of the media will typically be filled in by the header or
  1135  // Scotty's best_guess, but this extended information provides the backend with
  1136  // more information so that it can make a better decision if needed. This is
  1137  // only used on media upload requests from Scotty.
  1138  type ContentTypeInfo struct {
  1139  	// BestGuess: Scotty's best guess of what the content type of the file is.
  1140  	BestGuess string `json:"bestGuess,omitempty"`
  1141  	// FromBytes: The content type of the file derived by looking at specific bytes
  1142  	// (i.e. "magic bytes") of the actual file.
  1143  	FromBytes string `json:"fromBytes,omitempty"`
  1144  	// FromFileName: The content type of the file derived from the file extension
  1145  	// of the original file name used by the client.
  1146  	FromFileName string `json:"fromFileName,omitempty"`
  1147  	// FromHeader: The content type of the file as specified in the request
  1148  	// headers, multipart headers, or RUPIO start request.
  1149  	FromHeader string `json:"fromHeader,omitempty"`
  1150  	// FromUrlPath: The content type of the file derived from the file extension of
  1151  	// the URL path. The URL path is assumed to represent a file name (which is
  1152  	// typically only true for agents that are providing a REST API).
  1153  	FromUrlPath string `json:"fromUrlPath,omitempty"`
  1154  	// ForceSendFields is a list of field names (e.g. "BestGuess") to
  1155  	// unconditionally include in API requests. By default, fields with empty or
  1156  	// default values are omitted from API requests. See
  1157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1158  	// details.
  1159  	ForceSendFields []string `json:"-"`
  1160  	// NullFields is a list of field names (e.g. "BestGuess") to include in API
  1161  	// requests with the JSON null value. By default, fields with empty values are
  1162  	// omitted from API requests. See
  1163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1164  	NullFields []string `json:"-"`
  1165  }
  1166  
  1167  func (s *ContentTypeInfo) MarshalJSON() ([]byte, error) {
  1168  	type NoMethod ContentTypeInfo
  1169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1170  }
  1171  
  1172  type DateTime struct {
  1173  	// Date: An ISO 8601 extended format date/time. Offset may or may not be
  1174  	// required (refer to the parent field's documentation). Time may be specified
  1175  	// up to nanosecond precision. Offsets may be specified with seconds precision
  1176  	// (even though offset seconds is not part of ISO 8601). For example:
  1177  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  1178  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  1179  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  1180  	// hours before UTC (same instant in time as the above example). If the
  1181  	// date/time is intended for a physical location in New York, this would be the
  1182  	// equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
  1183  	// regions that observe Daylight Saving Time (or Summer Time), depending on the
  1184  	// time of the year. `1985-04-12T19:20:50.52` would be 20 minutes and 50.52
  1185  	// seconds after the 19th hour of April 12th, 1985 with no offset information.
  1186  	// Providing an offset makes this an absolute instant in time around the world.
  1187  	// The date/time will be adjusted based on the user's time zone. For example, a
  1188  	// time of `2018-06-19T18:30:00-04:00` will be 18:30:00 for a user in New York
  1189  	// and 15:30:00 for a user in Los Angeles. Omitting the offset makes this a
  1190  	// local date/time, representing several instants in time around the world. The
  1191  	// date/time will always be in the user's current time zone. For example, a
  1192  	// time of `2018-06-19T18:30:00` will be 18:30:00 for a user in New York and
  1193  	// also 18:30:00 for a user in Los Angeles. This is useful when the same local
  1194  	// date/time should apply to many physical locations across several time zones.
  1195  	Date string `json:"date,omitempty"`
  1196  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  1197  	// include in API requests. By default, fields with empty or default values are
  1198  	// omitted from API requests. See
  1199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1200  	// details.
  1201  	ForceSendFields []string `json:"-"`
  1202  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  1203  	// with the JSON null value. By default, fields with empty values are omitted
  1204  	// from API requests. See
  1205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1206  	NullFields []string `json:"-"`
  1207  }
  1208  
  1209  func (s *DateTime) MarshalJSON() ([]byte, error) {
  1210  	type NoMethod DateTime
  1211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1212  }
  1213  
  1214  type DetailsItemInfo struct {
  1215  	// Item: The item to be displayed in the details list.
  1216  	Item *TemplateItem `json:"item,omitempty"`
  1217  	// ForceSendFields is a list of field names (e.g. "Item") to unconditionally
  1218  	// include in API requests. By default, fields with empty or default values are
  1219  	// omitted from API requests. See
  1220  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1221  	// details.
  1222  	ForceSendFields []string `json:"-"`
  1223  	// NullFields is a list of field names (e.g. "Item") to include in API requests
  1224  	// with the JSON null value. By default, fields with empty values are omitted
  1225  	// from API requests. See
  1226  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1227  	NullFields []string `json:"-"`
  1228  }
  1229  
  1230  func (s *DetailsItemInfo) MarshalJSON() ([]byte, error) {
  1231  	type NoMethod DetailsItemInfo
  1232  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1233  }
  1234  
  1235  type DetailsTemplateOverride struct {
  1236  	// DetailsItemInfos: Information for the "nth" item displayed in the details
  1237  	// list.
  1238  	DetailsItemInfos []*DetailsItemInfo `json:"detailsItemInfos,omitempty"`
  1239  	// ForceSendFields is a list of field names (e.g. "DetailsItemInfos") to
  1240  	// unconditionally include in API requests. By default, fields with empty or
  1241  	// default values are omitted from API requests. See
  1242  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1243  	// details.
  1244  	ForceSendFields []string `json:"-"`
  1245  	// NullFields is a list of field names (e.g. "DetailsItemInfos") to include in
  1246  	// API requests with the JSON null value. By default, fields with empty values
  1247  	// are omitted from API requests. See
  1248  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1249  	NullFields []string `json:"-"`
  1250  }
  1251  
  1252  func (s *DetailsTemplateOverride) MarshalJSON() ([]byte, error) {
  1253  	type NoMethod DetailsTemplateOverride
  1254  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1255  }
  1256  
  1257  // DeviceContext: Device context associated with the object.
  1258  type DeviceContext struct {
  1259  	// DeviceToken: If set, redemption information will only be returned to the
  1260  	// given device upon activation of the object. This should not be used as a
  1261  	// stable identifier to trace a user's device. It can change across different
  1262  	// passes for the same device or even across different activations for the same
  1263  	// device. When setting this, callers must also set has_linked_device on the
  1264  	// object being activated.
  1265  	DeviceToken string `json:"deviceToken,omitempty"`
  1266  	// ForceSendFields is a list of field names (e.g. "DeviceToken") to
  1267  	// unconditionally include in API requests. By default, fields with empty or
  1268  	// default values are omitted from API requests. See
  1269  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1270  	// details.
  1271  	ForceSendFields []string `json:"-"`
  1272  	// NullFields is a list of field names (e.g. "DeviceToken") to include in API
  1273  	// requests with the JSON null value. By default, fields with empty values are
  1274  	// omitted from API requests. See
  1275  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1276  	NullFields []string `json:"-"`
  1277  }
  1278  
  1279  func (s *DeviceContext) MarshalJSON() ([]byte, error) {
  1280  	type NoMethod DeviceContext
  1281  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1282  }
  1283  
  1284  // DiffChecksumsResponse: Backend response for a Diff get checksums response.
  1285  // For details on the Scotty Diff protocol, visit
  1286  // http://go/scotty-diff-protocol.
  1287  type DiffChecksumsResponse struct {
  1288  	// ChecksumsLocation: Exactly one of these fields must be populated. If
  1289  	// checksums_location is filled, the server will return the corresponding
  1290  	// contents to the user. If object_location is filled, the server will
  1291  	// calculate the checksums based on the content there and return that to the
  1292  	// user. For details on the format of the checksums, see
  1293  	// http://go/scotty-diff-protocol.
  1294  	ChecksumsLocation *CompositeMedia `json:"checksumsLocation,omitempty"`
  1295  	// ChunkSizeBytes: The chunk size of checksums. Must be a multiple of 256KB.
  1296  	ChunkSizeBytes int64 `json:"chunkSizeBytes,omitempty,string"`
  1297  	// ObjectLocation: If set, calculate the checksums based on the contents and
  1298  	// return them to the caller.
  1299  	ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
  1300  	// ObjectSizeBytes: The total size of the server object.
  1301  	ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
  1302  	// ObjectVersion: The object version of the object the checksums are being
  1303  	// returned for.
  1304  	ObjectVersion string `json:"objectVersion,omitempty"`
  1305  	// ForceSendFields is a list of field names (e.g. "ChecksumsLocation") to
  1306  	// unconditionally include in API requests. By default, fields with empty or
  1307  	// default values are omitted from API requests. See
  1308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1309  	// details.
  1310  	ForceSendFields []string `json:"-"`
  1311  	// NullFields is a list of field names (e.g. "ChecksumsLocation") to include in
  1312  	// API requests with the JSON null value. By default, fields with empty values
  1313  	// are omitted from API requests. See
  1314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1315  	NullFields []string `json:"-"`
  1316  }
  1317  
  1318  func (s *DiffChecksumsResponse) MarshalJSON() ([]byte, error) {
  1319  	type NoMethod DiffChecksumsResponse
  1320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1321  }
  1322  
  1323  // DiffDownloadResponse: Backend response for a Diff download response. For
  1324  // details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
  1325  type DiffDownloadResponse struct {
  1326  	// ObjectLocation: The original object location.
  1327  	ObjectLocation *CompositeMedia `json:"objectLocation,omitempty"`
  1328  	// ForceSendFields is a list of field names (e.g. "ObjectLocation") to
  1329  	// unconditionally include in API requests. By default, fields with empty or
  1330  	// default values are omitted from API requests. See
  1331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1332  	// details.
  1333  	ForceSendFields []string `json:"-"`
  1334  	// NullFields is a list of field names (e.g. "ObjectLocation") to include in
  1335  	// API requests with the JSON null value. By default, fields with empty values
  1336  	// are omitted from API requests. See
  1337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1338  	NullFields []string `json:"-"`
  1339  }
  1340  
  1341  func (s *DiffDownloadResponse) MarshalJSON() ([]byte, error) {
  1342  	type NoMethod DiffDownloadResponse
  1343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1344  }
  1345  
  1346  // DiffUploadRequest: A Diff upload request. For details on the Scotty Diff
  1347  // protocol, visit http://go/scotty-diff-protocol.
  1348  type DiffUploadRequest struct {
  1349  	// ChecksumsInfo: The location of the checksums for the new object. Agents must
  1350  	// clone the object located here, as the upload server will delete the contents
  1351  	// once a response is received. For details on the format of the checksums, see
  1352  	// http://go/scotty-diff-protocol.
  1353  	ChecksumsInfo *CompositeMedia `json:"checksumsInfo,omitempty"`
  1354  	// ObjectInfo: The location of the new object. Agents must clone the object
  1355  	// located here, as the upload server will delete the contents once a response
  1356  	// is received.
  1357  	ObjectInfo *CompositeMedia `json:"objectInfo,omitempty"`
  1358  	// ObjectVersion: The object version of the object that is the base version the
  1359  	// incoming diff script will be applied to. This field will always be filled
  1360  	// in.
  1361  	ObjectVersion string `json:"objectVersion,omitempty"`
  1362  	// ForceSendFields is a list of field names (e.g. "ChecksumsInfo") to
  1363  	// unconditionally include in API requests. By default, fields with empty or
  1364  	// default values are omitted from API requests. See
  1365  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1366  	// details.
  1367  	ForceSendFields []string `json:"-"`
  1368  	// NullFields is a list of field names (e.g. "ChecksumsInfo") to include in API
  1369  	// requests with the JSON null value. By default, fields with empty values are
  1370  	// omitted from API requests. See
  1371  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1372  	NullFields []string `json:"-"`
  1373  }
  1374  
  1375  func (s *DiffUploadRequest) MarshalJSON() ([]byte, error) {
  1376  	type NoMethod DiffUploadRequest
  1377  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1378  }
  1379  
  1380  // DiffUploadResponse: Backend response for a Diff upload request. For details
  1381  // on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
  1382  type DiffUploadResponse struct {
  1383  	// ObjectVersion: The object version of the object at the server. Must be
  1384  	// included in the end notification response. The version in the end
  1385  	// notification response must correspond to the new version of the object that
  1386  	// is now stored at the server, after the upload.
  1387  	ObjectVersion string `json:"objectVersion,omitempty"`
  1388  	// OriginalObject: The location of the original file for a diff upload request.
  1389  	// Must be filled in if responding to an upload start notification.
  1390  	OriginalObject *CompositeMedia `json:"originalObject,omitempty"`
  1391  	// ForceSendFields is a list of field names (e.g. "ObjectVersion") to
  1392  	// unconditionally include in API requests. By default, fields with empty or
  1393  	// default values are omitted from API requests. See
  1394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1395  	// details.
  1396  	ForceSendFields []string `json:"-"`
  1397  	// NullFields is a list of field names (e.g. "ObjectVersion") to include in API
  1398  	// requests with the JSON null value. By default, fields with empty values are
  1399  	// omitted from API requests. See
  1400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1401  	NullFields []string `json:"-"`
  1402  }
  1403  
  1404  func (s *DiffUploadResponse) MarshalJSON() ([]byte, error) {
  1405  	type NoMethod DiffUploadResponse
  1406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1407  }
  1408  
  1409  // DiffVersionResponse: Backend response for a Diff get version response. For
  1410  // details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.
  1411  type DiffVersionResponse struct {
  1412  	// ObjectSizeBytes: The total size of the server object.
  1413  	ObjectSizeBytes int64 `json:"objectSizeBytes,omitempty,string"`
  1414  	// ObjectVersion: The version of the object stored at the server.
  1415  	ObjectVersion string `json:"objectVersion,omitempty"`
  1416  	// ForceSendFields is a list of field names (e.g. "ObjectSizeBytes") to
  1417  	// unconditionally include in API requests. By default, fields with empty or
  1418  	// default values are omitted from API requests. See
  1419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1420  	// details.
  1421  	ForceSendFields []string `json:"-"`
  1422  	// NullFields is a list of field names (e.g. "ObjectSizeBytes") to include in
  1423  	// API requests with the JSON null value. By default, fields with empty values
  1424  	// are omitted from API requests. See
  1425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1426  	NullFields []string `json:"-"`
  1427  }
  1428  
  1429  func (s *DiffVersionResponse) MarshalJSON() ([]byte, error) {
  1430  	type NoMethod DiffVersionResponse
  1431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1432  }
  1433  
  1434  // DiscoverableProgram: Information about how a class may be discovered and
  1435  // instantiated from within the Android Pay app. This is done by searching for
  1436  // a loyalty or gift card program and scanning or manually entering.
  1437  type DiscoverableProgram struct {
  1438  	// MerchantSigninInfo: Information about the ability to signin and add a
  1439  	// valuable for this program through a merchant site. Used when
  1440  	// MERCHANT_HOSTED_SIGNIN is enabled.
  1441  	MerchantSigninInfo *DiscoverableProgramMerchantSigninInfo `json:"merchantSigninInfo,omitempty"`
  1442  	// MerchantSignupInfo: Information about the ability to signup and add a
  1443  	// valuable for this program through a merchant site. Used when
  1444  	// MERCHANT_HOSTED_SIGNUP is enabled.
  1445  	MerchantSignupInfo *DiscoverableProgramMerchantSignupInfo `json:"merchantSignupInfo,omitempty"`
  1446  	// State: Visibility state of the discoverable program.
  1447  	//
  1448  	// Possible values:
  1449  	//   "STATE_UNSPECIFIED"
  1450  	//   "TRUSTED_TESTERS" - Visible only to testers that have access to issuer
  1451  	// account.
  1452  	//   "trustedTesters" - Legacy alias for `TRUSTED_TESTERS`. Deprecated.
  1453  	//   "LIVE" - Visible to all.
  1454  	//   "live" - Legacy alias for `LIVE`. Deprecated.
  1455  	//   "DISABLED" - Not visible.
  1456  	//   "disabled" - Legacy alias for `DISABLED`. Deprecated.
  1457  	State string `json:"state,omitempty"`
  1458  	// ForceSendFields is a list of field names (e.g. "MerchantSigninInfo") to
  1459  	// unconditionally include in API requests. By default, fields with empty or
  1460  	// default values are omitted from API requests. See
  1461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1462  	// details.
  1463  	ForceSendFields []string `json:"-"`
  1464  	// NullFields is a list of field names (e.g. "MerchantSigninInfo") to include
  1465  	// in API requests with the JSON null value. By default, fields with empty
  1466  	// values are omitted from API requests. See
  1467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1468  	NullFields []string `json:"-"`
  1469  }
  1470  
  1471  func (s *DiscoverableProgram) MarshalJSON() ([]byte, error) {
  1472  	type NoMethod DiscoverableProgram
  1473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1474  }
  1475  
  1476  // DiscoverableProgramMerchantSigninInfo: Information about the merchant hosted
  1477  // signin flow for a program.
  1478  type DiscoverableProgramMerchantSigninInfo struct {
  1479  	// SigninWebsite: The URL to direct the user to for the merchant's signin site.
  1480  	SigninWebsite *Uri `json:"signinWebsite,omitempty"`
  1481  	// ForceSendFields is a list of field names (e.g. "SigninWebsite") to
  1482  	// unconditionally include in API requests. By default, fields with empty or
  1483  	// default values are omitted from API requests. See
  1484  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1485  	// details.
  1486  	ForceSendFields []string `json:"-"`
  1487  	// NullFields is a list of field names (e.g. "SigninWebsite") to include in API
  1488  	// requests with the JSON null value. By default, fields with empty values are
  1489  	// omitted from API requests. See
  1490  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1491  	NullFields []string `json:"-"`
  1492  }
  1493  
  1494  func (s *DiscoverableProgramMerchantSigninInfo) MarshalJSON() ([]byte, error) {
  1495  	type NoMethod DiscoverableProgramMerchantSigninInfo
  1496  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1497  }
  1498  
  1499  // DiscoverableProgramMerchantSignupInfo: Information about the merchant hosted
  1500  // signup flow for a program.
  1501  type DiscoverableProgramMerchantSignupInfo struct {
  1502  	// SignupSharedDatas:  User data that is sent in a POST request to the signup
  1503  	// website URL. This information is encoded and then shared so that the
  1504  	// merchant's website can prefill fields used to enroll the user for the
  1505  	// discoverable program.
  1506  	//
  1507  	// Possible values:
  1508  	//   "SHARED_DATA_TYPE_UNSPECIFIED"
  1509  	//   "FIRST_NAME"
  1510  	//   "LAST_NAME"
  1511  	//   "STREET_ADDRESS" - single line address field
  1512  	//   "ADDRESS_LINE_1" - multi line address fields
  1513  	//   "ADDRESS_LINE_2"
  1514  	//   "ADDRESS_LINE_3"
  1515  	//   "CITY"
  1516  	//   "STATE"
  1517  	//   "ZIPCODE"
  1518  	//   "COUNTRY"
  1519  	//   "EMAIL"
  1520  	//   "PHONE"
  1521  	SignupSharedDatas []string `json:"signupSharedDatas,omitempty"`
  1522  	// SignupWebsite: The URL to direct the user to for the merchant's signup site.
  1523  	SignupWebsite *Uri `json:"signupWebsite,omitempty"`
  1524  	// ForceSendFields is a list of field names (e.g. "SignupSharedDatas") 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. "SignupSharedDatas") to include in
  1531  	// API requests with the JSON null value. By default, fields with empty values
  1532  	// are 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 *DiscoverableProgramMerchantSignupInfo) MarshalJSON() ([]byte, error) {
  1538  	type NoMethod DiscoverableProgramMerchantSignupInfo
  1539  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1540  }
  1541  
  1542  // DownloadParameters: Parameters specific to media downloads.
  1543  type DownloadParameters struct {
  1544  	// AllowGzipCompression: A boolean to be returned in the response to Scotty.
  1545  	// Allows/disallows gzip encoding of the payload content when the server thinks
  1546  	// it's advantageous (hence, does not guarantee compression) which allows
  1547  	// Scotty to GZip the response to the client.
  1548  	AllowGzipCompression bool `json:"allowGzipCompression,omitempty"`
  1549  	// IgnoreRange: Determining whether or not Apiary should skip the inclusion of
  1550  	// any Content-Range header on its response to Scotty.
  1551  	IgnoreRange bool `json:"ignoreRange,omitempty"`
  1552  	// ForceSendFields is a list of field names (e.g. "AllowGzipCompression") to
  1553  	// unconditionally include in API requests. By default, fields with empty or
  1554  	// default values are omitted from API requests. See
  1555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1556  	// details.
  1557  	ForceSendFields []string `json:"-"`
  1558  	// NullFields is a list of field names (e.g. "AllowGzipCompression") to include
  1559  	// in API requests with the JSON null value. By default, fields with empty
  1560  	// values are omitted from API requests. See
  1561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1562  	NullFields []string `json:"-"`
  1563  }
  1564  
  1565  func (s *DownloadParameters) MarshalJSON() ([]byte, error) {
  1566  	type NoMethod DownloadParameters
  1567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1568  }
  1569  
  1570  type EventDateTime struct {
  1571  	// CustomDoorsOpenLabel: A custom label to use for the doors open value
  1572  	// (`doorsOpen`) on the card detail view. This should only be used if the
  1573  	// default "Doors Open" label or one of the `doorsOpenLabel` options is not
  1574  	// sufficient. Both `doorsOpenLabel` and `customDoorsOpenLabel` may not be set.
  1575  	// If neither is set, the label will default to "Doors Open", localized. If the
  1576  	// doors open field is unset, this label will not be used.
  1577  	CustomDoorsOpenLabel *LocalizedString `json:"customDoorsOpenLabel,omitempty"`
  1578  	// DoorsOpen: The date/time when the doors open at the venue. This is an ISO
  1579  	// 8601 extended format date/time, with or without an offset. Time may be
  1580  	// specified up to nanosecond precision. Offsets may be specified with seconds
  1581  	// precision (even though offset seconds is not part of ISO 8601). For example:
  1582  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  1583  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  1584  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  1585  	// hours before UTC (same instant in time as the above example). If the event
  1586  	// were in New York, this would be the equivalent of Eastern Daylight Time
  1587  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  1588  	// Time (or Summer Time), depending on the time of the year.
  1589  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  1590  	// 19th hour of April 12th, 1985 with no offset information. The portion of the
  1591  	// date/time without the offset is considered the "local date/time". This
  1592  	// should be the local date/time at the venue. For example, if the event occurs
  1593  	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
  1594  	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
  1595  	// hours before UTC, an offset of `-04:00` may be appended. Without offset
  1596  	// information, some rich features may not be available.
  1597  	DoorsOpen string `json:"doorsOpen,omitempty"`
  1598  	// DoorsOpenLabel: The label to use for the doors open value (`doorsOpen`) on
  1599  	// the card detail view. Each available option maps to a set of localized
  1600  	// strings, so that translations are shown to the user based on their locale.
  1601  	// Both `doorsOpenLabel` and `customDoorsOpenLabel` may not be set. If neither
  1602  	// is set, the label will default to "Doors Open", localized. If the doors open
  1603  	// field is unset, this label will not be used.
  1604  	//
  1605  	// Possible values:
  1606  	//   "DOORS_OPEN_LABEL_UNSPECIFIED"
  1607  	//   "DOORS_OPEN"
  1608  	//   "doorsOpen" - Legacy alias for `DOORS_OPEN`. Deprecated.
  1609  	//   "GATES_OPEN"
  1610  	//   "gatesOpen" - Legacy alias for `GATES_OPEN`. Deprecated.
  1611  	DoorsOpenLabel string `json:"doorsOpenLabel,omitempty"`
  1612  	// End: The date/time when the event ends. If the event spans multiple days, it
  1613  	// should be the end date/time on the last day. This is an ISO 8601 extended
  1614  	// format date/time, with or without an offset. Time may be specified up to
  1615  	// nanosecond precision. Offsets may be specified with seconds precision (even
  1616  	// though offset seconds is not part of ISO 8601). For example:
  1617  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  1618  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  1619  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  1620  	// hours before UTC (same instant in time as the above example). If the event
  1621  	// were in New York, this would be the equivalent of Eastern Daylight Time
  1622  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  1623  	// Time (or Summer Time), depending on the time of the year.
  1624  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  1625  	// 19th hour of April 12th, 1985 with no offset information. The portion of the
  1626  	// date/time without the offset is considered the "local date/time". This
  1627  	// should be the local date/time at the venue. For example, if the event occurs
  1628  	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
  1629  	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
  1630  	// hours before UTC, an offset of `-04:00` may be appended. Without offset
  1631  	// information, some rich features may not be available.
  1632  	End string `json:"end,omitempty"`
  1633  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1634  	// "walletobjects#eventDateTime".
  1635  	Kind string `json:"kind,omitempty"`
  1636  	// Start: The date/time when the event starts. If the event spans multiple
  1637  	// days, it should be the start date/time on the first day. This is an ISO 8601
  1638  	// extended format date/time, with or without an offset. Time may be specified
  1639  	// up to nanosecond precision. Offsets may be specified with seconds precision
  1640  	// (even though offset seconds is not part of ISO 8601). For example:
  1641  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  1642  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  1643  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  1644  	// hours before UTC (same instant in time as the above example). If the event
  1645  	// were in New York, this would be the equivalent of Eastern Daylight Time
  1646  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  1647  	// Time (or Summer Time), depending on the time of the year.
  1648  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  1649  	// 19th hour of April 12th, 1985 with no offset information. The portion of the
  1650  	// date/time without the offset is considered the "local date/time". This
  1651  	// should be the local date/time at the venue. For example, if the event occurs
  1652  	// at the 20th hour of June 5th, 2018 at the venue, the local date/time portion
  1653  	// should be `2018-06-05T20:00:00`. If the local date/time at the venue is 4
  1654  	// hours before UTC, an offset of `-04:00` may be appended. Without offset
  1655  	// information, some rich features may not be available.
  1656  	Start string `json:"start,omitempty"`
  1657  	// ForceSendFields is a list of field names (e.g. "CustomDoorsOpenLabel") 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. "CustomDoorsOpenLabel") to include
  1664  	// in API requests with the JSON null value. By default, fields with empty
  1665  	// values are 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 *EventDateTime) MarshalJSON() ([]byte, error) {
  1671  	type NoMethod EventDateTime
  1672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1673  }
  1674  
  1675  type EventReservationInfo struct {
  1676  	// ConfirmationCode: The confirmation code of the event reservation. This may
  1677  	// also take the form of an "order number", "confirmation number", "reservation
  1678  	// number", or other equivalent.
  1679  	ConfirmationCode string `json:"confirmationCode,omitempty"`
  1680  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1681  	// "walletobjects#eventReservationInfo".
  1682  	Kind string `json:"kind,omitempty"`
  1683  	// ForceSendFields is a list of field names (e.g. "ConfirmationCode") to
  1684  	// unconditionally include in API requests. By default, fields with empty or
  1685  	// default values are omitted from API requests. See
  1686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1687  	// details.
  1688  	ForceSendFields []string `json:"-"`
  1689  	// NullFields is a list of field names (e.g. "ConfirmationCode") to include in
  1690  	// API requests with the JSON null value. By default, fields with empty values
  1691  	// are omitted from API requests. See
  1692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1693  	NullFields []string `json:"-"`
  1694  }
  1695  
  1696  func (s *EventReservationInfo) MarshalJSON() ([]byte, error) {
  1697  	type NoMethod EventReservationInfo
  1698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1699  }
  1700  
  1701  type EventSeat struct {
  1702  	// Gate: The gate the ticket holder should enter to get to their seat, such as
  1703  	// "A" or "West". This field is localizable so you may translate words or use
  1704  	// different alphabets for the characters in an identifier.
  1705  	Gate *LocalizedString `json:"gate,omitempty"`
  1706  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1707  	// "walletobjects#eventSeat".
  1708  	Kind string `json:"kind,omitempty"`
  1709  	// Row: The row of the seat, such as "1", E", "BB", or "A5". This field is
  1710  	// localizable so you may translate words or use different alphabets for the
  1711  	// characters in an identifier.
  1712  	Row *LocalizedString `json:"row,omitempty"`
  1713  	// Seat: The seat number, such as "1", "2", "3", or any other seat identifier.
  1714  	// This field is localizable so you may translate words or use different
  1715  	// alphabets for the characters in an identifier.
  1716  	Seat *LocalizedString `json:"seat,omitempty"`
  1717  	// Section: The section of the seat, such as "121". This field is localizable
  1718  	// so you may translate words or use different alphabets for the characters in
  1719  	// an identifier.
  1720  	Section *LocalizedString `json:"section,omitempty"`
  1721  	// ForceSendFields is a list of field names (e.g. "Gate") to unconditionally
  1722  	// include in API requests. By default, fields with empty or default values are
  1723  	// omitted from API requests. See
  1724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1725  	// details.
  1726  	ForceSendFields []string `json:"-"`
  1727  	// NullFields is a list of field names (e.g. "Gate") to include in API requests
  1728  	// with the JSON null value. By default, fields with empty values are omitted
  1729  	// from API requests. See
  1730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1731  	NullFields []string `json:"-"`
  1732  }
  1733  
  1734  func (s *EventSeat) MarshalJSON() ([]byte, error) {
  1735  	type NoMethod EventSeat
  1736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1737  }
  1738  
  1739  type EventTicketClass struct {
  1740  	// AllowMultipleUsersPerObject: Deprecated. Use
  1741  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  1742  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  1743  	// CallbackOptions: Callback options to be used to call the issuer back for
  1744  	// every save/delete of an object for this class by the end-user. All objects
  1745  	// of this class are eligible for the callback.
  1746  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  1747  	// ClassTemplateInfo: Template information about how the class should be
  1748  	// displayed. If unset, Google will fallback to a default set of fields to
  1749  	// display.
  1750  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  1751  	// ConfirmationCodeLabel: The label to use for the confirmation code value
  1752  	// (`eventTicketObject.reservationInfo.confirmationCode`) on the card detail
  1753  	// view. Each available option maps to a set of localized strings, so that
  1754  	// translations are shown to the user based on their locale. Both
  1755  	// `confirmationCodeLabel` and `customConfirmationCodeLabel` may not be set. If
  1756  	// neither is set, the label will default to "Confirmation Code", localized. If
  1757  	// the confirmation code field is unset, this label will not be used.
  1758  	//
  1759  	// Possible values:
  1760  	//   "CONFIRMATION_CODE_LABEL_UNSPECIFIED"
  1761  	//   "CONFIRMATION_CODE"
  1762  	//   "confirmationCode" - Legacy alias for `CONFIRMATION_CODE`. Deprecated.
  1763  	//   "CONFIRMATION_NUMBER"
  1764  	//   "confirmationNumber" - Legacy alias for `CONFIRMATION_NUMBER`. Deprecated.
  1765  	//   "ORDER_NUMBER"
  1766  	//   "orderNumber" - Legacy alias for `ORDER_NUMBER`. Deprecated.
  1767  	//   "RESERVATION_NUMBER"
  1768  	//   "reservationNumber" - Legacy alias for `RESERVATION_NUMBER`. Deprecated.
  1769  	ConfirmationCodeLabel string `json:"confirmationCodeLabel,omitempty"`
  1770  	// CountryCode: Country code used to display the card's country (when the user
  1771  	// is not in that country), as well as to display localized content when
  1772  	// content is not available in the user's locale.
  1773  	CountryCode string `json:"countryCode,omitempty"`
  1774  	// CustomConfirmationCodeLabel: A custom label to use for the confirmation code
  1775  	// value (`eventTicketObject.reservationInfo.confirmationCode`) on the card
  1776  	// detail view. This should only be used if the default "Confirmation Code"
  1777  	// label or one of the `confirmationCodeLabel` options is not sufficient. Both
  1778  	// `confirmationCodeLabel` and `customConfirmationCodeLabel` may not be set. If
  1779  	// neither is set, the label will default to "Confirmation Code", localized. If
  1780  	// the confirmation code field is unset, this label will not be used.
  1781  	CustomConfirmationCodeLabel *LocalizedString `json:"customConfirmationCodeLabel,omitempty"`
  1782  	// CustomGateLabel: A custom label to use for the gate value
  1783  	// (`eventTicketObject.seatInfo.gate`) on the card detail view. This should
  1784  	// only be used if the default "Gate" label or one of the `gateLabel` options
  1785  	// is not sufficient. Both `gateLabel` and `customGateLabel` may not be set. If
  1786  	// neither is set, the label will default to "Gate", localized. If the gate
  1787  	// field is unset, this label will not be used.
  1788  	CustomGateLabel *LocalizedString `json:"customGateLabel,omitempty"`
  1789  	// CustomRowLabel: A custom label to use for the row value
  1790  	// (`eventTicketObject.seatInfo.row`) on the card detail view. This should only
  1791  	// be used if the default "Row" label or one of the `rowLabel` options is not
  1792  	// sufficient. Both `rowLabel` and `customRowLabel` may not be set. If neither
  1793  	// is set, the label will default to "Row", localized. If the row field is
  1794  	// unset, this label will not be used.
  1795  	CustomRowLabel *LocalizedString `json:"customRowLabel,omitempty"`
  1796  	// CustomSeatLabel: A custom label to use for the seat value
  1797  	// (`eventTicketObject.seatInfo.seat`) on the card detail view. This should
  1798  	// only be used if the default "Seat" label or one of the `seatLabel` options
  1799  	// is not sufficient. Both `seatLabel` and `customSeatLabel` may not be set. If
  1800  	// neither is set, the label will default to "Seat", localized. If the seat
  1801  	// field is unset, this label will not be used.
  1802  	CustomSeatLabel *LocalizedString `json:"customSeatLabel,omitempty"`
  1803  	// CustomSectionLabel: A custom label to use for the section value
  1804  	// (`eventTicketObject.seatInfo.section`) on the card detail view. This should
  1805  	// only be used if the default "Section" label or one of the `sectionLabel`
  1806  	// options is not sufficient. Both `sectionLabel` and `customSectionLabel` may
  1807  	// not be set. If neither is set, the label will default to "Section",
  1808  	// localized. If the section field is unset, this label will not be used.
  1809  	CustomSectionLabel *LocalizedString `json:"customSectionLabel,omitempty"`
  1810  	// DateTime: The date & time information of the event.
  1811  	DateTime *EventDateTime `json:"dateTime,omitempty"`
  1812  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  1813  	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
  1814  	// also be set up correctly in order for a pass to support Smart Tap.
  1815  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  1816  	// EventId: The ID of the event. This ID should be unique for every event in an
  1817  	// account. It is used to group tickets together if the user has saved multiple
  1818  	// tickets for the same event. It can be at most 64 characters. If provided,
  1819  	// the grouping will be stable. Be wary of unintentional collision to avoid
  1820  	// grouping tickets that should not be grouped. If you use only one class per
  1821  	// event, you can simply set this to the `classId` (with or without the issuer
  1822  	// ID portion). If not provided, the platform will attempt to use other data to
  1823  	// group tickets (potentially unstable).
  1824  	EventId string `json:"eventId,omitempty"`
  1825  	// EventName: Required. The name of the event, such as "LA Dodgers at SF
  1826  	// Giants".
  1827  	EventName *LocalizedString `json:"eventName,omitempty"`
  1828  	// FinePrint: The fine print, terms, or conditions of the ticket.
  1829  	FinePrint *LocalizedString `json:"finePrint,omitempty"`
  1830  	// GateLabel: The label to use for the gate value
  1831  	// (`eventTicketObject.seatInfo.gate`) on the card detail view. Each available
  1832  	// option maps to a set of localized strings, so that translations are shown to
  1833  	// the user based on their locale. Both `gateLabel` and `customGateLabel` may
  1834  	// not be set. If neither is set, the label will default to "Gate", localized.
  1835  	// If the gate field is unset, this label will not be used.
  1836  	//
  1837  	// Possible values:
  1838  	//   "GATE_LABEL_UNSPECIFIED"
  1839  	//   "GATE"
  1840  	//   "gate" - Legacy alias for `GATE`. Deprecated.
  1841  	//   "DOOR"
  1842  	//   "door" - Legacy alias for `DOOR`. Deprecated.
  1843  	//   "ENTRANCE"
  1844  	//   "entrance" - Legacy alias for `ENTRANCE`. Deprecated.
  1845  	GateLabel string `json:"gateLabel,omitempty"`
  1846  	// HeroImage: Optional banner image displayed on the front of the card. If none
  1847  	// is present, nothing will be displayed. The image will display at 100% width.
  1848  	HeroImage *Image `json:"heroImage,omitempty"`
  1849  	// HexBackgroundColor: The background color for the card. If not set the
  1850  	// dominant color of the hero image is used, and if no hero image is set, the
  1851  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  1852  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  1853  	// of the RGB triplet which is #rgb, such as `#fc0`.
  1854  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  1855  	// HomepageUri: The URI of your application's home page. Populating the URI in
  1856  	// this field results in the exact same behavior as populating an URI in
  1857  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  1858  	// in what would usually be thought of as the linksModuleData section of the
  1859  	// object).
  1860  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  1861  	// Id: Required. The unique identifier for a class. This ID must be unique
  1862  	// across all classes from an issuer. This value should follow the format
  1863  	// issuer ID. identifier where the former is issued by Google and latter is
  1864  	// chosen by you. Your unique identifier should only include alphanumeric
  1865  	// characters, '.', '_', or '-'.
  1866  	Id string `json:"id,omitempty"`
  1867  	// ImageModulesData: Image module data. The maximum number of these fields
  1868  	// displayed is 1 from object level and 1 for class object level.
  1869  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  1870  	// InfoModuleData: Deprecated. Use textModulesData instead.
  1871  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  1872  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  1873  	// characters to ensure full string is displayed on smaller screens.
  1874  	IssuerName string `json:"issuerName,omitempty"`
  1875  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1876  	// "walletobjects#eventTicketClass".
  1877  	Kind string `json:"kind,omitempty"`
  1878  	// LinksModuleData: Links module data. If links module data is also defined on
  1879  	// the object, both will be displayed.
  1880  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  1881  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  1882  	// maximum length is 20 characters to ensure full string is displayed on
  1883  	// smaller screens.
  1884  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  1885  	// Locations: Note: This field is currently not supported to trigger geo
  1886  	// notifications.
  1887  	Locations []*LatLongPoint `json:"locations,omitempty"`
  1888  	// Logo: The logo image of the ticket. This image is displayed in the card
  1889  	// detail view of the app.
  1890  	Logo *Image `json:"logo,omitempty"`
  1891  	// Messages: An array of messages displayed in the app. All users of this
  1892  	// object will receive its associated messages. The maximum number of these
  1893  	// fields is 10.
  1894  	Messages []*Message `json:"messages,omitempty"`
  1895  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  1896  	// and devices will save the same object referencing this class.
  1897  	//
  1898  	// Possible values:
  1899  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  1900  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  1901  	// saved by any number of different users, and on any number of devices.
  1902  	// Partners typically use this setup for passes that do not need to be
  1903  	// restricted to a single user or pinned to a single device.
  1904  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  1905  	// user can view and use it on multiple of their devices. Once the first user
  1906  	// saves the object, no other user will be allowed to view or save it.
  1907  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  1908  	// single device. Intended for use by select partners in limited circumstances.
  1909  	// An example use case is a transit ticket that should be "device pinned",
  1910  	// meaning it can be saved, viewed and used only by a single user on a single
  1911  	// device. Contact support for additional information.
  1912  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  1913  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  1914  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  1915  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  1916  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  1917  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  1918  	// Redemption issuers must have at least one Smart Tap key configured. The
  1919  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  1920  	// be set up correctly in order for a pass to support Smart Tap.
  1921  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  1922  	// Review: The review comments set by the platform when a class is marked
  1923  	// `approved` or `rejected`.
  1924  	Review *Review `json:"review,omitempty"`
  1925  	// ReviewStatus: Required. The status of the class. This field can be set to
  1926  	// `draft` or `underReview` using the insert, patch, or update API calls. Once
  1927  	// the review state is changed from `draft` it may not be changed back to
  1928  	// `draft`. You should keep this field to `draft` when the class is under
  1929  	// development. A `draft` class cannot be used to create any object. You should
  1930  	// set this field to `underReview` when you believe the class is ready for use.
  1931  	// The platform will automatically set this field to `approved` and it can be
  1932  	// immediately used to create or migrate objects. When updating an already
  1933  	// `approved` class you should keep setting this field to `underReview`.
  1934  	//
  1935  	// Possible values:
  1936  	//   "REVIEW_STATUS_UNSPECIFIED"
  1937  	//   "UNDER_REVIEW"
  1938  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  1939  	//   "APPROVED"
  1940  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  1941  	//   "REJECTED"
  1942  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  1943  	//   "DRAFT"
  1944  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  1945  	ReviewStatus string `json:"reviewStatus,omitempty"`
  1946  	// RowLabel: The label to use for the row value
  1947  	// (`eventTicketObject.seatInfo.row`) on the card detail view. Each available
  1948  	// option maps to a set of localized strings, so that translations are shown to
  1949  	// the user based on their locale. Both `rowLabel` and `customRowLabel` may not
  1950  	// be set. If neither is set, the label will default to "Row", localized. If
  1951  	// the row field is unset, this label will not be used.
  1952  	//
  1953  	// Possible values:
  1954  	//   "ROW_LABEL_UNSPECIFIED"
  1955  	//   "ROW"
  1956  	//   "row" - Legacy alias for `ROW`. Deprecated.
  1957  	RowLabel string `json:"rowLabel,omitempty"`
  1958  	// SeatLabel: The label to use for the seat value
  1959  	// (`eventTicketObject.seatInfo.seat`) on the card detail view. Each available
  1960  	// option maps to a set of localized strings, so that translations are shown to
  1961  	// the user based on their locale. Both `seatLabel` and `customSeatLabel` may
  1962  	// not be set. If neither is set, the label will default to "Seat", localized.
  1963  	// If the seat field is unset, this label will not be used.
  1964  	//
  1965  	// Possible values:
  1966  	//   "SEAT_LABEL_UNSPECIFIED"
  1967  	//   "SEAT"
  1968  	//   "seat" - Legacy alias for `SEAT`. Deprecated.
  1969  	SeatLabel string `json:"seatLabel,omitempty"`
  1970  	// SectionLabel: The label to use for the section value
  1971  	// (`eventTicketObject.seatInfo.section`) on the card detail view. Each
  1972  	// available option maps to a set of localized strings, so that translations
  1973  	// are shown to the user based on their locale. Both `sectionLabel` and
  1974  	// `customSectionLabel` may not be set. If neither is set, the label will
  1975  	// default to "Section", localized. If the section field is unset, this label
  1976  	// will not be used.
  1977  	//
  1978  	// Possible values:
  1979  	//   "SECTION_LABEL_UNSPECIFIED"
  1980  	//   "SECTION"
  1981  	//   "section" - Legacy alias for `SECTION`. Deprecated.
  1982  	//   "THEATER"
  1983  	//   "theater" - Legacy alias for `THEATER`. Deprecated.
  1984  	SectionLabel string `json:"sectionLabel,omitempty"`
  1985  	// SecurityAnimation: Optional information about the security animation. If
  1986  	// this is set a security animation will be rendered on pass details.
  1987  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  1988  	// TextModulesData: Text module data. If text module data is also defined on
  1989  	// the class, both will be displayed. The maximum number of these fields
  1990  	// displayed is 10 from the object and 10 from the class.
  1991  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  1992  	// Venue: Event venue details.
  1993  	Venue *EventVenue `json:"venue,omitempty"`
  1994  	// Version: Deprecated
  1995  	Version int64 `json:"version,omitempty,string"`
  1996  	// ViewUnlockRequirement: View Unlock Requirement options for the event ticket.
  1997  	//
  1998  	// Possible values:
  1999  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  2000  	// UNLOCK_NOT_REQUIRED.
  2001  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  2002  	// ViewUnlockRequirement is not set.
  2003  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  2004  	// time the pass is viewed. If the user removes their device lock after saving
  2005  	// the pass, then they will be prompted to create a device lock before the pass
  2006  	// can be viewed.
  2007  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  2008  	// WideLogo: The wide logo of the ticket. When provided, this will be used in
  2009  	// place of the logo in the top left of the card view.
  2010  	WideLogo *Image `json:"wideLogo,omitempty"`
  2011  	// WordMark: Deprecated.
  2012  	WordMark *Image `json:"wordMark,omitempty"`
  2013  
  2014  	// ServerResponse contains the HTTP response code and headers from the server.
  2015  	googleapi.ServerResponse `json:"-"`
  2016  	// ForceSendFields is a list of field names (e.g.
  2017  	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
  2018  	// By default, fields with empty or default values are omitted from API
  2019  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  2020  	// for more details.
  2021  	ForceSendFields []string `json:"-"`
  2022  	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
  2023  	// include in API requests with the JSON null value. By default, fields with
  2024  	// empty values are omitted from API requests. See
  2025  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2026  	NullFields []string `json:"-"`
  2027  }
  2028  
  2029  func (s *EventTicketClass) MarshalJSON() ([]byte, error) {
  2030  	type NoMethod EventTicketClass
  2031  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2032  }
  2033  
  2034  type EventTicketClassAddMessageResponse struct {
  2035  	// Resource: The updated EventTicketClass resource.
  2036  	Resource *EventTicketClass `json:"resource,omitempty"`
  2037  
  2038  	// ServerResponse contains the HTTP response code and headers from the server.
  2039  	googleapi.ServerResponse `json:"-"`
  2040  	// ForceSendFields is a list of field names (e.g. "Resource") to
  2041  	// unconditionally include in API requests. By default, fields with empty or
  2042  	// default values are omitted from API requests. See
  2043  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2044  	// details.
  2045  	ForceSendFields []string `json:"-"`
  2046  	// NullFields is a list of field names (e.g. "Resource") to include in API
  2047  	// requests with the JSON null value. By default, fields with empty values are
  2048  	// omitted from API requests. See
  2049  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2050  	NullFields []string `json:"-"`
  2051  }
  2052  
  2053  func (s *EventTicketClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  2054  	type NoMethod EventTicketClassAddMessageResponse
  2055  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2056  }
  2057  
  2058  type EventTicketClassListResponse struct {
  2059  	// Pagination: Pagination of the response.
  2060  	Pagination *Pagination `json:"pagination,omitempty"`
  2061  	// Resources: Resources corresponding to the list request.
  2062  	Resources []*EventTicketClass `json:"resources,omitempty"`
  2063  
  2064  	// ServerResponse contains the HTTP response code and headers from the server.
  2065  	googleapi.ServerResponse `json:"-"`
  2066  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  2067  	// unconditionally include in API requests. By default, fields with empty or
  2068  	// default values are omitted from API requests. See
  2069  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2070  	// details.
  2071  	ForceSendFields []string `json:"-"`
  2072  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  2073  	// requests with the JSON null value. By default, fields with empty values are
  2074  	// omitted from API requests. See
  2075  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2076  	NullFields []string `json:"-"`
  2077  }
  2078  
  2079  func (s *EventTicketClassListResponse) MarshalJSON() ([]byte, error) {
  2080  	type NoMethod EventTicketClassListResponse
  2081  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2082  }
  2083  
  2084  type EventTicketObject struct {
  2085  	// AppLinkData: Optional information about the partner app link.
  2086  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  2087  	// Barcode: The barcode type and value.
  2088  	Barcode *Barcode `json:"barcode,omitempty"`
  2089  	// ClassId: Required. The class associated with this object. The class must be
  2090  	// of the same type as this object, must already exist, and must be approved.
  2091  	// Class IDs should follow the format issuer ID.identifier where the former is
  2092  	// issued by Google and latter is chosen by you.
  2093  	ClassId string `json:"classId,omitempty"`
  2094  	// ClassReference: A copy of the inherited fields of the parent class. These
  2095  	// fields are retrieved during a GET.
  2096  	ClassReference *EventTicketClass `json:"classReference,omitempty"`
  2097  	// DisableExpirationNotification: Indicates if notifications should explicitly
  2098  	// be suppressed. If this field is set to true, regardless of the `messages`
  2099  	// field, expiration notifications to the user will be suppressed. By default,
  2100  	// this field is set to false. Currently, this can only be set for offers.
  2101  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  2102  	// FaceValue: The face value of the ticket, matching what would be printed on a
  2103  	// physical version of the ticket.
  2104  	FaceValue *Money `json:"faceValue,omitempty"`
  2105  	// GroupingInfo: Information that controls how passes are grouped together.
  2106  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  2107  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  2108  	// This field is set by the platform when a user saves the object, linking it
  2109  	// to their device. Intended for use by select partners. Contact support for
  2110  	// additional information.
  2111  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  2112  	// HasUsers: Indicates if the object has users. This field is set by the
  2113  	// platform.
  2114  	HasUsers bool `json:"hasUsers,omitempty"`
  2115  	// HeroImage: Optional banner image displayed on the front of the card. If none
  2116  	// is present, hero image of the class, if present, will be displayed. If hero
  2117  	// image of the class is also not present, nothing will be displayed.
  2118  	HeroImage *Image `json:"heroImage,omitempty"`
  2119  	// HexBackgroundColor: The background color for the card. If not set the
  2120  	// dominant color of the hero image is used, and if no hero image is set, the
  2121  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  2122  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  2123  	// of the RGB triplet which is #rgb, such as `#fc0`.
  2124  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  2125  	// Id: Required. The unique identifier for an object. This ID must be unique
  2126  	// across all objects from an issuer. This value should follow the format
  2127  	// issuer ID.identifier where the former is issued by Google and latter is
  2128  	// chosen by you. The unique identifier should only include alphanumeric
  2129  	// characters, '.', '_', or '-'.
  2130  	Id string `json:"id,omitempty"`
  2131  	// ImageModulesData: Image module data. The maximum number of these fields
  2132  	// displayed is 1 from object level and 1 for class object level.
  2133  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  2134  	// InfoModuleData: Deprecated. Use textModulesData instead.
  2135  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  2136  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2137  	// "walletobjects#eventTicketObject".
  2138  	Kind string `json:"kind,omitempty"`
  2139  	// LinkedOfferIds: A list of offer objects linked to this event ticket. The
  2140  	// offer objects must already exist. Offer object IDs should follow the format
  2141  	// issuer ID. identifier where the former is issued by Google and latter is
  2142  	// chosen by you.
  2143  	LinkedOfferIds []string `json:"linkedOfferIds,omitempty"`
  2144  	// LinksModuleData: Links module data. If links module data is also defined on
  2145  	// the class, both will be displayed.
  2146  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  2147  	// Locations: Note: This field is currently not supported to trigger geo
  2148  	// notifications.
  2149  	Locations []*LatLongPoint `json:"locations,omitempty"`
  2150  	// Messages: An array of messages displayed in the app. All users of this
  2151  	// object will receive its associated messages. The maximum number of these
  2152  	// fields is 10.
  2153  	Messages []*Message `json:"messages,omitempty"`
  2154  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  2155  	// screenshot behaviors.
  2156  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  2157  	// ReservationInfo: Reservation details for this ticket. This is expected to be
  2158  	// shared amongst all tickets that were purchased in the same order.
  2159  	ReservationInfo *EventReservationInfo `json:"reservationInfo,omitempty"`
  2160  	// RotatingBarcode: The rotating barcode type and value.
  2161  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  2162  	// SeatInfo: Seating details for this ticket.
  2163  	SeatInfo *EventSeat `json:"seatInfo,omitempty"`
  2164  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  2165  	// certified terminal over NFC for this object. The class level fields
  2166  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  2167  	// order for the pass to support Smart Tap. Only ASCII characters are
  2168  	// supported.
  2169  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  2170  	// State: Required. The state of the object. This field is used to determine
  2171  	// how an object is displayed in the app. For example, an `inactive` object is
  2172  	// moved to the "Expired passes" section.
  2173  	//
  2174  	// Possible values:
  2175  	//   "STATE_UNSPECIFIED"
  2176  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  2177  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  2178  	//   "COMPLETED"
  2179  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  2180  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  2181  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  2182  	//   "INACTIVE"
  2183  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  2184  	State string `json:"state,omitempty"`
  2185  	// TextModulesData: Text module data. If text module data is also defined on
  2186  	// the class, both will be displayed. The maximum number of these fields
  2187  	// displayed is 10 from the object and 10 from the class.
  2188  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  2189  	// TicketHolderName: Name of the ticket holder, if the ticket is assigned to a
  2190  	// person. E.g. "John Doe" or "Jane Doe".
  2191  	TicketHolderName string `json:"ticketHolderName,omitempty"`
  2192  	// TicketNumber: The number of the ticket. This can be a unique identifier
  2193  	// across all tickets in an issuer's system, all tickets for the event (e.g.
  2194  	// XYZ1234512345), or all tickets in the order (1, 2, 3, etc.).
  2195  	TicketNumber string `json:"ticketNumber,omitempty"`
  2196  	// TicketType: The type of the ticket, such as "Adult" or "Child", or "VIP" or
  2197  	// "Standard".
  2198  	TicketType *LocalizedString `json:"ticketType,omitempty"`
  2199  	// ValidTimeInterval: The time period this object will be `active` and object
  2200  	// can be used. An object's state will be changed to `expired` when this time
  2201  	// period has passed.
  2202  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  2203  	// Version: Deprecated
  2204  	Version int64 `json:"version,omitempty,string"`
  2205  
  2206  	// ServerResponse contains the HTTP response code and headers from the server.
  2207  	googleapi.ServerResponse `json:"-"`
  2208  	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
  2209  	// unconditionally include in API requests. By default, fields with empty or
  2210  	// default values are omitted from API requests. See
  2211  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2212  	// details.
  2213  	ForceSendFields []string `json:"-"`
  2214  	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
  2215  	// requests with the JSON null value. By default, fields with empty values are
  2216  	// omitted from API requests. See
  2217  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2218  	NullFields []string `json:"-"`
  2219  }
  2220  
  2221  func (s *EventTicketObject) MarshalJSON() ([]byte, error) {
  2222  	type NoMethod EventTicketObject
  2223  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2224  }
  2225  
  2226  type EventTicketObjectAddMessageResponse struct {
  2227  	// Resource: The updated EventTicketObject resource.
  2228  	Resource *EventTicketObject `json:"resource,omitempty"`
  2229  
  2230  	// ServerResponse contains the HTTP response code and headers from the server.
  2231  	googleapi.ServerResponse `json:"-"`
  2232  	// ForceSendFields is a list of field names (e.g. "Resource") to
  2233  	// unconditionally include in API requests. By default, fields with empty or
  2234  	// default values are omitted from API requests. See
  2235  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2236  	// details.
  2237  	ForceSendFields []string `json:"-"`
  2238  	// NullFields is a list of field names (e.g. "Resource") to include in API
  2239  	// requests with the JSON null value. By default, fields with empty values are
  2240  	// omitted from API requests. See
  2241  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2242  	NullFields []string `json:"-"`
  2243  }
  2244  
  2245  func (s *EventTicketObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  2246  	type NoMethod EventTicketObjectAddMessageResponse
  2247  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2248  }
  2249  
  2250  type EventTicketObjectListResponse struct {
  2251  	// Pagination: Pagination of the response.
  2252  	Pagination *Pagination `json:"pagination,omitempty"`
  2253  	// Resources: Resources corresponding to the list request.
  2254  	Resources []*EventTicketObject `json:"resources,omitempty"`
  2255  
  2256  	// ServerResponse contains the HTTP response code and headers from the server.
  2257  	googleapi.ServerResponse `json:"-"`
  2258  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  2259  	// unconditionally include in API requests. By default, fields with empty or
  2260  	// default values are omitted from API requests. See
  2261  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2262  	// details.
  2263  	ForceSendFields []string `json:"-"`
  2264  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  2265  	// requests with the JSON null value. By default, fields with empty values are
  2266  	// omitted from API requests. See
  2267  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2268  	NullFields []string `json:"-"`
  2269  }
  2270  
  2271  func (s *EventTicketObjectListResponse) MarshalJSON() ([]byte, error) {
  2272  	type NoMethod EventTicketObjectListResponse
  2273  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2274  }
  2275  
  2276  type EventVenue struct {
  2277  	// Address: The address of the venue, such as "24 Willie Mays Plaza\nSan
  2278  	// Francisco, CA 94107". Address lines are separated by line feed (`\n`)
  2279  	// characters. This is required.
  2280  	Address *LocalizedString `json:"address,omitempty"`
  2281  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2282  	// "walletobjects#eventVenue".
  2283  	Kind string `json:"kind,omitempty"`
  2284  	// Name: The name of the venue, such as "AT&T Park". This is required.
  2285  	Name *LocalizedString `json:"name,omitempty"`
  2286  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
  2287  	// include in API requests. By default, fields with empty or default values are
  2288  	// omitted from API requests. See
  2289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2290  	// details.
  2291  	ForceSendFields []string `json:"-"`
  2292  	// NullFields is a list of field names (e.g. "Address") to include in API
  2293  	// requests with the JSON null value. By default, fields with empty values are
  2294  	// omitted from API requests. See
  2295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2296  	NullFields []string `json:"-"`
  2297  }
  2298  
  2299  func (s *EventVenue) MarshalJSON() ([]byte, error) {
  2300  	type NoMethod EventVenue
  2301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2302  }
  2303  
  2304  // ExpiryNotification: Indicates that the issuer would like Google Wallet to
  2305  // send expiry notifications 2 days prior to the card expiration.
  2306  type ExpiryNotification struct {
  2307  	// EnableNotification: Indicates if the object needs to have expiry
  2308  	// notification enabled.
  2309  	EnableNotification bool `json:"enableNotification,omitempty"`
  2310  	// ForceSendFields is a list of field names (e.g. "EnableNotification") to
  2311  	// unconditionally include in API requests. By default, fields with empty or
  2312  	// default values are 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. "EnableNotification") to include
  2317  	// in API requests with the JSON null value. By default, fields with empty
  2318  	// values are 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 *ExpiryNotification) MarshalJSON() ([]byte, error) {
  2324  	type NoMethod ExpiryNotification
  2325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2326  }
  2327  
  2328  // FieldReference: Reference definition to use with field overrides.
  2329  type FieldReference struct {
  2330  	// DateFormat: Only valid if the `fieldPath` references a date field. Chooses
  2331  	// how the date field will be formatted and displayed in the UI.
  2332  	//
  2333  	// Possible values:
  2334  	//   "DATE_FORMAT_UNSPECIFIED" - Default option when no format is specified,
  2335  	// when selected, no formatting will be applied.
  2336  	//   "DATE_TIME" - Renders `2018-12-14T13:00:00` as `Dec 14, 1:00 PM` in
  2337  	// `en_US`.
  2338  	//   "dateTime" - Legacy alias for `DATE_TIME`. Deprecated.
  2339  	//   "DATE_ONLY" - Renders `2018-12-14T13:00:00` as `Dec 14` in `en_US`.
  2340  	//   "dateOnly" - Legacy alias for `DATE_ONLY`. Deprecated.
  2341  	//   "TIME_ONLY" - Renders `2018-12-14T13:00:00` as `1:00 PM` in `en_US`.
  2342  	//   "timeOnly" - Legacy alias for `TIME_ONLY`. Deprecated.
  2343  	//   "DATE_TIME_YEAR" - Renders `2018-12-14T13:00:00` as `Dec 14, 2018, 1:00
  2344  	// PM` in `en_US`.
  2345  	//   "dateTimeYear" - Legacy alias for `DATE_TIME_YEAR`. Deprecated.
  2346  	//   "DATE_YEAR" - Renders `2018-12-14T13:00:00` as `Dec 14, 2018` in `en_US`.
  2347  	//   "dateYear" - Legacy alias for `DATE_YEAR`. Deprecated.
  2348  	//   "YEAR_MONTH" - Renders `2018-12-14T13:00:00` as `2018-12`.
  2349  	//   "YEAR_MONTH_DAY" - Renders `2018-12-14T13:00:00` as `2018-12-14`.
  2350  	DateFormat string `json:"dateFormat,omitempty"`
  2351  	// FieldPath: Path to the field being referenced, prefixed with "object" or
  2352  	// "class" and separated with dots. For example, it may be the string
  2353  	// "object.purchaseDetails.purchasePrice".
  2354  	FieldPath string `json:"fieldPath,omitempty"`
  2355  	// ForceSendFields is a list of field names (e.g. "DateFormat") to
  2356  	// unconditionally include in API requests. By default, fields with empty or
  2357  	// default values are omitted from API requests. See
  2358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2359  	// details.
  2360  	ForceSendFields []string `json:"-"`
  2361  	// NullFields is a list of field names (e.g. "DateFormat") to include in API
  2362  	// requests with the JSON null value. By default, fields with empty values are
  2363  	// omitted from API requests. See
  2364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2365  	NullFields []string `json:"-"`
  2366  }
  2367  
  2368  func (s *FieldReference) MarshalJSON() ([]byte, error) {
  2369  	type NoMethod FieldReference
  2370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2371  }
  2372  
  2373  // FieldSelector: Custom field selector to use with field overrides.
  2374  type FieldSelector struct {
  2375  	// Fields: If more than one reference is supplied, then the first one that
  2376  	// references a non-empty field will be displayed.
  2377  	Fields []*FieldReference `json:"fields,omitempty"`
  2378  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  2379  	// include in API requests. By default, fields with empty or default values are
  2380  	// omitted from API requests. See
  2381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2382  	// details.
  2383  	ForceSendFields []string `json:"-"`
  2384  	// NullFields is a list of field names (e.g. "Fields") to include in API
  2385  	// requests with the JSON null value. By default, fields with empty values are
  2386  	// omitted from API requests. See
  2387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2388  	NullFields []string `json:"-"`
  2389  }
  2390  
  2391  func (s *FieldSelector) MarshalJSON() ([]byte, error) {
  2392  	type NoMethod FieldSelector
  2393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2394  }
  2395  
  2396  type FirstRowOption struct {
  2397  	// FieldOption: A reference to the field to be displayed in the first row.
  2398  	FieldOption *FieldSelector `json:"fieldOption,omitempty"`
  2399  	// Possible values:
  2400  	//   "TRANSIT_OPTION_UNSPECIFIED"
  2401  	//   "ORIGIN_AND_DESTINATION_NAMES"
  2402  	//   "originAndDestinationNames" - Legacy alias for
  2403  	// `ORIGIN_AND_DESTINATION_NAMES`. Deprecated.
  2404  	//   "ORIGIN_AND_DESTINATION_CODES"
  2405  	//   "originAndDestinationCodes" - Legacy alias for
  2406  	// `ORIGIN_AND_DESTINATION_CODES`. Deprecated.
  2407  	//   "ORIGIN_NAME"
  2408  	//   "originName" - Legacy alias for `ORIGIN_NAME`. Deprecated.
  2409  	TransitOption string `json:"transitOption,omitempty"`
  2410  	// ForceSendFields is a list of field names (e.g. "FieldOption") to
  2411  	// unconditionally include in API requests. By default, fields with empty or
  2412  	// default values are omitted from API requests. See
  2413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2414  	// details.
  2415  	ForceSendFields []string `json:"-"`
  2416  	// NullFields is a list of field names (e.g. "FieldOption") to include in API
  2417  	// requests with the JSON null value. By default, fields with empty values are
  2418  	// omitted from API requests. See
  2419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2420  	NullFields []string `json:"-"`
  2421  }
  2422  
  2423  func (s *FirstRowOption) MarshalJSON() ([]byte, error) {
  2424  	type NoMethod FirstRowOption
  2425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2426  }
  2427  
  2428  type FlightCarrier struct {
  2429  	// AirlineAllianceLogo: A logo for the airline alliance, displayed below the QR
  2430  	// code that the passenger scans to board.
  2431  	AirlineAllianceLogo *Image `json:"airlineAllianceLogo,omitempty"`
  2432  	// AirlineLogo: A logo for the airline described by carrierIataCode and
  2433  	// localizedAirlineName. This logo will be rendered at the top of the detailed
  2434  	// card view.
  2435  	AirlineLogo *Image `json:"airlineLogo,omitempty"`
  2436  	// AirlineName: A localized name of the airline specified by carrierIataCode.
  2437  	// If unset, `issuer_name` or `localized_issuer_name` from `FlightClass` will
  2438  	// be used for display purposes. eg: "Swiss Air" for "LX"
  2439  	AirlineName *LocalizedString `json:"airlineName,omitempty"`
  2440  	// CarrierIataCode: Two character IATA airline code of the marketing carrier
  2441  	// (as opposed to operating carrier). Exactly one of this or `carrierIcaoCode`
  2442  	// needs to be provided for `carrier` and `operatingCarrier`. eg: "LX" for
  2443  	// Swiss Air
  2444  	CarrierIataCode string `json:"carrierIataCode,omitempty"`
  2445  	// CarrierIcaoCode: Three character ICAO airline code of the marketing carrier
  2446  	// (as opposed to operating carrier). Exactly one of this or `carrierIataCode`
  2447  	// needs to be provided for `carrier` and `operatingCarrier`. eg: "EZY" for
  2448  	// Easy Jet
  2449  	CarrierIcaoCode string `json:"carrierIcaoCode,omitempty"`
  2450  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2451  	// "walletobjects#flightCarrier".
  2452  	Kind string `json:"kind,omitempty"`
  2453  	// WideAirlineLogo: The wide logo of the airline. When provided, this will be
  2454  	// used in place of the airline logo in the top left of the card view.
  2455  	WideAirlineLogo *Image `json:"wideAirlineLogo,omitempty"`
  2456  	// ForceSendFields is a list of field names (e.g. "AirlineAllianceLogo") to
  2457  	// unconditionally include in API requests. By default, fields with empty or
  2458  	// default values are omitted from API requests. See
  2459  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2460  	// details.
  2461  	ForceSendFields []string `json:"-"`
  2462  	// NullFields is a list of field names (e.g. "AirlineAllianceLogo") to include
  2463  	// in API requests with the JSON null value. By default, fields with empty
  2464  	// values are omitted from API requests. See
  2465  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2466  	NullFields []string `json:"-"`
  2467  }
  2468  
  2469  func (s *FlightCarrier) MarshalJSON() ([]byte, error) {
  2470  	type NoMethod FlightCarrier
  2471  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2472  }
  2473  
  2474  type FlightClass struct {
  2475  	// AllowMultipleUsersPerObject: Deprecated. Use
  2476  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  2477  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  2478  	// BoardingAndSeatingPolicy: Policies for boarding and seating. These will
  2479  	// inform which labels will be shown to users.
  2480  	BoardingAndSeatingPolicy *BoardingAndSeatingPolicy `json:"boardingAndSeatingPolicy,omitempty"`
  2481  	// CallbackOptions: Callback options to be used to call the issuer back for
  2482  	// every save/delete of an object for this class by the end-user. All objects
  2483  	// of this class are eligible for the callback.
  2484  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  2485  	// ClassTemplateInfo: Template information about how the class should be
  2486  	// displayed. If unset, Google will fallback to a default set of fields to
  2487  	// display.
  2488  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  2489  	// CountryCode: Country code used to display the card's country (when the user
  2490  	// is not in that country), as well as to display localized content when
  2491  	// content is not available in the user's locale.
  2492  	CountryCode string `json:"countryCode,omitempty"`
  2493  	// Destination: Required. Destination airport.
  2494  	Destination *AirportInfo `json:"destination,omitempty"`
  2495  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  2496  	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
  2497  	// also be set up correctly in order for a pass to support Smart Tap.
  2498  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  2499  	// FlightHeader: Required. Information about the flight carrier and number.
  2500  	FlightHeader *FlightHeader `json:"flightHeader,omitempty"`
  2501  	// FlightStatus: Status of this flight. If unset, Google will compute status
  2502  	// based on data from other sources, such as FlightStats, etc. Note:
  2503  	// Google-computed status will not be returned in API responses.
  2504  	//
  2505  	// Possible values:
  2506  	//   "FLIGHT_STATUS_UNSPECIFIED"
  2507  	//   "SCHEDULED" - Flight is on time, early, or delayed.
  2508  	//   "scheduled" - Legacy alias for `SCHEDULED`. Deprecated.
  2509  	//   "ACTIVE" - Flight is in progress (taxiing, taking off, landing, airborne).
  2510  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  2511  	//   "LANDED" - Flight landed at the original destination.
  2512  	//   "landed" - Legacy alias for `LANDED`. Deprecated.
  2513  	//   "CANCELLED" - Flight is cancelled.
  2514  	//   "cancelled" - Legacy alias for `CANCELLED`. Deprecated.
  2515  	//   "REDIRECTED" - Flight is airborne but heading to a different airport than
  2516  	// the original destination.
  2517  	//   "redirected" - Legacy alias for `REDIRECTED`. Deprecated.
  2518  	//   "DIVERTED" - Flight has already landed at a different airport than the
  2519  	// original destination.
  2520  	//   "diverted" - Legacy alias for `DIVERTED`. Deprecated.
  2521  	FlightStatus string `json:"flightStatus,omitempty"`
  2522  	// HeroImage: Optional banner image displayed on the front of the card. If none
  2523  	// is present, nothing will be displayed. The image will display at 100% width.
  2524  	HeroImage *Image `json:"heroImage,omitempty"`
  2525  	// HexBackgroundColor: The background color for the card. If not set the
  2526  	// dominant color of the hero image is used, and if no hero image is set, the
  2527  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  2528  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  2529  	// of the RGB triplet which is #rgb, such as `#fc0`.
  2530  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  2531  	// HomepageUri: The URI of your application's home page. Populating the URI in
  2532  	// this field results in the exact same behavior as populating an URI in
  2533  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  2534  	// in what would usually be thought of as the linksModuleData section of the
  2535  	// object).
  2536  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  2537  	// Id: Required. The unique identifier for a class. This ID must be unique
  2538  	// across all classes from an issuer. This value should follow the format
  2539  	// issuer ID. identifier where the former is issued by Google and latter is
  2540  	// chosen by you. Your unique identifier should only include alphanumeric
  2541  	// characters, '.', '_', or '-'.
  2542  	Id string `json:"id,omitempty"`
  2543  	// ImageModulesData: Image module data. The maximum number of these fields
  2544  	// displayed is 1 from object level and 1 for class object level.
  2545  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  2546  	// InfoModuleData: Deprecated. Use textModulesData instead.
  2547  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  2548  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  2549  	// characters to ensure full string is displayed on smaller screens.
  2550  	IssuerName string `json:"issuerName,omitempty"`
  2551  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2552  	// "walletobjects#flightClass".
  2553  	Kind string `json:"kind,omitempty"`
  2554  	// LanguageOverride: If this field is present, boarding passes served to a
  2555  	// user's device will always be in this language. Represents the BCP 47
  2556  	// language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  2557  	LanguageOverride string `json:"languageOverride,omitempty"`
  2558  	// LinksModuleData: Links module data. If links module data is also defined on
  2559  	// the object, both will be displayed.
  2560  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  2561  	// LocalBoardingDateTime: The boarding time as it would be printed on the
  2562  	// boarding pass. This is an ISO 8601 extended format date/time without an
  2563  	// offset. Time may be specified up to millisecond precision. eg:
  2564  	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
  2565  	// a UTC time). Google will reject the request if UTC offset is provided. Time
  2566  	// zones will be calculated by Google based on departure airport. If this is
  2567  	// not set, Google will set it based on data from other sources.
  2568  	LocalBoardingDateTime string `json:"localBoardingDateTime,omitempty"`
  2569  	// LocalEstimatedOrActualArrivalDateTime: The estimated time the aircraft plans
  2570  	// to reach the destination gate (not the runway) or the actual time it reached
  2571  	// the gate. This field should be set if at least one of the below is true: -
  2572  	// It differs from the scheduled time. Google will use it to calculate the
  2573  	// delay. - The aircraft already arrived at the gate. Google will use it to
  2574  	// inform the user that the flight has arrived at the gate. This is an ISO 8601
  2575  	// extended format date/time without an offset. Time may be specified up to
  2576  	// millisecond precision. eg: `2027-03-05T06:30:00` This should be the local
  2577  	// date/time at the airport (not a UTC time). Google will reject the request if
  2578  	// UTC offset is provided. Time zones will be calculated by Google based on
  2579  	// arrival airport. If this is not set, Google will set it based on data from
  2580  	// other sources.
  2581  	LocalEstimatedOrActualArrivalDateTime string `json:"localEstimatedOrActualArrivalDateTime,omitempty"`
  2582  	// LocalEstimatedOrActualDepartureDateTime: The estimated time the aircraft
  2583  	// plans to pull from the gate or the actual time the aircraft already pulled
  2584  	// from the gate. Note: This is not the runway time. This field should be set
  2585  	// if at least one of the below is true: - It differs from the scheduled time.
  2586  	// Google will use it to calculate the delay. - The aircraft already pulled
  2587  	// from the gate. Google will use it to inform the user when the flight
  2588  	// actually departed. This is an ISO 8601 extended format date/time without an
  2589  	// offset. Time may be specified up to millisecond precision. eg:
  2590  	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
  2591  	// a UTC time). Google will reject the request if UTC offset is provided. Time
  2592  	// zones will be calculated by Google based on departure airport. If this is
  2593  	// not set, Google will set it based on data from other sources.
  2594  	LocalEstimatedOrActualDepartureDateTime string `json:"localEstimatedOrActualDepartureDateTime,omitempty"`
  2595  	// LocalGateClosingDateTime: The gate closing time as it would be printed on
  2596  	// the boarding pass. Do not set this field if you do not want to print it in
  2597  	// the boarding pass. This is an ISO 8601 extended format date/time without an
  2598  	// offset. Time may be specified up to millisecond precision. eg:
  2599  	// `2027-03-05T06:30:00` This should be the local date/time at the airport (not
  2600  	// a UTC time). Google will reject the request if UTC offset is provided. Time
  2601  	// zones will be calculated by Google based on departure airport.
  2602  	LocalGateClosingDateTime string `json:"localGateClosingDateTime,omitempty"`
  2603  	// LocalScheduledArrivalDateTime: The scheduled time the aircraft plans to
  2604  	// reach the destination gate (not the runway). Note: This field should not
  2605  	// change too close to the flight time. For updates to departure times (delays,
  2606  	// etc), please set `localEstimatedOrActualArrivalDateTime`. This is an ISO
  2607  	// 8601 extended format date/time without an offset. Time may be specified up
  2608  	// to millisecond precision. eg: `2027-03-05T06:30:00` This should be the local
  2609  	// date/time at the airport (not a UTC time). Google will reject the request if
  2610  	// UTC offset is provided. Time zones will be calculated by Google based on
  2611  	// arrival airport. If this is not set, Google will set it based on data from
  2612  	// other sources.
  2613  	LocalScheduledArrivalDateTime string `json:"localScheduledArrivalDateTime,omitempty"`
  2614  	// LocalScheduledDepartureDateTime: Required. The scheduled date and time when
  2615  	// the aircraft is expected to depart the gate (not the runway) Note: This
  2616  	// field should not change too close to the departure time. For updates to
  2617  	// departure times (delays, etc), please set
  2618  	// `localEstimatedOrActualDepartureDateTime`. This is an ISO 8601 extended
  2619  	// format date/time without an offset. Time may be specified up to millisecond
  2620  	// precision. eg: `2027-03-05T06:30:00` This should be the local date/time at
  2621  	// the airport (not a UTC time). Google will reject the request if UTC offset
  2622  	// is provided. Time zones will be calculated by Google based on departure
  2623  	// airport.
  2624  	LocalScheduledDepartureDateTime string `json:"localScheduledDepartureDateTime,omitempty"`
  2625  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  2626  	// maximum length is 20 characters to ensure full string is displayed on
  2627  	// smaller screens.
  2628  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  2629  	// Locations: Note: This field is currently not supported to trigger geo
  2630  	// notifications.
  2631  	Locations []*LatLongPoint `json:"locations,omitempty"`
  2632  	// Messages: An array of messages displayed in the app. All users of this
  2633  	// object will receive its associated messages. The maximum number of these
  2634  	// fields is 10.
  2635  	Messages []*Message `json:"messages,omitempty"`
  2636  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  2637  	// and devices will save the same object referencing this class.
  2638  	//
  2639  	// Possible values:
  2640  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  2641  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  2642  	// saved by any number of different users, and on any number of devices.
  2643  	// Partners typically use this setup for passes that do not need to be
  2644  	// restricted to a single user or pinned to a single device.
  2645  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  2646  	// user can view and use it on multiple of their devices. Once the first user
  2647  	// saves the object, no other user will be allowed to view or save it.
  2648  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  2649  	// single device. Intended for use by select partners in limited circumstances.
  2650  	// An example use case is a transit ticket that should be "device pinned",
  2651  	// meaning it can be saved, viewed and used only by a single user on a single
  2652  	// device. Contact support for additional information.
  2653  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  2654  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  2655  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  2656  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  2657  	// Origin: Required. Origin airport.
  2658  	Origin *AirportInfo `json:"origin,omitempty"`
  2659  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  2660  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  2661  	// Redemption issuers must have at least one Smart Tap key configured. The
  2662  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  2663  	// be set up correctly in order for a pass to support Smart Tap.
  2664  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  2665  	// Review: The review comments set by the platform when a class is marked
  2666  	// `approved` or `rejected`.
  2667  	Review *Review `json:"review,omitempty"`
  2668  	// ReviewStatus: Required. The status of the class. This field can be set to
  2669  	// `draft` or `underReview` using the insert, patch, or update API calls. Once
  2670  	// the review state is changed from `draft` it may not be changed back to
  2671  	// `draft`. You should keep this field to `draft` when the class is under
  2672  	// development. A `draft` class cannot be used to create any object. You should
  2673  	// set this field to `underReview` when you believe the class is ready for use.
  2674  	// The platform will automatically set this field to `approved` and it can be
  2675  	// immediately used to create or migrate objects. When updating an already
  2676  	// `approved` class you should keep setting this field to `underReview`.
  2677  	//
  2678  	// Possible values:
  2679  	//   "REVIEW_STATUS_UNSPECIFIED"
  2680  	//   "UNDER_REVIEW"
  2681  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  2682  	//   "APPROVED"
  2683  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  2684  	//   "REJECTED"
  2685  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  2686  	//   "DRAFT"
  2687  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  2688  	ReviewStatus string `json:"reviewStatus,omitempty"`
  2689  	// SecurityAnimation: Optional information about the security animation. If
  2690  	// this is set a security animation will be rendered on pass details.
  2691  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  2692  	// TextModulesData: Text module data. If text module data is also defined on
  2693  	// the class, both will be displayed. The maximum number of these fields
  2694  	// displayed is 10 from the object and 10 from the class.
  2695  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  2696  	// Version: Deprecated
  2697  	Version int64 `json:"version,omitempty,string"`
  2698  	// ViewUnlockRequirement: View Unlock Requirement options for the boarding
  2699  	// pass.
  2700  	//
  2701  	// Possible values:
  2702  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  2703  	// UNLOCK_NOT_REQUIRED.
  2704  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  2705  	// ViewUnlockRequirement is not set.
  2706  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  2707  	// time the pass is viewed. If the user removes their device lock after saving
  2708  	// the pass, then they will be prompted to create a device lock before the pass
  2709  	// can be viewed.
  2710  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  2711  	// WordMark: Deprecated.
  2712  	WordMark *Image `json:"wordMark,omitempty"`
  2713  
  2714  	// ServerResponse contains the HTTP response code and headers from the server.
  2715  	googleapi.ServerResponse `json:"-"`
  2716  	// ForceSendFields is a list of field names (e.g.
  2717  	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
  2718  	// By default, fields with empty or default values are omitted from API
  2719  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  2720  	// for more details.
  2721  	ForceSendFields []string `json:"-"`
  2722  	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
  2723  	// include in API requests with the JSON null value. By default, fields with
  2724  	// empty values are omitted from API requests. See
  2725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2726  	NullFields []string `json:"-"`
  2727  }
  2728  
  2729  func (s *FlightClass) MarshalJSON() ([]byte, error) {
  2730  	type NoMethod FlightClass
  2731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2732  }
  2733  
  2734  type FlightClassAddMessageResponse struct {
  2735  	// Resource: The updated FlightClass resource.
  2736  	Resource *FlightClass `json:"resource,omitempty"`
  2737  
  2738  	// ServerResponse contains the HTTP response code and headers from the server.
  2739  	googleapi.ServerResponse `json:"-"`
  2740  	// ForceSendFields is a list of field names (e.g. "Resource") to
  2741  	// unconditionally include in API requests. By default, fields with empty or
  2742  	// default values are omitted from API requests. See
  2743  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2744  	// details.
  2745  	ForceSendFields []string `json:"-"`
  2746  	// NullFields is a list of field names (e.g. "Resource") to include in API
  2747  	// requests with the JSON null value. By default, fields with empty values are
  2748  	// omitted from API requests. See
  2749  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2750  	NullFields []string `json:"-"`
  2751  }
  2752  
  2753  func (s *FlightClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  2754  	type NoMethod FlightClassAddMessageResponse
  2755  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2756  }
  2757  
  2758  type FlightClassListResponse struct {
  2759  	// Pagination: Pagination of the response.
  2760  	Pagination *Pagination `json:"pagination,omitempty"`
  2761  	// Resources: Resources corresponding to the list request.
  2762  	Resources []*FlightClass `json:"resources,omitempty"`
  2763  
  2764  	// ServerResponse contains the HTTP response code and headers from the server.
  2765  	googleapi.ServerResponse `json:"-"`
  2766  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  2767  	// unconditionally include in API requests. By default, fields with empty or
  2768  	// default values are omitted from API requests. See
  2769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2770  	// details.
  2771  	ForceSendFields []string `json:"-"`
  2772  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  2773  	// requests with the JSON null value. By default, fields with empty values are
  2774  	// omitted from API requests. See
  2775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2776  	NullFields []string `json:"-"`
  2777  }
  2778  
  2779  func (s *FlightClassListResponse) MarshalJSON() ([]byte, error) {
  2780  	type NoMethod FlightClassListResponse
  2781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2782  }
  2783  
  2784  type FlightHeader struct {
  2785  	// Carrier: Information about airline carrier. This is a required property of
  2786  	// `flightHeader`.
  2787  	Carrier *FlightCarrier `json:"carrier,omitempty"`
  2788  	// FlightNumber: The flight number without IATA carrier code. This field should
  2789  	// contain only digits. This is a required property of `flightHeader`. eg:
  2790  	// "123"
  2791  	FlightNumber string `json:"flightNumber,omitempty"`
  2792  	// FlightNumberDisplayOverride: Override value to use for flight number. The
  2793  	// default value used for display purposes is carrier + flight_number. If a
  2794  	// different value needs to be shown to passengers, use this field to override
  2795  	// the default behavior. eg: "XX1234 / YY576"
  2796  	FlightNumberDisplayOverride string `json:"flightNumberDisplayOverride,omitempty"`
  2797  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2798  	// "walletobjects#flightHeader".
  2799  	Kind string `json:"kind,omitempty"`
  2800  	// OperatingCarrier: Information about operating airline carrier.
  2801  	OperatingCarrier *FlightCarrier `json:"operatingCarrier,omitempty"`
  2802  	// OperatingFlightNumber: The flight number used by the operating carrier
  2803  	// without IATA carrier code. This field should contain only digits. eg: "234"
  2804  	OperatingFlightNumber string `json:"operatingFlightNumber,omitempty"`
  2805  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
  2806  	// include in API requests. By default, fields with empty or default values are
  2807  	// omitted from API requests. See
  2808  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2809  	// details.
  2810  	ForceSendFields []string `json:"-"`
  2811  	// NullFields is a list of field names (e.g. "Carrier") to include in API
  2812  	// requests with the JSON null value. By default, fields with empty values are
  2813  	// omitted from API requests. See
  2814  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2815  	NullFields []string `json:"-"`
  2816  }
  2817  
  2818  func (s *FlightHeader) MarshalJSON() ([]byte, error) {
  2819  	type NoMethod FlightHeader
  2820  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2821  }
  2822  
  2823  type FlightObject struct {
  2824  	// AppLinkData: Optional information about the partner app link.
  2825  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  2826  	// Barcode: The barcode type and value.
  2827  	Barcode *Barcode `json:"barcode,omitempty"`
  2828  	// BoardingAndSeatingInfo: Passenger specific information about boarding and
  2829  	// seating.
  2830  	BoardingAndSeatingInfo *BoardingAndSeatingInfo `json:"boardingAndSeatingInfo,omitempty"`
  2831  	// ClassId: Required. The class associated with this object. The class must be
  2832  	// of the same type as this object, must already exist, and must be approved.
  2833  	// Class IDs should follow the format issuer ID.identifier where the former is
  2834  	// issued by Google and latter is chosen by you.
  2835  	ClassId string `json:"classId,omitempty"`
  2836  	// ClassReference: A copy of the inherited fields of the parent class. These
  2837  	// fields are retrieved during a GET.
  2838  	ClassReference *FlightClass `json:"classReference,omitempty"`
  2839  	// DisableExpirationNotification: Indicates if notifications should explicitly
  2840  	// be suppressed. If this field is set to true, regardless of the `messages`
  2841  	// field, expiration notifications to the user will be suppressed. By default,
  2842  	// this field is set to false. Currently, this can only be set for Flights.
  2843  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  2844  	// GroupingInfo: Information that controls how passes are grouped together.
  2845  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  2846  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  2847  	// This field is set by the platform when a user saves the object, linking it
  2848  	// to their device. Intended for use by select partners. Contact support for
  2849  	// additional information.
  2850  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  2851  	// HasUsers: Indicates if the object has users. This field is set by the
  2852  	// platform.
  2853  	HasUsers bool `json:"hasUsers,omitempty"`
  2854  	// HeroImage: Optional banner image displayed on the front of the card. If none
  2855  	// is present, hero image of the class, if present, will be displayed. If hero
  2856  	// image of the class is also not present, nothing will be displayed.
  2857  	HeroImage *Image `json:"heroImage,omitempty"`
  2858  	// HexBackgroundColor: The background color for the card. If not set the
  2859  	// dominant color of the hero image is used, and if no hero image is set, the
  2860  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  2861  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  2862  	// of the RGB triplet which is #rgb, such as `#fc0`.
  2863  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  2864  	// Id: Required. The unique identifier for an object. This ID must be unique
  2865  	// across all objects from an issuer. This value should follow the format
  2866  	// issuer ID.identifier where the former is issued by Google and latter is
  2867  	// chosen by you. The unique identifier should only include alphanumeric
  2868  	// characters, '.', '_', or '-'.
  2869  	Id string `json:"id,omitempty"`
  2870  	// ImageModulesData: Image module data. The maximum number of these fields
  2871  	// displayed is 1 from object level and 1 for class object level.
  2872  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  2873  	// InfoModuleData: Deprecated. Use textModulesData instead.
  2874  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  2875  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2876  	// "walletobjects#flightObject".
  2877  	Kind string `json:"kind,omitempty"`
  2878  	// LinksModuleData: Links module data. If links module data is also defined on
  2879  	// the class, both will be displayed.
  2880  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  2881  	// Locations: Note: This field is currently not supported to trigger geo
  2882  	// notifications.
  2883  	Locations []*LatLongPoint `json:"locations,omitempty"`
  2884  	// Messages: An array of messages displayed in the app. All users of this
  2885  	// object will receive its associated messages. The maximum number of these
  2886  	// fields is 10.
  2887  	Messages []*Message `json:"messages,omitempty"`
  2888  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  2889  	// screenshot behaviors.
  2890  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  2891  	// PassengerName: Required. Passenger name as it would appear on the boarding
  2892  	// pass. eg: "Dave M Gahan" or "Gahan/Dave" or "GAHAN/DAVEM"
  2893  	PassengerName string `json:"passengerName,omitempty"`
  2894  	// ReservationInfo: Required. Information about flight reservation.
  2895  	ReservationInfo *ReservationInfo `json:"reservationInfo,omitempty"`
  2896  	// RotatingBarcode: The rotating barcode type and value.
  2897  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  2898  	// SecurityProgramLogo: An image for the security program that applies to the
  2899  	// passenger.
  2900  	SecurityProgramLogo *Image `json:"securityProgramLogo,omitempty"`
  2901  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  2902  	// certified terminal over NFC for this object. The class level fields
  2903  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  2904  	// order for the pass to support Smart Tap. Only ASCII characters are
  2905  	// supported.
  2906  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  2907  	// State: Required. The state of the object. This field is used to determine
  2908  	// how an object is displayed in the app. For example, an `inactive` object is
  2909  	// moved to the "Expired passes" section.
  2910  	//
  2911  	// Possible values:
  2912  	//   "STATE_UNSPECIFIED"
  2913  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  2914  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  2915  	//   "COMPLETED"
  2916  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  2917  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  2918  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  2919  	//   "INACTIVE"
  2920  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  2921  	State string `json:"state,omitempty"`
  2922  	// TextModulesData: Text module data. If text module data is also defined on
  2923  	// the class, both will be displayed. The maximum number of these fields
  2924  	// displayed is 10 from the object and 10 from the class.
  2925  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  2926  	// ValidTimeInterval: The time period this object will be `active` and object
  2927  	// can be used. An object's state will be changed to `expired` when this time
  2928  	// period has passed.
  2929  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  2930  	// Version: Deprecated
  2931  	Version int64 `json:"version,omitempty,string"`
  2932  
  2933  	// ServerResponse contains the HTTP response code and headers from the server.
  2934  	googleapi.ServerResponse `json:"-"`
  2935  	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
  2936  	// unconditionally include in API requests. By default, fields with empty or
  2937  	// default values are omitted from API requests. See
  2938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2939  	// details.
  2940  	ForceSendFields []string `json:"-"`
  2941  	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
  2942  	// requests with the JSON null value. By default, fields with empty values are
  2943  	// omitted from API requests. See
  2944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2945  	NullFields []string `json:"-"`
  2946  }
  2947  
  2948  func (s *FlightObject) MarshalJSON() ([]byte, error) {
  2949  	type NoMethod FlightObject
  2950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2951  }
  2952  
  2953  type FlightObjectAddMessageResponse struct {
  2954  	// Resource: The updated FlightObject resource.
  2955  	Resource *FlightObject `json:"resource,omitempty"`
  2956  
  2957  	// ServerResponse contains the HTTP response code and headers from the server.
  2958  	googleapi.ServerResponse `json:"-"`
  2959  	// ForceSendFields is a list of field names (e.g. "Resource") to
  2960  	// unconditionally include in API requests. By default, fields with empty or
  2961  	// default values are omitted from API requests. See
  2962  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2963  	// details.
  2964  	ForceSendFields []string `json:"-"`
  2965  	// NullFields is a list of field names (e.g. "Resource") to include in API
  2966  	// requests with the JSON null value. By default, fields with empty values are
  2967  	// omitted from API requests. See
  2968  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2969  	NullFields []string `json:"-"`
  2970  }
  2971  
  2972  func (s *FlightObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  2973  	type NoMethod FlightObjectAddMessageResponse
  2974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2975  }
  2976  
  2977  type FlightObjectListResponse struct {
  2978  	// Pagination: Pagination of the response.
  2979  	Pagination *Pagination `json:"pagination,omitempty"`
  2980  	// Resources: Resources corresponding to the list request.
  2981  	Resources []*FlightObject `json:"resources,omitempty"`
  2982  
  2983  	// ServerResponse contains the HTTP response code and headers from the server.
  2984  	googleapi.ServerResponse `json:"-"`
  2985  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  2986  	// unconditionally include in API requests. By default, fields with empty or
  2987  	// default values are omitted from API requests. See
  2988  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2989  	// details.
  2990  	ForceSendFields []string `json:"-"`
  2991  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  2992  	// requests with the JSON null value. By default, fields with empty values are
  2993  	// omitted from API requests. See
  2994  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2995  	NullFields []string `json:"-"`
  2996  }
  2997  
  2998  func (s *FlightObjectListResponse) MarshalJSON() ([]byte, error) {
  2999  	type NoMethod FlightObjectListResponse
  3000  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3001  }
  3002  
  3003  type FrequentFlyerInfo struct {
  3004  	// FrequentFlyerNumber: Frequent flyer number. Required for each nested object
  3005  	// of kind `walletobjects#frequentFlyerInfo`.
  3006  	FrequentFlyerNumber string `json:"frequentFlyerNumber,omitempty"`
  3007  	// FrequentFlyerProgramName: Frequent flyer program name. eg: "Lufthansa Miles
  3008  	// & More"
  3009  	FrequentFlyerProgramName *LocalizedString `json:"frequentFlyerProgramName,omitempty"`
  3010  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  3011  	// "walletobjects#frequentFlyerInfo".
  3012  	Kind string `json:"kind,omitempty"`
  3013  	// ForceSendFields is a list of field names (e.g. "FrequentFlyerNumber") to
  3014  	// unconditionally include in API requests. By default, fields with empty or
  3015  	// default values are omitted from API requests. See
  3016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3017  	// details.
  3018  	ForceSendFields []string `json:"-"`
  3019  	// NullFields is a list of field names (e.g. "FrequentFlyerNumber") to include
  3020  	// in API requests with the JSON null value. By default, fields with empty
  3021  	// values are omitted from API requests. See
  3022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3023  	NullFields []string `json:"-"`
  3024  }
  3025  
  3026  func (s *FrequentFlyerInfo) MarshalJSON() ([]byte, error) {
  3027  	type NoMethod FrequentFlyerInfo
  3028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3029  }
  3030  
  3031  // GenericClass: Generic Class
  3032  type GenericClass struct {
  3033  	// CallbackOptions: Callback options to be used to call the issuer back for
  3034  	// every save/delete of an object for this class by the end-user. All objects
  3035  	// of this class are eligible for the callback.
  3036  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  3037  	// ClassTemplateInfo: Template information about how the class should be
  3038  	// displayed. If unset, Google will fallback to a default set of fields to
  3039  	// display.
  3040  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  3041  	// EnableSmartTap: Available only to Smart Tap enabled partners. Contact
  3042  	// support for additional guidance.
  3043  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  3044  	// Id: Required. The unique identifier for the class. This ID must be unique
  3045  	// across all from an issuer. This value needs to follow the format
  3046  	// `issuerID.identifier` where `issuerID` is issued by Google and `identifier`
  3047  	// is chosen by you. The unique identifier can only include alphanumeric
  3048  	// characters, `.`, `_`, or `-`.
  3049  	Id string `json:"id,omitempty"`
  3050  	// ImageModulesData: Image module data. If `imageModulesData` is also defined
  3051  	// on the object, both will be displayed. Only one of the image from class and
  3052  	// one from object level will be rendered when both set.
  3053  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  3054  	// LinksModuleData: Links module data. If `linksModuleData` is also defined on
  3055  	// the object, both will be displayed. The maximum number of these fields
  3056  	// displayed is 10 from class and 10 from object.
  3057  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  3058  	// Messages: An array of messages displayed in the app. All users of this
  3059  	// object will receive its associated messages. The maximum number of these
  3060  	// fields is 10.
  3061  	Messages []*Message `json:"messages,omitempty"`
  3062  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  3063  	// and devices will save the same object referencing this class.
  3064  	//
  3065  	// Possible values:
  3066  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  3067  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  3068  	// saved by any number of different users, and on any number of devices.
  3069  	// Partners typically use this setup for passes that do not need to be
  3070  	// restricted to a single user or pinned to a single device.
  3071  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  3072  	// user can view and use it on multiple of their devices. Once the first user
  3073  	// saves the object, no other user will be allowed to view or save it.
  3074  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  3075  	// single device. Intended for use by select partners in limited circumstances.
  3076  	// An example use case is a transit ticket that should be "device pinned",
  3077  	// meaning it can be saved, viewed and used only by a single user on a single
  3078  	// device. Contact support for additional information.
  3079  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  3080  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  3081  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  3082  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  3083  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  3084  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  3085  	// Redemption issuers must have at least one Smart Tap key configured. The
  3086  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  3087  	// be set up correctly in order for a pass to support Smart Tap.
  3088  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  3089  	// SecurityAnimation: Optional information about the security animation. If
  3090  	// this is set a security animation will be rendered on pass details.
  3091  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  3092  	// TextModulesData: Text module data. If `textModulesData` is also defined on
  3093  	// the object, both will be displayed. The maximum number of these fields
  3094  	// displayed is 10 from class and 10 from object.
  3095  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  3096  	// ViewUnlockRequirement: View Unlock Requirement options for the generic pass.
  3097  	//
  3098  	// Possible values:
  3099  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  3100  	// UNLOCK_NOT_REQUIRED.
  3101  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  3102  	// ViewUnlockRequirement is not set.
  3103  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  3104  	// time the pass is viewed. If the user removes their device lock after saving
  3105  	// the pass, then they will be prompted to create a device lock before the pass
  3106  	// can be viewed.
  3107  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  3108  
  3109  	// ServerResponse contains the HTTP response code and headers from the server.
  3110  	googleapi.ServerResponse `json:"-"`
  3111  	// ForceSendFields is a list of field names (e.g. "CallbackOptions") to
  3112  	// unconditionally include in API requests. By default, fields with empty or
  3113  	// default values are omitted from API requests. See
  3114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3115  	// details.
  3116  	ForceSendFields []string `json:"-"`
  3117  	// NullFields is a list of field names (e.g. "CallbackOptions") to include in
  3118  	// API requests with the JSON null value. By default, fields with empty values
  3119  	// are omitted from API requests. See
  3120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3121  	NullFields []string `json:"-"`
  3122  }
  3123  
  3124  func (s *GenericClass) MarshalJSON() ([]byte, error) {
  3125  	type NoMethod GenericClass
  3126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3127  }
  3128  
  3129  // GenericClassAddMessageResponse: Response to adding a new issuer message to
  3130  // the class. This contains the entire updated GenericClass.
  3131  type GenericClassAddMessageResponse struct {
  3132  	// Resource: The updated EventTicketClass resource.
  3133  	Resource *GenericClass `json:"resource,omitempty"`
  3134  
  3135  	// ServerResponse contains the HTTP response code and headers from the server.
  3136  	googleapi.ServerResponse `json:"-"`
  3137  	// ForceSendFields is a list of field names (e.g. "Resource") to
  3138  	// unconditionally include in API requests. By default, fields with empty or
  3139  	// default values are omitted from API requests. See
  3140  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3141  	// details.
  3142  	ForceSendFields []string `json:"-"`
  3143  	// NullFields is a list of field names (e.g. "Resource") to include in API
  3144  	// requests with the JSON null value. By default, fields with empty values are
  3145  	// omitted from API requests. See
  3146  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3147  	NullFields []string `json:"-"`
  3148  }
  3149  
  3150  func (s *GenericClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  3151  	type NoMethod GenericClassAddMessageResponse
  3152  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3153  }
  3154  
  3155  // GenericClassListResponse: List response which contains the list of all
  3156  // generic classes for a given issuer ID.
  3157  type GenericClassListResponse struct {
  3158  	// Pagination: Pagination of the response.
  3159  	Pagination *Pagination `json:"pagination,omitempty"`
  3160  	// Resources: Resources corresponding to the list request.
  3161  	Resources []*GenericClass `json:"resources,omitempty"`
  3162  
  3163  	// ServerResponse contains the HTTP response code and headers from the server.
  3164  	googleapi.ServerResponse `json:"-"`
  3165  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  3166  	// unconditionally include in API requests. By default, fields with empty or
  3167  	// default values are omitted from API requests. See
  3168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3169  	// details.
  3170  	ForceSendFields []string `json:"-"`
  3171  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  3172  	// requests with the JSON null value. By default, fields with empty values are
  3173  	// omitted from API requests. See
  3174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3175  	NullFields []string `json:"-"`
  3176  }
  3177  
  3178  func (s *GenericClassListResponse) MarshalJSON() ([]byte, error) {
  3179  	type NoMethod GenericClassListResponse
  3180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3181  }
  3182  
  3183  // GenericObject: Generic Object
  3184  type GenericObject struct {
  3185  	// AppLinkData: Information about the partner app link. The maximum number of
  3186  	// these fields displayed is 10.
  3187  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  3188  	// Barcode: The barcode type and value. If pass does not have a barcode, we can
  3189  	// allow the issuer to set Barcode.alternate_text and display just that.
  3190  	Barcode *Barcode `json:"barcode,omitempty"`
  3191  	// CardTitle: Required. The header of the pass. This is usually the Business
  3192  	// name such as "XXX Gym", "AAA Insurance". This field is required and appears
  3193  	// in the header row at the very top of the pass.
  3194  	CardTitle *LocalizedString `json:"cardTitle,omitempty"`
  3195  	// ClassId: Required. The class associated with this object. The class must be
  3196  	// of the same type as this object, must already exist, and must be approved.
  3197  	// Class IDs should follow the format `issuerID.identifier` where `issuerID` is
  3198  	// issued by Google and `identifier` is chosen by you.
  3199  	ClassId string `json:"classId,omitempty"`
  3200  	// GenericType: Specify which `GenericType` the card belongs to.
  3201  	//
  3202  	// Possible values:
  3203  	//   "GENERIC_TYPE_UNSPECIFIED" - Unspecified generic type.
  3204  	//   "GENERIC_SEASON_PASS" - Season pass
  3205  	//   "GENERIC_UTILITY_BILLS" - Utility bills
  3206  	//   "GENERIC_PARKING_PASS" - Parking pass
  3207  	//   "GENERIC_VOUCHER" - Voucher
  3208  	//   "GENERIC_GYM_MEMBERSHIP" - Gym membership cards
  3209  	//   "GENERIC_LIBRARY_MEMBERSHIP" - Library membership cards
  3210  	//   "GENERIC_RESERVATIONS" - Reservations
  3211  	//   "GENERIC_AUTO_INSURANCE" - Auto-insurance cards
  3212  	//   "GENERIC_HOME_INSURANCE" - Home-insurance cards
  3213  	//   "GENERIC_ENTRY_TICKET" - Entry tickets
  3214  	//   "GENERIC_RECEIPT" - Receipts
  3215  	//   "GENERIC_OTHER" - Other type
  3216  	GenericType string `json:"genericType,omitempty"`
  3217  	// GroupingInfo: Information that controls how passes are grouped together.
  3218  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  3219  	// HasUsers: Indicates if the object has users. This field is set by the
  3220  	// platform.
  3221  	HasUsers bool `json:"hasUsers,omitempty"`
  3222  	// Header: Required. The title of the pass, such as "50% off coupon" or
  3223  	// "Library card" or "Voucher". This field is required and appears in the title
  3224  	// row of the pass detail view.
  3225  	Header *LocalizedString `json:"header,omitempty"`
  3226  	// HeroImage: Banner image displayed on the front of the card if present. The
  3227  	// image will be displayed at 100% width.
  3228  	HeroImage *Image `json:"heroImage,omitempty"`
  3229  	// HexBackgroundColor: The background color for the card. If not set, the
  3230  	// dominant color of the hero image is used, and if no hero image is set, the
  3231  	// dominant color of the logo is used and if logo is not set, a color would be
  3232  	// chosen by Google.
  3233  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  3234  	// Id: Required. The unique identifier for an object. This ID must be unique
  3235  	// across all objects from an issuer. This value needs to follow the format
  3236  	// `issuerID.identifier` where `issuerID` is issued by Google and `identifier`
  3237  	// is chosen by you. The unique identifier can only include alphanumeric
  3238  	// characters, `.`, `_`, or `-`.
  3239  	Id string `json:"id,omitempty"`
  3240  	// ImageModulesData: Image module data. Only one of the image from class and
  3241  	// one from object level will be rendered when both set.
  3242  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  3243  	// LinksModuleData: Links module data. If `linksModuleData` is also defined on
  3244  	// the class, both will be displayed. The maximum number of these fields
  3245  	// displayed is 10 from class and 10 from object.
  3246  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  3247  	// Logo: The logo image of the pass. This image is displayed in the card detail
  3248  	// view in upper left, and also on the list/thumbnail view. If the logo is not
  3249  	// present, the first letter of `cardTitle` would be shown as logo.
  3250  	Logo *Image `json:"logo,omitempty"`
  3251  	// Notifications: The notification settings that are enabled for this object.
  3252  	Notifications *Notifications `json:"notifications,omitempty"`
  3253  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  3254  	// screenshot behaviors.
  3255  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  3256  	// RotatingBarcode: The rotating barcode settings/details.
  3257  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  3258  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  3259  	// certified terminal over NFC for this object. The class level fields
  3260  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  3261  	// order for the pass to support Smart Tap. Only ASCII characters are
  3262  	// supported.
  3263  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  3264  	// State: The state of the object. This field is used to determine how an
  3265  	// object is displayed in the app. For example, an `inactive` object is moved
  3266  	// to the "Expired passes" section. If this is not provided, the object would
  3267  	// be considered `ACTIVE`.
  3268  	//
  3269  	// Possible values:
  3270  	//   "STATE_UNSPECIFIED"
  3271  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  3272  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  3273  	//   "COMPLETED"
  3274  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  3275  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  3276  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  3277  	//   "INACTIVE"
  3278  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  3279  	State string `json:"state,omitempty"`
  3280  	// Subheader: The title label of the pass, such as location where this pass can
  3281  	// be used. Appears right above the title in the title row in the pass detail
  3282  	// view.
  3283  	Subheader *LocalizedString `json:"subheader,omitempty"`
  3284  	// TextModulesData: Text module data. If `textModulesData` is also defined on
  3285  	// the class, both will be displayed. The maximum number of these fields
  3286  	// displayed is 10 from class and 10 from object.
  3287  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  3288  	// ValidTimeInterval: The time period this object will be considered valid or
  3289  	// usable. When the time period is passed, the object will be considered
  3290  	// expired, which will affect the rendering on user's devices.
  3291  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  3292  	// WideLogo: The wide logo of the pass. When provided, this will be used in
  3293  	// place of the logo in the top left of the card view.
  3294  	WideLogo *Image `json:"wideLogo,omitempty"`
  3295  
  3296  	// ServerResponse contains the HTTP response code and headers from the server.
  3297  	googleapi.ServerResponse `json:"-"`
  3298  	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
  3299  	// unconditionally include in API requests. By default, fields with empty or
  3300  	// default values are omitted from API requests. See
  3301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3302  	// details.
  3303  	ForceSendFields []string `json:"-"`
  3304  	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
  3305  	// requests with the JSON null value. By default, fields with empty values are
  3306  	// omitted from API requests. See
  3307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3308  	NullFields []string `json:"-"`
  3309  }
  3310  
  3311  func (s *GenericObject) MarshalJSON() ([]byte, error) {
  3312  	type NoMethod GenericObject
  3313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3314  }
  3315  
  3316  // GenericObjectAddMessageResponse: Response to adding a new issuer message to
  3317  // the object. This contains the entire updated GenericObject.
  3318  type GenericObjectAddMessageResponse struct {
  3319  	// Resource: The updated GenericObject resource.
  3320  	Resource *GenericObject `json:"resource,omitempty"`
  3321  
  3322  	// ServerResponse contains the HTTP response code and headers from the server.
  3323  	googleapi.ServerResponse `json:"-"`
  3324  	// ForceSendFields is a list of field names (e.g. "Resource") to
  3325  	// unconditionally include in API requests. By default, fields with empty or
  3326  	// default values are omitted from API requests. See
  3327  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3328  	// details.
  3329  	ForceSendFields []string `json:"-"`
  3330  	// NullFields is a list of field names (e.g. "Resource") to include in API
  3331  	// requests with the JSON null value. By default, fields with empty values are
  3332  	// omitted from API requests. See
  3333  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3334  	NullFields []string `json:"-"`
  3335  }
  3336  
  3337  func (s *GenericObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  3338  	type NoMethod GenericObjectAddMessageResponse
  3339  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3340  }
  3341  
  3342  // GenericObjectListResponse: List response which contains the list of all
  3343  // generic objects for a given issuer ID.
  3344  type GenericObjectListResponse struct {
  3345  	// Pagination: Pagination of the response.
  3346  	Pagination *Pagination `json:"pagination,omitempty"`
  3347  	// Resources: Resources corresponding to the list request.
  3348  	Resources []*GenericObject `json:"resources,omitempty"`
  3349  
  3350  	// ServerResponse contains the HTTP response code and headers from the server.
  3351  	googleapi.ServerResponse `json:"-"`
  3352  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  3353  	// unconditionally include in API requests. By default, fields with empty or
  3354  	// default values are omitted from API requests. See
  3355  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3356  	// details.
  3357  	ForceSendFields []string `json:"-"`
  3358  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  3359  	// requests with the JSON null value. By default, fields with empty values are
  3360  	// omitted from API requests. See
  3361  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3362  	NullFields []string `json:"-"`
  3363  }
  3364  
  3365  func (s *GenericObjectListResponse) MarshalJSON() ([]byte, error) {
  3366  	type NoMethod GenericObjectListResponse
  3367  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3368  }
  3369  
  3370  type GiftCardClass struct {
  3371  	// AllowBarcodeRedemption: Determines whether the merchant supports gift card
  3372  	// redemption using barcode. If true, app displays a barcode for the gift card
  3373  	// on the Gift card details screen. If false, a barcode is not displayed.
  3374  	AllowBarcodeRedemption bool `json:"allowBarcodeRedemption,omitempty"`
  3375  	// AllowMultipleUsersPerObject: Deprecated. Use
  3376  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  3377  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  3378  	// CallbackOptions: Callback options to be used to call the issuer back for
  3379  	// every save/delete of an object for this class by the end-user. All objects
  3380  	// of this class are eligible for the callback.
  3381  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  3382  	// CardNumberLabel: The label to display for the card number, such as "Card
  3383  	// Number".
  3384  	CardNumberLabel string `json:"cardNumberLabel,omitempty"`
  3385  	// ClassTemplateInfo: Template information about how the class should be
  3386  	// displayed. If unset, Google will fallback to a default set of fields to
  3387  	// display.
  3388  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  3389  	// CountryCode: Country code used to display the card's country (when the user
  3390  	// is not in that country), as well as to display localized content when
  3391  	// content is not available in the user's locale.
  3392  	CountryCode string `json:"countryCode,omitempty"`
  3393  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  3394  	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
  3395  	// also be set up correctly in order for a pass to support Smart Tap.
  3396  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  3397  	// EventNumberLabel: The label to display for event number, such as "Target
  3398  	// Event #".
  3399  	EventNumberLabel string `json:"eventNumberLabel,omitempty"`
  3400  	// HeroImage: Optional banner image displayed on the front of the card. If none
  3401  	// is present, nothing will be displayed. The image will display at 100% width.
  3402  	HeroImage *Image `json:"heroImage,omitempty"`
  3403  	// HexBackgroundColor: The background color for the card. If not set the
  3404  	// dominant color of the hero image is used, and if no hero image is set, the
  3405  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  3406  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  3407  	// of the RGB triplet which is #rgb, such as `#fc0`.
  3408  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  3409  	// HomepageUri: The URI of your application's home page. Populating the URI in
  3410  	// this field results in the exact same behavior as populating an URI in
  3411  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  3412  	// in what would usually be thought of as the linksModuleData section of the
  3413  	// object).
  3414  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  3415  	// Id: Required. The unique identifier for a class. This ID must be unique
  3416  	// across all classes from an issuer. This value should follow the format
  3417  	// issuer ID. identifier where the former is issued by Google and latter is
  3418  	// chosen by you. Your unique identifier should only include alphanumeric
  3419  	// characters, '.', '_', or '-'.
  3420  	Id string `json:"id,omitempty"`
  3421  	// ImageModulesData: Image module data. The maximum number of these fields
  3422  	// displayed is 1 from object level and 1 for class object level.
  3423  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  3424  	// InfoModuleData: Deprecated. Use textModulesData instead.
  3425  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  3426  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  3427  	// characters to ensure full string is displayed on smaller screens.
  3428  	IssuerName string `json:"issuerName,omitempty"`
  3429  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  3430  	// "walletobjects#giftCardClass".
  3431  	Kind string `json:"kind,omitempty"`
  3432  	// LinksModuleData: Links module data. If links module data is also defined on
  3433  	// the object, both will be displayed.
  3434  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  3435  	// LocalizedCardNumberLabel: Translated strings for the card_number_label.
  3436  	LocalizedCardNumberLabel *LocalizedString `json:"localizedCardNumberLabel,omitempty"`
  3437  	// LocalizedEventNumberLabel: Translated strings for the event_number_label.
  3438  	LocalizedEventNumberLabel *LocalizedString `json:"localizedEventNumberLabel,omitempty"`
  3439  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  3440  	// maximum length is 20 characters to ensure full string is displayed on
  3441  	// smaller screens.
  3442  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  3443  	// LocalizedMerchantName: Translated strings for the merchant_name. The app may
  3444  	// display an ellipsis after the first 20 characters to ensure full string is
  3445  	// displayed on smaller screens.
  3446  	LocalizedMerchantName *LocalizedString `json:"localizedMerchantName,omitempty"`
  3447  	// LocalizedPinLabel: Translated strings for the pin_label.
  3448  	LocalizedPinLabel *LocalizedString `json:"localizedPinLabel,omitempty"`
  3449  	// Locations: Note: This field is currently not supported to trigger geo
  3450  	// notifications.
  3451  	Locations []*LatLongPoint `json:"locations,omitempty"`
  3452  	// MerchantName: Merchant name, such as "Adam's Apparel". The app may display
  3453  	// an ellipsis after the first 20 characters to ensure full string is displayed
  3454  	// on smaller screens.
  3455  	MerchantName string `json:"merchantName,omitempty"`
  3456  	// Messages: An array of messages displayed in the app. All users of this
  3457  	// object will receive its associated messages. The maximum number of these
  3458  	// fields is 10.
  3459  	Messages []*Message `json:"messages,omitempty"`
  3460  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  3461  	// and devices will save the same object referencing this class.
  3462  	//
  3463  	// Possible values:
  3464  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  3465  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  3466  	// saved by any number of different users, and on any number of devices.
  3467  	// Partners typically use this setup for passes that do not need to be
  3468  	// restricted to a single user or pinned to a single device.
  3469  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  3470  	// user can view and use it on multiple of their devices. Once the first user
  3471  	// saves the object, no other user will be allowed to view or save it.
  3472  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  3473  	// single device. Intended for use by select partners in limited circumstances.
  3474  	// An example use case is a transit ticket that should be "device pinned",
  3475  	// meaning it can be saved, viewed and used only by a single user on a single
  3476  	// device. Contact support for additional information.
  3477  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  3478  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  3479  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  3480  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  3481  	// PinLabel: The label to display for the PIN, such as "4-digit PIN".
  3482  	PinLabel string `json:"pinLabel,omitempty"`
  3483  	// ProgramLogo: The logo of the gift card program or company. This logo is
  3484  	// displayed in both the details and list views of the app.
  3485  	ProgramLogo *Image `json:"programLogo,omitempty"`
  3486  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  3487  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  3488  	// Redemption issuers must have at least one Smart Tap key configured. The
  3489  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  3490  	// be set up correctly in order for a pass to support Smart Tap.
  3491  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  3492  	// Review: The review comments set by the platform when a class is marked
  3493  	// `approved` or `rejected`.
  3494  	Review *Review `json:"review,omitempty"`
  3495  	// ReviewStatus: Required. The status of the class. This field can be set to
  3496  	// `draft` or `underReview` using the insert, patch, or update API calls. Once
  3497  	// the review state is changed from `draft` it may not be changed back to
  3498  	// `draft`. You should keep this field to `draft` when the class is under
  3499  	// development. A `draft` class cannot be used to create any object. You should
  3500  	// set this field to `underReview` when you believe the class is ready for use.
  3501  	// The platform will automatically set this field to `approved` and it can be
  3502  	// immediately used to create or migrate objects. When updating an already
  3503  	// `approved` class you should keep setting this field to `underReview`.
  3504  	//
  3505  	// Possible values:
  3506  	//   "REVIEW_STATUS_UNSPECIFIED"
  3507  	//   "UNDER_REVIEW"
  3508  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  3509  	//   "APPROVED"
  3510  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  3511  	//   "REJECTED"
  3512  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  3513  	//   "DRAFT"
  3514  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  3515  	ReviewStatus string `json:"reviewStatus,omitempty"`
  3516  	// SecurityAnimation: Optional information about the security animation. If
  3517  	// this is set a security animation will be rendered on pass details.
  3518  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  3519  	// TextModulesData: Text module data. If text module data is also defined on
  3520  	// the class, both will be displayed. The maximum number of these fields
  3521  	// displayed is 10 from the object and 10 from the class.
  3522  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  3523  	// Version: Deprecated
  3524  	Version int64 `json:"version,omitempty,string"`
  3525  	// ViewUnlockRequirement: View Unlock Requirement options for the gift card.
  3526  	//
  3527  	// Possible values:
  3528  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  3529  	// UNLOCK_NOT_REQUIRED.
  3530  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  3531  	// ViewUnlockRequirement is not set.
  3532  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  3533  	// time the pass is viewed. If the user removes their device lock after saving
  3534  	// the pass, then they will be prompted to create a device lock before the pass
  3535  	// can be viewed.
  3536  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  3537  	// WideProgramLogo: The wide logo of the gift card program or company. When
  3538  	// provided, this will be used in place of the program logo in the top left of
  3539  	// the card view.
  3540  	WideProgramLogo *Image `json:"wideProgramLogo,omitempty"`
  3541  	// WordMark: Deprecated.
  3542  	WordMark *Image `json:"wordMark,omitempty"`
  3543  
  3544  	// ServerResponse contains the HTTP response code and headers from the server.
  3545  	googleapi.ServerResponse `json:"-"`
  3546  	// ForceSendFields is a list of field names (e.g. "AllowBarcodeRedemption") to
  3547  	// unconditionally include in API requests. By default, fields with empty or
  3548  	// default values are omitted from API requests. See
  3549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3550  	// details.
  3551  	ForceSendFields []string `json:"-"`
  3552  	// NullFields is a list of field names (e.g. "AllowBarcodeRedemption") to
  3553  	// include in API requests with the JSON null value. By default, fields with
  3554  	// empty values are omitted from API requests. See
  3555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3556  	NullFields []string `json:"-"`
  3557  }
  3558  
  3559  func (s *GiftCardClass) MarshalJSON() ([]byte, error) {
  3560  	type NoMethod GiftCardClass
  3561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3562  }
  3563  
  3564  type GiftCardClassAddMessageResponse struct {
  3565  	// Resource: The updated GiftCardClass resource.
  3566  	Resource *GiftCardClass `json:"resource,omitempty"`
  3567  
  3568  	// ServerResponse contains the HTTP response code and headers from the server.
  3569  	googleapi.ServerResponse `json:"-"`
  3570  	// ForceSendFields is a list of field names (e.g. "Resource") to
  3571  	// unconditionally include in API requests. By default, fields with empty or
  3572  	// default values are omitted from API requests. See
  3573  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3574  	// details.
  3575  	ForceSendFields []string `json:"-"`
  3576  	// NullFields is a list of field names (e.g. "Resource") to include in API
  3577  	// requests with the JSON null value. By default, fields with empty values are
  3578  	// omitted from API requests. See
  3579  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3580  	NullFields []string `json:"-"`
  3581  }
  3582  
  3583  func (s *GiftCardClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  3584  	type NoMethod GiftCardClassAddMessageResponse
  3585  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3586  }
  3587  
  3588  type GiftCardClassListResponse struct {
  3589  	// Pagination: Pagination of the response.
  3590  	Pagination *Pagination `json:"pagination,omitempty"`
  3591  	// Resources: Resources corresponding to the list request.
  3592  	Resources []*GiftCardClass `json:"resources,omitempty"`
  3593  
  3594  	// ServerResponse contains the HTTP response code and headers from the server.
  3595  	googleapi.ServerResponse `json:"-"`
  3596  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  3597  	// unconditionally include in API requests. By default, fields with empty or
  3598  	// default values are omitted from API requests. See
  3599  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3600  	// details.
  3601  	ForceSendFields []string `json:"-"`
  3602  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  3603  	// requests with the JSON null value. By default, fields with empty values are
  3604  	// omitted from API requests. See
  3605  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3606  	NullFields []string `json:"-"`
  3607  }
  3608  
  3609  func (s *GiftCardClassListResponse) MarshalJSON() ([]byte, error) {
  3610  	type NoMethod GiftCardClassListResponse
  3611  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3612  }
  3613  
  3614  type GiftCardObject struct {
  3615  	// AppLinkData: Optional information about the partner app link.
  3616  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  3617  	// Balance: The card's monetary balance.
  3618  	Balance *Money `json:"balance,omitempty"`
  3619  	// BalanceUpdateTime: The date and time when the balance was last updated.
  3620  	// Offset is required. If balance is updated and this property is not provided,
  3621  	// system will default to the current time.
  3622  	BalanceUpdateTime *DateTime `json:"balanceUpdateTime,omitempty"`
  3623  	// Barcode: The barcode type and value.
  3624  	Barcode *Barcode `json:"barcode,omitempty"`
  3625  	// CardNumber: Required. The card's number.
  3626  	CardNumber string `json:"cardNumber,omitempty"`
  3627  	// ClassId: Required. The class associated with this object. The class must be
  3628  	// of the same type as this object, must already exist, and must be approved.
  3629  	// Class IDs should follow the format issuer ID.identifier where the former is
  3630  	// issued by Google and latter is chosen by you.
  3631  	ClassId string `json:"classId,omitempty"`
  3632  	// ClassReference: A copy of the inherited fields of the parent class. These
  3633  	// fields are retrieved during a GET.
  3634  	ClassReference *GiftCardClass `json:"classReference,omitempty"`
  3635  	// DisableExpirationNotification: Indicates if notifications should explicitly
  3636  	// be suppressed. If this field is set to true, regardless of the `messages`
  3637  	// field, expiration notifications to the user will be suppressed. By default,
  3638  	// this field is set to false. Currently, this can only be set for offers.
  3639  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  3640  	// EventNumber: The card's event number, an optional field used by some gift
  3641  	// cards.
  3642  	EventNumber string `json:"eventNumber,omitempty"`
  3643  	// GroupingInfo: Information that controls how passes are grouped together.
  3644  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  3645  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  3646  	// This field is set by the platform when a user saves the object, linking it
  3647  	// to their device. Intended for use by select partners. Contact support for
  3648  	// additional information.
  3649  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  3650  	// HasUsers: Indicates if the object has users. This field is set by the
  3651  	// platform.
  3652  	HasUsers bool `json:"hasUsers,omitempty"`
  3653  	// HeroImage: Optional banner image displayed on the front of the card. If none
  3654  	// is present, hero image of the class, if present, will be displayed. If hero
  3655  	// image of the class is also not present, nothing will be displayed.
  3656  	HeroImage *Image `json:"heroImage,omitempty"`
  3657  	// Id: Required. The unique identifier for an object. This ID must be unique
  3658  	// across all objects from an issuer. This value should follow the format
  3659  	// issuer ID.identifier where the former is issued by Google and latter is
  3660  	// chosen by you. The unique identifier should only include alphanumeric
  3661  	// characters, '.', '_', or '-'.
  3662  	Id string `json:"id,omitempty"`
  3663  	// ImageModulesData: Image module data. The maximum number of these fields
  3664  	// displayed is 1 from object level and 1 for class object level.
  3665  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  3666  	// InfoModuleData: Deprecated. Use textModulesData instead.
  3667  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  3668  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  3669  	// "walletobjects#giftCardObject".
  3670  	Kind string `json:"kind,omitempty"`
  3671  	// LinksModuleData: Links module data. If links module data is also defined on
  3672  	// the class, both will be displayed.
  3673  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  3674  	// Locations: Note: This field is currently not supported to trigger geo
  3675  	// notifications.
  3676  	Locations []*LatLongPoint `json:"locations,omitempty"`
  3677  	// Messages: An array of messages displayed in the app. All users of this
  3678  	// object will receive its associated messages. The maximum number of these
  3679  	// fields is 10.
  3680  	Messages []*Message `json:"messages,omitempty"`
  3681  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  3682  	// screenshot behaviors.
  3683  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  3684  	// Pin: The card's PIN.
  3685  	Pin string `json:"pin,omitempty"`
  3686  	// RotatingBarcode: The rotating barcode type and value.
  3687  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  3688  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  3689  	// certified terminal over NFC for this object. The class level fields
  3690  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  3691  	// order for the pass to support Smart Tap. Only ASCII characters are
  3692  	// supported.
  3693  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  3694  	// State: Required. The state of the object. This field is used to determine
  3695  	// how an object is displayed in the app. For example, an `inactive` object is
  3696  	// moved to the "Expired passes" section.
  3697  	//
  3698  	// Possible values:
  3699  	//   "STATE_UNSPECIFIED"
  3700  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  3701  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  3702  	//   "COMPLETED"
  3703  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  3704  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  3705  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  3706  	//   "INACTIVE"
  3707  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  3708  	State string `json:"state,omitempty"`
  3709  	// TextModulesData: Text module data. If text module data is also defined on
  3710  	// the class, both will be displayed. The maximum number of these fields
  3711  	// displayed is 10 from the object and 10 from the class.
  3712  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  3713  	// ValidTimeInterval: The time period this object will be `active` and object
  3714  	// can be used. An object's state will be changed to `expired` when this time
  3715  	// period has passed.
  3716  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  3717  	// Version: Deprecated
  3718  	Version int64 `json:"version,omitempty,string"`
  3719  
  3720  	// ServerResponse contains the HTTP response code and headers from the server.
  3721  	googleapi.ServerResponse `json:"-"`
  3722  	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
  3723  	// unconditionally include in API requests. By default, fields with empty or
  3724  	// default values are omitted from API requests. See
  3725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3726  	// details.
  3727  	ForceSendFields []string `json:"-"`
  3728  	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
  3729  	// requests with the JSON null value. By default, fields with empty values are
  3730  	// omitted from API requests. See
  3731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3732  	NullFields []string `json:"-"`
  3733  }
  3734  
  3735  func (s *GiftCardObject) MarshalJSON() ([]byte, error) {
  3736  	type NoMethod GiftCardObject
  3737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3738  }
  3739  
  3740  type GiftCardObjectAddMessageResponse struct {
  3741  	// Resource: The updated GiftCardObject resource.
  3742  	Resource *GiftCardObject `json:"resource,omitempty"`
  3743  
  3744  	// ServerResponse contains the HTTP response code and headers from the server.
  3745  	googleapi.ServerResponse `json:"-"`
  3746  	// ForceSendFields is a list of field names (e.g. "Resource") to
  3747  	// unconditionally include in API requests. By default, fields with empty or
  3748  	// default values are omitted from API requests. See
  3749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3750  	// details.
  3751  	ForceSendFields []string `json:"-"`
  3752  	// NullFields is a list of field names (e.g. "Resource") to include in API
  3753  	// requests with the JSON null value. By default, fields with empty values are
  3754  	// omitted from API requests. See
  3755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3756  	NullFields []string `json:"-"`
  3757  }
  3758  
  3759  func (s *GiftCardObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  3760  	type NoMethod GiftCardObjectAddMessageResponse
  3761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3762  }
  3763  
  3764  type GiftCardObjectListResponse struct {
  3765  	// Pagination: Pagination of the response.
  3766  	Pagination *Pagination `json:"pagination,omitempty"`
  3767  	// Resources: Resources corresponding to the list request.
  3768  	Resources []*GiftCardObject `json:"resources,omitempty"`
  3769  
  3770  	// ServerResponse contains the HTTP response code and headers from the server.
  3771  	googleapi.ServerResponse `json:"-"`
  3772  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  3773  	// unconditionally include in API requests. By default, fields with empty or
  3774  	// default values are omitted from API requests. See
  3775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3776  	// details.
  3777  	ForceSendFields []string `json:"-"`
  3778  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  3779  	// requests with the JSON null value. By default, fields with empty values are
  3780  	// omitted from API requests. See
  3781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3782  	NullFields []string `json:"-"`
  3783  }
  3784  
  3785  func (s *GiftCardObjectListResponse) MarshalJSON() ([]byte, error) {
  3786  	type NoMethod GiftCardObjectListResponse
  3787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3788  }
  3789  
  3790  type GroupingInfo struct {
  3791  	// GroupingId: Optional grouping ID for grouping the passes with the same ID
  3792  	// visually together. Grouping with different types of passes is allowed.
  3793  	GroupingId string `json:"groupingId,omitempty"`
  3794  	// SortIndex: Optional index for sorting the passes when they are grouped with
  3795  	// other passes. Passes with lower sort index are shown before passes with
  3796  	// higher sort index. If unspecified, the value is assumed to be INT_MAX. For
  3797  	// two passes with the same sort index, the sorting behavior is undefined.
  3798  	SortIndex int64 `json:"sortIndex,omitempty"`
  3799  	// ForceSendFields is a list of field names (e.g. "GroupingId") to
  3800  	// unconditionally include in API requests. By default, fields with empty or
  3801  	// default values are omitted from API requests. See
  3802  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3803  	// details.
  3804  	ForceSendFields []string `json:"-"`
  3805  	// NullFields is a list of field names (e.g. "GroupingId") to include in API
  3806  	// requests with the JSON null value. By default, fields with empty values are
  3807  	// omitted from API requests. See
  3808  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3809  	NullFields []string `json:"-"`
  3810  }
  3811  
  3812  func (s *GroupingInfo) MarshalJSON() ([]byte, error) {
  3813  	type NoMethod GroupingInfo
  3814  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3815  }
  3816  
  3817  // Image: Wrapping type for Google hosted images. Next ID: 7
  3818  type Image struct {
  3819  	// ContentDescription: Description of the image used for accessibility.
  3820  	ContentDescription *LocalizedString `json:"contentDescription,omitempty"`
  3821  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  3822  	// "walletobjects#image".
  3823  	Kind string `json:"kind,omitempty"`
  3824  	// SourceUri: The URI for the image.
  3825  	SourceUri *ImageUri `json:"sourceUri,omitempty"`
  3826  	// ForceSendFields is a list of field names (e.g. "ContentDescription") to
  3827  	// unconditionally include in API requests. By default, fields with empty or
  3828  	// default values are omitted from API requests. See
  3829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3830  	// details.
  3831  	ForceSendFields []string `json:"-"`
  3832  	// NullFields is a list of field names (e.g. "ContentDescription") to include
  3833  	// in API requests with the JSON null value. By default, fields with empty
  3834  	// values are omitted from API requests. See
  3835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3836  	NullFields []string `json:"-"`
  3837  }
  3838  
  3839  func (s *Image) MarshalJSON() ([]byte, error) {
  3840  	type NoMethod Image
  3841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3842  }
  3843  
  3844  type ImageModuleData struct {
  3845  	// Id: The ID associated with an image module. This field is here to enable
  3846  	// ease of management of image modules.
  3847  	Id string `json:"id,omitempty"`
  3848  	// MainImage: A 100% width image.
  3849  	MainImage *Image `json:"mainImage,omitempty"`
  3850  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  3851  	// include in API requests. By default, fields with empty or default values are
  3852  	// omitted from API requests. See
  3853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3854  	// details.
  3855  	ForceSendFields []string `json:"-"`
  3856  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  3857  	// with the JSON null value. By default, fields with empty values are omitted
  3858  	// from API requests. See
  3859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3860  	NullFields []string `json:"-"`
  3861  }
  3862  
  3863  func (s *ImageModuleData) MarshalJSON() ([]byte, error) {
  3864  	type NoMethod ImageModuleData
  3865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3866  }
  3867  
  3868  type ImageUri struct {
  3869  	// Description: Additional information about the image, which is unused and
  3870  	// retained only for backward compatibility.
  3871  	Description string `json:"description,omitempty"`
  3872  	// LocalizedDescription: Translated strings for the description, which are
  3873  	// unused and retained only for backward compatibility.
  3874  	LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"`
  3875  	// Uri: The location of the image. URIs must have a scheme.
  3876  	Uri string `json:"uri,omitempty"`
  3877  	// ForceSendFields is a list of field names (e.g. "Description") to
  3878  	// unconditionally include in API requests. By default, fields with empty or
  3879  	// default values are omitted from API requests. See
  3880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3881  	// details.
  3882  	ForceSendFields []string `json:"-"`
  3883  	// NullFields is a list of field names (e.g. "Description") to include in API
  3884  	// requests with the JSON null value. By default, fields with empty values are
  3885  	// omitted from API requests. See
  3886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3887  	NullFields []string `json:"-"`
  3888  }
  3889  
  3890  func (s *ImageUri) MarshalJSON() ([]byte, error) {
  3891  	type NoMethod ImageUri
  3892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3893  }
  3894  
  3895  type InfoModuleData struct {
  3896  	// LabelValueRows: A list of collections of labels and values. These will be
  3897  	// displayed one after the other in a singular column.
  3898  	LabelValueRows     []*LabelValueRow `json:"labelValueRows,omitempty"`
  3899  	ShowLastUpdateTime bool             `json:"showLastUpdateTime,omitempty"`
  3900  	// ForceSendFields is a list of field names (e.g. "LabelValueRows") to
  3901  	// unconditionally include in API requests. By default, fields with empty or
  3902  	// default values are omitted from API requests. See
  3903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3904  	// details.
  3905  	ForceSendFields []string `json:"-"`
  3906  	// NullFields is a list of field names (e.g. "LabelValueRows") to include in
  3907  	// API requests with the JSON null value. By default, fields with empty values
  3908  	// are omitted from API requests. See
  3909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3910  	NullFields []string `json:"-"`
  3911  }
  3912  
  3913  func (s *InfoModuleData) MarshalJSON() ([]byte, error) {
  3914  	type NoMethod InfoModuleData
  3915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3916  }
  3917  
  3918  type Issuer struct {
  3919  	// CallbackOptions: Allows the issuer to provide their callback settings.
  3920  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  3921  	// ContactInfo: Issuer contact information.
  3922  	ContactInfo *IssuerContactInfo `json:"contactInfo,omitempty"`
  3923  	// HomepageUrl: URL for the issuer's home page.
  3924  	HomepageUrl string `json:"homepageUrl,omitempty"`
  3925  	// IssuerId: The unique identifier for an issuer account. This is automatically
  3926  	// generated when the issuer is inserted.
  3927  	IssuerId int64 `json:"issuerId,omitempty,string"`
  3928  	// Name: The account name of the issuer.
  3929  	Name string `json:"name,omitempty"`
  3930  	// SmartTapMerchantData: Available only to Smart Tap enabled partners. Contact
  3931  	// support for additional guidance.
  3932  	SmartTapMerchantData *SmartTapMerchantData `json:"smartTapMerchantData,omitempty"`
  3933  
  3934  	// ServerResponse contains the HTTP response code and headers from the server.
  3935  	googleapi.ServerResponse `json:"-"`
  3936  	// ForceSendFields is a list of field names (e.g. "CallbackOptions") to
  3937  	// unconditionally include in API requests. By default, fields with empty or
  3938  	// default values are omitted from API requests. See
  3939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3940  	// details.
  3941  	ForceSendFields []string `json:"-"`
  3942  	// NullFields is a list of field names (e.g. "CallbackOptions") to include in
  3943  	// API requests with the JSON null value. By default, fields with empty values
  3944  	// are omitted from API requests. See
  3945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3946  	NullFields []string `json:"-"`
  3947  }
  3948  
  3949  func (s *Issuer) MarshalJSON() ([]byte, error) {
  3950  	type NoMethod Issuer
  3951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3952  }
  3953  
  3954  type IssuerContactInfo struct {
  3955  	// AlertsEmails: Email addresses which will receive alerts.
  3956  	AlertsEmails []string `json:"alertsEmails,omitempty"`
  3957  	// Email: The primary contact email address.
  3958  	Email string `json:"email,omitempty"`
  3959  	// Name: The primary contact name.
  3960  	Name string `json:"name,omitempty"`
  3961  	// Phone: The primary contact phone number.
  3962  	Phone string `json:"phone,omitempty"`
  3963  	// ForceSendFields is a list of field names (e.g. "AlertsEmails") to
  3964  	// unconditionally include in API requests. By default, fields with empty or
  3965  	// default values are omitted from API requests. See
  3966  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3967  	// details.
  3968  	ForceSendFields []string `json:"-"`
  3969  	// NullFields is a list of field names (e.g. "AlertsEmails") to include in API
  3970  	// requests with the JSON null value. By default, fields with empty values are
  3971  	// omitted from API requests. See
  3972  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3973  	NullFields []string `json:"-"`
  3974  }
  3975  
  3976  func (s *IssuerContactInfo) MarshalJSON() ([]byte, error) {
  3977  	type NoMethod IssuerContactInfo
  3978  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3979  }
  3980  
  3981  type IssuerListResponse struct {
  3982  	// Resources: Resources corresponding to the list request.
  3983  	Resources []*Issuer `json:"resources,omitempty"`
  3984  
  3985  	// ServerResponse contains the HTTP response code and headers from the server.
  3986  	googleapi.ServerResponse `json:"-"`
  3987  	// ForceSendFields is a list of field names (e.g. "Resources") to
  3988  	// unconditionally include in API requests. By default, fields with empty or
  3989  	// default values are omitted from API requests. See
  3990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3991  	// details.
  3992  	ForceSendFields []string `json:"-"`
  3993  	// NullFields is a list of field names (e.g. "Resources") to include in API
  3994  	// requests with the JSON null value. By default, fields with empty values are
  3995  	// omitted from API requests. See
  3996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3997  	NullFields []string `json:"-"`
  3998  }
  3999  
  4000  func (s *IssuerListResponse) MarshalJSON() ([]byte, error) {
  4001  	type NoMethod IssuerListResponse
  4002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4003  }
  4004  
  4005  type IssuerToUserInfo struct {
  4006  	// Possible values:
  4007  	//   "ACTION_UNSPECIFIED"
  4008  	//   "S2AP"
  4009  	//   "s2ap" - Legacy alias for `S2AP`. Deprecated.
  4010  	//   "SIGN_UP"
  4011  	//   "signUp" - Legacy alias for `SIGN_UP`. Deprecated.
  4012  	Action     string      `json:"action,omitempty"`
  4013  	SignUpInfo *SignUpInfo `json:"signUpInfo,omitempty"`
  4014  	// Url: Currently not used, consider deprecating.
  4015  	Url string `json:"url,omitempty"`
  4016  	// Value: JSON web token for action S2AP.
  4017  	Value string `json:"value,omitempty"`
  4018  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  4019  	// include in API requests. By default, fields with empty or default values are
  4020  	// omitted from API requests. See
  4021  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4022  	// details.
  4023  	ForceSendFields []string `json:"-"`
  4024  	// NullFields is a list of field names (e.g. "Action") to include in API
  4025  	// requests with the JSON null value. By default, fields with empty values are
  4026  	// omitted from API requests. See
  4027  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4028  	NullFields []string `json:"-"`
  4029  }
  4030  
  4031  func (s *IssuerToUserInfo) MarshalJSON() ([]byte, error) {
  4032  	type NoMethod IssuerToUserInfo
  4033  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4034  }
  4035  
  4036  type JwtInsertResponse struct {
  4037  	// Resources: Data that corresponds to the ids of the provided classes and
  4038  	// objects in the JWT. resources will only include the non-empty arrays (i.e.
  4039  	// if the JWT only includes eventTicketObjects, then that is the only field
  4040  	// that will be present in resources).
  4041  	Resources *Resources `json:"resources,omitempty"`
  4042  	// SaveUri: A URI that, when opened, will allow the end user to save the
  4043  	// object(s) identified in the JWT to their Google account.
  4044  	SaveUri string `json:"saveUri,omitempty"`
  4045  
  4046  	// ServerResponse contains the HTTP response code and headers from the server.
  4047  	googleapi.ServerResponse `json:"-"`
  4048  	// ForceSendFields is a list of field names (e.g. "Resources") to
  4049  	// unconditionally include in API requests. By default, fields with empty or
  4050  	// default values are omitted from API requests. See
  4051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4052  	// details.
  4053  	ForceSendFields []string `json:"-"`
  4054  	// NullFields is a list of field names (e.g. "Resources") to include in API
  4055  	// requests with the JSON null value. By default, fields with empty values are
  4056  	// omitted from API requests. See
  4057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4058  	NullFields []string `json:"-"`
  4059  }
  4060  
  4061  func (s *JwtInsertResponse) MarshalJSON() ([]byte, error) {
  4062  	type NoMethod JwtInsertResponse
  4063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4064  }
  4065  
  4066  type JwtResource struct {
  4067  	// Jwt: A string representing a JWT of the format described at
  4068  	// https://developers.google.com/wallet/reference/rest/v1/Jwt
  4069  	Jwt string `json:"jwt,omitempty"`
  4070  	// ForceSendFields is a list of field names (e.g. "Jwt") to unconditionally
  4071  	// include in API requests. By default, fields with empty or default values are
  4072  	// omitted from API requests. See
  4073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4074  	// details.
  4075  	ForceSendFields []string `json:"-"`
  4076  	// NullFields is a list of field names (e.g. "Jwt") to include in API requests
  4077  	// with the JSON null value. By default, fields with empty values are omitted
  4078  	// from API requests. See
  4079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4080  	NullFields []string `json:"-"`
  4081  }
  4082  
  4083  func (s *JwtResource) MarshalJSON() ([]byte, error) {
  4084  	type NoMethod JwtResource
  4085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4086  }
  4087  
  4088  // LabelValue: A pair of text strings to be displayed in the details view. Note
  4089  // we no longer display LabelValue/LabelValueRow as a table, instead a list of
  4090  // items.
  4091  type LabelValue struct {
  4092  	// Label: The label for a specific row and column. Recommended maximum is 15
  4093  	// characters for a two-column layout and 30 characters for a one-column
  4094  	// layout.
  4095  	Label string `json:"label,omitempty"`
  4096  	// LocalizedLabel: Translated strings for the label. Recommended maximum is 15
  4097  	// characters for a two-column layout and 30 characters for a one-column
  4098  	// layout.
  4099  	LocalizedLabel *LocalizedString `json:"localizedLabel,omitempty"`
  4100  	// LocalizedValue: Translated strings for the value. Recommended maximum is 15
  4101  	// characters for a two-column layout and 30 characters for a one-column
  4102  	// layout.
  4103  	LocalizedValue *LocalizedString `json:"localizedValue,omitempty"`
  4104  	// Value: The value for a specific row and column. Recommended maximum is 15
  4105  	// characters for a two-column layout and 30 characters for a one-column
  4106  	// layout.
  4107  	Value string `json:"value,omitempty"`
  4108  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  4109  	// include in API requests. By default, fields with empty or default values are
  4110  	// omitted from API requests. See
  4111  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4112  	// details.
  4113  	ForceSendFields []string `json:"-"`
  4114  	// NullFields is a list of field names (e.g. "Label") to include in API
  4115  	// requests with the JSON null value. By default, fields with empty values are
  4116  	// omitted from API requests. See
  4117  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4118  	NullFields []string `json:"-"`
  4119  }
  4120  
  4121  func (s *LabelValue) MarshalJSON() ([]byte, error) {
  4122  	type NoMethod LabelValue
  4123  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4124  }
  4125  
  4126  type LabelValueRow struct {
  4127  	// Columns: A list of labels and values. These will be displayed in a singular
  4128  	// column, one after the other, not in multiple columns, despite the field
  4129  	// name.
  4130  	Columns []*LabelValue `json:"columns,omitempty"`
  4131  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  4132  	// include in API requests. By default, fields with empty or default values are
  4133  	// omitted from API requests. See
  4134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4135  	// details.
  4136  	ForceSendFields []string `json:"-"`
  4137  	// NullFields is a list of field names (e.g. "Columns") to include in API
  4138  	// requests with the JSON null value. By default, fields with empty values are
  4139  	// omitted from API requests. See
  4140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4141  	NullFields []string `json:"-"`
  4142  }
  4143  
  4144  func (s *LabelValueRow) MarshalJSON() ([]byte, error) {
  4145  	type NoMethod LabelValueRow
  4146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4147  }
  4148  
  4149  type LatLongPoint struct {
  4150  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4151  	// "walletobjects#latLongPoint".
  4152  	Kind string `json:"kind,omitempty"`
  4153  	// Latitude: The latitude specified as any value in the range of -90.0 through
  4154  	// +90.0, both inclusive. Values outside these bounds will be rejected.
  4155  	Latitude float64 `json:"latitude,omitempty"`
  4156  	// Longitude: The longitude specified in the range -180.0 through +180.0, both
  4157  	// inclusive. Values outside these bounds will be rejected.
  4158  	Longitude float64 `json:"longitude,omitempty"`
  4159  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  4160  	// include in API requests. By default, fields with empty or default values are
  4161  	// omitted from API requests. See
  4162  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4163  	// details.
  4164  	ForceSendFields []string `json:"-"`
  4165  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  4166  	// with the JSON null value. By default, fields with empty values are omitted
  4167  	// from API requests. See
  4168  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4169  	NullFields []string `json:"-"`
  4170  }
  4171  
  4172  func (s *LatLongPoint) MarshalJSON() ([]byte, error) {
  4173  	type NoMethod LatLongPoint
  4174  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4175  }
  4176  
  4177  func (s *LatLongPoint) UnmarshalJSON(data []byte) error {
  4178  	type NoMethod LatLongPoint
  4179  	var s1 struct {
  4180  		Latitude  gensupport.JSONFloat64 `json:"latitude"`
  4181  		Longitude gensupport.JSONFloat64 `json:"longitude"`
  4182  		*NoMethod
  4183  	}
  4184  	s1.NoMethod = (*NoMethod)(s)
  4185  	if err := json.Unmarshal(data, &s1); err != nil {
  4186  		return err
  4187  	}
  4188  	s.Latitude = float64(s1.Latitude)
  4189  	s.Longitude = float64(s1.Longitude)
  4190  	return nil
  4191  }
  4192  
  4193  type LinksModuleData struct {
  4194  	// Uris: The list of URIs.
  4195  	Uris []*Uri `json:"uris,omitempty"`
  4196  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
  4197  	// include in API requests. By default, fields with empty or default values are
  4198  	// omitted from API requests. See
  4199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4200  	// details.
  4201  	ForceSendFields []string `json:"-"`
  4202  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
  4203  	// with the JSON null value. By default, fields with empty values are omitted
  4204  	// from API requests. See
  4205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4206  	NullFields []string `json:"-"`
  4207  }
  4208  
  4209  func (s *LinksModuleData) MarshalJSON() ([]byte, error) {
  4210  	type NoMethod LinksModuleData
  4211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4212  }
  4213  
  4214  type ListTemplateOverride struct {
  4215  	// FirstRowOption: Specifies from a predefined set of options or from a
  4216  	// reference to the field what will be displayed in the first row. To set this
  4217  	// override, set the FirstRowOption.fieldOption to the FieldSelector of your
  4218  	// choice.
  4219  	FirstRowOption *FirstRowOption `json:"firstRowOption,omitempty"`
  4220  	// SecondRowOption: A reference to the field to be displayed in the second row.
  4221  	// This option is only displayed if there are not multiple user objects in a
  4222  	// group. If there is a group, the second row will always display a field
  4223  	// shared by all objects. To set this override, please set secondRowOption to
  4224  	// the FieldSelector of you choice.
  4225  	SecondRowOption *FieldSelector `json:"secondRowOption,omitempty"`
  4226  	// ThirdRowOption: An unused/deprecated field. Setting it will have no effect
  4227  	// on what the user sees.
  4228  	ThirdRowOption *FieldSelector `json:"thirdRowOption,omitempty"`
  4229  	// ForceSendFields is a list of field names (e.g. "FirstRowOption") to
  4230  	// unconditionally include in API requests. By default, fields with empty or
  4231  	// default values are omitted from API requests. See
  4232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4233  	// details.
  4234  	ForceSendFields []string `json:"-"`
  4235  	// NullFields is a list of field names (e.g. "FirstRowOption") to include in
  4236  	// API requests with the JSON null value. By default, fields with empty values
  4237  	// are omitted from API requests. See
  4238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4239  	NullFields []string `json:"-"`
  4240  }
  4241  
  4242  func (s *ListTemplateOverride) MarshalJSON() ([]byte, error) {
  4243  	type NoMethod ListTemplateOverride
  4244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4245  }
  4246  
  4247  type LocalizedString struct {
  4248  	// DefaultValue: Contains the string to be displayed if no appropriate
  4249  	// translation is available.
  4250  	DefaultValue *TranslatedString `json:"defaultValue,omitempty"`
  4251  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4252  	// "walletobjects#localizedString".
  4253  	Kind string `json:"kind,omitempty"`
  4254  	// TranslatedValues: Contains the translations for the string.
  4255  	TranslatedValues []*TranslatedString `json:"translatedValues,omitempty"`
  4256  	// ForceSendFields is a list of field names (e.g. "DefaultValue") to
  4257  	// unconditionally include in API requests. By default, fields with empty or
  4258  	// default values are omitted from API requests. See
  4259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4260  	// details.
  4261  	ForceSendFields []string `json:"-"`
  4262  	// NullFields is a list of field names (e.g. "DefaultValue") to include in API
  4263  	// requests with the JSON null value. By default, fields with empty values are
  4264  	// omitted from API requests. See
  4265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4266  	NullFields []string `json:"-"`
  4267  }
  4268  
  4269  func (s *LocalizedString) MarshalJSON() ([]byte, error) {
  4270  	type NoMethod LocalizedString
  4271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4272  }
  4273  
  4274  type LoyaltyClass struct {
  4275  	// AccountIdLabel: The account ID label, such as "Member ID." Recommended
  4276  	// maximum length is 15 characters to ensure full string is displayed on
  4277  	// smaller screens.
  4278  	AccountIdLabel string `json:"accountIdLabel,omitempty"`
  4279  	// AccountNameLabel: The account name label, such as "Member Name." Recommended
  4280  	// maximum length is 15 characters to ensure full string is displayed on
  4281  	// smaller screens.
  4282  	AccountNameLabel string `json:"accountNameLabel,omitempty"`
  4283  	// AllowMultipleUsersPerObject: Deprecated. Use
  4284  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  4285  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  4286  	// CallbackOptions: Callback options to be used to call the issuer back for
  4287  	// every save/delete of an object for this class by the end-user. All objects
  4288  	// of this class are eligible for the callback.
  4289  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  4290  	// ClassTemplateInfo: Template information about how the class should be
  4291  	// displayed. If unset, Google will fallback to a default set of fields to
  4292  	// display.
  4293  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  4294  	// CountryCode: Country code used to display the card's country (when the user
  4295  	// is not in that country), as well as to display localized content when
  4296  	// content is not available in the user's locale.
  4297  	CountryCode string `json:"countryCode,omitempty"`
  4298  	// DiscoverableProgram: Information about how the class may be discovered and
  4299  	// instantiated from within the Google Pay app.
  4300  	DiscoverableProgram *DiscoverableProgram `json:"discoverableProgram,omitempty"`
  4301  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  4302  	// `redemptionIssuers` and one of object level `smartTapRedemptionLevel`,
  4303  	// barcode.value`, or `accountId` fields must also be set up correctly in order
  4304  	// for a pass to support Smart Tap.
  4305  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  4306  	// HeroImage: Optional banner image displayed on the front of the card. If none
  4307  	// is present, nothing will be displayed. The image will display at 100% width.
  4308  	HeroImage *Image `json:"heroImage,omitempty"`
  4309  	// HexBackgroundColor: The background color for the card. If not set the
  4310  	// dominant color of the hero image is used, and if no hero image is set, the
  4311  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  4312  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  4313  	// of the RGB triplet which is #rgb, such as `#fc0`.
  4314  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  4315  	// HomepageUri: The URI of your application's home page. Populating the URI in
  4316  	// this field results in the exact same behavior as populating an URI in
  4317  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  4318  	// in what would usually be thought of as the linksModuleData section of the
  4319  	// object).
  4320  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  4321  	// Id: Required. The unique identifier for a class. This ID must be unique
  4322  	// across all classes from an issuer. This value should follow the format
  4323  	// issuer ID. identifier where the former is issued by Google and latter is
  4324  	// chosen by you. Your unique identifier should only include alphanumeric
  4325  	// characters, '.', '_', or '-'.
  4326  	Id string `json:"id,omitempty"`
  4327  	// ImageModulesData: Image module data. The maximum number of these fields
  4328  	// displayed is 1 from object level and 1 for class object level.
  4329  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  4330  	// InfoModuleData: Deprecated. Use textModulesData instead.
  4331  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  4332  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  4333  	// characters to ensure full string is displayed on smaller screens.
  4334  	IssuerName string `json:"issuerName,omitempty"`
  4335  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4336  	// "walletobjects#loyaltyClass".
  4337  	Kind string `json:"kind,omitempty"`
  4338  	// LinksModuleData: Links module data. If links module data is also defined on
  4339  	// the object, both will be displayed.
  4340  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  4341  	// LocalizedAccountIdLabel: Translated strings for the account_id_label.
  4342  	// Recommended maximum length is 15 characters to ensure full string is
  4343  	// displayed on smaller screens.
  4344  	LocalizedAccountIdLabel *LocalizedString `json:"localizedAccountIdLabel,omitempty"`
  4345  	// LocalizedAccountNameLabel: Translated strings for the account_name_label.
  4346  	// Recommended maximum length is 15 characters to ensure full string is
  4347  	// displayed on smaller screens.
  4348  	LocalizedAccountNameLabel *LocalizedString `json:"localizedAccountNameLabel,omitempty"`
  4349  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  4350  	// maximum length is 20 characters to ensure full string is displayed on
  4351  	// smaller screens.
  4352  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  4353  	// LocalizedProgramName: Translated strings for the program_name. The app may
  4354  	// display an ellipsis after the first 20 characters to ensure full string is
  4355  	// displayed on smaller screens.
  4356  	LocalizedProgramName *LocalizedString `json:"localizedProgramName,omitempty"`
  4357  	// LocalizedRewardsTier: Translated strings for the rewards_tier. Recommended
  4358  	// maximum length is 7 characters to ensure full string is displayed on smaller
  4359  	// screens.
  4360  	LocalizedRewardsTier *LocalizedString `json:"localizedRewardsTier,omitempty"`
  4361  	// LocalizedRewardsTierLabel: Translated strings for the rewards_tier_label.
  4362  	// Recommended maximum length is 9 characters to ensure full string is
  4363  	// displayed on smaller screens.
  4364  	LocalizedRewardsTierLabel *LocalizedString `json:"localizedRewardsTierLabel,omitempty"`
  4365  	// LocalizedSecondaryRewardsTier: Translated strings for the
  4366  	// secondary_rewards_tier.
  4367  	LocalizedSecondaryRewardsTier *LocalizedString `json:"localizedSecondaryRewardsTier,omitempty"`
  4368  	// LocalizedSecondaryRewardsTierLabel: Translated strings for the
  4369  	// secondary_rewards_tier_label.
  4370  	LocalizedSecondaryRewardsTierLabel *LocalizedString `json:"localizedSecondaryRewardsTierLabel,omitempty"`
  4371  	// Locations: Note: This field is currently not supported to trigger geo
  4372  	// notifications.
  4373  	Locations []*LatLongPoint `json:"locations,omitempty"`
  4374  	// Messages: An array of messages displayed in the app. All users of this
  4375  	// object will receive its associated messages. The maximum number of these
  4376  	// fields is 10.
  4377  	Messages []*Message `json:"messages,omitempty"`
  4378  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  4379  	// and devices will save the same object referencing this class.
  4380  	//
  4381  	// Possible values:
  4382  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  4383  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  4384  	// saved by any number of different users, and on any number of devices.
  4385  	// Partners typically use this setup for passes that do not need to be
  4386  	// restricted to a single user or pinned to a single device.
  4387  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  4388  	// user can view and use it on multiple of their devices. Once the first user
  4389  	// saves the object, no other user will be allowed to view or save it.
  4390  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  4391  	// single device. Intended for use by select partners in limited circumstances.
  4392  	// An example use case is a transit ticket that should be "device pinned",
  4393  	// meaning it can be saved, viewed and used only by a single user on a single
  4394  	// device. Contact support for additional information.
  4395  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  4396  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  4397  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  4398  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  4399  	// ProgramLogo: Required. The logo of the loyalty program or company. This logo
  4400  	// is displayed in both the details and list views of the app.
  4401  	ProgramLogo *Image `json:"programLogo,omitempty"`
  4402  	// ProgramName: Required. The program name, such as "Adam's Apparel". The app
  4403  	// may display an ellipsis after the first 20 characters to ensure full string
  4404  	// is displayed on smaller screens.
  4405  	ProgramName string `json:"programName,omitempty"`
  4406  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  4407  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  4408  	// Redemption issuers must have at least one Smart Tap key configured. The
  4409  	// `enableSmartTap` and one of object level `smartTapRedemptionValue`,
  4410  	// barcode.value`, or `accountId` fields must also be set up correctly in order
  4411  	// for a pass to support Smart Tap.
  4412  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  4413  	// Review: The review comments set by the platform when a class is marked
  4414  	// `approved` or `rejected`.
  4415  	Review *Review `json:"review,omitempty"`
  4416  	// ReviewStatus: Required. The status of the class. This field can be set to
  4417  	// `draft` or `underReview` using the insert, patch, or update API calls. Once
  4418  	// the review state is changed from `draft` it may not be changed back to
  4419  	// `draft`. You should keep this field to `draft` when the class is under
  4420  	// development. A `draft` class cannot be used to create any object. You should
  4421  	// set this field to `underReview` when you believe the class is ready for use.
  4422  	// The platform will automatically set this field to `approved` and it can be
  4423  	// immediately used to create or migrate objects. When updating an already
  4424  	// `approved` class you should keep setting this field to `underReview`.
  4425  	//
  4426  	// Possible values:
  4427  	//   "REVIEW_STATUS_UNSPECIFIED"
  4428  	//   "UNDER_REVIEW"
  4429  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  4430  	//   "APPROVED"
  4431  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  4432  	//   "REJECTED"
  4433  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  4434  	//   "DRAFT"
  4435  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  4436  	ReviewStatus string `json:"reviewStatus,omitempty"`
  4437  	// RewardsTier: The rewards tier, such as "Gold" or "Platinum." Recommended
  4438  	// maximum length is 7 characters to ensure full string is displayed on smaller
  4439  	// screens.
  4440  	RewardsTier string `json:"rewardsTier,omitempty"`
  4441  	// RewardsTierLabel: The rewards tier label, such as "Rewards Tier."
  4442  	// Recommended maximum length is 9 characters to ensure full string is
  4443  	// displayed on smaller screens.
  4444  	RewardsTierLabel string `json:"rewardsTierLabel,omitempty"`
  4445  	// SecondaryRewardsTier: The secondary rewards tier, such as "Gold" or
  4446  	// "Platinum."
  4447  	SecondaryRewardsTier string `json:"secondaryRewardsTier,omitempty"`
  4448  	// SecondaryRewardsTierLabel: The secondary rewards tier label, such as
  4449  	// "Rewards Tier."
  4450  	SecondaryRewardsTierLabel string `json:"secondaryRewardsTierLabel,omitempty"`
  4451  	// SecurityAnimation: Optional information about the security animation. If
  4452  	// this is set a security animation will be rendered on pass details.
  4453  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  4454  	// TextModulesData: Text module data. If text module data is also defined on
  4455  	// the class, both will be displayed. The maximum number of these fields
  4456  	// displayed is 10 from the object and 10 from the class.
  4457  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  4458  	// Version: Deprecated
  4459  	Version int64 `json:"version,omitempty,string"`
  4460  	// ViewUnlockRequirement: View Unlock Requirement options for the loyalty card.
  4461  	//
  4462  	// Possible values:
  4463  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  4464  	// UNLOCK_NOT_REQUIRED.
  4465  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  4466  	// ViewUnlockRequirement is not set.
  4467  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  4468  	// time the pass is viewed. If the user removes their device lock after saving
  4469  	// the pass, then they will be prompted to create a device lock before the pass
  4470  	// can be viewed.
  4471  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  4472  	// WideProgramLogo: The wide logo of the loyalty program or company. When
  4473  	// provided, this will be used in place of the program logo in the top left of
  4474  	// the card view.
  4475  	WideProgramLogo *Image `json:"wideProgramLogo,omitempty"`
  4476  	// WordMark: Deprecated.
  4477  	WordMark *Image `json:"wordMark,omitempty"`
  4478  
  4479  	// ServerResponse contains the HTTP response code and headers from the server.
  4480  	googleapi.ServerResponse `json:"-"`
  4481  	// ForceSendFields is a list of field names (e.g. "AccountIdLabel") to
  4482  	// unconditionally include in API requests. By default, fields with empty or
  4483  	// default values are omitted from API requests. See
  4484  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4485  	// details.
  4486  	ForceSendFields []string `json:"-"`
  4487  	// NullFields is a list of field names (e.g. "AccountIdLabel") to include in
  4488  	// API requests with the JSON null value. By default, fields with empty values
  4489  	// are omitted from API requests. See
  4490  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4491  	NullFields []string `json:"-"`
  4492  }
  4493  
  4494  func (s *LoyaltyClass) MarshalJSON() ([]byte, error) {
  4495  	type NoMethod LoyaltyClass
  4496  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4497  }
  4498  
  4499  type LoyaltyClassAddMessageResponse struct {
  4500  	// Resource: The updated LoyaltyClass resource.
  4501  	Resource *LoyaltyClass `json:"resource,omitempty"`
  4502  
  4503  	// ServerResponse contains the HTTP response code and headers from the server.
  4504  	googleapi.ServerResponse `json:"-"`
  4505  	// ForceSendFields is a list of field names (e.g. "Resource") to
  4506  	// unconditionally include in API requests. By default, fields with empty or
  4507  	// default values are omitted from API requests. See
  4508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4509  	// details.
  4510  	ForceSendFields []string `json:"-"`
  4511  	// NullFields is a list of field names (e.g. "Resource") to include in API
  4512  	// requests with the JSON null value. By default, fields with empty values are
  4513  	// omitted from API requests. See
  4514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4515  	NullFields []string `json:"-"`
  4516  }
  4517  
  4518  func (s *LoyaltyClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  4519  	type NoMethod LoyaltyClassAddMessageResponse
  4520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4521  }
  4522  
  4523  type LoyaltyClassListResponse struct {
  4524  	// Pagination: Pagination of the response.
  4525  	Pagination *Pagination `json:"pagination,omitempty"`
  4526  	// Resources: Resources corresponding to the list request.
  4527  	Resources []*LoyaltyClass `json:"resources,omitempty"`
  4528  
  4529  	// ServerResponse contains the HTTP response code and headers from the server.
  4530  	googleapi.ServerResponse `json:"-"`
  4531  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  4532  	// unconditionally include in API requests. By default, fields with empty or
  4533  	// default values are omitted from API requests. See
  4534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4535  	// details.
  4536  	ForceSendFields []string `json:"-"`
  4537  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  4538  	// requests with the JSON null value. By default, fields with empty values are
  4539  	// omitted from API requests. See
  4540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4541  	NullFields []string `json:"-"`
  4542  }
  4543  
  4544  func (s *LoyaltyClassListResponse) MarshalJSON() ([]byte, error) {
  4545  	type NoMethod LoyaltyClassListResponse
  4546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4547  }
  4548  
  4549  type LoyaltyObject struct {
  4550  	// AccountId: The loyalty account identifier. Recommended maximum length is 20
  4551  	// characters.
  4552  	AccountId string `json:"accountId,omitempty"`
  4553  	// AccountName: The loyalty account holder name, such as "John Smith."
  4554  	// Recommended maximum length is 20 characters to ensure full string is
  4555  	// displayed on smaller screens.
  4556  	AccountName string `json:"accountName,omitempty"`
  4557  	// AppLinkData: Optional information about the partner app link.
  4558  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  4559  	// Barcode: The barcode type and value.
  4560  	Barcode *Barcode `json:"barcode,omitempty"`
  4561  	// ClassId: Required. The class associated with this object. The class must be
  4562  	// of the same type as this object, must already exist, and must be approved.
  4563  	// Class IDs should follow the format issuer ID.identifier where the former is
  4564  	// issued by Google and latter is chosen by you.
  4565  	ClassId string `json:"classId,omitempty"`
  4566  	// ClassReference: A copy of the inherited fields of the parent class. These
  4567  	// fields are retrieved during a GET.
  4568  	ClassReference *LoyaltyClass `json:"classReference,omitempty"`
  4569  	// DisableExpirationNotification: Indicates if notifications should explicitly
  4570  	// be suppressed. If this field is set to true, regardless of the `messages`
  4571  	// field, expiration notifications to the user will be suppressed. By default,
  4572  	// this field is set to false. Currently, this can only be set for offers.
  4573  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  4574  	// GroupingInfo: Information that controls how passes are grouped together.
  4575  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  4576  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  4577  	// This field is set by the platform when a user saves the object, linking it
  4578  	// to their device. Intended for use by select partners. Contact support for
  4579  	// additional information.
  4580  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  4581  	// HasUsers: Indicates if the object has users. This field is set by the
  4582  	// platform.
  4583  	HasUsers bool `json:"hasUsers,omitempty"`
  4584  	// HeroImage: Optional banner image displayed on the front of the card. If none
  4585  	// is present, hero image of the class, if present, will be displayed. If hero
  4586  	// image of the class is also not present, nothing will be displayed.
  4587  	HeroImage *Image `json:"heroImage,omitempty"`
  4588  	// Id: Required. The unique identifier for an object. This ID must be unique
  4589  	// across all objects from an issuer. This value should follow the format
  4590  	// issuer ID.identifier where the former is issued by Google and latter is
  4591  	// chosen by you. The unique identifier should only include alphanumeric
  4592  	// characters, '.', '_', or '-'.
  4593  	Id string `json:"id,omitempty"`
  4594  	// ImageModulesData: Image module data. The maximum number of these fields
  4595  	// displayed is 1 from object level and 1 for class object level.
  4596  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  4597  	// InfoModuleData: Deprecated. Use textModulesData instead.
  4598  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  4599  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4600  	// "walletobjects#loyaltyObject".
  4601  	Kind string `json:"kind,omitempty"`
  4602  	// LinkedOfferIds: A list of offer objects linked to this loyalty card. The
  4603  	// offer objects must already exist. Offer object IDs should follow the format
  4604  	// issuer ID. identifier where the former is issued by Google and latter is
  4605  	// chosen by you.
  4606  	LinkedOfferIds []string `json:"linkedOfferIds,omitempty"`
  4607  	// LinksModuleData: Links module data. If links module data is also defined on
  4608  	// the class, both will be displayed.
  4609  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  4610  	// Locations: Note: This field is currently not supported to trigger geo
  4611  	// notifications.
  4612  	Locations []*LatLongPoint `json:"locations,omitempty"`
  4613  	// LoyaltyPoints: The loyalty reward points label, balance, and type.
  4614  	LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"`
  4615  	// Messages: An array of messages displayed in the app. All users of this
  4616  	// object will receive its associated messages. The maximum number of these
  4617  	// fields is 10.
  4618  	Messages []*Message `json:"messages,omitempty"`
  4619  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  4620  	// screenshot behaviors.
  4621  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  4622  	// RotatingBarcode: The rotating barcode type and value.
  4623  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  4624  	// SecondaryLoyaltyPoints: The secondary loyalty reward points label, balance,
  4625  	// and type. Shown in addition to the primary loyalty points.
  4626  	SecondaryLoyaltyPoints *LoyaltyPoints `json:"secondaryLoyaltyPoints,omitempty"`
  4627  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  4628  	// certified terminal over NFC for this object. The class level fields
  4629  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  4630  	// order for the pass to support Smart Tap. Only ASCII characters are
  4631  	// supported. If this value is not set but the class level fields
  4632  	// `enableSmartTap` and `redemptionIssuers` are set up correctly, the
  4633  	// `barcode.value` or the `accountId` fields are used as fallback if present.
  4634  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  4635  	// State: Required. The state of the object. This field is used to determine
  4636  	// how an object is displayed in the app. For example, an `inactive` object is
  4637  	// moved to the "Expired passes" section.
  4638  	//
  4639  	// Possible values:
  4640  	//   "STATE_UNSPECIFIED"
  4641  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  4642  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  4643  	//   "COMPLETED"
  4644  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  4645  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  4646  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  4647  	//   "INACTIVE"
  4648  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  4649  	State string `json:"state,omitempty"`
  4650  	// TextModulesData: Text module data. If text module data is also defined on
  4651  	// the class, both will be displayed. The maximum number of these fields
  4652  	// displayed is 10 from the object and 10 from the class.
  4653  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  4654  	// ValidTimeInterval: The time period this object will be `active` and object
  4655  	// can be used. An object's state will be changed to `expired` when this time
  4656  	// period has passed.
  4657  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  4658  	// Version: Deprecated
  4659  	Version int64 `json:"version,omitempty,string"`
  4660  
  4661  	// ServerResponse contains the HTTP response code and headers from the server.
  4662  	googleapi.ServerResponse `json:"-"`
  4663  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  4664  	// unconditionally include in API requests. By default, fields with empty or
  4665  	// default values are omitted from API requests. See
  4666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4667  	// details.
  4668  	ForceSendFields []string `json:"-"`
  4669  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  4670  	// requests with the JSON null value. By default, fields with empty values are
  4671  	// omitted from API requests. See
  4672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4673  	NullFields []string `json:"-"`
  4674  }
  4675  
  4676  func (s *LoyaltyObject) MarshalJSON() ([]byte, error) {
  4677  	type NoMethod LoyaltyObject
  4678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4679  }
  4680  
  4681  type LoyaltyObjectAddMessageResponse struct {
  4682  	// Resource: The updated LoyaltyObject resource.
  4683  	Resource *LoyaltyObject `json:"resource,omitempty"`
  4684  
  4685  	// ServerResponse contains the HTTP response code and headers from the server.
  4686  	googleapi.ServerResponse `json:"-"`
  4687  	// ForceSendFields is a list of field names (e.g. "Resource") to
  4688  	// unconditionally include in API requests. By default, fields with empty or
  4689  	// default values are omitted from API requests. See
  4690  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4691  	// details.
  4692  	ForceSendFields []string `json:"-"`
  4693  	// NullFields is a list of field names (e.g. "Resource") to include in API
  4694  	// requests with the JSON null value. By default, fields with empty values are
  4695  	// omitted from API requests. See
  4696  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4697  	NullFields []string `json:"-"`
  4698  }
  4699  
  4700  func (s *LoyaltyObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  4701  	type NoMethod LoyaltyObjectAddMessageResponse
  4702  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4703  }
  4704  
  4705  type LoyaltyObjectListResponse struct {
  4706  	// Pagination: Pagination of the response.
  4707  	Pagination *Pagination `json:"pagination,omitempty"`
  4708  	// Resources: Resources corresponding to the list request.
  4709  	Resources []*LoyaltyObject `json:"resources,omitempty"`
  4710  
  4711  	// ServerResponse contains the HTTP response code and headers from the server.
  4712  	googleapi.ServerResponse `json:"-"`
  4713  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  4714  	// unconditionally include in API requests. By default, fields with empty or
  4715  	// default values are omitted from API requests. See
  4716  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4717  	// details.
  4718  	ForceSendFields []string `json:"-"`
  4719  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  4720  	// requests with the JSON null value. By default, fields with empty values are
  4721  	// omitted from API requests. See
  4722  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4723  	NullFields []string `json:"-"`
  4724  }
  4725  
  4726  func (s *LoyaltyObjectListResponse) MarshalJSON() ([]byte, error) {
  4727  	type NoMethod LoyaltyObjectListResponse
  4728  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4729  }
  4730  
  4731  type LoyaltyPoints struct {
  4732  	// Balance: The account holder's loyalty point balance, such as "500" or
  4733  	// "$10.00". Recommended maximum length is 7 characters. This is a required
  4734  	// field of `loyaltyPoints` and `secondaryLoyaltyPoints`.
  4735  	Balance *LoyaltyPointsBalance `json:"balance,omitempty"`
  4736  	// Label: The loyalty points label, such as "Points". Recommended maximum
  4737  	// length is 9 characters.
  4738  	Label string `json:"label,omitempty"`
  4739  	// LocalizedLabel: Translated strings for the label. Recommended maximum length
  4740  	// is 9 characters.
  4741  	LocalizedLabel *LocalizedString `json:"localizedLabel,omitempty"`
  4742  	// ForceSendFields is a list of field names (e.g. "Balance") to unconditionally
  4743  	// include in API requests. By default, fields with empty or default values are
  4744  	// omitted from API requests. See
  4745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4746  	// details.
  4747  	ForceSendFields []string `json:"-"`
  4748  	// NullFields is a list of field names (e.g. "Balance") to include in API
  4749  	// requests with the JSON null value. By default, fields with empty values are
  4750  	// omitted from API requests. See
  4751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4752  	NullFields []string `json:"-"`
  4753  }
  4754  
  4755  func (s *LoyaltyPoints) MarshalJSON() ([]byte, error) {
  4756  	type NoMethod LoyaltyPoints
  4757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4758  }
  4759  
  4760  type LoyaltyPointsBalance struct {
  4761  	// Double: The double form of a balance. Only one of these subtypes (string,
  4762  	// int, double, money) should be populated.
  4763  	Double float64 `json:"double,omitempty"`
  4764  	// Int: The integer form of a balance. Only one of these subtypes (string, int,
  4765  	// double, money) should be populated.
  4766  	Int int64 `json:"int,omitempty"`
  4767  	// Money: The money form of a balance. Only one of these subtypes (string, int,
  4768  	// double, money) should be populated.
  4769  	Money *Money `json:"money,omitempty"`
  4770  	// String: The string form of a balance. Only one of these subtypes (string,
  4771  	// int, double, money) should be populated.
  4772  	String string `json:"string,omitempty"`
  4773  	// ForceSendFields is a list of field names (e.g. "Double") to unconditionally
  4774  	// include in API requests. By default, fields with empty or default values are
  4775  	// omitted from API requests. See
  4776  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4777  	// details.
  4778  	ForceSendFields []string `json:"-"`
  4779  	// NullFields is a list of field names (e.g. "Double") to include in API
  4780  	// requests with the JSON null value. By default, fields with empty values are
  4781  	// omitted from API requests. See
  4782  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4783  	NullFields []string `json:"-"`
  4784  }
  4785  
  4786  func (s *LoyaltyPointsBalance) MarshalJSON() ([]byte, error) {
  4787  	type NoMethod LoyaltyPointsBalance
  4788  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4789  }
  4790  
  4791  func (s *LoyaltyPointsBalance) UnmarshalJSON(data []byte) error {
  4792  	type NoMethod LoyaltyPointsBalance
  4793  	var s1 struct {
  4794  		Double gensupport.JSONFloat64 `json:"double"`
  4795  		*NoMethod
  4796  	}
  4797  	s1.NoMethod = (*NoMethod)(s)
  4798  	if err := json.Unmarshal(data, &s1); err != nil {
  4799  		return err
  4800  	}
  4801  	s.Double = float64(s1.Double)
  4802  	return nil
  4803  }
  4804  
  4805  // Media: A reference to data stored on the filesystem, on GFS or in blobstore.
  4806  type Media struct {
  4807  	// Algorithm: Deprecated, use one of explicit hash type fields instead.
  4808  	// Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only
  4809  	// possible value for this field. New values may be added at any time.
  4810  	Algorithm string `json:"algorithm,omitempty"`
  4811  	// BigstoreObjectRef: Use object_id instead.
  4812  	BigstoreObjectRef string `json:"bigstoreObjectRef,omitempty"`
  4813  	// BlobRef: Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This
  4814  	// should be the byte representation of a blobstore.BlobRef. Since Blobstore is
  4815  	// deprecating v1, use blobstore2_info instead. For now, any v2 blob will also
  4816  	// be represented in this field as v1 BlobRef.
  4817  	BlobRef string `json:"blobRef,omitempty"`
  4818  	// Blobstore2Info: Blobstore v2 info, set if reference_type is BLOBSTORE_REF
  4819  	// and it refers to a v2 blob.
  4820  	Blobstore2Info *Blobstore2Info `json:"blobstore2Info,omitempty"`
  4821  	// CompositeMedia: A composite media composed of one or more media objects, set
  4822  	// if reference_type is COMPOSITE_MEDIA. The media length field must be set to
  4823  	// the sum of the lengths of all composite media objects. Note: All composite
  4824  	// media must have length specified.
  4825  	CompositeMedia []*CompositeMedia `json:"compositeMedia,omitempty"`
  4826  	// ContentType: MIME type of the data
  4827  	ContentType string `json:"contentType,omitempty"`
  4828  	// ContentTypeInfo: Extended content type information provided for Scotty
  4829  	// uploads.
  4830  	ContentTypeInfo *ContentTypeInfo `json:"contentTypeInfo,omitempty"`
  4831  	// CosmoBinaryReference: A binary data reference for a media download. Serves
  4832  	// as a technology-agnostic binary reference in some Google infrastructure.
  4833  	// This value is a serialized storage_cosmo.BinaryReference proto. Storing it
  4834  	// as bytes is a hack to get around the fact that the cosmo proto (as well as
  4835  	// others it includes) doesn't support JavaScript. This prevents us from
  4836  	// including the actual type of this field.
  4837  	CosmoBinaryReference string `json:"cosmoBinaryReference,omitempty"`
  4838  	// Crc32cHash: For Scotty Uploads: Scotty-provided hashes for uploads For
  4839  	// Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY
  4840  	// TEAM.) A Hash provided by the agent to be used to verify the data being
  4841  	// downloaded. Currently only supported for inline payloads. Further, only
  4842  	// crc32c_hash is currently supported.
  4843  	Crc32cHash int64 `json:"crc32cHash,omitempty"`
  4844  	// DiffChecksumsResponse: Set if reference_type is DIFF_CHECKSUMS_RESPONSE.
  4845  	DiffChecksumsResponse *DiffChecksumsResponse `json:"diffChecksumsResponse,omitempty"`
  4846  	// DiffDownloadResponse: Set if reference_type is DIFF_DOWNLOAD_RESPONSE.
  4847  	DiffDownloadResponse *DiffDownloadResponse `json:"diffDownloadResponse,omitempty"`
  4848  	// DiffUploadRequest: Set if reference_type is DIFF_UPLOAD_REQUEST.
  4849  	DiffUploadRequest *DiffUploadRequest `json:"diffUploadRequest,omitempty"`
  4850  	// DiffUploadResponse: Set if reference_type is DIFF_UPLOAD_RESPONSE.
  4851  	DiffUploadResponse *DiffUploadResponse `json:"diffUploadResponse,omitempty"`
  4852  	// DiffVersionResponse: Set if reference_type is DIFF_VERSION_RESPONSE.
  4853  	DiffVersionResponse *DiffVersionResponse `json:"diffVersionResponse,omitempty"`
  4854  	// DownloadParameters: Parameters for a media download.
  4855  	DownloadParameters *DownloadParameters `json:"downloadParameters,omitempty"`
  4856  	// Filename: Original file name
  4857  	Filename string `json:"filename,omitempty"`
  4858  	// Hash: Deprecated, use one of explicit hash type fields instead. These two
  4859  	// hash related fields will only be populated on Scotty based media uploads and
  4860  	// will contain the content of the hash group in the NotificationRequest:
  4861  	// http://cs/#google3/uploader/service/proto/upload_listener.proto&q=class:Hash
  4862  	// Hex encoded hash value of the uploaded media.
  4863  	Hash string `json:"hash,omitempty"`
  4864  	// HashVerified: For Scotty uploads only. If a user sends a hash code and the
  4865  	// backend has requested that Scotty verify the upload against the client hash,
  4866  	// Scotty will perform the check on behalf of the backend and will reject it if
  4867  	// the hashes don't match. This is set to true if Scotty performed this
  4868  	// verification.
  4869  	HashVerified bool `json:"hashVerified,omitempty"`
  4870  	// Inline: Media data, set if reference_type is INLINE
  4871  	Inline string `json:"inline,omitempty"`
  4872  	// IsPotentialRetry: |is_potential_retry| is set false only when Scotty is
  4873  	// certain that it has not sent the request before. When a client resumes an
  4874  	// upload, this field must be set true in agent calls, because Scotty cannot be
  4875  	// certain that it has never sent the request before due to potential failure
  4876  	// in the session state persistence.
  4877  	IsPotentialRetry bool `json:"isPotentialRetry,omitempty"`
  4878  	// Length: Size of the data, in bytes
  4879  	Length int64 `json:"length,omitempty,string"`
  4880  	// Md5Hash: Scotty-provided MD5 hash for an upload.
  4881  	Md5Hash string `json:"md5Hash,omitempty"`
  4882  	// MediaId: Media id to forward to the operation GetMedia. Can be set if
  4883  	// reference_type is GET_MEDIA.
  4884  	MediaId string `json:"mediaId,omitempty"`
  4885  	// ObjectId: Reference to a TI Blob, set if reference_type is BIGSTORE_REF.
  4886  	ObjectId *ObjectId `json:"objectId,omitempty"`
  4887  	// Path: Path to the data, set if reference_type is PATH
  4888  	Path string `json:"path,omitempty"`
  4889  	// ReferenceType: Describes what the field reference contains.
  4890  	//
  4891  	// Possible values:
  4892  	//   "PATH" - Reference contains a GFS path or a local path.
  4893  	//   "BLOB_REF" - Reference points to a blobstore object. This could be either
  4894  	// a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info
  4895  	// first, since v1 is being deprecated.
  4896  	//   "INLINE" - Data is included into this proto buffer
  4897  	//   "GET_MEDIA" - Data should be accessed from the current service using the
  4898  	// operation GetMedia.
  4899  	//   "COMPOSITE_MEDIA" - The content for this media object is stored across
  4900  	// multiple partial media objects under the composite_media field.
  4901  	//   "BIGSTORE_REF" - Reference points to a bigstore object
  4902  	//   "DIFF_VERSION_RESPONSE" - Indicates the data is stored in
  4903  	// diff_version_response.
  4904  	//   "DIFF_CHECKSUMS_RESPONSE" - Indicates the data is stored in
  4905  	// diff_checksums_response.
  4906  	//   "DIFF_DOWNLOAD_RESPONSE" - Indicates the data is stored in
  4907  	// diff_download_response.
  4908  	//   "DIFF_UPLOAD_REQUEST" - Indicates the data is stored in
  4909  	// diff_upload_request.
  4910  	//   "DIFF_UPLOAD_RESPONSE" - Indicates the data is stored in
  4911  	// diff_upload_response.
  4912  	//   "COSMO_BINARY_REFERENCE" - Indicates the data is stored in
  4913  	// cosmo_binary_reference.
  4914  	//   "ARBITRARY_BYTES" - Informs Scotty to generate a response payload with the
  4915  	// size specified in the length field. The contents of the payload are
  4916  	// generated by Scotty and are undefined. This is useful for testing download
  4917  	// speeds between the user and Scotty without involving a real payload source.
  4918  	// Note: range is not supported when using arbitrary_bytes.
  4919  	ReferenceType string `json:"referenceType,omitempty"`
  4920  	// Sha1Hash: Scotty-provided SHA1 hash for an upload.
  4921  	Sha1Hash string `json:"sha1Hash,omitempty"`
  4922  	// Sha256Hash: Scotty-provided SHA256 hash for an upload.
  4923  	Sha256Hash string `json:"sha256Hash,omitempty"`
  4924  	// Timestamp: Time at which the media data was last updated, in milliseconds
  4925  	// since UNIX epoch
  4926  	Timestamp uint64 `json:"timestamp,omitempty,string"`
  4927  	// Token: A unique fingerprint/version id for the media data
  4928  	Token string `json:"token,omitempty"`
  4929  
  4930  	// ServerResponse contains the HTTP response code and headers from the server.
  4931  	googleapi.ServerResponse `json:"-"`
  4932  	// ForceSendFields is a list of field names (e.g. "Algorithm") to
  4933  	// unconditionally include in API requests. By default, fields with empty or
  4934  	// default values are omitted from API requests. See
  4935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4936  	// details.
  4937  	ForceSendFields []string `json:"-"`
  4938  	// NullFields is a list of field names (e.g. "Algorithm") to include in API
  4939  	// requests with the JSON null value. By default, fields with empty values are
  4940  	// omitted from API requests. See
  4941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4942  	NullFields []string `json:"-"`
  4943  }
  4944  
  4945  func (s *Media) MarshalJSON() ([]byte, error) {
  4946  	type NoMethod Media
  4947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4948  }
  4949  
  4950  // MediaRequestInfo: Extra information added to operations that support Scotty
  4951  // media requests.
  4952  type MediaRequestInfo struct {
  4953  	// CurrentBytes: The number of current bytes uploaded or downloaded.
  4954  	CurrentBytes int64 `json:"currentBytes,omitempty,string"`
  4955  	// CustomData: Data to be copied to backend requests. Custom data is returned
  4956  	// to Scotty in the agent_state field, which Scotty will then provide in
  4957  	// subsequent upload notifications.
  4958  	CustomData string `json:"customData,omitempty"`
  4959  	// DiffObjectVersion: Set if the http request info is diff encoded. The value
  4960  	// of this field is the version number of the base revision. This is
  4961  	// corresponding to Apiary's mediaDiffObjectVersion
  4962  	// (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionV
  4963  	// ariable.java). See go/esf-scotty-diff-upload for more information.
  4964  	DiffObjectVersion string `json:"diffObjectVersion,omitempty"`
  4965  	// FinalStatus: The existence of the final_status field indicates that this is
  4966  	// the last call to the agent for this request_id.
  4967  	// http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929
  4968  	FinalStatus int64 `json:"finalStatus,omitempty"`
  4969  	// NotificationType: The type of notification received from Scotty.
  4970  	//
  4971  	// Possible values:
  4972  	//   "START" - Such requests signals the start of a request containing media
  4973  	// upload. Only the media field(s) in the inserted/updated resource are set.
  4974  	// The response should either return an error or succeed. On success, responses
  4975  	// don't need to contain anything.
  4976  	//   "PROGRESS" - Such requests signals that the upload has progressed and that
  4977  	// the backend might want to access the media file specified in relevant fields
  4978  	// in the resource. Only the media field(s) in the inserted/updated resource
  4979  	// are set. The response should either return an error or succeed. On success,
  4980  	// responses don't need to contain anything.
  4981  	//   "END" - Such requests signals the end of a request containing media
  4982  	// upload. END should be handled just like normal Insert/Upload requests, that
  4983  	// is, they should process the request and return a complete resource in the
  4984  	// response. Pointers to media data (a GFS path usually) appear in the relevant
  4985  	// fields in the inserted/updated resource. See gdata.Media in data.proto.
  4986  	//   "RESPONSE_SENT" - Such requests occur after an END and signal that the
  4987  	// response has been sent back to the client. RESPONSE_SENT is only sent to the
  4988  	// backend if it is configured to receive them. The response does not need to
  4989  	// contain anything.
  4990  	//   "ERROR" - Such requests indicate that an error occurred while processing
  4991  	// the request. ERROR is only sent to the backend if it is configured to
  4992  	// receive them. It is not guaranteed that all errors will result in this
  4993  	// notification to the backend, even if the backend requests them. Since these
  4994  	// requests are just for informational purposes, the response does not need to
  4995  	// contain anything.
  4996  	NotificationType string `json:"notificationType,omitempty"`
  4997  	// RequestId: The Scotty request ID.
  4998  	RequestId string `json:"requestId,omitempty"`
  4999  	// RequestReceivedParamsServingInfo: The partition of the Scotty server
  5000  	// handling this request. type is
  5001  	// uploader_service.RequestReceivedParamsServingInfo
  5002  	// LINT.IfChange(request_received_params_serving_info_annotations)
  5003  	// LINT.ThenChange()
  5004  	RequestReceivedParamsServingInfo string `json:"requestReceivedParamsServingInfo,omitempty"`
  5005  	// TotalBytes: The total size of the file.
  5006  	TotalBytes int64 `json:"totalBytes,omitempty,string"`
  5007  	// TotalBytesIsEstimated: Whether the total bytes field contains an estimated
  5008  	// data.
  5009  	TotalBytesIsEstimated bool `json:"totalBytesIsEstimated,omitempty"`
  5010  	// ForceSendFields is a list of field names (e.g. "CurrentBytes") to
  5011  	// unconditionally include in API requests. By default, fields with empty or
  5012  	// default values are omitted from API requests. See
  5013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5014  	// details.
  5015  	ForceSendFields []string `json:"-"`
  5016  	// NullFields is a list of field names (e.g. "CurrentBytes") to include in API
  5017  	// requests with the JSON null value. By default, fields with empty values are
  5018  	// omitted from API requests. See
  5019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5020  	NullFields []string `json:"-"`
  5021  }
  5022  
  5023  func (s *MediaRequestInfo) MarshalJSON() ([]byte, error) {
  5024  	type NoMethod MediaRequestInfo
  5025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5026  }
  5027  
  5028  // Message: A message that will be displayed with a Valuable
  5029  type Message struct {
  5030  	// Body: The message body.
  5031  	Body string `json:"body,omitempty"`
  5032  	// DisplayInterval: The period of time that the message will be displayed to
  5033  	// users. You can define both a `startTime` and `endTime` for each message. A
  5034  	// message is displayed immediately after a Wallet Object is inserted unless a
  5035  	// `startTime` is set. The message will appear in a list of messages
  5036  	// indefinitely if `endTime` is not provided.
  5037  	DisplayInterval *TimeInterval `json:"displayInterval,omitempty"`
  5038  	// Header: The message header.
  5039  	Header string `json:"header,omitempty"`
  5040  	// Id: The ID associated with a message. This field is here to enable ease of
  5041  	// management of messages. Notice ID values could possibly duplicate across
  5042  	// multiple messages in the same class/instance, and care must be taken to
  5043  	// select a reasonable ID for each message.
  5044  	Id string `json:"id,omitempty"`
  5045  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5046  	// "walletobjects#walletObjectMessage".
  5047  	Kind string `json:"kind,omitempty"`
  5048  	// LocalizedBody: Translated strings for the message body.
  5049  	LocalizedBody *LocalizedString `json:"localizedBody,omitempty"`
  5050  	// LocalizedHeader: Translated strings for the message header.
  5051  	LocalizedHeader *LocalizedString `json:"localizedHeader,omitempty"`
  5052  	// MessageType: The message type.
  5053  	//
  5054  	// Possible values:
  5055  	//   "MESSAGE_TYPE_UNSPECIFIED"
  5056  	//   "TEXT" - Renders the message as text on the card details screen. This is
  5057  	// the default message type.
  5058  	//   "text" - Legacy alias for `TEXT`. Deprecated.
  5059  	//   "EXPIRATION_NOTIFICATION" - Note: This enum is currently not supported.
  5060  	//   "expirationNotification" - Legacy alias for `EXPIRATION_NOTIFICATION`.
  5061  	// Deprecated.
  5062  	//   "TEXT_AND_NOTIFY" - Renders the message as text on the card details screen
  5063  	// and as an Android notification.
  5064  	MessageType string `json:"messageType,omitempty"`
  5065  	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
  5066  	// include in API requests. By default, fields with empty or default values are
  5067  	// omitted from API requests. See
  5068  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5069  	// details.
  5070  	ForceSendFields []string `json:"-"`
  5071  	// NullFields is a list of field names (e.g. "Body") to include in API requests
  5072  	// with the JSON null value. By default, fields with empty values are omitted
  5073  	// from API requests. See
  5074  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5075  	NullFields []string `json:"-"`
  5076  }
  5077  
  5078  func (s *Message) MarshalJSON() ([]byte, error) {
  5079  	type NoMethod Message
  5080  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5081  }
  5082  
  5083  type ModifyLinkedOfferObjects struct {
  5084  	// AddLinkedOfferObjectIds: The linked offer object ids to add to the object.
  5085  	AddLinkedOfferObjectIds []string `json:"addLinkedOfferObjectIds,omitempty"`
  5086  	// RemoveLinkedOfferObjectIds: The linked offer object ids to remove from the
  5087  	// object.
  5088  	RemoveLinkedOfferObjectIds []string `json:"removeLinkedOfferObjectIds,omitempty"`
  5089  	// ForceSendFields is a list of field names (e.g. "AddLinkedOfferObjectIds") to
  5090  	// unconditionally include in API requests. By default, fields with empty or
  5091  	// default values are omitted from API requests. See
  5092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5093  	// details.
  5094  	ForceSendFields []string `json:"-"`
  5095  	// NullFields is a list of field names (e.g. "AddLinkedOfferObjectIds") to
  5096  	// include in API requests with the JSON null value. By default, fields with
  5097  	// empty values are omitted from API requests. See
  5098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5099  	NullFields []string `json:"-"`
  5100  }
  5101  
  5102  func (s *ModifyLinkedOfferObjects) MarshalJSON() ([]byte, error) {
  5103  	type NoMethod ModifyLinkedOfferObjects
  5104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5105  }
  5106  
  5107  type ModifyLinkedOfferObjectsRequest struct {
  5108  	// LinkedOfferObjectIds: The linked offer object ids to add or remove from the
  5109  	// object.
  5110  	LinkedOfferObjectIds *ModifyLinkedOfferObjects `json:"linkedOfferObjectIds,omitempty"`
  5111  	// ForceSendFields is a list of field names (e.g. "LinkedOfferObjectIds") to
  5112  	// unconditionally include in API requests. By default, fields with empty or
  5113  	// default values are omitted from API requests. See
  5114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5115  	// details.
  5116  	ForceSendFields []string `json:"-"`
  5117  	// NullFields is a list of field names (e.g. "LinkedOfferObjectIds") to include
  5118  	// in API requests with the JSON null value. By default, fields with empty
  5119  	// values are omitted from API requests. See
  5120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5121  	NullFields []string `json:"-"`
  5122  }
  5123  
  5124  func (s *ModifyLinkedOfferObjectsRequest) MarshalJSON() ([]byte, error) {
  5125  	type NoMethod ModifyLinkedOfferObjectsRequest
  5126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5127  }
  5128  
  5129  type Money struct {
  5130  	// CurrencyCode: The currency code, such as "USD" or "EUR."
  5131  	CurrencyCode string `json:"currencyCode,omitempty"`
  5132  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5133  	// "walletobjects#money".
  5134  	Kind string `json:"kind,omitempty"`
  5135  	// Micros: The unit of money amount in micros. For example, $1 USD would be
  5136  	// represented as 1000000 micros.
  5137  	Micros int64 `json:"micros,omitempty,string"`
  5138  	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
  5139  	// unconditionally include in API requests. By default, fields with empty or
  5140  	// default values are omitted from API requests. See
  5141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5142  	// details.
  5143  	ForceSendFields []string `json:"-"`
  5144  	// NullFields is a list of field names (e.g. "CurrencyCode") to include in API
  5145  	// requests with the JSON null value. By default, fields with empty values are
  5146  	// omitted from API requests. See
  5147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5148  	NullFields []string `json:"-"`
  5149  }
  5150  
  5151  func (s *Money) MarshalJSON() ([]byte, error) {
  5152  	type NoMethod Money
  5153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5154  }
  5155  
  5156  // Notifications: Indicates if the object needs to have notification enabled.
  5157  // We support only one of ExpiryNotification/UpcomingNotification.
  5158  // `expiryNotification` takes precedence over `upcomingNotification`. In other
  5159  // words if `expiryNotification` is set, we ignore the `upcomingNotification`
  5160  // field.
  5161  type Notifications struct {
  5162  	// ExpiryNotification: A notification would be triggered at a specific time
  5163  	// before the card expires.
  5164  	ExpiryNotification *ExpiryNotification `json:"expiryNotification,omitempty"`
  5165  	// UpcomingNotification: A notification would be triggered at a specific time
  5166  	// before the card becomes usable.
  5167  	UpcomingNotification *UpcomingNotification `json:"upcomingNotification,omitempty"`
  5168  	// ForceSendFields is a list of field names (e.g. "ExpiryNotification") to
  5169  	// unconditionally include in API requests. By default, fields with empty or
  5170  	// default values are omitted from API requests. See
  5171  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5172  	// details.
  5173  	ForceSendFields []string `json:"-"`
  5174  	// NullFields is a list of field names (e.g. "ExpiryNotification") to include
  5175  	// in API requests with the JSON null value. By default, fields with empty
  5176  	// values are omitted from API requests. See
  5177  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5178  	NullFields []string `json:"-"`
  5179  }
  5180  
  5181  func (s *Notifications) MarshalJSON() ([]byte, error) {
  5182  	type NoMethod Notifications
  5183  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5184  }
  5185  
  5186  // ObjectId: This is a copy of the tech.blob.ObjectId proto, which could not be
  5187  // used directly here due to transitive closure issues with JavaScript support;
  5188  // see http://b/8801763.
  5189  type ObjectId struct {
  5190  	// BucketName: The name of the bucket to which this object belongs.
  5191  	BucketName string `json:"bucketName,omitempty"`
  5192  	// Generation: Generation of the object. Generations are monotonically
  5193  	// increasing across writes, allowing them to be be compared to determine which
  5194  	// generation is newer. If this is omitted in a request, then you are
  5195  	// requesting the live object. See http://go/bigstore-versions
  5196  	Generation int64 `json:"generation,omitempty,string"`
  5197  	// ObjectName: The name of the object.
  5198  	ObjectName string `json:"objectName,omitempty"`
  5199  	// ForceSendFields is a list of field names (e.g. "BucketName") to
  5200  	// unconditionally include in API requests. By default, fields with empty or
  5201  	// default values are omitted from API requests. See
  5202  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5203  	// details.
  5204  	ForceSendFields []string `json:"-"`
  5205  	// NullFields is a list of field names (e.g. "BucketName") to include in API
  5206  	// requests with the JSON null value. By default, fields with empty values are
  5207  	// omitted from API requests. See
  5208  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5209  	NullFields []string `json:"-"`
  5210  }
  5211  
  5212  func (s *ObjectId) MarshalJSON() ([]byte, error) {
  5213  	type NoMethod ObjectId
  5214  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5215  }
  5216  
  5217  type OfferClass struct {
  5218  	// AllowMultipleUsersPerObject: Deprecated. Use
  5219  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  5220  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  5221  	// CallbackOptions: Callback options to be used to call the issuer back for
  5222  	// every save/delete of an object for this class by the end-user. All objects
  5223  	// of this class are eligible for the callback.
  5224  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  5225  	// ClassTemplateInfo: Template information about how the class should be
  5226  	// displayed. If unset, Google will fallback to a default set of fields to
  5227  	// display.
  5228  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  5229  	// CountryCode: Country code used to display the card's country (when the user
  5230  	// is not in that country), as well as to display localized content when
  5231  	// content is not available in the user's locale.
  5232  	CountryCode string `json:"countryCode,omitempty"`
  5233  	// Details: The details of the offer.
  5234  	Details string `json:"details,omitempty"`
  5235  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  5236  	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
  5237  	// also be set up correctly in order for a pass to support Smart Tap.
  5238  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  5239  	// FinePrint: The fine print or terms of the offer, such as "20% off any
  5240  	// t-shirt at Adam's Apparel."
  5241  	FinePrint string `json:"finePrint,omitempty"`
  5242  	// HelpUri: The help link for the offer, such as
  5243  	// `http://myownpersonaldomain.com/help`
  5244  	HelpUri *Uri `json:"helpUri,omitempty"`
  5245  	// HeroImage: Optional banner image displayed on the front of the card. If none
  5246  	// is present, nothing will be displayed. The image will display at 100% width.
  5247  	HeroImage *Image `json:"heroImage,omitempty"`
  5248  	// HexBackgroundColor: The background color for the card. If not set the
  5249  	// dominant color of the hero image is used, and if no hero image is set, the
  5250  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  5251  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  5252  	// of the RGB triplet which is #rgb, such as `#fc0`.
  5253  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  5254  	// HomepageUri: The URI of your application's home page. Populating the URI in
  5255  	// this field results in the exact same behavior as populating an URI in
  5256  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  5257  	// in what would usually be thought of as the linksModuleData section of the
  5258  	// object).
  5259  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  5260  	// Id: Required. The unique identifier for a class. This ID must be unique
  5261  	// across all classes from an issuer. This value should follow the format
  5262  	// issuer ID. identifier where the former is issued by Google and latter is
  5263  	// chosen by you. Your unique identifier should only include alphanumeric
  5264  	// characters, '.', '_', or '-'.
  5265  	Id string `json:"id,omitempty"`
  5266  	// ImageModulesData: Image module data. The maximum number of these fields
  5267  	// displayed is 1 from object level and 1 for class object level.
  5268  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  5269  	// InfoModuleData: Deprecated. Use textModulesData instead.
  5270  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  5271  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  5272  	// characters to ensure full string is displayed on smaller screens.
  5273  	IssuerName string `json:"issuerName,omitempty"`
  5274  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5275  	// "walletobjects#offerClass".
  5276  	Kind string `json:"kind,omitempty"`
  5277  	// LinksModuleData: Links module data. If links module data is also defined on
  5278  	// the object, both will be displayed.
  5279  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  5280  	// LocalizedDetails: Translated strings for the details.
  5281  	LocalizedDetails *LocalizedString `json:"localizedDetails,omitempty"`
  5282  	// LocalizedFinePrint: Translated strings for the fine_print.
  5283  	LocalizedFinePrint *LocalizedString `json:"localizedFinePrint,omitempty"`
  5284  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  5285  	// maximum length is 20 characters to ensure full string is displayed on
  5286  	// smaller screens.
  5287  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  5288  	// LocalizedProvider: Translated strings for the provider. Recommended maximum
  5289  	// length is 12 characters to ensure full string is displayed on smaller
  5290  	// screens.
  5291  	LocalizedProvider *LocalizedString `json:"localizedProvider,omitempty"`
  5292  	// LocalizedShortTitle: Translated strings for the short title. Recommended
  5293  	// maximum length is 20 characters.
  5294  	LocalizedShortTitle *LocalizedString `json:"localizedShortTitle,omitempty"`
  5295  	// LocalizedTitle: Translated strings for the title. Recommended maximum length
  5296  	// is 60 characters to ensure full string is displayed on smaller screens.
  5297  	LocalizedTitle *LocalizedString `json:"localizedTitle,omitempty"`
  5298  	// Locations: Note: This field is currently not supported to trigger geo
  5299  	// notifications.
  5300  	Locations []*LatLongPoint `json:"locations,omitempty"`
  5301  	// Messages: An array of messages displayed in the app. All users of this
  5302  	// object will receive its associated messages. The maximum number of these
  5303  	// fields is 10.
  5304  	Messages []*Message `json:"messages,omitempty"`
  5305  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  5306  	// and devices will save the same object referencing this class.
  5307  	//
  5308  	// Possible values:
  5309  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  5310  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  5311  	// saved by any number of different users, and on any number of devices.
  5312  	// Partners typically use this setup for passes that do not need to be
  5313  	// restricted to a single user or pinned to a single device.
  5314  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  5315  	// user can view and use it on multiple of their devices. Once the first user
  5316  	// saves the object, no other user will be allowed to view or save it.
  5317  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  5318  	// single device. Intended for use by select partners in limited circumstances.
  5319  	// An example use case is a transit ticket that should be "device pinned",
  5320  	// meaning it can be saved, viewed and used only by a single user on a single
  5321  	// device. Contact support for additional information.
  5322  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  5323  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  5324  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  5325  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  5326  	// Provider: Required. The offer provider (either the aggregator name or
  5327  	// merchant name). Recommended maximum length is 12 characters to ensure full
  5328  	// string is displayed on smaller screens.
  5329  	Provider string `json:"provider,omitempty"`
  5330  	// RedemptionChannel: Required. The redemption channels applicable to this
  5331  	// offer.
  5332  	//
  5333  	// Possible values:
  5334  	//   "REDEMPTION_CHANNEL_UNSPECIFIED"
  5335  	//   "INSTORE"
  5336  	//   "instore" - Legacy alias for `INSTORE`. Deprecated.
  5337  	//   "ONLINE"
  5338  	//   "online" - Legacy alias for `ONLINE`. Deprecated.
  5339  	//   "BOTH"
  5340  	//   "both" - Legacy alias for `BOTH`. Deprecated.
  5341  	//   "TEMPORARY_PRICE_REDUCTION"
  5342  	//   "temporaryPriceReduction" - Legacy alias for `TEMPORARY_PRICE_REDUCTION`.
  5343  	// Deprecated.
  5344  	RedemptionChannel string `json:"redemptionChannel,omitempty"`
  5345  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  5346  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  5347  	// Redemption issuers must have at least one Smart Tap key configured. The
  5348  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  5349  	// be set up correctly in order for a pass to support Smart Tap.
  5350  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  5351  	// Review: The review comments set by the platform when a class is marked
  5352  	// `approved` or `rejected`.
  5353  	Review *Review `json:"review,omitempty"`
  5354  	// ReviewStatus: Required. The status of the class. This field can be set to
  5355  	// `draft` or The status of the class. This field can be set to `draft` or
  5356  	// `underReview` using the insert, patch, or update API calls. Once the review
  5357  	// state is changed from `draft` it may not be changed back to `draft`. You
  5358  	// should keep this field to `draft` when the class is under development. A
  5359  	// `draft` class cannot be used to create any object. You should set this field
  5360  	// to `underReview` when you believe the class is ready for use. The platform
  5361  	// will automatically set this field to `approved` and it can be immediately
  5362  	// used to create or migrate objects. When updating an already `approved` class
  5363  	// you should keep setting this field to `underReview`.
  5364  	//
  5365  	// Possible values:
  5366  	//   "REVIEW_STATUS_UNSPECIFIED"
  5367  	//   "UNDER_REVIEW"
  5368  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  5369  	//   "APPROVED"
  5370  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  5371  	//   "REJECTED"
  5372  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  5373  	//   "DRAFT"
  5374  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  5375  	ReviewStatus string `json:"reviewStatus,omitempty"`
  5376  	// SecurityAnimation: Optional information about the security animation. If
  5377  	// this is set a security animation will be rendered on pass details.
  5378  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  5379  	// ShortTitle: A shortened version of the title of the offer, such as "20%
  5380  	// off," shown to users as a quick reference to the offer contents. Recommended
  5381  	// maximum length is 20 characters.
  5382  	ShortTitle string `json:"shortTitle,omitempty"`
  5383  	// TextModulesData: Text module data. If text module data is also defined on
  5384  	// the class, both will be displayed. The maximum number of these fields
  5385  	// displayed is 10 from the object and 10 from the class.
  5386  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  5387  	// Title: Required. The title of the offer, such as "20% off any t-shirt."
  5388  	// Recommended maximum length is 60 characters to ensure full string is
  5389  	// displayed on smaller screens.
  5390  	Title string `json:"title,omitempty"`
  5391  	// TitleImage: The title image of the offer. This image is displayed in both
  5392  	// the details and list views of the app.
  5393  	TitleImage *Image `json:"titleImage,omitempty"`
  5394  	// Version: Deprecated
  5395  	Version int64 `json:"version,omitempty,string"`
  5396  	// ViewUnlockRequirement: View Unlock Requirement options for the offer.
  5397  	//
  5398  	// Possible values:
  5399  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  5400  	// UNLOCK_NOT_REQUIRED.
  5401  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  5402  	// ViewUnlockRequirement is not set.
  5403  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  5404  	// time the pass is viewed. If the user removes their device lock after saving
  5405  	// the pass, then they will be prompted to create a device lock before the pass
  5406  	// can be viewed.
  5407  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  5408  	// WideTitleImage: The wide title image of the offer. When provided, this will
  5409  	// be used in place of the title image in the top left of the card view.
  5410  	WideTitleImage *Image `json:"wideTitleImage,omitempty"`
  5411  	// WordMark: Deprecated.
  5412  	WordMark *Image `json:"wordMark,omitempty"`
  5413  
  5414  	// ServerResponse contains the HTTP response code and headers from the server.
  5415  	googleapi.ServerResponse `json:"-"`
  5416  	// ForceSendFields is a list of field names (e.g.
  5417  	// "AllowMultipleUsersPerObject") to unconditionally include in API requests.
  5418  	// By default, fields with empty or default values are omitted from API
  5419  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  5420  	// for more details.
  5421  	ForceSendFields []string `json:"-"`
  5422  	// NullFields is a list of field names (e.g. "AllowMultipleUsersPerObject") to
  5423  	// include in API requests with the JSON null value. By default, fields with
  5424  	// empty values are omitted from API requests. See
  5425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5426  	NullFields []string `json:"-"`
  5427  }
  5428  
  5429  func (s *OfferClass) MarshalJSON() ([]byte, error) {
  5430  	type NoMethod OfferClass
  5431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5432  }
  5433  
  5434  type OfferClassAddMessageResponse struct {
  5435  	// Resource: The updated OfferClass resource.
  5436  	Resource *OfferClass `json:"resource,omitempty"`
  5437  
  5438  	// ServerResponse contains the HTTP response code and headers from the server.
  5439  	googleapi.ServerResponse `json:"-"`
  5440  	// ForceSendFields is a list of field names (e.g. "Resource") to
  5441  	// unconditionally include in API requests. By default, fields with empty or
  5442  	// default values are omitted from API requests. See
  5443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5444  	// details.
  5445  	ForceSendFields []string `json:"-"`
  5446  	// NullFields is a list of field names (e.g. "Resource") to include in API
  5447  	// requests with the JSON null value. By default, fields with empty values are
  5448  	// omitted from API requests. See
  5449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5450  	NullFields []string `json:"-"`
  5451  }
  5452  
  5453  func (s *OfferClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  5454  	type NoMethod OfferClassAddMessageResponse
  5455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5456  }
  5457  
  5458  type OfferClassListResponse struct {
  5459  	// Pagination: Pagination of the response.
  5460  	Pagination *Pagination `json:"pagination,omitempty"`
  5461  	// Resources: Resources corresponding to the list request.
  5462  	Resources []*OfferClass `json:"resources,omitempty"`
  5463  
  5464  	// ServerResponse contains the HTTP response code and headers from the server.
  5465  	googleapi.ServerResponse `json:"-"`
  5466  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  5467  	// unconditionally include in API requests. By default, fields with empty or
  5468  	// default values are omitted from API requests. See
  5469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5470  	// details.
  5471  	ForceSendFields []string `json:"-"`
  5472  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  5473  	// requests with the JSON null value. By default, fields with empty values are
  5474  	// omitted from API requests. See
  5475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5476  	NullFields []string `json:"-"`
  5477  }
  5478  
  5479  func (s *OfferClassListResponse) MarshalJSON() ([]byte, error) {
  5480  	type NoMethod OfferClassListResponse
  5481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5482  }
  5483  
  5484  type OfferObject struct {
  5485  	// AppLinkData: Optional information about the partner app link.
  5486  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  5487  	// Barcode: The barcode type and value.
  5488  	Barcode *Barcode `json:"barcode,omitempty"`
  5489  	// ClassId: Required. The class associated with this object. The class must be
  5490  	// of the same type as this object, must already exist, and must be approved.
  5491  	// Class IDs should follow the format issuer ID.identifier where the former is
  5492  	// issued by Google and latter is chosen by you.
  5493  	ClassId string `json:"classId,omitempty"`
  5494  	// ClassReference: A copy of the inherited fields of the parent class. These
  5495  	// fields are retrieved during a GET.
  5496  	ClassReference *OfferClass `json:"classReference,omitempty"`
  5497  	// DisableExpirationNotification: Indicates if notifications should explicitly
  5498  	// be suppressed. If this field is set to true, regardless of the `messages`
  5499  	// field, expiration notifications to the user will be suppressed. By default,
  5500  	// this field is set to false. Currently, this can only be set for offers.
  5501  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  5502  	// GroupingInfo: Information that controls how passes are grouped together.
  5503  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  5504  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  5505  	// This field is set by the platform when a user saves the object, linking it
  5506  	// to their device. Intended for use by select partners. Contact support for
  5507  	// additional information.
  5508  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  5509  	// HasUsers: Indicates if the object has users. This field is set by the
  5510  	// platform.
  5511  	HasUsers bool `json:"hasUsers,omitempty"`
  5512  	// HeroImage: Optional banner image displayed on the front of the card. If none
  5513  	// is present, hero image of the class, if present, will be displayed. If hero
  5514  	// image of the class is also not present, nothing will be displayed.
  5515  	HeroImage *Image `json:"heroImage,omitempty"`
  5516  	// Id: Required. The unique identifier for an object. This ID must be unique
  5517  	// across all objects from an issuer. This value should follow the format
  5518  	// issuer ID.identifier where the former is issued by Google and latter is
  5519  	// chosen by you. The unique identifier should only include alphanumeric
  5520  	// characters, '.', '_', or '-'.
  5521  	Id string `json:"id,omitempty"`
  5522  	// ImageModulesData: Image module data. The maximum number of these fields
  5523  	// displayed is 1 from object level and 1 for class object level.
  5524  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  5525  	// InfoModuleData: Deprecated. Use textModulesData instead.
  5526  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  5527  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5528  	// "walletobjects#offerObject".
  5529  	Kind string `json:"kind,omitempty"`
  5530  	// LinksModuleData: Links module data. If links module data is also defined on
  5531  	// the class, both will be displayed.
  5532  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  5533  	// Locations: Note: This field is currently not supported to trigger geo
  5534  	// notifications.
  5535  	Locations []*LatLongPoint `json:"locations,omitempty"`
  5536  	// Messages: An array of messages displayed in the app. All users of this
  5537  	// object will receive its associated messages. The maximum number of these
  5538  	// fields is 10.
  5539  	Messages []*Message `json:"messages,omitempty"`
  5540  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  5541  	// screenshot behaviors.
  5542  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  5543  	// RotatingBarcode: The rotating barcode type and value.
  5544  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  5545  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  5546  	// certified terminal over NFC for this object. The class level fields
  5547  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  5548  	// order for the pass to support Smart Tap. Only ASCII characters are
  5549  	// supported.
  5550  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  5551  	// State: Required. The state of the object. This field is used to determine
  5552  	// how an object is displayed in the app. For example, an `inactive` object is
  5553  	// moved to the "Expired passes" section.
  5554  	//
  5555  	// Possible values:
  5556  	//   "STATE_UNSPECIFIED"
  5557  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  5558  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  5559  	//   "COMPLETED"
  5560  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  5561  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  5562  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  5563  	//   "INACTIVE"
  5564  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  5565  	State string `json:"state,omitempty"`
  5566  	// TextModulesData: Text module data. If text module data is also defined on
  5567  	// the class, both will be displayed. The maximum number of these fields
  5568  	// displayed is 10 from the object and 10 from the class.
  5569  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  5570  	// ValidTimeInterval: The time period this object will be `active` and object
  5571  	// can be used. An object's state will be changed to `expired` when this time
  5572  	// period has passed.
  5573  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  5574  	// Version: Deprecated
  5575  	Version int64 `json:"version,omitempty,string"`
  5576  
  5577  	// ServerResponse contains the HTTP response code and headers from the server.
  5578  	googleapi.ServerResponse `json:"-"`
  5579  	// ForceSendFields is a list of field names (e.g. "AppLinkData") to
  5580  	// unconditionally include in API requests. By default, fields with empty or
  5581  	// default values are omitted from API requests. See
  5582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5583  	// details.
  5584  	ForceSendFields []string `json:"-"`
  5585  	// NullFields is a list of field names (e.g. "AppLinkData") to include in API
  5586  	// requests with the JSON null value. By default, fields with empty values are
  5587  	// omitted from API requests. See
  5588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5589  	NullFields []string `json:"-"`
  5590  }
  5591  
  5592  func (s *OfferObject) MarshalJSON() ([]byte, error) {
  5593  	type NoMethod OfferObject
  5594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5595  }
  5596  
  5597  type OfferObjectAddMessageResponse struct {
  5598  	// Resource: The updated OfferObject resource.
  5599  	Resource *OfferObject `json:"resource,omitempty"`
  5600  
  5601  	// ServerResponse contains the HTTP response code and headers from the server.
  5602  	googleapi.ServerResponse `json:"-"`
  5603  	// ForceSendFields is a list of field names (e.g. "Resource") to
  5604  	// unconditionally include in API requests. By default, fields with empty or
  5605  	// default values are omitted from API requests. See
  5606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5607  	// details.
  5608  	ForceSendFields []string `json:"-"`
  5609  	// NullFields is a list of field names (e.g. "Resource") to include in API
  5610  	// requests with the JSON null value. By default, fields with empty values are
  5611  	// omitted from API requests. See
  5612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5613  	NullFields []string `json:"-"`
  5614  }
  5615  
  5616  func (s *OfferObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  5617  	type NoMethod OfferObjectAddMessageResponse
  5618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5619  }
  5620  
  5621  type OfferObjectListResponse struct {
  5622  	// Pagination: Pagination of the response.
  5623  	Pagination *Pagination `json:"pagination,omitempty"`
  5624  	// Resources: Resources corresponding to the list request.
  5625  	Resources []*OfferObject `json:"resources,omitempty"`
  5626  
  5627  	// ServerResponse contains the HTTP response code and headers from the server.
  5628  	googleapi.ServerResponse `json:"-"`
  5629  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  5630  	// unconditionally include in API requests. By default, fields with empty or
  5631  	// default values are omitted from API requests. See
  5632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5633  	// details.
  5634  	ForceSendFields []string `json:"-"`
  5635  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  5636  	// requests with the JSON null value. By default, fields with empty values are
  5637  	// omitted from API requests. See
  5638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5639  	NullFields []string `json:"-"`
  5640  }
  5641  
  5642  func (s *OfferObjectListResponse) MarshalJSON() ([]byte, error) {
  5643  	type NoMethod OfferObjectListResponse
  5644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5645  }
  5646  
  5647  type Pagination struct {
  5648  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5649  	// "walletobjects#pagination".
  5650  	Kind string `json:"kind,omitempty"`
  5651  	// NextPageToken: Page token to send to fetch the next page.
  5652  	NextPageToken string `json:"nextPageToken,omitempty"`
  5653  	// ResultsPerPage: Number of results returned in this page.
  5654  	ResultsPerPage int64 `json:"resultsPerPage,omitempty"`
  5655  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  5656  	// include in API requests. By default, fields with empty or default values are
  5657  	// omitted from API requests. See
  5658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5659  	// details.
  5660  	ForceSendFields []string `json:"-"`
  5661  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  5662  	// with the JSON null value. By default, fields with empty values are omitted
  5663  	// from API requests. See
  5664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5665  	NullFields []string `json:"-"`
  5666  }
  5667  
  5668  func (s *Pagination) MarshalJSON() ([]byte, error) {
  5669  	type NoMethod Pagination
  5670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5671  }
  5672  
  5673  // PassConstraints: Container for any constraints that may be placed on passes.
  5674  type PassConstraints struct {
  5675  	// NfcConstraint: The NFC constraints for the pass.
  5676  	//
  5677  	// Possible values:
  5678  	//   "NFC_CONSTRAINT_UNSPECIFIED" - Default value, no specified constraint.
  5679  	//   "BLOCK_PAYMENT" - Payment cards will not be conveyed while the pass is
  5680  	// open.
  5681  	//   "BLOCK_CLOSED_LOOP_TRANSIT" - Closed loop transit cards will not be
  5682  	// conveyed while the pass is open.
  5683  	NfcConstraint []string `json:"nfcConstraint,omitempty"`
  5684  	// ScreenshotEligibility: The screenshot eligibility for the pass.
  5685  	//
  5686  	// Possible values:
  5687  	//   "SCREENSHOT_ELIGIBILITY_UNSPECIFIED" - Default value, same as ELIGIBLE.
  5688  	//   "ELIGIBLE" - Default behavior for all existing Passes if
  5689  	// ScreenshotEligibility is not set. Allows screenshots to be taken on Android
  5690  	// devices.
  5691  	//   "INELIGIBLE" - Disallows screenshots to be taken on Android devices. Note
  5692  	// that older versions of Wallet may still allow screenshots to be taken.
  5693  	ScreenshotEligibility string `json:"screenshotEligibility,omitempty"`
  5694  	// ForceSendFields is a list of field names (e.g. "NfcConstraint") to
  5695  	// unconditionally include in API requests. By default, fields with empty or
  5696  	// default values are omitted from API requests. See
  5697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5698  	// details.
  5699  	ForceSendFields []string `json:"-"`
  5700  	// NullFields is a list of field names (e.g. "NfcConstraint") to include in API
  5701  	// requests with the JSON null value. By default, fields with empty values are
  5702  	// omitted from API requests. See
  5703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5704  	NullFields []string `json:"-"`
  5705  }
  5706  
  5707  func (s *PassConstraints) MarshalJSON() ([]byte, error) {
  5708  	type NoMethod PassConstraints
  5709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5710  }
  5711  
  5712  type Permission struct {
  5713  	// EmailAddress: The email address of the user, group, or service account to
  5714  	// which this permission refers to.
  5715  	EmailAddress string `json:"emailAddress,omitempty"`
  5716  	// Role: The role granted by this permission.
  5717  	//
  5718  	// Possible values:
  5719  	//   "ROLE_UNSPECIFIED"
  5720  	//   "OWNER"
  5721  	//   "owner" - Legacy alias for `OWNER`. Deprecated.
  5722  	//   "READER"
  5723  	//   "reader" - Legacy alias for `READER`. Deprecated.
  5724  	//   "WRITER"
  5725  	//   "writer" - Legacy alias for `WRITER`. Deprecated.
  5726  	Role string `json:"role,omitempty"`
  5727  	// ForceSendFields is a list of field names (e.g. "EmailAddress") to
  5728  	// unconditionally include in API requests. By default, fields with empty or
  5729  	// default values are omitted from API requests. See
  5730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5731  	// details.
  5732  	ForceSendFields []string `json:"-"`
  5733  	// NullFields is a list of field names (e.g. "EmailAddress") to include in API
  5734  	// requests with the JSON null value. By default, fields with empty values are
  5735  	// omitted from API requests. See
  5736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5737  	NullFields []string `json:"-"`
  5738  }
  5739  
  5740  func (s *Permission) MarshalJSON() ([]byte, error) {
  5741  	type NoMethod Permission
  5742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5743  }
  5744  
  5745  type Permissions struct {
  5746  	// IssuerId: ID of the issuer the list of permissions refer to.
  5747  	IssuerId int64 `json:"issuerId,omitempty,string"`
  5748  	// Permissions: The complete list of permissions for the issuer account.
  5749  	Permissions []*Permission `json:"permissions,omitempty"`
  5750  
  5751  	// ServerResponse contains the HTTP response code and headers from the server.
  5752  	googleapi.ServerResponse `json:"-"`
  5753  	// ForceSendFields is a list of field names (e.g. "IssuerId") to
  5754  	// unconditionally include in API requests. By default, fields with empty or
  5755  	// default values are omitted from API requests. See
  5756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5757  	// details.
  5758  	ForceSendFields []string `json:"-"`
  5759  	// NullFields is a list of field names (e.g. "IssuerId") to include in API
  5760  	// requests with the JSON null value. By default, fields with empty values are
  5761  	// omitted from API requests. See
  5762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5763  	NullFields []string `json:"-"`
  5764  }
  5765  
  5766  func (s *Permissions) MarshalJSON() ([]byte, error) {
  5767  	type NoMethod Permissions
  5768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5769  }
  5770  
  5771  type PurchaseDetails struct {
  5772  	// AccountId: ID of the account used to purchase the ticket.
  5773  	AccountId string `json:"accountId,omitempty"`
  5774  	// ConfirmationCode: The confirmation code for the purchase. This may be the
  5775  	// same for multiple different tickets and is used to group tickets together.
  5776  	ConfirmationCode string `json:"confirmationCode,omitempty"`
  5777  	// PurchaseDateTime: The purchase date/time of the ticket. This is an ISO 8601
  5778  	// extended format date/time, with or without an offset. Time may be specified
  5779  	// up to nanosecond precision. Offsets may be specified with seconds precision
  5780  	// (even though offset seconds is not part of ISO 8601). For example:
  5781  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  5782  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  5783  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  5784  	// hours before UTC (same instant in time as the above example). If the event
  5785  	// were in New York, this would be the equivalent of Eastern Daylight Time
  5786  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  5787  	// Time (or Summer Time), depending on the time of the year.
  5788  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  5789  	// 19th hour of April 12th, 1985 with no offset information. Without offset
  5790  	// information, some rich features may not be available.
  5791  	PurchaseDateTime string `json:"purchaseDateTime,omitempty"`
  5792  	// PurchaseReceiptNumber: Receipt number/identifier for tracking the ticket
  5793  	// purchase via the body that sold the ticket.
  5794  	PurchaseReceiptNumber string `json:"purchaseReceiptNumber,omitempty"`
  5795  	// TicketCost: The cost of the ticket.
  5796  	TicketCost *TicketCost `json:"ticketCost,omitempty"`
  5797  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  5798  	// unconditionally include in API requests. By default, fields with empty or
  5799  	// default values are omitted from API requests. See
  5800  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5801  	// details.
  5802  	ForceSendFields []string `json:"-"`
  5803  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  5804  	// requests with the JSON null value. By default, fields with empty values are
  5805  	// omitted from API requests. See
  5806  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5807  	NullFields []string `json:"-"`
  5808  }
  5809  
  5810  func (s *PurchaseDetails) MarshalJSON() ([]byte, error) {
  5811  	type NoMethod PurchaseDetails
  5812  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5813  }
  5814  
  5815  type ReservationInfo struct {
  5816  	// ConfirmationCode: Confirmation code needed to check into this flight. This
  5817  	// is the number that the passenger would enter into a kiosk at the airport to
  5818  	// look up the flight and print a boarding pass.
  5819  	ConfirmationCode string `json:"confirmationCode,omitempty"`
  5820  	// EticketNumber: E-ticket number.
  5821  	EticketNumber string `json:"eticketNumber,omitempty"`
  5822  	// FrequentFlyerInfo: Frequent flyer membership information.
  5823  	FrequentFlyerInfo *FrequentFlyerInfo `json:"frequentFlyerInfo,omitempty"`
  5824  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5825  	// "walletobjects#reservationInfo".
  5826  	Kind string `json:"kind,omitempty"`
  5827  	// ForceSendFields is a list of field names (e.g. "ConfirmationCode") to
  5828  	// unconditionally include in API requests. By default, fields with empty or
  5829  	// default values are omitted from API requests. See
  5830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5831  	// details.
  5832  	ForceSendFields []string `json:"-"`
  5833  	// NullFields is a list of field names (e.g. "ConfirmationCode") to include in
  5834  	// API requests with the JSON null value. By default, fields with empty values
  5835  	// are omitted from API requests. See
  5836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5837  	NullFields []string `json:"-"`
  5838  }
  5839  
  5840  func (s *ReservationInfo) MarshalJSON() ([]byte, error) {
  5841  	type NoMethod ReservationInfo
  5842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5843  }
  5844  
  5845  type Resources struct {
  5846  	EventTicketClasses []*EventTicketClass  `json:"eventTicketClasses,omitempty"`
  5847  	EventTicketObjects []*EventTicketObject `json:"eventTicketObjects,omitempty"`
  5848  	FlightClasses      []*FlightClass       `json:"flightClasses,omitempty"`
  5849  	FlightObjects      []*FlightObject      `json:"flightObjects,omitempty"`
  5850  	GiftCardClasses    []*GiftCardClass     `json:"giftCardClasses,omitempty"`
  5851  	GiftCardObjects    []*GiftCardObject    `json:"giftCardObjects,omitempty"`
  5852  	LoyaltyClasses     []*LoyaltyClass      `json:"loyaltyClasses,omitempty"`
  5853  	LoyaltyObjects     []*LoyaltyObject     `json:"loyaltyObjects,omitempty"`
  5854  	OfferClasses       []*OfferClass        `json:"offerClasses,omitempty"`
  5855  	OfferObjects       []*OfferObject       `json:"offerObjects,omitempty"`
  5856  	TransitClasses     []*TransitClass      `json:"transitClasses,omitempty"`
  5857  	TransitObjects     []*TransitObject     `json:"transitObjects,omitempty"`
  5858  	// ForceSendFields is a list of field names (e.g. "EventTicketClasses") to
  5859  	// unconditionally include in API requests. By default, fields with empty or
  5860  	// default values are omitted from API requests. See
  5861  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5862  	// details.
  5863  	ForceSendFields []string `json:"-"`
  5864  	// NullFields is a list of field names (e.g. "EventTicketClasses") to include
  5865  	// in API requests with the JSON null value. By default, fields with empty
  5866  	// values are omitted from API requests. See
  5867  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5868  	NullFields []string `json:"-"`
  5869  }
  5870  
  5871  func (s *Resources) MarshalJSON() ([]byte, error) {
  5872  	type NoMethod Resources
  5873  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5874  }
  5875  
  5876  type Review struct {
  5877  	Comments string `json:"comments,omitempty"`
  5878  	// ForceSendFields is a list of field names (e.g. "Comments") to
  5879  	// unconditionally include in API requests. By default, fields with empty or
  5880  	// default values are omitted from API requests. See
  5881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5882  	// details.
  5883  	ForceSendFields []string `json:"-"`
  5884  	// NullFields is a list of field names (e.g. "Comments") to include in API
  5885  	// requests with the JSON null value. By default, fields with empty values are
  5886  	// omitted from API requests. See
  5887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5888  	NullFields []string `json:"-"`
  5889  }
  5890  
  5891  func (s *Review) MarshalJSON() ([]byte, error) {
  5892  	type NoMethod Review
  5893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5894  }
  5895  
  5896  type RotatingBarcode struct {
  5897  	// AlternateText: An optional text that will override the default text that
  5898  	// shows under the barcode. This field is intended for a human readable
  5899  	// equivalent of the barcode value, used when the barcode cannot be scanned.
  5900  	AlternateText string `json:"alternateText,omitempty"`
  5901  	// InitialRotatingBarcodeValues: Input only. NOTE: This feature is only
  5902  	// available for the transit vertical. Optional set of initial rotating barcode
  5903  	// values. This allows a small subset of barcodes to be included with the
  5904  	// object. Further rotating barcode values must be uploaded with the
  5905  	// UploadRotatingBarcodeValues endpoint.
  5906  	InitialRotatingBarcodeValues *RotatingBarcodeValues `json:"initialRotatingBarcodeValues,omitempty"`
  5907  	// RenderEncoding: The render encoding for the barcode. When specified, barcode
  5908  	// is rendered in the given encoding. Otherwise best known encoding is chosen
  5909  	// by Google.
  5910  	//
  5911  	// Possible values:
  5912  	//   "RENDER_ENCODING_UNSPECIFIED"
  5913  	//   "UTF_8" - UTF_8 encoding for barcodes. This is only supported for barcode
  5914  	// type qrCode.
  5915  	RenderEncoding string `json:"renderEncoding,omitempty"`
  5916  	// ShowCodeText: Optional text that will be shown when the barcode is hidden
  5917  	// behind a click action. This happens in cases where a pass has Smart Tap
  5918  	// enabled. If not specified, a default is chosen by Google.
  5919  	ShowCodeText *LocalizedString `json:"showCodeText,omitempty"`
  5920  	// TotpDetails: Details used to evaluate the {totp_value_n} substitutions.
  5921  	TotpDetails *RotatingBarcodeTotpDetails `json:"totpDetails,omitempty"`
  5922  	// Type: The type of this barcode.
  5923  	//
  5924  	// Possible values:
  5925  	//   "BARCODE_TYPE_UNSPECIFIED"
  5926  	//   "AZTEC" - Not supported for Rotating Barcodes.
  5927  	//   "aztec" - Legacy alias for `AZTEC`. Deprecated. Not supported for Rotating
  5928  	// Barcodes.
  5929  	//   "CODE_39" - Not supported for Rotating Barcodes.
  5930  	//   "code39" - Legacy alias for `CODE_39`. Deprecated. Not supported for
  5931  	// Rotating Barcodes.
  5932  	//   "CODE_128" - Not supported for Rotating Barcodes.
  5933  	//   "code128" - Legacy alias for `CODE_128`. Deprecated. Not supported for
  5934  	// Rotating Barcodes.
  5935  	//   "CODABAR" - Not supported for Rotating Barcodes.
  5936  	//   "codabar" - Legacy alias for `CODABAR`. Deprecated. Not supported for
  5937  	// Rotating Barcodes.
  5938  	//   "DATA_MATRIX" - A 2D matrix barcode consisting of black and white. Cells
  5939  	// or modules are arranged in either a square or rectangle. Not supported for
  5940  	// Rotating Barcodes.
  5941  	//   "dataMatrix" - Legacy alias for `DATA_MATRIX`. Deprecated. Not supported
  5942  	// for Rotating Barcodes.
  5943  	//   "EAN_8" - Not supported for Rotating Barcodes.
  5944  	//   "ean8" - Legacy alias for `EAN_8`. Deprecated. Not supported for Rotating
  5945  	// Barcodes.
  5946  	//   "EAN_13" - Not supported for Rotating Barcodes.
  5947  	//   "ean13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
  5948  	// Rotating Barcodes.
  5949  	//   "EAN13" - Legacy alias for `EAN_13`. Deprecated. Not supported for
  5950  	// Rotating Barcodes.
  5951  	//   "ITF_14" - 14 digit ITF code Not supported for Rotating Barcodes.
  5952  	//   "itf14" - Legacy alias for `ITF_14`. Deprecated. Not supported for
  5953  	// Rotating Barcodes.
  5954  	//   "PDF_417" - Supported for Rotating Barcodes.
  5955  	//   "pdf417" - Legacy alias for `PDF_417`. Deprecated.
  5956  	//   "PDF417" - Legacy alias for `PDF_417`. Deprecated.
  5957  	//   "QR_CODE" - Supported for Rotating Barcodes.
  5958  	//   "qrCode" - Legacy alias for `QR_CODE`. Deprecated.
  5959  	//   "qrcode" - Legacy alias for `QR_CODE`. Deprecated.
  5960  	//   "UPC_A" - 11 or 12 digit codes Not supported for Rotating Barcodes.
  5961  	//   "upcA" - Legacy alias for `UPC_A`. Deprecated. Not supported for Rotating
  5962  	// Barcodes.
  5963  	//   "TEXT_ONLY" - Renders the field as a text field. The `alternateText` field
  5964  	// may not be used with a barcode of type `textOnly`. Not supported for
  5965  	// Rotating Barcodes.
  5966  	//   "textOnly" - Legacy alias for `TEXT_ONLY`. Deprecated. Not supported for
  5967  	// Rotating Barcodes.
  5968  	Type string `json:"type,omitempty"`
  5969  	// ValuePattern: String encoded barcode value. This string supports the
  5970  	// following substitutions: * {totp_value_n}: Replaced with the TOTP value (see
  5971  	// TotpDetails.parameters). * {totp_timestamp_millis}: Replaced with the
  5972  	// timestamp (millis since epoch) at which the barcode was generated. *
  5973  	// {totp_timestamp_seconds}: Replaced with the timestamp (seconds since epoch)
  5974  	// at which the barcode was generated.
  5975  	ValuePattern string `json:"valuePattern,omitempty"`
  5976  	// ForceSendFields is a list of field names (e.g. "AlternateText") to
  5977  	// unconditionally include in API requests. By default, fields with empty or
  5978  	// default values are omitted from API requests. See
  5979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5980  	// details.
  5981  	ForceSendFields []string `json:"-"`
  5982  	// NullFields is a list of field names (e.g. "AlternateText") to include in API
  5983  	// requests with the JSON null value. By default, fields with empty values are
  5984  	// omitted from API requests. See
  5985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5986  	NullFields []string `json:"-"`
  5987  }
  5988  
  5989  func (s *RotatingBarcode) MarshalJSON() ([]byte, error) {
  5990  	type NoMethod RotatingBarcode
  5991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5992  }
  5993  
  5994  // RotatingBarcodeTotpDetails: Configuration for the time-based OTP
  5995  // substitutions. See https://tools.ietf.org/html/rfc6238
  5996  type RotatingBarcodeTotpDetails struct {
  5997  	// Algorithm: The TOTP algorithm used to generate the OTP.
  5998  	//
  5999  	// Possible values:
  6000  	//   "TOTP_ALGORITHM_UNSPECIFIED"
  6001  	//   "TOTP_SHA1" - TOTP algorithm from RFC 6238 with the SHA1 hash function
  6002  	Algorithm string `json:"algorithm,omitempty"`
  6003  	// Parameters: The TOTP parameters for each of the {totp_value_*}
  6004  	// substitutions. The TotpParameters at index n is used for the {totp_value_n}
  6005  	// substitution.
  6006  	Parameters []*RotatingBarcodeTotpDetailsTotpParameters `json:"parameters,omitempty"`
  6007  	// PeriodMillis: The time interval used for the TOTP value generation, in
  6008  	// milliseconds.
  6009  	PeriodMillis int64 `json:"periodMillis,omitempty,string"`
  6010  	// ForceSendFields is a list of field names (e.g. "Algorithm") to
  6011  	// unconditionally include in API requests. By default, fields with empty or
  6012  	// default values are omitted from API requests. See
  6013  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6014  	// details.
  6015  	ForceSendFields []string `json:"-"`
  6016  	// NullFields is a list of field names (e.g. "Algorithm") to include in API
  6017  	// requests with the JSON null value. By default, fields with empty values are
  6018  	// omitted from API requests. See
  6019  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6020  	NullFields []string `json:"-"`
  6021  }
  6022  
  6023  func (s *RotatingBarcodeTotpDetails) MarshalJSON() ([]byte, error) {
  6024  	type NoMethod RotatingBarcodeTotpDetails
  6025  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6026  }
  6027  
  6028  // RotatingBarcodeTotpDetailsTotpParameters: Configuration for the key and
  6029  // value length. See https://www.rfc-editor.org/rfc/rfc4226#section-5.3
  6030  type RotatingBarcodeTotpDetailsTotpParameters struct {
  6031  	// Key: The secret key used for the TOTP value generation, encoded as a Base16
  6032  	// string.
  6033  	Key string `json:"key,omitempty"`
  6034  	// ValueLength: The length of the TOTP value in decimal digits.
  6035  	ValueLength int64 `json:"valueLength,omitempty"`
  6036  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  6037  	// include in API requests. By default, fields with empty or default values are
  6038  	// omitted from API requests. See
  6039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6040  	// details.
  6041  	ForceSendFields []string `json:"-"`
  6042  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  6043  	// with the JSON null value. By default, fields with empty values are omitted
  6044  	// from API requests. See
  6045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6046  	NullFields []string `json:"-"`
  6047  }
  6048  
  6049  func (s *RotatingBarcodeTotpDetailsTotpParameters) MarshalJSON() ([]byte, error) {
  6050  	type NoMethod RotatingBarcodeTotpDetailsTotpParameters
  6051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6052  }
  6053  
  6054  // RotatingBarcodeValues: A payload containing many barcode values and start
  6055  // date/time.
  6056  type RotatingBarcodeValues struct {
  6057  	// PeriodMillis: Required. The amount of time each barcode is valid for.
  6058  	PeriodMillis int64 `json:"periodMillis,omitempty,string"`
  6059  	// StartDateTime: Required. The date/time the first barcode is valid from.
  6060  	// Barcodes will be rotated through using period_millis defined on the object's
  6061  	// RotatingBarcodeValueInfo. This is an ISO 8601 extended format date/time,
  6062  	// with an offset. Time may be specified up to nanosecond precision. Offsets
  6063  	// may be specified with seconds precision (even though offset seconds is not
  6064  	// part of ISO 8601). For example: `1985-04-12T23:20:50.52Z` would be 20
  6065  	// minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC.
  6066  	// `1985-04-12T19:20:50.52-04:00` would be 20 minutes and 50.52 seconds after
  6067  	// the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time
  6068  	// as the above example). If the event were in New York, this would be the
  6069  	// equivalent of Eastern Daylight Time (EDT). Remember that offset varies in
  6070  	// regions that observe Daylight Saving Time (or Summer Time), depending on the
  6071  	// time of the year.
  6072  	StartDateTime string `json:"startDateTime,omitempty"`
  6073  	// Values: Required. The values to encode in the barcode. At least one value is
  6074  	// required.
  6075  	Values []string `json:"values,omitempty"`
  6076  	// ForceSendFields is a list of field names (e.g. "PeriodMillis") to
  6077  	// unconditionally include in API requests. By default, fields with empty or
  6078  	// default values are omitted from API requests. See
  6079  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6080  	// details.
  6081  	ForceSendFields []string `json:"-"`
  6082  	// NullFields is a list of field names (e.g. "PeriodMillis") to include in API
  6083  	// requests with the JSON null value. By default, fields with empty values are
  6084  	// omitted from API requests. See
  6085  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6086  	NullFields []string `json:"-"`
  6087  }
  6088  
  6089  func (s *RotatingBarcodeValues) MarshalJSON() ([]byte, error) {
  6090  	type NoMethod RotatingBarcodeValues
  6091  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6092  }
  6093  
  6094  type SecurityAnimation struct {
  6095  	// AnimationType: Type of animation.
  6096  	//
  6097  	// Possible values:
  6098  	//   "ANIMATION_UNSPECIFIED"
  6099  	//   "FOIL_SHIMMER" - Default Foil & Shimmer animation
  6100  	//   "foilShimmer" - Legacy alias for `FOIL_SHIMMER`. Deprecated.
  6101  	AnimationType string `json:"animationType,omitempty"`
  6102  	// ForceSendFields is a list of field names (e.g. "AnimationType") to
  6103  	// unconditionally include in API requests. By default, fields with empty or
  6104  	// default values are omitted from API requests. See
  6105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6106  	// details.
  6107  	ForceSendFields []string `json:"-"`
  6108  	// NullFields is a list of field names (e.g. "AnimationType") to include in API
  6109  	// requests with the JSON null value. By default, fields with empty values are
  6110  	// omitted from API requests. See
  6111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6112  	NullFields []string `json:"-"`
  6113  }
  6114  
  6115  func (s *SecurityAnimation) MarshalJSON() ([]byte, error) {
  6116  	type NoMethod SecurityAnimation
  6117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6118  }
  6119  
  6120  type SignUpInfo struct {
  6121  	// ClassId: ID of the class the user can sign up for.
  6122  	ClassId string `json:"classId,omitempty"`
  6123  	// ForceSendFields is a list of field names (e.g. "ClassId") to unconditionally
  6124  	// include in API requests. By default, fields with empty or default values are
  6125  	// omitted from API requests. See
  6126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6127  	// details.
  6128  	ForceSendFields []string `json:"-"`
  6129  	// NullFields is a list of field names (e.g. "ClassId") to include in API
  6130  	// requests with the JSON null value. By default, fields with empty values are
  6131  	// omitted from API requests. See
  6132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6133  	NullFields []string `json:"-"`
  6134  }
  6135  
  6136  func (s *SignUpInfo) MarshalJSON() ([]byte, error) {
  6137  	type NoMethod SignUpInfo
  6138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6139  }
  6140  
  6141  type SmartTap struct {
  6142  	// Id: The unique identifier for a smart tap. This value should follow the
  6143  	// format issuer ID.identifier where the former is issued by Google and latter
  6144  	// is the Smart Tap id. The Smart Tap id is a Base64 encoded string which
  6145  	// represents the id which was generated by the Google Pay app.
  6146  	Id string `json:"id,omitempty"`
  6147  	// Infos: Communication from merchant to user.
  6148  	Infos []*IssuerToUserInfo `json:"infos,omitempty"`
  6149  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6150  	// "walletobjects#smartTap".
  6151  	Kind string `json:"kind,omitempty"`
  6152  	// MerchantId: Smart Tap merchant ID of who engaged in the Smart Tap
  6153  	// interaction.
  6154  	MerchantId int64 `json:"merchantId,omitempty,string"`
  6155  
  6156  	// ServerResponse contains the HTTP response code and headers from the server.
  6157  	googleapi.ServerResponse `json:"-"`
  6158  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  6159  	// include in API requests. By default, fields with empty or default values are
  6160  	// omitted from API requests. See
  6161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6162  	// details.
  6163  	ForceSendFields []string `json:"-"`
  6164  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  6165  	// with the JSON null value. By default, fields with empty values are omitted
  6166  	// from API requests. See
  6167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6168  	NullFields []string `json:"-"`
  6169  }
  6170  
  6171  func (s *SmartTap) MarshalJSON() ([]byte, error) {
  6172  	type NoMethod SmartTap
  6173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6174  }
  6175  
  6176  type SmartTapMerchantData struct {
  6177  	// AuthenticationKeys: Available only to Smart Tap enabled partners. Contact
  6178  	// support for additional guidance.
  6179  	AuthenticationKeys []*AuthenticationKey `json:"authenticationKeys,omitempty"`
  6180  	// SmartTapMerchantId: Available only to Smart Tap enabled partners. Contact
  6181  	// support for additional guidance.
  6182  	SmartTapMerchantId int64 `json:"smartTapMerchantId,omitempty,string"`
  6183  	// ForceSendFields is a list of field names (e.g. "AuthenticationKeys") to
  6184  	// unconditionally include in API requests. By default, fields with empty or
  6185  	// default values are omitted from API requests. See
  6186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6187  	// details.
  6188  	ForceSendFields []string `json:"-"`
  6189  	// NullFields is a list of field names (e.g. "AuthenticationKeys") to include
  6190  	// in API requests with the JSON null value. By default, fields with empty
  6191  	// values are omitted from API requests. See
  6192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6193  	NullFields []string `json:"-"`
  6194  }
  6195  
  6196  func (s *SmartTapMerchantData) MarshalJSON() ([]byte, error) {
  6197  	type NoMethod SmartTapMerchantData
  6198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6199  }
  6200  
  6201  type TemplateItem struct {
  6202  	// FirstValue: A reference to a field to display. If both `firstValue` and
  6203  	// `secondValue` are populated, they will both appear as one item with a slash
  6204  	// between them. For example, values A and B would be shown as "A / B".
  6205  	FirstValue *FieldSelector `json:"firstValue,omitempty"`
  6206  	// PredefinedItem: A predefined item to display. Only one of `firstValue` or
  6207  	// `predefinedItem` may be set.
  6208  	//
  6209  	// Possible values:
  6210  	//   "PREDEFINED_ITEM_UNSPECIFIED"
  6211  	//   "FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER"
  6212  	//   "frequentFlyerProgramNameAndNumber" - Legacy alias for
  6213  	// `FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER`. Deprecated.
  6214  	//   "FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER"
  6215  	//   "flightNumberAndOperatingFlightNumber" - Legacy alias for
  6216  	// `FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER`. Deprecated.
  6217  	PredefinedItem string `json:"predefinedItem,omitempty"`
  6218  	// SecondValue: A reference to a field to display. This may only be populated
  6219  	// if the `firstValue` field is populated.
  6220  	SecondValue *FieldSelector `json:"secondValue,omitempty"`
  6221  	// ForceSendFields is a list of field names (e.g. "FirstValue") to
  6222  	// unconditionally include in API requests. By default, fields with empty or
  6223  	// default values are omitted from API requests. See
  6224  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6225  	// details.
  6226  	ForceSendFields []string `json:"-"`
  6227  	// NullFields is a list of field names (e.g. "FirstValue") to include in API
  6228  	// requests with the JSON null value. By default, fields with empty values are
  6229  	// omitted from API requests. See
  6230  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6231  	NullFields []string `json:"-"`
  6232  }
  6233  
  6234  func (s *TemplateItem) MarshalJSON() ([]byte, error) {
  6235  	type NoMethod TemplateItem
  6236  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6237  }
  6238  
  6239  // TextModuleData: Data for Text module. All fields are optional. Header will
  6240  // be displayed if available, different types of bodies will be concatenated if
  6241  // they are defined.
  6242  type TextModuleData struct {
  6243  	// Body: The body of the Text Module, which is defined as an uninterrupted
  6244  	// string. Recommended maximum length is 500 characters to ensure full string
  6245  	// is displayed on smaller screens.
  6246  	Body string `json:"body,omitempty"`
  6247  	// Header: The header of the Text Module. Recommended maximum length is 35
  6248  	// characters to ensure full string is displayed on smaller screens.
  6249  	Header string `json:"header,omitempty"`
  6250  	// Id: The ID associated with a text module. This field is here to enable ease
  6251  	// of management of text modules.
  6252  	Id string `json:"id,omitempty"`
  6253  	// LocalizedBody: Translated strings for the body. Recommended maximum length
  6254  	// is 500 characters to ensure full string is displayed on smaller screens.
  6255  	LocalizedBody *LocalizedString `json:"localizedBody,omitempty"`
  6256  	// LocalizedHeader: Translated strings for the header. Recommended maximum
  6257  	// length is 35 characters to ensure full string is displayed on smaller
  6258  	// screens.
  6259  	LocalizedHeader *LocalizedString `json:"localizedHeader,omitempty"`
  6260  	// ForceSendFields is a list of field names (e.g. "Body") to unconditionally
  6261  	// include in API requests. By default, fields with empty or default values are
  6262  	// omitted from API requests. See
  6263  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6264  	// details.
  6265  	ForceSendFields []string `json:"-"`
  6266  	// NullFields is a list of field names (e.g. "Body") to include in API requests
  6267  	// with the JSON null value. By default, fields with empty values are omitted
  6268  	// from API requests. See
  6269  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6270  	NullFields []string `json:"-"`
  6271  }
  6272  
  6273  func (s *TextModuleData) MarshalJSON() ([]byte, error) {
  6274  	type NoMethod TextModuleData
  6275  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6276  }
  6277  
  6278  type TicketCost struct {
  6279  	// DiscountMessage: A message describing any kind of discount that was applied.
  6280  	DiscountMessage *LocalizedString `json:"discountMessage,omitempty"`
  6281  	// FaceValue: The face value of the ticket.
  6282  	FaceValue *Money `json:"faceValue,omitempty"`
  6283  	// PurchasePrice: The actual purchase price of the ticket, after tax and/or
  6284  	// discounts.
  6285  	PurchasePrice *Money `json:"purchasePrice,omitempty"`
  6286  	// ForceSendFields is a list of field names (e.g. "DiscountMessage") to
  6287  	// unconditionally include in API requests. By default, fields with empty or
  6288  	// default values are omitted from API requests. See
  6289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6290  	// details.
  6291  	ForceSendFields []string `json:"-"`
  6292  	// NullFields is a list of field names (e.g. "DiscountMessage") to include in
  6293  	// API requests with the JSON null value. By default, fields with empty values
  6294  	// are omitted from API requests. See
  6295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6296  	NullFields []string `json:"-"`
  6297  }
  6298  
  6299  func (s *TicketCost) MarshalJSON() ([]byte, error) {
  6300  	type NoMethod TicketCost
  6301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6302  }
  6303  
  6304  type TicketLeg struct {
  6305  	// ArrivalDateTime: The date/time of arrival. This is an ISO 8601 extended
  6306  	// format date/time, with or without an offset. Time may be specified up to
  6307  	// nanosecond precision. Offsets may be specified with seconds precision (even
  6308  	// though offset seconds is not part of ISO 8601). For example:
  6309  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  6310  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  6311  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  6312  	// hours before UTC (same instant in time as the above example). If the event
  6313  	// were in New York, this would be the equivalent of Eastern Daylight Time
  6314  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  6315  	// Time (or Summer Time), depending on the time of the year.
  6316  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  6317  	// 19th hour of April 12th, 1985 with no offset information. The portion of the
  6318  	// date/time without the offset is considered the "local date/time". This
  6319  	// should be the local date/time at the destination station. For example, if
  6320  	// the event occurs at the 20th hour of June 5th, 2018 at the destination
  6321  	// station, the local date/time portion should be `2018-06-05T20:00:00`. If the
  6322  	// local date/time at the destination station is 4 hours before UTC, an offset
  6323  	// of `-04:00` may be appended. Without offset information, some rich features
  6324  	// may not be available.
  6325  	ArrivalDateTime string `json:"arrivalDateTime,omitempty"`
  6326  	// Carriage: The train or ship name/number that the passsenger needs to board.
  6327  	Carriage string `json:"carriage,omitempty"`
  6328  	// DepartureDateTime: The date/time of departure. This is required if there is
  6329  	// no validity time interval set on the transit object. This is an ISO 8601
  6330  	// extended format date/time, with or without an offset. Time may be specified
  6331  	// up to nanosecond precision. Offsets may be specified with seconds precision
  6332  	// (even though offset seconds is not part of ISO 8601). For example:
  6333  	// `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the
  6334  	// 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would
  6335  	// be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4
  6336  	// hours before UTC (same instant in time as the above example). If the event
  6337  	// were in New York, this would be the equivalent of Eastern Daylight Time
  6338  	// (EDT). Remember that offset varies in regions that observe Daylight Saving
  6339  	// Time (or Summer Time), depending on the time of the year.
  6340  	// `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the
  6341  	// 19th hour of April 12th, 1985 with no offset information. The portion of the
  6342  	// date/time without the offset is considered the "local date/time". This
  6343  	// should be the local date/time at the origin station. For example, if the
  6344  	// departure occurs at the 20th hour of June 5th, 2018 at the origin station,
  6345  	// the local date/time portion should be `2018-06-05T20:00:00`. If the local
  6346  	// date/time at the origin station is 4 hours before UTC, an offset of `-04:00`
  6347  	// may be appended. Without offset information, some rich features may not be
  6348  	// available.
  6349  	DepartureDateTime string `json:"departureDateTime,omitempty"`
  6350  	// DestinationName: The destination name.
  6351  	DestinationName *LocalizedString `json:"destinationName,omitempty"`
  6352  	// DestinationStationCode: The destination station code.
  6353  	DestinationStationCode string `json:"destinationStationCode,omitempty"`
  6354  	// FareName: Short description/name of the fare for this leg of travel. Eg
  6355  	// "Anytime Single Use".
  6356  	FareName *LocalizedString `json:"fareName,omitempty"`
  6357  	// OriginName: The name of the origin station. This is required if
  6358  	// `desinationName` is present or if `originStationCode` is not present.
  6359  	OriginName *LocalizedString `json:"originName,omitempty"`
  6360  	// OriginStationCode: The origin station code. This is required if
  6361  	// `destinationStationCode` is present or if `originName` is not present.
  6362  	OriginStationCode string `json:"originStationCode,omitempty"`
  6363  	// Platform: The platform or gate where the passenger can board the carriage.
  6364  	Platform string `json:"platform,omitempty"`
  6365  	// TicketSeat: The reserved seat for the passenger(s). If more than one seat is
  6366  	// to be specified then use the `ticketSeats` field instead. Both `ticketSeat`
  6367  	// and `ticketSeats` may not be set.
  6368  	TicketSeat *TicketSeat `json:"ticketSeat,omitempty"`
  6369  	// TicketSeats: The reserved seat for the passenger(s). If only one seat is to
  6370  	// be specified then use the `ticketSeat` field instead. Both `ticketSeat` and
  6371  	// `ticketSeats` may not be set.
  6372  	TicketSeats []*TicketSeat `json:"ticketSeats,omitempty"`
  6373  	// TransitOperatorName: The name of the transit operator that is operating this
  6374  	// leg of a trip.
  6375  	TransitOperatorName *LocalizedString `json:"transitOperatorName,omitempty"`
  6376  	// TransitTerminusName: Terminus station or destination of the train/bus/etc.
  6377  	TransitTerminusName *LocalizedString `json:"transitTerminusName,omitempty"`
  6378  	// Zone: The zone of boarding within the platform.
  6379  	Zone string `json:"zone,omitempty"`
  6380  	// ForceSendFields is a list of field names (e.g. "ArrivalDateTime") to
  6381  	// unconditionally include in API requests. By default, fields with empty or
  6382  	// default values are omitted from API requests. See
  6383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6384  	// details.
  6385  	ForceSendFields []string `json:"-"`
  6386  	// NullFields is a list of field names (e.g. "ArrivalDateTime") to include in
  6387  	// API requests with the JSON null value. By default, fields with empty values
  6388  	// are omitted from API requests. See
  6389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6390  	NullFields []string `json:"-"`
  6391  }
  6392  
  6393  func (s *TicketLeg) MarshalJSON() ([]byte, error) {
  6394  	type NoMethod TicketLeg
  6395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6396  }
  6397  
  6398  type TicketRestrictions struct {
  6399  	// OtherRestrictions: Extra restrictions that don't fall under the "route" or
  6400  	// "time" categories.
  6401  	OtherRestrictions *LocalizedString `json:"otherRestrictions,omitempty"`
  6402  	// RouteRestrictions: Restrictions about routes that may be taken. For example,
  6403  	// this may be the string "Reserved CrossCountry trains only".
  6404  	RouteRestrictions *LocalizedString `json:"routeRestrictions,omitempty"`
  6405  	// RouteRestrictionsDetails: More details about the above `routeRestrictions`.
  6406  	RouteRestrictionsDetails *LocalizedString `json:"routeRestrictionsDetails,omitempty"`
  6407  	// TimeRestrictions: Restrictions about times this ticket may be used.
  6408  	TimeRestrictions *LocalizedString `json:"timeRestrictions,omitempty"`
  6409  	// ForceSendFields is a list of field names (e.g. "OtherRestrictions") to
  6410  	// unconditionally include in API requests. By default, fields with empty or
  6411  	// default values are omitted from API requests. See
  6412  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6413  	// details.
  6414  	ForceSendFields []string `json:"-"`
  6415  	// NullFields is a list of field names (e.g. "OtherRestrictions") to include in
  6416  	// API requests with the JSON null value. By default, fields with empty values
  6417  	// are omitted from API requests. See
  6418  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6419  	NullFields []string `json:"-"`
  6420  }
  6421  
  6422  func (s *TicketRestrictions) MarshalJSON() ([]byte, error) {
  6423  	type NoMethod TicketRestrictions
  6424  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6425  }
  6426  
  6427  type TicketSeat struct {
  6428  	// Coach: The identifier of the train car or coach in which the ticketed seat
  6429  	// is located. Eg. "10"
  6430  	Coach string `json:"coach,omitempty"`
  6431  	// CustomFareClass: A custome fare class to be used if no `fareClass` applies.
  6432  	// Both `fareClass` and `customFareClass` may not be set.
  6433  	CustomFareClass *LocalizedString `json:"customFareClass,omitempty"`
  6434  	// FareClass: The fare class of the ticketed seat.
  6435  	//
  6436  	// Possible values:
  6437  	//   "FARE_CLASS_UNSPECIFIED"
  6438  	//   "ECONOMY"
  6439  	//   "economy" - Legacy alias for `ECONOMY`. Deprecated.
  6440  	//   "FIRST"
  6441  	//   "first" - Legacy alias for `FIRST`. Deprecated.
  6442  	//   "BUSINESS"
  6443  	//   "business" - Legacy alias for `BUSINESS`. Deprecated.
  6444  	FareClass string `json:"fareClass,omitempty"`
  6445  	// Seat: The identifier of where the ticketed seat is located. Eg. "42". If
  6446  	// there is no specific identifier, use `seatAssigment` instead.
  6447  	Seat string `json:"seat,omitempty"`
  6448  	// SeatAssignment: The passenger's seat assignment. Eg. "no specific seat". To
  6449  	// be used when there is no specific identifier to use in `seat`.
  6450  	SeatAssignment *LocalizedString `json:"seatAssignment,omitempty"`
  6451  	// ForceSendFields is a list of field names (e.g. "Coach") to unconditionally
  6452  	// include in API requests. By default, fields with empty or default values are
  6453  	// omitted from API requests. See
  6454  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6455  	// details.
  6456  	ForceSendFields []string `json:"-"`
  6457  	// NullFields is a list of field names (e.g. "Coach") to include in API
  6458  	// requests with the JSON null value. By default, fields with empty values are
  6459  	// omitted from API requests. See
  6460  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6461  	NullFields []string `json:"-"`
  6462  }
  6463  
  6464  func (s *TicketSeat) MarshalJSON() ([]byte, error) {
  6465  	type NoMethod TicketSeat
  6466  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6467  }
  6468  
  6469  type TimeInterval struct {
  6470  	// End: End time of the interval. Offset is not required. If an offset is
  6471  	// provided and `start` time is set, `start` must also include an offset.
  6472  	End *DateTime `json:"end,omitempty"`
  6473  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6474  	// "walletobjects#timeInterval".
  6475  	Kind string `json:"kind,omitempty"`
  6476  	// Start: Start time of the interval. Offset is not required. If an offset is
  6477  	// provided and `end` time is set, `end` must also include an offset.
  6478  	Start *DateTime `json:"start,omitempty"`
  6479  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  6480  	// include in API requests. By default, fields with empty or default values are
  6481  	// omitted from API requests. See
  6482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6483  	// details.
  6484  	ForceSendFields []string `json:"-"`
  6485  	// NullFields is a list of field names (e.g. "End") to include in API requests
  6486  	// with the JSON null value. By default, fields with empty values are omitted
  6487  	// from API requests. See
  6488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6489  	NullFields []string `json:"-"`
  6490  }
  6491  
  6492  func (s *TimeInterval) MarshalJSON() ([]byte, error) {
  6493  	type NoMethod TimeInterval
  6494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6495  }
  6496  
  6497  type TransitClass struct {
  6498  	// ActivationOptions: Activation options for an activatable ticket.
  6499  	ActivationOptions *ActivationOptions `json:"activationOptions,omitempty"`
  6500  	// AllowMultipleUsersPerObject: Deprecated. Use
  6501  	// `multipleDevicesAndHoldersAllowedStatus` instead.
  6502  	AllowMultipleUsersPerObject bool `json:"allowMultipleUsersPerObject,omitempty"`
  6503  	// CallbackOptions: Callback options to be used to call the issuer back for
  6504  	// every save/delete of an object for this class by the end-user. All objects
  6505  	// of this class are eligible for the callback.
  6506  	CallbackOptions *CallbackOptions `json:"callbackOptions,omitempty"`
  6507  	// ClassTemplateInfo: Template information about how the class should be
  6508  	// displayed. If unset, Google will fallback to a default set of fields to
  6509  	// display.
  6510  	ClassTemplateInfo *ClassTemplateInfo `json:"classTemplateInfo,omitempty"`
  6511  	// CountryCode: Country code used to display the card's country (when the user
  6512  	// is not in that country), as well as to display localized content when
  6513  	// content is not available in the user's locale.
  6514  	CountryCode string `json:"countryCode,omitempty"`
  6515  	// CustomCarriageLabel: A custom label to use for the carriage value
  6516  	// (`transitObject.ticketLeg.carriage`).
  6517  	CustomCarriageLabel *LocalizedString `json:"customCarriageLabel,omitempty"`
  6518  	// CustomCoachLabel: A custom label to use for the coach value
  6519  	// (`transitObject.ticketLeg.ticketSeat.coach`).
  6520  	CustomCoachLabel *LocalizedString `json:"customCoachLabel,omitempty"`
  6521  	// CustomConcessionCategoryLabel: A custom label to use for the transit
  6522  	// concession category value (`transitObject.concessionCategory`).
  6523  	CustomConcessionCategoryLabel *LocalizedString `json:"customConcessionCategoryLabel,omitempty"`
  6524  	// CustomConfirmationCodeLabel: A custom label to use for the confirmation code
  6525  	// value (`transitObject.purchaseDetails.confirmationCode`).
  6526  	CustomConfirmationCodeLabel *LocalizedString `json:"customConfirmationCodeLabel,omitempty"`
  6527  	// CustomDiscountMessageLabel: A custom label to use for the transit discount
  6528  	// message value (`transitObject.purchaseDetails.ticketCost.discountMessage`).
  6529  	CustomDiscountMessageLabel *LocalizedString `json:"customDiscountMessageLabel,omitempty"`
  6530  	// CustomFareClassLabel: A custom label to use for the fare class value
  6531  	// (`transitObject.ticketLeg.ticketSeat.fareClass`).
  6532  	CustomFareClassLabel *LocalizedString `json:"customFareClassLabel,omitempty"`
  6533  	// CustomFareNameLabel: A custom label to use for the transit fare name value
  6534  	// (`transitObject.ticketLeg.fareName`).
  6535  	CustomFareNameLabel *LocalizedString `json:"customFareNameLabel,omitempty"`
  6536  	// CustomOtherRestrictionsLabel: A custom label to use for the other
  6537  	// restrictions value (`transitObject.ticketRestrictions.otherRestrictions`).
  6538  	CustomOtherRestrictionsLabel *LocalizedString `json:"customOtherRestrictionsLabel,omitempty"`
  6539  	// CustomPlatformLabel: A custom label to use for the boarding platform value
  6540  	// (`transitObject.ticketLeg.platform`).
  6541  	CustomPlatformLabel *LocalizedString `json:"customPlatformLabel,omitempty"`
  6542  	// CustomPurchaseFaceValueLabel: A custom label to use for the purchase face
  6543  	// value (`transitObject.purchaseDetails.ticketCost.faceValue`).
  6544  	CustomPurchaseFaceValueLabel *LocalizedString `json:"customPurchaseFaceValueLabel,omitempty"`
  6545  	// CustomPurchasePriceLabel: A custom label to use for the purchase price value
  6546  	// (`transitObject.purchaseDetails.ticketCost.purchasePrice`).
  6547  	CustomPurchasePriceLabel *LocalizedString `json:"customPurchasePriceLabel,omitempty"`
  6548  	// CustomPurchaseReceiptNumberLabel: A custom label to use for the purchase
  6549  	// receipt number value
  6550  	// (`transitObject.purchaseDetails.purchaseReceiptNumber`).
  6551  	CustomPurchaseReceiptNumberLabel *LocalizedString `json:"customPurchaseReceiptNumberLabel,omitempty"`
  6552  	// CustomRouteRestrictionsDetailsLabel: A custom label to use for the route
  6553  	// restrictions details value
  6554  	// (`transitObject.ticketRestrictions.routeRestrictionsDetails`).
  6555  	CustomRouteRestrictionsDetailsLabel *LocalizedString `json:"customRouteRestrictionsDetailsLabel,omitempty"`
  6556  	// CustomRouteRestrictionsLabel: A custom label to use for the route
  6557  	// restrictions value (`transitObject.ticketRestrictions.routeRestrictions`).
  6558  	CustomRouteRestrictionsLabel *LocalizedString `json:"customRouteRestrictionsLabel,omitempty"`
  6559  	// CustomSeatLabel: A custom label to use for the seat location value
  6560  	// (`transitObject.ticketLeg.ticketSeat.seat`).
  6561  	CustomSeatLabel *LocalizedString `json:"customSeatLabel,omitempty"`
  6562  	// CustomTicketNumberLabel: A custom label to use for the ticket number value
  6563  	// (`transitObject.ticketNumber`).
  6564  	CustomTicketNumberLabel *LocalizedString `json:"customTicketNumberLabel,omitempty"`
  6565  	// CustomTimeRestrictionsLabel: A custom label to use for the time restrictions
  6566  	// details value (`transitObject.ticketRestrictions.timeRestrictions`).
  6567  	CustomTimeRestrictionsLabel *LocalizedString `json:"customTimeRestrictionsLabel,omitempty"`
  6568  	// CustomTransitTerminusNameLabel: A custom label to use for the transit
  6569  	// terminus name value (`transitObject.ticketLeg.transitTerminusName`).
  6570  	CustomTransitTerminusNameLabel *LocalizedString `json:"customTransitTerminusNameLabel,omitempty"`
  6571  	// CustomZoneLabel: A custom label to use for the boarding zone value
  6572  	// (`transitObject.ticketLeg.zone`).
  6573  	CustomZoneLabel *LocalizedString `json:"customZoneLabel,omitempty"`
  6574  	// EnableSingleLegItinerary: Controls the display of the single-leg itinerary
  6575  	// for this class. By default, an itinerary will only display for multi-leg
  6576  	// trips.
  6577  	EnableSingleLegItinerary bool `json:"enableSingleLegItinerary,omitempty"`
  6578  	// EnableSmartTap: Identifies whether this class supports Smart Tap. The
  6579  	// `redemptionIssuers` and object level `smartTapRedemptionLevel` fields must
  6580  	// also be set up correctly in order for a pass to support Smart Tap.
  6581  	EnableSmartTap bool `json:"enableSmartTap,omitempty"`
  6582  	// HeroImage: Optional banner image displayed on the front of the card. If none
  6583  	// is present, nothing will be displayed. The image will display at 100% width.
  6584  	HeroImage *Image `json:"heroImage,omitempty"`
  6585  	// HexBackgroundColor: The background color for the card. If not set the
  6586  	// dominant color of the hero image is used, and if no hero image is set, the
  6587  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  6588  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  6589  	// of the RGB triplet which is #rgb, such as `#fc0`.
  6590  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  6591  	// HomepageUri: The URI of your application's home page. Populating the URI in
  6592  	// this field results in the exact same behavior as populating an URI in
  6593  	// linksModuleData (when an object is rendered, a link to the homepage is shown
  6594  	// in what would usually be thought of as the linksModuleData section of the
  6595  	// object).
  6596  	HomepageUri *Uri `json:"homepageUri,omitempty"`
  6597  	// Id: Required. The unique identifier for a class. This ID must be unique
  6598  	// across all classes from an issuer. This value should follow the format
  6599  	// issuer ID. identifier where the former is issued by Google and latter is
  6600  	// chosen by you. Your unique identifier should only include alphanumeric
  6601  	// characters, '.', '_', or '-'.
  6602  	Id string `json:"id,omitempty"`
  6603  	// ImageModulesData: Image module data. The maximum number of these fields
  6604  	// displayed is 1 from object level and 1 for class object level.
  6605  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  6606  	// InfoModuleData: Deprecated. Use textModulesData instead.
  6607  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  6608  	// IssuerName: Required. The issuer name. Recommended maximum length is 20
  6609  	// characters to ensure full string is displayed on smaller screens.
  6610  	IssuerName string `json:"issuerName,omitempty"`
  6611  	// LanguageOverride: If this field is present, transit tickets served to a
  6612  	// user's device will always be in this language. Represents the BCP 47
  6613  	// language tag. Example values are "en-US", "en-GB", "de", or "de-AT".
  6614  	LanguageOverride string `json:"languageOverride,omitempty"`
  6615  	// LinksModuleData: Links module data. If links module data is also defined on
  6616  	// the object, both will be displayed.
  6617  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  6618  	// LocalizedIssuerName: Translated strings for the issuer_name. Recommended
  6619  	// maximum length is 20 characters to ensure full string is displayed on
  6620  	// smaller screens.
  6621  	LocalizedIssuerName *LocalizedString `json:"localizedIssuerName,omitempty"`
  6622  	// Locations: Note: This field is currently not supported to trigger geo
  6623  	// notifications.
  6624  	Locations []*LatLongPoint `json:"locations,omitempty"`
  6625  	// Logo: Required. The logo image of the ticket. This image is displayed in the
  6626  	// card detail view of the app.
  6627  	Logo *Image `json:"logo,omitempty"`
  6628  	// Messages: An array of messages displayed in the app. All users of this
  6629  	// object will receive its associated messages. The maximum number of these
  6630  	// fields is 10.
  6631  	Messages []*Message `json:"messages,omitempty"`
  6632  	// MultipleDevicesAndHoldersAllowedStatus: Identifies whether multiple users
  6633  	// and devices will save the same object referencing this class.
  6634  	//
  6635  	// Possible values:
  6636  	//   "STATUS_UNSPECIFIED" - Unspecified preference.
  6637  	//   "MULTIPLE_HOLDERS" - The Pass object is shareable by a user and can be
  6638  	// saved by any number of different users, and on any number of devices.
  6639  	// Partners typically use this setup for passes that do not need to be
  6640  	// restricted to a single user or pinned to a single device.
  6641  	//   "ONE_USER_ALL_DEVICES" - An object can only be saved by one user, but this
  6642  	// user can view and use it on multiple of their devices. Once the first user
  6643  	// saves the object, no other user will be allowed to view or save it.
  6644  	//   "ONE_USER_ONE_DEVICE" - An object can only be saved by one user on a
  6645  	// single device. Intended for use by select partners in limited circumstances.
  6646  	// An example use case is a transit ticket that should be "device pinned",
  6647  	// meaning it can be saved, viewed and used only by a single user on a single
  6648  	// device. Contact support for additional information.
  6649  	//   "multipleHolders" - Legacy alias for `MULTIPLE_HOLDERS`. Deprecated.
  6650  	//   "oneUserAllDevices" - Legacy alias for `ONE_USER_ALL_DEVICES`. Deprecated.
  6651  	//   "oneUserOneDevice" - Legacy alias for `ONE_USER_ONE_DEVICE`. Deprecated.
  6652  	MultipleDevicesAndHoldersAllowedStatus string `json:"multipleDevicesAndHoldersAllowedStatus,omitempty"`
  6653  	// RedemptionIssuers: Identifies which redemption issuers can redeem the pass
  6654  	// over Smart Tap. Redemption issuers are identified by their issuer ID.
  6655  	// Redemption issuers must have at least one Smart Tap key configured. The
  6656  	// `enableSmartTap` and object level `smartTapRedemptionLevel` fields must also
  6657  	// be set up correctly in order for a pass to support Smart Tap.
  6658  	RedemptionIssuers googleapi.Int64s `json:"redemptionIssuers,omitempty"`
  6659  	// Review: The review comments set by the platform when a class is marked
  6660  	// `approved` or `rejected`.
  6661  	Review *Review `json:"review,omitempty"`
  6662  	// ReviewStatus: Required. The status of the class. This field can be set to
  6663  	// `draft` or `underReview` using the insert, patch, or update API calls. Once
  6664  	// the review state is changed from `draft` it may not be changed back to
  6665  	// `draft`. You should keep this field to `draft` when the class is under
  6666  	// development. A `draft` class cannot be used to create any object. You should
  6667  	// set this field to `underReview` when you believe the class is ready for use.
  6668  	// The platform will automatically set this field to `approved` and it can be
  6669  	// immediately used to create or migrate objects. When updating an already
  6670  	// `approved` class you should keep setting this field to `underReview`.
  6671  	//
  6672  	// Possible values:
  6673  	//   "REVIEW_STATUS_UNSPECIFIED"
  6674  	//   "UNDER_REVIEW"
  6675  	//   "underReview" - Legacy alias for `UNDER_REVIEW`. Deprecated.
  6676  	//   "APPROVED"
  6677  	//   "approved" - Legacy alias for `APPROVED`. Deprecated.
  6678  	//   "REJECTED"
  6679  	//   "rejected" - Legacy alias for `REJECTED`. Deprecated.
  6680  	//   "DRAFT"
  6681  	//   "draft" - Legacy alias for `DRAFT`. Deprecated.
  6682  	ReviewStatus string `json:"reviewStatus,omitempty"`
  6683  	// SecurityAnimation: Optional information about the security animation. If
  6684  	// this is set a security animation will be rendered on pass details.
  6685  	SecurityAnimation *SecurityAnimation `json:"securityAnimation,omitempty"`
  6686  	// TextModulesData: Text module data. If text module data is also defined on
  6687  	// the class, both will be displayed. The maximum number of these fields
  6688  	// displayed is 10 from the object and 10 from the class.
  6689  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  6690  	// TransitOperatorName: The name of the transit operator.
  6691  	TransitOperatorName *LocalizedString `json:"transitOperatorName,omitempty"`
  6692  	// TransitType: Required. The type of transit this class represents, such as
  6693  	// "bus".
  6694  	//
  6695  	// Possible values:
  6696  	//   "TRANSIT_TYPE_UNSPECIFIED"
  6697  	//   "BUS"
  6698  	//   "bus" - Legacy alias for `BUS`. Deprecated.
  6699  	//   "RAIL"
  6700  	//   "rail" - Legacy alias for `RAIL`. Deprecated.
  6701  	//   "TRAM"
  6702  	//   "tram" - Legacy alias for `TRAM`. Deprecated.
  6703  	//   "FERRY"
  6704  	//   "ferry" - Legacy alias for `FERRY`. Deprecated.
  6705  	//   "OTHER"
  6706  	//   "other" - Legacy alias for `OTHER`. Deprecated.
  6707  	TransitType string `json:"transitType,omitempty"`
  6708  	// Version: Deprecated
  6709  	Version int64 `json:"version,omitempty,string"`
  6710  	// ViewUnlockRequirement: View Unlock Requirement options for the transit
  6711  	// ticket.
  6712  	//
  6713  	// Possible values:
  6714  	//   "VIEW_UNLOCK_REQUIREMENT_UNSPECIFIED" - Default value, same as
  6715  	// UNLOCK_NOT_REQUIRED.
  6716  	//   "UNLOCK_NOT_REQUIRED" - Default behavior for all the existing Passes if
  6717  	// ViewUnlockRequirement is not set.
  6718  	//   "UNLOCK_REQUIRED_TO_VIEW" - Requires the user to unlock their device each
  6719  	// time the pass is viewed. If the user removes their device lock after saving
  6720  	// the pass, then they will be prompted to create a device lock before the pass
  6721  	// can be viewed.
  6722  	ViewUnlockRequirement string `json:"viewUnlockRequirement,omitempty"`
  6723  	// Watermark: Watermark image to display on the user's device.
  6724  	Watermark *Image `json:"watermark,omitempty"`
  6725  	// WideLogo: The wide logo of the ticket. When provided, this will be used in
  6726  	// place of the logo in the top left of the card view.
  6727  	WideLogo *Image `json:"wideLogo,omitempty"`
  6728  	// WordMark: Deprecated.
  6729  	WordMark *Image `json:"wordMark,omitempty"`
  6730  
  6731  	// ServerResponse contains the HTTP response code and headers from the server.
  6732  	googleapi.ServerResponse `json:"-"`
  6733  	// ForceSendFields is a list of field names (e.g. "ActivationOptions") to
  6734  	// unconditionally include in API requests. By default, fields with empty or
  6735  	// default values are omitted from API requests. See
  6736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6737  	// details.
  6738  	ForceSendFields []string `json:"-"`
  6739  	// NullFields is a list of field names (e.g. "ActivationOptions") to include in
  6740  	// API requests with the JSON null value. By default, fields with empty values
  6741  	// are omitted from API requests. See
  6742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6743  	NullFields []string `json:"-"`
  6744  }
  6745  
  6746  func (s *TransitClass) MarshalJSON() ([]byte, error) {
  6747  	type NoMethod TransitClass
  6748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6749  }
  6750  
  6751  type TransitClassAddMessageResponse struct {
  6752  	// Resource: The updated TransitClass resource.
  6753  	Resource *TransitClass `json:"resource,omitempty"`
  6754  
  6755  	// ServerResponse contains the HTTP response code and headers from the server.
  6756  	googleapi.ServerResponse `json:"-"`
  6757  	// ForceSendFields is a list of field names (e.g. "Resource") to
  6758  	// unconditionally include in API requests. By default, fields with empty or
  6759  	// default values are omitted from API requests. See
  6760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6761  	// details.
  6762  	ForceSendFields []string `json:"-"`
  6763  	// NullFields is a list of field names (e.g. "Resource") to include in API
  6764  	// requests with the JSON null value. By default, fields with empty values are
  6765  	// omitted from API requests. See
  6766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6767  	NullFields []string `json:"-"`
  6768  }
  6769  
  6770  func (s *TransitClassAddMessageResponse) MarshalJSON() ([]byte, error) {
  6771  	type NoMethod TransitClassAddMessageResponse
  6772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6773  }
  6774  
  6775  type TransitClassListResponse struct {
  6776  	// Pagination: Pagination of the response.
  6777  	Pagination *Pagination `json:"pagination,omitempty"`
  6778  	// Resources: Resources corresponding to the list request.
  6779  	Resources []*TransitClass `json:"resources,omitempty"`
  6780  
  6781  	// ServerResponse contains the HTTP response code and headers from the server.
  6782  	googleapi.ServerResponse `json:"-"`
  6783  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  6784  	// unconditionally include in API requests. By default, fields with empty or
  6785  	// default values are omitted from API requests. See
  6786  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6787  	// details.
  6788  	ForceSendFields []string `json:"-"`
  6789  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  6790  	// requests with the JSON null value. By default, fields with empty values are
  6791  	// omitted from API requests. See
  6792  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6793  	NullFields []string `json:"-"`
  6794  }
  6795  
  6796  func (s *TransitClassListResponse) MarshalJSON() ([]byte, error) {
  6797  	type NoMethod TransitClassListResponse
  6798  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6799  }
  6800  
  6801  type TransitObject struct {
  6802  	// ActivationStatus: The activation status for the object. Required if the
  6803  	// class has `activationOptions` set.
  6804  	ActivationStatus *ActivationStatus `json:"activationStatus,omitempty"`
  6805  	// AppLinkData: Optional information about the partner app link.
  6806  	AppLinkData *AppLinkData `json:"appLinkData,omitempty"`
  6807  	// Barcode: The barcode type and value.
  6808  	Barcode *Barcode `json:"barcode,omitempty"`
  6809  	// ClassId: Required. The class associated with this object. The class must be
  6810  	// of the same type as this object, must already exist, and must be approved.
  6811  	// Class IDs should follow the format issuer ID.identifier where the former is
  6812  	// issued by Google and latter is chosen by you.
  6813  	ClassId string `json:"classId,omitempty"`
  6814  	// ClassReference: A copy of the inherited fields of the parent class. These
  6815  	// fields are retrieved during a GET.
  6816  	ClassReference *TransitClass `json:"classReference,omitempty"`
  6817  	// ConcessionCategory: The concession category for the ticket.
  6818  	//
  6819  	// Possible values:
  6820  	//   "CONCESSION_CATEGORY_UNSPECIFIED"
  6821  	//   "ADULT"
  6822  	//   "adult" - Legacy alias for `ADULT`. Deprecated.
  6823  	//   "CHILD"
  6824  	//   "child" - Legacy alias for `CHILD`. Deprecated.
  6825  	//   "SENIOR"
  6826  	//   "senior" - Legacy alias for `SENIOR`. Deprecated.
  6827  	ConcessionCategory string `json:"concessionCategory,omitempty"`
  6828  	// CustomConcessionCategory: A custom concession category to use when
  6829  	// `concessionCategory` does not provide the right option. Both
  6830  	// `concessionCategory` and `customConcessionCategory` may not be set.
  6831  	CustomConcessionCategory *LocalizedString `json:"customConcessionCategory,omitempty"`
  6832  	// CustomTicketStatus: A custom status to use for the ticket status value when
  6833  	// `ticketStatus` does not provide the right option. Both `ticketStatus` and
  6834  	// `customTicketStatus` may not be set.
  6835  	CustomTicketStatus *LocalizedString `json:"customTicketStatus,omitempty"`
  6836  	// DeviceContext: Device context associated with the object.
  6837  	DeviceContext *DeviceContext `json:"deviceContext,omitempty"`
  6838  	// DisableExpirationNotification: Indicates if notifications should explicitly
  6839  	// be suppressed. If this field is set to true, regardless of the `messages`
  6840  	// field, expiration notifications to the user will be suppressed. By default,
  6841  	// this field is set to false. Currently, this can only be set for offers.
  6842  	DisableExpirationNotification bool `json:"disableExpirationNotification,omitempty"`
  6843  	// GroupingInfo: Information that controls how passes are grouped together.
  6844  	GroupingInfo *GroupingInfo `json:"groupingInfo,omitempty"`
  6845  	// HasLinkedDevice: Whether this object is currently linked to a single device.
  6846  	// This field is set by the platform when a user saves the object, linking it
  6847  	// to their device. Intended for use by select partners. Contact support for
  6848  	// additional information.
  6849  	HasLinkedDevice bool `json:"hasLinkedDevice,omitempty"`
  6850  	// HasUsers: Indicates if the object has users. This field is set by the
  6851  	// platform.
  6852  	HasUsers bool `json:"hasUsers,omitempty"`
  6853  	// HeroImage: Optional banner image displayed on the front of the card. If none
  6854  	// is present, hero image of the class, if present, will be displayed. If hero
  6855  	// image of the class is also not present, nothing will be displayed.
  6856  	HeroImage *Image `json:"heroImage,omitempty"`
  6857  	// HexBackgroundColor: The background color for the card. If not set the
  6858  	// dominant color of the hero image is used, and if no hero image is set, the
  6859  	// dominant color of the logo is used. The format is #rrggbb where rrggbb is a
  6860  	// hex RGB triplet, such as `#ffcc00`. You can also use the shorthand version
  6861  	// of the RGB triplet which is #rgb, such as `#fc0`.
  6862  	HexBackgroundColor string `json:"hexBackgroundColor,omitempty"`
  6863  	// Id: Required. The unique identifier for an object. This ID must be unique
  6864  	// across all objects from an issuer. This value should follow the format
  6865  	// issuer ID.identifier where the former is issued by Google and latter is
  6866  	// chosen by you. The unique identifier should only include alphanumeric
  6867  	// characters, '.', '_', or '-'.
  6868  	Id string `json:"id,omitempty"`
  6869  	// ImageModulesData: Image module data. The maximum number of these fields
  6870  	// displayed is 1 from object level and 1 for class object level.
  6871  	ImageModulesData []*ImageModuleData `json:"imageModulesData,omitempty"`
  6872  	// InfoModuleData: Deprecated. Use textModulesData instead.
  6873  	InfoModuleData *InfoModuleData `json:"infoModuleData,omitempty"`
  6874  	// LinksModuleData: Links module data. If links module data is also defined on
  6875  	// the class, both will be displayed.
  6876  	LinksModuleData *LinksModuleData `json:"linksModuleData,omitempty"`
  6877  	// Locations: Note: This field is currently not supported to trigger geo
  6878  	// notifications.
  6879  	Locations []*LatLongPoint `json:"locations,omitempty"`
  6880  	// Messages: An array of messages displayed in the app. All users of this
  6881  	// object will receive its associated messages. The maximum number of these
  6882  	// fields is 10.
  6883  	Messages []*Message `json:"messages,omitempty"`
  6884  	// PassConstraints: Pass constraints for the object. Includes limiting NFC and
  6885  	// screenshot behaviors.
  6886  	PassConstraints *PassConstraints `json:"passConstraints,omitempty"`
  6887  	// PassengerNames: The name(s) of the passengers the ticket is assigned to. The
  6888  	// above `passengerType` field is meant to give Google context on this field.
  6889  	PassengerNames string `json:"passengerNames,omitempty"`
  6890  	// PassengerType: The number of passengers.
  6891  	//
  6892  	// Possible values:
  6893  	//   "PASSENGER_TYPE_UNSPECIFIED"
  6894  	//   "SINGLE_PASSENGER"
  6895  	//   "singlePassenger" - Legacy alias for `SINGLE_PASSENGER`. Deprecated.
  6896  	//   "MULTIPLE_PASSENGERS"
  6897  	//   "multiplePassengers" - Legacy alias for `MULTIPLE_PASSENGERS`. Deprecated.
  6898  	PassengerType string `json:"passengerType,omitempty"`
  6899  	// PurchaseDetails: Purchase details for this ticket.
  6900  	PurchaseDetails *PurchaseDetails `json:"purchaseDetails,omitempty"`
  6901  	// RotatingBarcode: The rotating barcode type and value.
  6902  	RotatingBarcode *RotatingBarcode `json:"rotatingBarcode,omitempty"`
  6903  	// SmartTapRedemptionValue: The value that will be transmitted to a Smart Tap
  6904  	// certified terminal over NFC for this object. The class level fields
  6905  	// `enableSmartTap` and `redemptionIssuers` must also be set up correctly in
  6906  	// order for the pass to support Smart Tap. Only ASCII characters are
  6907  	// supported.
  6908  	SmartTapRedemptionValue string `json:"smartTapRedemptionValue,omitempty"`
  6909  	// State: Required. The state of the object. This field is used to determine
  6910  	// how an object is displayed in the app. For example, an `inactive` object is
  6911  	// moved to the "Expired passes" section.
  6912  	//
  6913  	// Possible values:
  6914  	//   "STATE_UNSPECIFIED"
  6915  	//   "ACTIVE" - Object is active and displayed to with other active objects.
  6916  	//   "active" - Legacy alias for `ACTIVE`. Deprecated.
  6917  	//   "COMPLETED"
  6918  	//   "completed" - Legacy alias for `COMPLETED`. Deprecated.
  6919  	//   "EXPIRED" - Object is no longer valid (`validTimeInterval` passed).
  6920  	//   "expired" - Legacy alias for `EXPIRED`. Deprecated.
  6921  	//   "INACTIVE"
  6922  	//   "inactive" - Legacy alias for `INACTIVE`. Deprecated.
  6923  	State string `json:"state,omitempty"`
  6924  	// TextModulesData: Text module data. If text module data is also defined on
  6925  	// the class, both will be displayed. The maximum number of these fields
  6926  	// displayed is 10 from the object and 10 from the class.
  6927  	TextModulesData []*TextModuleData `json:"textModulesData,omitempty"`
  6928  	// TicketLeg: A single ticket leg contains departure and arrival information
  6929  	// along with boarding and seating information. If more than one leg is to be
  6930  	// specified then use the `ticketLegs` field instead. Both `ticketLeg` and
  6931  	// `ticketLegs` may not be set.
  6932  	TicketLeg *TicketLeg `json:"ticketLeg,omitempty"`
  6933  	// TicketLegs: Each ticket may contain one or more legs. Each leg contains
  6934  	// departure and arrival information along with boarding and seating
  6935  	// information. If only one leg is to be specified then use the `ticketLeg`
  6936  	// field instead. Both `ticketLeg` and `ticketLegs` may not be set.
  6937  	TicketLegs []*TicketLeg `json:"ticketLegs,omitempty"`
  6938  	// TicketNumber: The number of the ticket. This is a unique identifier for the
  6939  	// ticket in the transit operator's system.
  6940  	TicketNumber string `json:"ticketNumber,omitempty"`
  6941  	// TicketRestrictions: Information about what kind of restrictions there are on
  6942  	// using this ticket. For example, which days of the week it must be used, or
  6943  	// which routes are allowed to be taken.
  6944  	TicketRestrictions *TicketRestrictions `json:"ticketRestrictions,omitempty"`
  6945  	// TicketStatus: The status of the ticket. For states which affect display, use
  6946  	// the `state` field instead.
  6947  	//
  6948  	// Possible values:
  6949  	//   "TICKET_STATUS_UNSPECIFIED"
  6950  	//   "USED"
  6951  	//   "used" - Legacy alias for `USED`. Deprecated.
  6952  	//   "REFUNDED"
  6953  	//   "refunded" - Legacy alias for `REFUNDED`. Deprecated.
  6954  	//   "EXCHANGED"
  6955  	//   "exchanged" - Legacy alias for `EXCHANGED`. Deprecated.
  6956  	TicketStatus string `json:"ticketStatus,omitempty"`
  6957  	// TripId: This id is used to group tickets together if the user has saved
  6958  	// multiple tickets for the same trip.
  6959  	TripId string `json:"tripId,omitempty"`
  6960  	// TripType: Required. The type of trip this transit object represents. Used to
  6961  	// determine the pass title and/or which symbol to use between the origin and
  6962  	// destination.
  6963  	//
  6964  	// Possible values:
  6965  	//   "TRIP_TYPE_UNSPECIFIED"
  6966  	//   "ROUND_TRIP"
  6967  	//   "roundTrip" - Legacy alias for `ROUND_TRIP`. Deprecated.
  6968  	//   "ONE_WAY"
  6969  	//   "oneWay" - Legacy alias for `ONE_WAY`. Deprecated.
  6970  	TripType string `json:"tripType,omitempty"`
  6971  	// ValidTimeInterval: The time period this object will be `active` and object
  6972  	// can be used. An object's state will be changed to `expired` when this time
  6973  	// period has passed.
  6974  	ValidTimeInterval *TimeInterval `json:"validTimeInterval,omitempty"`
  6975  	// Version: Deprecated
  6976  	Version int64 `json:"version,omitempty,string"`
  6977  
  6978  	// ServerResponse contains the HTTP response code and headers from the server.
  6979  	googleapi.ServerResponse `json:"-"`
  6980  	// ForceSendFields is a list of field names (e.g. "ActivationStatus") to
  6981  	// unconditionally include in API requests. By default, fields with empty or
  6982  	// default values are omitted from API requests. See
  6983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6984  	// details.
  6985  	ForceSendFields []string `json:"-"`
  6986  	// NullFields is a list of field names (e.g. "ActivationStatus") to include in
  6987  	// API requests with the JSON null value. By default, fields with empty values
  6988  	// are omitted from API requests. See
  6989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6990  	NullFields []string `json:"-"`
  6991  }
  6992  
  6993  func (s *TransitObject) MarshalJSON() ([]byte, error) {
  6994  	type NoMethod TransitObject
  6995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6996  }
  6997  
  6998  type TransitObjectAddMessageResponse struct {
  6999  	// Resource: The updated TransitObject resource.
  7000  	Resource *TransitObject `json:"resource,omitempty"`
  7001  
  7002  	// ServerResponse contains the HTTP response code and headers from the server.
  7003  	googleapi.ServerResponse `json:"-"`
  7004  	// ForceSendFields is a list of field names (e.g. "Resource") to
  7005  	// unconditionally include in API requests. By default, fields with empty or
  7006  	// default values are omitted from API requests. See
  7007  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7008  	// details.
  7009  	ForceSendFields []string `json:"-"`
  7010  	// NullFields is a list of field names (e.g. "Resource") to include in API
  7011  	// requests with the JSON null value. By default, fields with empty values are
  7012  	// omitted from API requests. See
  7013  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7014  	NullFields []string `json:"-"`
  7015  }
  7016  
  7017  func (s *TransitObjectAddMessageResponse) MarshalJSON() ([]byte, error) {
  7018  	type NoMethod TransitObjectAddMessageResponse
  7019  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7020  }
  7021  
  7022  type TransitObjectListResponse struct {
  7023  	// Pagination: Pagination of the response.
  7024  	Pagination *Pagination `json:"pagination,omitempty"`
  7025  	// Resources: Resources corresponding to the list request.
  7026  	Resources []*TransitObject `json:"resources,omitempty"`
  7027  
  7028  	// ServerResponse contains the HTTP response code and headers from the server.
  7029  	googleapi.ServerResponse `json:"-"`
  7030  	// ForceSendFields is a list of field names (e.g. "Pagination") to
  7031  	// unconditionally include in API requests. By default, fields with empty or
  7032  	// default values are omitted from API requests. See
  7033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7034  	// details.
  7035  	ForceSendFields []string `json:"-"`
  7036  	// NullFields is a list of field names (e.g. "Pagination") to include in API
  7037  	// requests with the JSON null value. By default, fields with empty values are
  7038  	// omitted from API requests. See
  7039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7040  	NullFields []string `json:"-"`
  7041  }
  7042  
  7043  func (s *TransitObjectListResponse) MarshalJSON() ([]byte, error) {
  7044  	type NoMethod TransitObjectListResponse
  7045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7046  }
  7047  
  7048  // TransitObjectUploadRotatingBarcodeValuesRequest: Request to upload rotating
  7049  // barcode values.
  7050  type TransitObjectUploadRotatingBarcodeValuesRequest struct {
  7051  	// Blob: A reference to the rotating barcode values payload that was uploaded.
  7052  	Blob *Media `json:"blob,omitempty"`
  7053  	// MediaRequestInfo: Extra information about the uploaded media.
  7054  	MediaRequestInfo *MediaRequestInfo `json:"mediaRequestInfo,omitempty"`
  7055  	// ForceSendFields is a list of field names (e.g. "Blob") to unconditionally
  7056  	// include in API requests. By default, fields with empty or default values are
  7057  	// omitted from API requests. See
  7058  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7059  	// details.
  7060  	ForceSendFields []string `json:"-"`
  7061  	// NullFields is a list of field names (e.g. "Blob") to include in API requests
  7062  	// with the JSON null value. By default, fields with empty values are omitted
  7063  	// from API requests. See
  7064  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7065  	NullFields []string `json:"-"`
  7066  }
  7067  
  7068  func (s *TransitObjectUploadRotatingBarcodeValuesRequest) MarshalJSON() ([]byte, error) {
  7069  	type NoMethod TransitObjectUploadRotatingBarcodeValuesRequest
  7070  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7071  }
  7072  
  7073  // TransitObjectUploadRotatingBarcodeValuesResponse: Response for uploading
  7074  // rotating barcode values.
  7075  type TransitObjectUploadRotatingBarcodeValuesResponse struct {
  7076  	// ServerResponse contains the HTTP response code and headers from the server.
  7077  	googleapi.ServerResponse `json:"-"`
  7078  }
  7079  
  7080  type TranslatedString struct {
  7081  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  7082  	// "walletobjects#translatedString".
  7083  	Kind string `json:"kind,omitempty"`
  7084  	// Language: Represents the BCP 47 language tag. Example values are "en-US",
  7085  	// "en-GB", "de", or "de-AT".
  7086  	Language string `json:"language,omitempty"`
  7087  	// Value: The UTF-8 encoded translated string.
  7088  	Value string `json:"value,omitempty"`
  7089  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  7090  	// include in API requests. By default, fields with empty or default values are
  7091  	// omitted from API requests. See
  7092  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7093  	// details.
  7094  	ForceSendFields []string `json:"-"`
  7095  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  7096  	// with the JSON null value. By default, fields with empty values are omitted
  7097  	// from API requests. See
  7098  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7099  	NullFields []string `json:"-"`
  7100  }
  7101  
  7102  func (s *TranslatedString) MarshalJSON() ([]byte, error) {
  7103  	type NoMethod TranslatedString
  7104  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7105  }
  7106  
  7107  // UpcomingNotification: Indicates that the issuer would like Google Wallet to
  7108  // send an upcoming card validity notification 1 day before card becomes
  7109  // valid/usable.
  7110  type UpcomingNotification struct {
  7111  	// EnableNotification: Indicates if the object needs to have upcoming
  7112  	// notification enabled.
  7113  	EnableNotification bool `json:"enableNotification,omitempty"`
  7114  	// ForceSendFields is a list of field names (e.g. "EnableNotification") to
  7115  	// unconditionally include in API requests. By default, fields with empty or
  7116  	// default values are omitted from API requests. See
  7117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7118  	// details.
  7119  	ForceSendFields []string `json:"-"`
  7120  	// NullFields is a list of field names (e.g. "EnableNotification") to include
  7121  	// in API requests with the JSON null value. By default, fields with empty
  7122  	// values are omitted from API requests. See
  7123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7124  	NullFields []string `json:"-"`
  7125  }
  7126  
  7127  func (s *UpcomingNotification) MarshalJSON() ([]byte, error) {
  7128  	type NoMethod UpcomingNotification
  7129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7130  }
  7131  
  7132  type Uri struct {
  7133  	// Description: The URI's title appearing in the app as text. Recommended
  7134  	// maximum is 20 characters to ensure full string is displayed on smaller
  7135  	// screens. Note that in some contexts this text is not used, such as when
  7136  	// `description` is part of an image.
  7137  	Description string `json:"description,omitempty"`
  7138  	// Id: The ID associated with a uri. This field is here to enable ease of
  7139  	// management of uris.
  7140  	Id string `json:"id,omitempty"`
  7141  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  7142  	// "walletobjects#uri".
  7143  	Kind string `json:"kind,omitempty"`
  7144  	// LocalizedDescription: Translated strings for the description. Recommended
  7145  	// maximum is 20 characters to ensure full string is displayed on smaller
  7146  	// screens.
  7147  	LocalizedDescription *LocalizedString `json:"localizedDescription,omitempty"`
  7148  	// Uri: The location of a web page, image, or other resource. URIs in the
  7149  	// `LinksModuleData` module can have different prefixes indicating the type of
  7150  	// URI (a link to a web page, a link to a map, a telephone number, or an email
  7151  	// address). URIs must have a scheme.
  7152  	Uri string `json:"uri,omitempty"`
  7153  	// ForceSendFields is a list of field names (e.g. "Description") to
  7154  	// unconditionally include in API requests. By default, fields with empty or
  7155  	// default values are omitted from API requests. See
  7156  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7157  	// details.
  7158  	ForceSendFields []string `json:"-"`
  7159  	// NullFields is a list of field names (e.g. "Description") to include in API
  7160  	// requests with the JSON null value. By default, fields with empty values are
  7161  	// omitted from API requests. See
  7162  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7163  	NullFields []string `json:"-"`
  7164  }
  7165  
  7166  func (s *Uri) MarshalJSON() ([]byte, error) {
  7167  	type NoMethod Uri
  7168  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7169  }
  7170  
  7171  type EventticketclassAddmessageCall struct {
  7172  	s                 *Service
  7173  	resourceId        string
  7174  	addmessagerequest *AddMessageRequest
  7175  	urlParams_        gensupport.URLParams
  7176  	ctx_              context.Context
  7177  	header_           http.Header
  7178  }
  7179  
  7180  // Addmessage: Adds a message to the event ticket class referenced by the given
  7181  // class ID.
  7182  //
  7183  //   - resourceId: The unique identifier for a class. This ID must be unique
  7184  //     across all classes from an issuer. This value should follow the format
  7185  //     issuer ID. identifier where the former is issued by Google and latter is
  7186  //     chosen by you. Your unique identifier should only include alphanumeric
  7187  //     characters, '.', '_', or '-'.
  7188  func (r *EventticketclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketclassAddmessageCall {
  7189  	c := &EventticketclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7190  	c.resourceId = resourceId
  7191  	c.addmessagerequest = addmessagerequest
  7192  	return c
  7193  }
  7194  
  7195  // Fields allows partial responses to be retrieved. See
  7196  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7197  // details.
  7198  func (c *EventticketclassAddmessageCall) Fields(s ...googleapi.Field) *EventticketclassAddmessageCall {
  7199  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7200  	return c
  7201  }
  7202  
  7203  // Context sets the context to be used in this call's Do method.
  7204  func (c *EventticketclassAddmessageCall) Context(ctx context.Context) *EventticketclassAddmessageCall {
  7205  	c.ctx_ = ctx
  7206  	return c
  7207  }
  7208  
  7209  // Header returns a http.Header that can be modified by the caller to add
  7210  // headers to the request.
  7211  func (c *EventticketclassAddmessageCall) Header() http.Header {
  7212  	if c.header_ == nil {
  7213  		c.header_ = make(http.Header)
  7214  	}
  7215  	return c.header_
  7216  }
  7217  
  7218  func (c *EventticketclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
  7219  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7220  	var body io.Reader = nil
  7221  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
  7222  	if err != nil {
  7223  		return nil, err
  7224  	}
  7225  	c.urlParams_.Set("alt", alt)
  7226  	c.urlParams_.Set("prettyPrint", "false")
  7227  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass/{resourceId}/addMessage")
  7228  	urls += "?" + c.urlParams_.Encode()
  7229  	req, err := http.NewRequest("POST", urls, body)
  7230  	if err != nil {
  7231  		return nil, err
  7232  	}
  7233  	req.Header = reqHeaders
  7234  	googleapi.Expand(req.URL, map[string]string{
  7235  		"resourceId": c.resourceId,
  7236  	})
  7237  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7238  }
  7239  
  7240  // Do executes the "walletobjects.eventticketclass.addmessage" call.
  7241  // Any non-2xx status code is an error. Response headers are in either
  7242  // *EventTicketClassAddMessageResponse.ServerResponse.Header or (if a response
  7243  // was returned at all) in error.(*googleapi.Error).Header. Use
  7244  // googleapi.IsNotModified to check whether the returned error was because
  7245  // http.StatusNotModified was returned.
  7246  func (c *EventticketclassAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketClassAddMessageResponse, error) {
  7247  	gensupport.SetOptions(c.urlParams_, opts...)
  7248  	res, err := c.doRequest("json")
  7249  	if res != nil && res.StatusCode == http.StatusNotModified {
  7250  		if res.Body != nil {
  7251  			res.Body.Close()
  7252  		}
  7253  		return nil, gensupport.WrapError(&googleapi.Error{
  7254  			Code:   res.StatusCode,
  7255  			Header: res.Header,
  7256  		})
  7257  	}
  7258  	if err != nil {
  7259  		return nil, err
  7260  	}
  7261  	defer googleapi.CloseBody(res)
  7262  	if err := googleapi.CheckResponse(res); err != nil {
  7263  		return nil, gensupport.WrapError(err)
  7264  	}
  7265  	ret := &EventTicketClassAddMessageResponse{
  7266  		ServerResponse: googleapi.ServerResponse{
  7267  			Header:         res.Header,
  7268  			HTTPStatusCode: res.StatusCode,
  7269  		},
  7270  	}
  7271  	target := &ret
  7272  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7273  		return nil, err
  7274  	}
  7275  	return ret, nil
  7276  }
  7277  
  7278  type EventticketclassGetCall struct {
  7279  	s            *Service
  7280  	resourceId   string
  7281  	urlParams_   gensupport.URLParams
  7282  	ifNoneMatch_ string
  7283  	ctx_         context.Context
  7284  	header_      http.Header
  7285  }
  7286  
  7287  // Get: Returns the event ticket class with the given class ID.
  7288  //
  7289  //   - resourceId: The unique identifier for a class. This ID must be unique
  7290  //     across all classes from an issuer. This value should follow the format
  7291  //     issuer ID. identifier where the former is issued by Google and latter is
  7292  //     chosen by you. Your unique identifier should only include alphanumeric
  7293  //     characters, '.', '_', or '-'.
  7294  func (r *EventticketclassService) Get(resourceId string) *EventticketclassGetCall {
  7295  	c := &EventticketclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7296  	c.resourceId = resourceId
  7297  	return c
  7298  }
  7299  
  7300  // Fields allows partial responses to be retrieved. See
  7301  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7302  // details.
  7303  func (c *EventticketclassGetCall) Fields(s ...googleapi.Field) *EventticketclassGetCall {
  7304  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7305  	return c
  7306  }
  7307  
  7308  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7309  // object's ETag matches the given value. This is useful for getting updates
  7310  // only after the object has changed since the last request.
  7311  func (c *EventticketclassGetCall) IfNoneMatch(entityTag string) *EventticketclassGetCall {
  7312  	c.ifNoneMatch_ = entityTag
  7313  	return c
  7314  }
  7315  
  7316  // Context sets the context to be used in this call's Do method.
  7317  func (c *EventticketclassGetCall) Context(ctx context.Context) *EventticketclassGetCall {
  7318  	c.ctx_ = ctx
  7319  	return c
  7320  }
  7321  
  7322  // Header returns a http.Header that can be modified by the caller to add
  7323  // headers to the request.
  7324  func (c *EventticketclassGetCall) Header() http.Header {
  7325  	if c.header_ == nil {
  7326  		c.header_ = make(http.Header)
  7327  	}
  7328  	return c.header_
  7329  }
  7330  
  7331  func (c *EventticketclassGetCall) doRequest(alt string) (*http.Response, error) {
  7332  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7333  	if c.ifNoneMatch_ != "" {
  7334  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7335  	}
  7336  	var body io.Reader = nil
  7337  	c.urlParams_.Set("alt", alt)
  7338  	c.urlParams_.Set("prettyPrint", "false")
  7339  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass/{resourceId}")
  7340  	urls += "?" + c.urlParams_.Encode()
  7341  	req, err := http.NewRequest("GET", urls, body)
  7342  	if err != nil {
  7343  		return nil, err
  7344  	}
  7345  	req.Header = reqHeaders
  7346  	googleapi.Expand(req.URL, map[string]string{
  7347  		"resourceId": c.resourceId,
  7348  	})
  7349  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7350  }
  7351  
  7352  // Do executes the "walletobjects.eventticketclass.get" call.
  7353  // Any non-2xx status code is an error. Response headers are in either
  7354  // *EventTicketClass.ServerResponse.Header or (if a response was returned at
  7355  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7356  // check whether the returned error was because http.StatusNotModified was
  7357  // returned.
  7358  func (c *EventticketclassGetCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error) {
  7359  	gensupport.SetOptions(c.urlParams_, opts...)
  7360  	res, err := c.doRequest("json")
  7361  	if res != nil && res.StatusCode == http.StatusNotModified {
  7362  		if res.Body != nil {
  7363  			res.Body.Close()
  7364  		}
  7365  		return nil, gensupport.WrapError(&googleapi.Error{
  7366  			Code:   res.StatusCode,
  7367  			Header: res.Header,
  7368  		})
  7369  	}
  7370  	if err != nil {
  7371  		return nil, err
  7372  	}
  7373  	defer googleapi.CloseBody(res)
  7374  	if err := googleapi.CheckResponse(res); err != nil {
  7375  		return nil, gensupport.WrapError(err)
  7376  	}
  7377  	ret := &EventTicketClass{
  7378  		ServerResponse: googleapi.ServerResponse{
  7379  			Header:         res.Header,
  7380  			HTTPStatusCode: res.StatusCode,
  7381  		},
  7382  	}
  7383  	target := &ret
  7384  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7385  		return nil, err
  7386  	}
  7387  	return ret, nil
  7388  }
  7389  
  7390  type EventticketclassInsertCall struct {
  7391  	s                *Service
  7392  	eventticketclass *EventTicketClass
  7393  	urlParams_       gensupport.URLParams
  7394  	ctx_             context.Context
  7395  	header_          http.Header
  7396  }
  7397  
  7398  // Insert: Inserts an event ticket class with the given ID and properties.
  7399  func (r *EventticketclassService) Insert(eventticketclass *EventTicketClass) *EventticketclassInsertCall {
  7400  	c := &EventticketclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7401  	c.eventticketclass = eventticketclass
  7402  	return c
  7403  }
  7404  
  7405  // Fields allows partial responses to be retrieved. See
  7406  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7407  // details.
  7408  func (c *EventticketclassInsertCall) Fields(s ...googleapi.Field) *EventticketclassInsertCall {
  7409  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7410  	return c
  7411  }
  7412  
  7413  // Context sets the context to be used in this call's Do method.
  7414  func (c *EventticketclassInsertCall) Context(ctx context.Context) *EventticketclassInsertCall {
  7415  	c.ctx_ = ctx
  7416  	return c
  7417  }
  7418  
  7419  // Header returns a http.Header that can be modified by the caller to add
  7420  // headers to the request.
  7421  func (c *EventticketclassInsertCall) Header() http.Header {
  7422  	if c.header_ == nil {
  7423  		c.header_ = make(http.Header)
  7424  	}
  7425  	return c.header_
  7426  }
  7427  
  7428  func (c *EventticketclassInsertCall) doRequest(alt string) (*http.Response, error) {
  7429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7430  	var body io.Reader = nil
  7431  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketclass)
  7432  	if err != nil {
  7433  		return nil, err
  7434  	}
  7435  	c.urlParams_.Set("alt", alt)
  7436  	c.urlParams_.Set("prettyPrint", "false")
  7437  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass")
  7438  	urls += "?" + c.urlParams_.Encode()
  7439  	req, err := http.NewRequest("POST", urls, body)
  7440  	if err != nil {
  7441  		return nil, err
  7442  	}
  7443  	req.Header = reqHeaders
  7444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7445  }
  7446  
  7447  // Do executes the "walletobjects.eventticketclass.insert" call.
  7448  // Any non-2xx status code is an error. Response headers are in either
  7449  // *EventTicketClass.ServerResponse.Header or (if a response was returned at
  7450  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7451  // check whether the returned error was because http.StatusNotModified was
  7452  // returned.
  7453  func (c *EventticketclassInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error) {
  7454  	gensupport.SetOptions(c.urlParams_, opts...)
  7455  	res, err := c.doRequest("json")
  7456  	if res != nil && res.StatusCode == http.StatusNotModified {
  7457  		if res.Body != nil {
  7458  			res.Body.Close()
  7459  		}
  7460  		return nil, gensupport.WrapError(&googleapi.Error{
  7461  			Code:   res.StatusCode,
  7462  			Header: res.Header,
  7463  		})
  7464  	}
  7465  	if err != nil {
  7466  		return nil, err
  7467  	}
  7468  	defer googleapi.CloseBody(res)
  7469  	if err := googleapi.CheckResponse(res); err != nil {
  7470  		return nil, gensupport.WrapError(err)
  7471  	}
  7472  	ret := &EventTicketClass{
  7473  		ServerResponse: googleapi.ServerResponse{
  7474  			Header:         res.Header,
  7475  			HTTPStatusCode: res.StatusCode,
  7476  		},
  7477  	}
  7478  	target := &ret
  7479  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7480  		return nil, err
  7481  	}
  7482  	return ret, nil
  7483  }
  7484  
  7485  type EventticketclassListCall struct {
  7486  	s            *Service
  7487  	urlParams_   gensupport.URLParams
  7488  	ifNoneMatch_ string
  7489  	ctx_         context.Context
  7490  	header_      http.Header
  7491  }
  7492  
  7493  // List: Returns a list of all event ticket classes for a given issuer ID.
  7494  func (r *EventticketclassService) List() *EventticketclassListCall {
  7495  	c := &EventticketclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7496  	return c
  7497  }
  7498  
  7499  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
  7500  // authorized to list classes.
  7501  func (c *EventticketclassListCall) IssuerId(issuerId int64) *EventticketclassListCall {
  7502  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
  7503  	return c
  7504  }
  7505  
  7506  // MaxResults sets the optional parameter "maxResults": Identifies the max
  7507  // number of results returned by a list. All results are returned if
  7508  // `maxResults` isn't defined.
  7509  func (c *EventticketclassListCall) MaxResults(maxResults int64) *EventticketclassListCall {
  7510  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  7511  	return c
  7512  }
  7513  
  7514  // Token sets the optional parameter "token": Used to get the next set of
  7515  // results if `maxResults` is specified, but more than `maxResults` classes are
  7516  // available in a list. For example, if you have a list of 200 classes and you
  7517  // call list with `maxResults` set to 20, list will return the first 20 classes
  7518  // and a token. Call list again with `maxResults` set to 20 and the token to
  7519  // get the next 20 classes.
  7520  func (c *EventticketclassListCall) Token(token string) *EventticketclassListCall {
  7521  	c.urlParams_.Set("token", token)
  7522  	return c
  7523  }
  7524  
  7525  // Fields allows partial responses to be retrieved. See
  7526  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7527  // details.
  7528  func (c *EventticketclassListCall) Fields(s ...googleapi.Field) *EventticketclassListCall {
  7529  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7530  	return c
  7531  }
  7532  
  7533  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7534  // object's ETag matches the given value. This is useful for getting updates
  7535  // only after the object has changed since the last request.
  7536  func (c *EventticketclassListCall) IfNoneMatch(entityTag string) *EventticketclassListCall {
  7537  	c.ifNoneMatch_ = entityTag
  7538  	return c
  7539  }
  7540  
  7541  // Context sets the context to be used in this call's Do method.
  7542  func (c *EventticketclassListCall) Context(ctx context.Context) *EventticketclassListCall {
  7543  	c.ctx_ = ctx
  7544  	return c
  7545  }
  7546  
  7547  // Header returns a http.Header that can be modified by the caller to add
  7548  // headers to the request.
  7549  func (c *EventticketclassListCall) Header() http.Header {
  7550  	if c.header_ == nil {
  7551  		c.header_ = make(http.Header)
  7552  	}
  7553  	return c.header_
  7554  }
  7555  
  7556  func (c *EventticketclassListCall) doRequest(alt string) (*http.Response, error) {
  7557  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7558  	if c.ifNoneMatch_ != "" {
  7559  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7560  	}
  7561  	var body io.Reader = nil
  7562  	c.urlParams_.Set("alt", alt)
  7563  	c.urlParams_.Set("prettyPrint", "false")
  7564  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass")
  7565  	urls += "?" + c.urlParams_.Encode()
  7566  	req, err := http.NewRequest("GET", urls, body)
  7567  	if err != nil {
  7568  		return nil, err
  7569  	}
  7570  	req.Header = reqHeaders
  7571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7572  }
  7573  
  7574  // Do executes the "walletobjects.eventticketclass.list" call.
  7575  // Any non-2xx status code is an error. Response headers are in either
  7576  // *EventTicketClassListResponse.ServerResponse.Header or (if a response was
  7577  // returned at all) in error.(*googleapi.Error).Header. Use
  7578  // googleapi.IsNotModified to check whether the returned error was because
  7579  // http.StatusNotModified was returned.
  7580  func (c *EventticketclassListCall) Do(opts ...googleapi.CallOption) (*EventTicketClassListResponse, error) {
  7581  	gensupport.SetOptions(c.urlParams_, opts...)
  7582  	res, err := c.doRequest("json")
  7583  	if res != nil && res.StatusCode == http.StatusNotModified {
  7584  		if res.Body != nil {
  7585  			res.Body.Close()
  7586  		}
  7587  		return nil, gensupport.WrapError(&googleapi.Error{
  7588  			Code:   res.StatusCode,
  7589  			Header: res.Header,
  7590  		})
  7591  	}
  7592  	if err != nil {
  7593  		return nil, err
  7594  	}
  7595  	defer googleapi.CloseBody(res)
  7596  	if err := googleapi.CheckResponse(res); err != nil {
  7597  		return nil, gensupport.WrapError(err)
  7598  	}
  7599  	ret := &EventTicketClassListResponse{
  7600  		ServerResponse: googleapi.ServerResponse{
  7601  			Header:         res.Header,
  7602  			HTTPStatusCode: res.StatusCode,
  7603  		},
  7604  	}
  7605  	target := &ret
  7606  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7607  		return nil, err
  7608  	}
  7609  	return ret, nil
  7610  }
  7611  
  7612  type EventticketclassPatchCall struct {
  7613  	s                *Service
  7614  	resourceId       string
  7615  	eventticketclass *EventTicketClass
  7616  	urlParams_       gensupport.URLParams
  7617  	ctx_             context.Context
  7618  	header_          http.Header
  7619  }
  7620  
  7621  // Patch: Updates the event ticket class referenced by the given class ID. This
  7622  // method supports patch semantics.
  7623  //
  7624  //   - resourceId: The unique identifier for a class. This ID must be unique
  7625  //     across all classes from an issuer. This value should follow the format
  7626  //     issuer ID. identifier where the former is issued by Google and latter is
  7627  //     chosen by you. Your unique identifier should only include alphanumeric
  7628  //     characters, '.', '_', or '-'.
  7629  func (r *EventticketclassService) Patch(resourceId string, eventticketclass *EventTicketClass) *EventticketclassPatchCall {
  7630  	c := &EventticketclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7631  	c.resourceId = resourceId
  7632  	c.eventticketclass = eventticketclass
  7633  	return c
  7634  }
  7635  
  7636  // Fields allows partial responses to be retrieved. See
  7637  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7638  // details.
  7639  func (c *EventticketclassPatchCall) Fields(s ...googleapi.Field) *EventticketclassPatchCall {
  7640  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7641  	return c
  7642  }
  7643  
  7644  // Context sets the context to be used in this call's Do method.
  7645  func (c *EventticketclassPatchCall) Context(ctx context.Context) *EventticketclassPatchCall {
  7646  	c.ctx_ = ctx
  7647  	return c
  7648  }
  7649  
  7650  // Header returns a http.Header that can be modified by the caller to add
  7651  // headers to the request.
  7652  func (c *EventticketclassPatchCall) Header() http.Header {
  7653  	if c.header_ == nil {
  7654  		c.header_ = make(http.Header)
  7655  	}
  7656  	return c.header_
  7657  }
  7658  
  7659  func (c *EventticketclassPatchCall) doRequest(alt string) (*http.Response, error) {
  7660  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7661  	var body io.Reader = nil
  7662  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketclass)
  7663  	if err != nil {
  7664  		return nil, err
  7665  	}
  7666  	c.urlParams_.Set("alt", alt)
  7667  	c.urlParams_.Set("prettyPrint", "false")
  7668  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass/{resourceId}")
  7669  	urls += "?" + c.urlParams_.Encode()
  7670  	req, err := http.NewRequest("PATCH", urls, body)
  7671  	if err != nil {
  7672  		return nil, err
  7673  	}
  7674  	req.Header = reqHeaders
  7675  	googleapi.Expand(req.URL, map[string]string{
  7676  		"resourceId": c.resourceId,
  7677  	})
  7678  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7679  }
  7680  
  7681  // Do executes the "walletobjects.eventticketclass.patch" call.
  7682  // Any non-2xx status code is an error. Response headers are in either
  7683  // *EventTicketClass.ServerResponse.Header or (if a response was returned at
  7684  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7685  // check whether the returned error was because http.StatusNotModified was
  7686  // returned.
  7687  func (c *EventticketclassPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error) {
  7688  	gensupport.SetOptions(c.urlParams_, opts...)
  7689  	res, err := c.doRequest("json")
  7690  	if res != nil && res.StatusCode == http.StatusNotModified {
  7691  		if res.Body != nil {
  7692  			res.Body.Close()
  7693  		}
  7694  		return nil, gensupport.WrapError(&googleapi.Error{
  7695  			Code:   res.StatusCode,
  7696  			Header: res.Header,
  7697  		})
  7698  	}
  7699  	if err != nil {
  7700  		return nil, err
  7701  	}
  7702  	defer googleapi.CloseBody(res)
  7703  	if err := googleapi.CheckResponse(res); err != nil {
  7704  		return nil, gensupport.WrapError(err)
  7705  	}
  7706  	ret := &EventTicketClass{
  7707  		ServerResponse: googleapi.ServerResponse{
  7708  			Header:         res.Header,
  7709  			HTTPStatusCode: res.StatusCode,
  7710  		},
  7711  	}
  7712  	target := &ret
  7713  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7714  		return nil, err
  7715  	}
  7716  	return ret, nil
  7717  }
  7718  
  7719  type EventticketclassUpdateCall struct {
  7720  	s                *Service
  7721  	resourceId       string
  7722  	eventticketclass *EventTicketClass
  7723  	urlParams_       gensupport.URLParams
  7724  	ctx_             context.Context
  7725  	header_          http.Header
  7726  }
  7727  
  7728  // Update: Updates the event ticket class referenced by the given class ID.
  7729  //
  7730  //   - resourceId: The unique identifier for a class. This ID must be unique
  7731  //     across all classes from an issuer. This value should follow the format
  7732  //     issuer ID. identifier where the former is issued by Google and latter is
  7733  //     chosen by you. Your unique identifier should only include alphanumeric
  7734  //     characters, '.', '_', or '-'.
  7735  func (r *EventticketclassService) Update(resourceId string, eventticketclass *EventTicketClass) *EventticketclassUpdateCall {
  7736  	c := &EventticketclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7737  	c.resourceId = resourceId
  7738  	c.eventticketclass = eventticketclass
  7739  	return c
  7740  }
  7741  
  7742  // Fields allows partial responses to be retrieved. See
  7743  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7744  // details.
  7745  func (c *EventticketclassUpdateCall) Fields(s ...googleapi.Field) *EventticketclassUpdateCall {
  7746  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7747  	return c
  7748  }
  7749  
  7750  // Context sets the context to be used in this call's Do method.
  7751  func (c *EventticketclassUpdateCall) Context(ctx context.Context) *EventticketclassUpdateCall {
  7752  	c.ctx_ = ctx
  7753  	return c
  7754  }
  7755  
  7756  // Header returns a http.Header that can be modified by the caller to add
  7757  // headers to the request.
  7758  func (c *EventticketclassUpdateCall) Header() http.Header {
  7759  	if c.header_ == nil {
  7760  		c.header_ = make(http.Header)
  7761  	}
  7762  	return c.header_
  7763  }
  7764  
  7765  func (c *EventticketclassUpdateCall) doRequest(alt string) (*http.Response, error) {
  7766  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7767  	var body io.Reader = nil
  7768  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketclass)
  7769  	if err != nil {
  7770  		return nil, err
  7771  	}
  7772  	c.urlParams_.Set("alt", alt)
  7773  	c.urlParams_.Set("prettyPrint", "false")
  7774  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketClass/{resourceId}")
  7775  	urls += "?" + c.urlParams_.Encode()
  7776  	req, err := http.NewRequest("PUT", urls, body)
  7777  	if err != nil {
  7778  		return nil, err
  7779  	}
  7780  	req.Header = reqHeaders
  7781  	googleapi.Expand(req.URL, map[string]string{
  7782  		"resourceId": c.resourceId,
  7783  	})
  7784  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7785  }
  7786  
  7787  // Do executes the "walletobjects.eventticketclass.update" call.
  7788  // Any non-2xx status code is an error. Response headers are in either
  7789  // *EventTicketClass.ServerResponse.Header or (if a response was returned at
  7790  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  7791  // check whether the returned error was because http.StatusNotModified was
  7792  // returned.
  7793  func (c *EventticketclassUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketClass, error) {
  7794  	gensupport.SetOptions(c.urlParams_, opts...)
  7795  	res, err := c.doRequest("json")
  7796  	if res != nil && res.StatusCode == http.StatusNotModified {
  7797  		if res.Body != nil {
  7798  			res.Body.Close()
  7799  		}
  7800  		return nil, gensupport.WrapError(&googleapi.Error{
  7801  			Code:   res.StatusCode,
  7802  			Header: res.Header,
  7803  		})
  7804  	}
  7805  	if err != nil {
  7806  		return nil, err
  7807  	}
  7808  	defer googleapi.CloseBody(res)
  7809  	if err := googleapi.CheckResponse(res); err != nil {
  7810  		return nil, gensupport.WrapError(err)
  7811  	}
  7812  	ret := &EventTicketClass{
  7813  		ServerResponse: googleapi.ServerResponse{
  7814  			Header:         res.Header,
  7815  			HTTPStatusCode: res.StatusCode,
  7816  		},
  7817  	}
  7818  	target := &ret
  7819  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7820  		return nil, err
  7821  	}
  7822  	return ret, nil
  7823  }
  7824  
  7825  type EventticketobjectAddmessageCall struct {
  7826  	s                 *Service
  7827  	resourceId        string
  7828  	addmessagerequest *AddMessageRequest
  7829  	urlParams_        gensupport.URLParams
  7830  	ctx_              context.Context
  7831  	header_           http.Header
  7832  }
  7833  
  7834  // Addmessage: Adds a message to the event ticket object referenced by the
  7835  // given object ID.
  7836  //
  7837  //   - resourceId: The unique identifier for an object. This ID must be unique
  7838  //     across all objects from an issuer. This value should follow the format
  7839  //     issuer ID. identifier where the former is issued by Google and latter is
  7840  //     chosen by you. Your unique identifier should only include alphanumeric
  7841  //     characters, '.', '_', or '-'.
  7842  func (r *EventticketobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *EventticketobjectAddmessageCall {
  7843  	c := &EventticketobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7844  	c.resourceId = resourceId
  7845  	c.addmessagerequest = addmessagerequest
  7846  	return c
  7847  }
  7848  
  7849  // Fields allows partial responses to be retrieved. See
  7850  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7851  // details.
  7852  func (c *EventticketobjectAddmessageCall) Fields(s ...googleapi.Field) *EventticketobjectAddmessageCall {
  7853  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7854  	return c
  7855  }
  7856  
  7857  // Context sets the context to be used in this call's Do method.
  7858  func (c *EventticketobjectAddmessageCall) Context(ctx context.Context) *EventticketobjectAddmessageCall {
  7859  	c.ctx_ = ctx
  7860  	return c
  7861  }
  7862  
  7863  // Header returns a http.Header that can be modified by the caller to add
  7864  // headers to the request.
  7865  func (c *EventticketobjectAddmessageCall) Header() http.Header {
  7866  	if c.header_ == nil {
  7867  		c.header_ = make(http.Header)
  7868  	}
  7869  	return c.header_
  7870  }
  7871  
  7872  func (c *EventticketobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
  7873  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  7874  	var body io.Reader = nil
  7875  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
  7876  	if err != nil {
  7877  		return nil, err
  7878  	}
  7879  	c.urlParams_.Set("alt", alt)
  7880  	c.urlParams_.Set("prettyPrint", "false")
  7881  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject/{resourceId}/addMessage")
  7882  	urls += "?" + c.urlParams_.Encode()
  7883  	req, err := http.NewRequest("POST", urls, body)
  7884  	if err != nil {
  7885  		return nil, err
  7886  	}
  7887  	req.Header = reqHeaders
  7888  	googleapi.Expand(req.URL, map[string]string{
  7889  		"resourceId": c.resourceId,
  7890  	})
  7891  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  7892  }
  7893  
  7894  // Do executes the "walletobjects.eventticketobject.addmessage" call.
  7895  // Any non-2xx status code is an error. Response headers are in either
  7896  // *EventTicketObjectAddMessageResponse.ServerResponse.Header or (if a response
  7897  // was returned at all) in error.(*googleapi.Error).Header. Use
  7898  // googleapi.IsNotModified to check whether the returned error was because
  7899  // http.StatusNotModified was returned.
  7900  func (c *EventticketobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectAddMessageResponse, error) {
  7901  	gensupport.SetOptions(c.urlParams_, opts...)
  7902  	res, err := c.doRequest("json")
  7903  	if res != nil && res.StatusCode == http.StatusNotModified {
  7904  		if res.Body != nil {
  7905  			res.Body.Close()
  7906  		}
  7907  		return nil, gensupport.WrapError(&googleapi.Error{
  7908  			Code:   res.StatusCode,
  7909  			Header: res.Header,
  7910  		})
  7911  	}
  7912  	if err != nil {
  7913  		return nil, err
  7914  	}
  7915  	defer googleapi.CloseBody(res)
  7916  	if err := googleapi.CheckResponse(res); err != nil {
  7917  		return nil, gensupport.WrapError(err)
  7918  	}
  7919  	ret := &EventTicketObjectAddMessageResponse{
  7920  		ServerResponse: googleapi.ServerResponse{
  7921  			Header:         res.Header,
  7922  			HTTPStatusCode: res.StatusCode,
  7923  		},
  7924  	}
  7925  	target := &ret
  7926  	if err := gensupport.DecodeResponse(target, res); err != nil {
  7927  		return nil, err
  7928  	}
  7929  	return ret, nil
  7930  }
  7931  
  7932  type EventticketobjectGetCall struct {
  7933  	s            *Service
  7934  	resourceId   string
  7935  	urlParams_   gensupport.URLParams
  7936  	ifNoneMatch_ string
  7937  	ctx_         context.Context
  7938  	header_      http.Header
  7939  }
  7940  
  7941  // Get: Returns the event ticket object with the given object ID.
  7942  //
  7943  //   - resourceId: The unique identifier for an object. This ID must be unique
  7944  //     across all objects from an issuer. This value should follow the format
  7945  //     issuer ID. identifier where the former is issued by Google and latter is
  7946  //     chosen by you. Your unique identifier should only include alphanumeric
  7947  //     characters, '.', '_', or '-'.
  7948  func (r *EventticketobjectService) Get(resourceId string) *EventticketobjectGetCall {
  7949  	c := &EventticketobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7950  	c.resourceId = resourceId
  7951  	return c
  7952  }
  7953  
  7954  // Fields allows partial responses to be retrieved. See
  7955  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7956  // details.
  7957  func (c *EventticketobjectGetCall) Fields(s ...googleapi.Field) *EventticketobjectGetCall {
  7958  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7959  	return c
  7960  }
  7961  
  7962  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  7963  // object's ETag matches the given value. This is useful for getting updates
  7964  // only after the object has changed since the last request.
  7965  func (c *EventticketobjectGetCall) IfNoneMatch(entityTag string) *EventticketobjectGetCall {
  7966  	c.ifNoneMatch_ = entityTag
  7967  	return c
  7968  }
  7969  
  7970  // Context sets the context to be used in this call's Do method.
  7971  func (c *EventticketobjectGetCall) Context(ctx context.Context) *EventticketobjectGetCall {
  7972  	c.ctx_ = ctx
  7973  	return c
  7974  }
  7975  
  7976  // Header returns a http.Header that can be modified by the caller to add
  7977  // headers to the request.
  7978  func (c *EventticketobjectGetCall) Header() http.Header {
  7979  	if c.header_ == nil {
  7980  		c.header_ = make(http.Header)
  7981  	}
  7982  	return c.header_
  7983  }
  7984  
  7985  func (c *EventticketobjectGetCall) doRequest(alt string) (*http.Response, error) {
  7986  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  7987  	if c.ifNoneMatch_ != "" {
  7988  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  7989  	}
  7990  	var body io.Reader = nil
  7991  	c.urlParams_.Set("alt", alt)
  7992  	c.urlParams_.Set("prettyPrint", "false")
  7993  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject/{resourceId}")
  7994  	urls += "?" + c.urlParams_.Encode()
  7995  	req, err := http.NewRequest("GET", urls, body)
  7996  	if err != nil {
  7997  		return nil, err
  7998  	}
  7999  	req.Header = reqHeaders
  8000  	googleapi.Expand(req.URL, map[string]string{
  8001  		"resourceId": c.resourceId,
  8002  	})
  8003  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8004  }
  8005  
  8006  // Do executes the "walletobjects.eventticketobject.get" call.
  8007  // Any non-2xx status code is an error. Response headers are in either
  8008  // *EventTicketObject.ServerResponse.Header or (if a response was returned at
  8009  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8010  // check whether the returned error was because http.StatusNotModified was
  8011  // returned.
  8012  func (c *EventticketobjectGetCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error) {
  8013  	gensupport.SetOptions(c.urlParams_, opts...)
  8014  	res, err := c.doRequest("json")
  8015  	if res != nil && res.StatusCode == http.StatusNotModified {
  8016  		if res.Body != nil {
  8017  			res.Body.Close()
  8018  		}
  8019  		return nil, gensupport.WrapError(&googleapi.Error{
  8020  			Code:   res.StatusCode,
  8021  			Header: res.Header,
  8022  		})
  8023  	}
  8024  	if err != nil {
  8025  		return nil, err
  8026  	}
  8027  	defer googleapi.CloseBody(res)
  8028  	if err := googleapi.CheckResponse(res); err != nil {
  8029  		return nil, gensupport.WrapError(err)
  8030  	}
  8031  	ret := &EventTicketObject{
  8032  		ServerResponse: googleapi.ServerResponse{
  8033  			Header:         res.Header,
  8034  			HTTPStatusCode: res.StatusCode,
  8035  		},
  8036  	}
  8037  	target := &ret
  8038  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8039  		return nil, err
  8040  	}
  8041  	return ret, nil
  8042  }
  8043  
  8044  type EventticketobjectInsertCall struct {
  8045  	s                 *Service
  8046  	eventticketobject *EventTicketObject
  8047  	urlParams_        gensupport.URLParams
  8048  	ctx_              context.Context
  8049  	header_           http.Header
  8050  }
  8051  
  8052  // Insert: Inserts an event ticket object with the given ID and properties.
  8053  func (r *EventticketobjectService) Insert(eventticketobject *EventTicketObject) *EventticketobjectInsertCall {
  8054  	c := &EventticketobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8055  	c.eventticketobject = eventticketobject
  8056  	return c
  8057  }
  8058  
  8059  // Fields allows partial responses to be retrieved. See
  8060  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8061  // details.
  8062  func (c *EventticketobjectInsertCall) Fields(s ...googleapi.Field) *EventticketobjectInsertCall {
  8063  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8064  	return c
  8065  }
  8066  
  8067  // Context sets the context to be used in this call's Do method.
  8068  func (c *EventticketobjectInsertCall) Context(ctx context.Context) *EventticketobjectInsertCall {
  8069  	c.ctx_ = ctx
  8070  	return c
  8071  }
  8072  
  8073  // Header returns a http.Header that can be modified by the caller to add
  8074  // headers to the request.
  8075  func (c *EventticketobjectInsertCall) Header() http.Header {
  8076  	if c.header_ == nil {
  8077  		c.header_ = make(http.Header)
  8078  	}
  8079  	return c.header_
  8080  }
  8081  
  8082  func (c *EventticketobjectInsertCall) doRequest(alt string) (*http.Response, error) {
  8083  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8084  	var body io.Reader = nil
  8085  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketobject)
  8086  	if err != nil {
  8087  		return nil, err
  8088  	}
  8089  	c.urlParams_.Set("alt", alt)
  8090  	c.urlParams_.Set("prettyPrint", "false")
  8091  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject")
  8092  	urls += "?" + c.urlParams_.Encode()
  8093  	req, err := http.NewRequest("POST", urls, body)
  8094  	if err != nil {
  8095  		return nil, err
  8096  	}
  8097  	req.Header = reqHeaders
  8098  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8099  }
  8100  
  8101  // Do executes the "walletobjects.eventticketobject.insert" call.
  8102  // Any non-2xx status code is an error. Response headers are in either
  8103  // *EventTicketObject.ServerResponse.Header or (if a response was returned at
  8104  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8105  // check whether the returned error was because http.StatusNotModified was
  8106  // returned.
  8107  func (c *EventticketobjectInsertCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error) {
  8108  	gensupport.SetOptions(c.urlParams_, opts...)
  8109  	res, err := c.doRequest("json")
  8110  	if res != nil && res.StatusCode == http.StatusNotModified {
  8111  		if res.Body != nil {
  8112  			res.Body.Close()
  8113  		}
  8114  		return nil, gensupport.WrapError(&googleapi.Error{
  8115  			Code:   res.StatusCode,
  8116  			Header: res.Header,
  8117  		})
  8118  	}
  8119  	if err != nil {
  8120  		return nil, err
  8121  	}
  8122  	defer googleapi.CloseBody(res)
  8123  	if err := googleapi.CheckResponse(res); err != nil {
  8124  		return nil, gensupport.WrapError(err)
  8125  	}
  8126  	ret := &EventTicketObject{
  8127  		ServerResponse: googleapi.ServerResponse{
  8128  			Header:         res.Header,
  8129  			HTTPStatusCode: res.StatusCode,
  8130  		},
  8131  	}
  8132  	target := &ret
  8133  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8134  		return nil, err
  8135  	}
  8136  	return ret, nil
  8137  }
  8138  
  8139  type EventticketobjectListCall struct {
  8140  	s            *Service
  8141  	urlParams_   gensupport.URLParams
  8142  	ifNoneMatch_ string
  8143  	ctx_         context.Context
  8144  	header_      http.Header
  8145  }
  8146  
  8147  // List: Returns a list of all event ticket objects for a given issuer ID.
  8148  func (r *EventticketobjectService) List() *EventticketobjectListCall {
  8149  	c := &EventticketobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8150  	return c
  8151  }
  8152  
  8153  // ClassId sets the optional parameter "classId": The ID of the class whose
  8154  // objects will be listed.
  8155  func (c *EventticketobjectListCall) ClassId(classId string) *EventticketobjectListCall {
  8156  	c.urlParams_.Set("classId", classId)
  8157  	return c
  8158  }
  8159  
  8160  // MaxResults sets the optional parameter "maxResults": Identifies the max
  8161  // number of results returned by a list. All results are returned if
  8162  // `maxResults` isn't defined.
  8163  func (c *EventticketobjectListCall) MaxResults(maxResults int64) *EventticketobjectListCall {
  8164  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  8165  	return c
  8166  }
  8167  
  8168  // Token sets the optional parameter "token": Used to get the next set of
  8169  // results if `maxResults` is specified, but more than `maxResults` objects are
  8170  // available in a list. For example, if you have a list of 200 objects and you
  8171  // call list with `maxResults` set to 20, list will return the first 20 objects
  8172  // and a token. Call list again with `maxResults` set to 20 and the token to
  8173  // get the next 20 objects.
  8174  func (c *EventticketobjectListCall) Token(token string) *EventticketobjectListCall {
  8175  	c.urlParams_.Set("token", token)
  8176  	return c
  8177  }
  8178  
  8179  // Fields allows partial responses to be retrieved. See
  8180  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8181  // details.
  8182  func (c *EventticketobjectListCall) Fields(s ...googleapi.Field) *EventticketobjectListCall {
  8183  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8184  	return c
  8185  }
  8186  
  8187  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8188  // object's ETag matches the given value. This is useful for getting updates
  8189  // only after the object has changed since the last request.
  8190  func (c *EventticketobjectListCall) IfNoneMatch(entityTag string) *EventticketobjectListCall {
  8191  	c.ifNoneMatch_ = entityTag
  8192  	return c
  8193  }
  8194  
  8195  // Context sets the context to be used in this call's Do method.
  8196  func (c *EventticketobjectListCall) Context(ctx context.Context) *EventticketobjectListCall {
  8197  	c.ctx_ = ctx
  8198  	return c
  8199  }
  8200  
  8201  // Header returns a http.Header that can be modified by the caller to add
  8202  // headers to the request.
  8203  func (c *EventticketobjectListCall) Header() http.Header {
  8204  	if c.header_ == nil {
  8205  		c.header_ = make(http.Header)
  8206  	}
  8207  	return c.header_
  8208  }
  8209  
  8210  func (c *EventticketobjectListCall) doRequest(alt string) (*http.Response, error) {
  8211  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8212  	if c.ifNoneMatch_ != "" {
  8213  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8214  	}
  8215  	var body io.Reader = nil
  8216  	c.urlParams_.Set("alt", alt)
  8217  	c.urlParams_.Set("prettyPrint", "false")
  8218  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject")
  8219  	urls += "?" + c.urlParams_.Encode()
  8220  	req, err := http.NewRequest("GET", urls, body)
  8221  	if err != nil {
  8222  		return nil, err
  8223  	}
  8224  	req.Header = reqHeaders
  8225  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8226  }
  8227  
  8228  // Do executes the "walletobjects.eventticketobject.list" call.
  8229  // Any non-2xx status code is an error. Response headers are in either
  8230  // *EventTicketObjectListResponse.ServerResponse.Header or (if a response was
  8231  // returned at all) in error.(*googleapi.Error).Header. Use
  8232  // googleapi.IsNotModified to check whether the returned error was because
  8233  // http.StatusNotModified was returned.
  8234  func (c *EventticketobjectListCall) Do(opts ...googleapi.CallOption) (*EventTicketObjectListResponse, error) {
  8235  	gensupport.SetOptions(c.urlParams_, opts...)
  8236  	res, err := c.doRequest("json")
  8237  	if res != nil && res.StatusCode == http.StatusNotModified {
  8238  		if res.Body != nil {
  8239  			res.Body.Close()
  8240  		}
  8241  		return nil, gensupport.WrapError(&googleapi.Error{
  8242  			Code:   res.StatusCode,
  8243  			Header: res.Header,
  8244  		})
  8245  	}
  8246  	if err != nil {
  8247  		return nil, err
  8248  	}
  8249  	defer googleapi.CloseBody(res)
  8250  	if err := googleapi.CheckResponse(res); err != nil {
  8251  		return nil, gensupport.WrapError(err)
  8252  	}
  8253  	ret := &EventTicketObjectListResponse{
  8254  		ServerResponse: googleapi.ServerResponse{
  8255  			Header:         res.Header,
  8256  			HTTPStatusCode: res.StatusCode,
  8257  		},
  8258  	}
  8259  	target := &ret
  8260  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8261  		return nil, err
  8262  	}
  8263  	return ret, nil
  8264  }
  8265  
  8266  type EventticketobjectModifylinkedofferobjectsCall struct {
  8267  	s                               *Service
  8268  	resourceId                      string
  8269  	modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest
  8270  	urlParams_                      gensupport.URLParams
  8271  	ctx_                            context.Context
  8272  	header_                         http.Header
  8273  }
  8274  
  8275  // Modifylinkedofferobjects: Modifies linked offer objects for the event ticket
  8276  // object with the given ID.
  8277  //
  8278  //   - resourceId: The unique identifier for an object. This ID must be unique
  8279  //     across all objects from an issuer. This value should follow the format
  8280  //     issuer ID. identifier where the former is issued by Google and latter is
  8281  //     chosen by you. Your unique identifier should only include alphanumeric
  8282  //     characters, '.', '_', or '-'.
  8283  func (r *EventticketobjectService) Modifylinkedofferobjects(resourceId string, modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest) *EventticketobjectModifylinkedofferobjectsCall {
  8284  	c := &EventticketobjectModifylinkedofferobjectsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8285  	c.resourceId = resourceId
  8286  	c.modifylinkedofferobjectsrequest = modifylinkedofferobjectsrequest
  8287  	return c
  8288  }
  8289  
  8290  // Fields allows partial responses to be retrieved. See
  8291  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8292  // details.
  8293  func (c *EventticketobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *EventticketobjectModifylinkedofferobjectsCall {
  8294  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8295  	return c
  8296  }
  8297  
  8298  // Context sets the context to be used in this call's Do method.
  8299  func (c *EventticketobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *EventticketobjectModifylinkedofferobjectsCall {
  8300  	c.ctx_ = ctx
  8301  	return c
  8302  }
  8303  
  8304  // Header returns a http.Header that can be modified by the caller to add
  8305  // headers to the request.
  8306  func (c *EventticketobjectModifylinkedofferobjectsCall) Header() http.Header {
  8307  	if c.header_ == nil {
  8308  		c.header_ = make(http.Header)
  8309  	}
  8310  	return c.header_
  8311  }
  8312  
  8313  func (c *EventticketobjectModifylinkedofferobjectsCall) doRequest(alt string) (*http.Response, error) {
  8314  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8315  	var body io.Reader = nil
  8316  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.modifylinkedofferobjectsrequest)
  8317  	if err != nil {
  8318  		return nil, err
  8319  	}
  8320  	c.urlParams_.Set("alt", alt)
  8321  	c.urlParams_.Set("prettyPrint", "false")
  8322  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject/{resourceId}/modifyLinkedOfferObjects")
  8323  	urls += "?" + c.urlParams_.Encode()
  8324  	req, err := http.NewRequest("POST", urls, body)
  8325  	if err != nil {
  8326  		return nil, err
  8327  	}
  8328  	req.Header = reqHeaders
  8329  	googleapi.Expand(req.URL, map[string]string{
  8330  		"resourceId": c.resourceId,
  8331  	})
  8332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8333  }
  8334  
  8335  // Do executes the "walletobjects.eventticketobject.modifylinkedofferobjects" call.
  8336  // Any non-2xx status code is an error. Response headers are in either
  8337  // *EventTicketObject.ServerResponse.Header or (if a response was returned at
  8338  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8339  // check whether the returned error was because http.StatusNotModified was
  8340  // returned.
  8341  func (c *EventticketobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error) {
  8342  	gensupport.SetOptions(c.urlParams_, opts...)
  8343  	res, err := c.doRequest("json")
  8344  	if res != nil && res.StatusCode == http.StatusNotModified {
  8345  		if res.Body != nil {
  8346  			res.Body.Close()
  8347  		}
  8348  		return nil, gensupport.WrapError(&googleapi.Error{
  8349  			Code:   res.StatusCode,
  8350  			Header: res.Header,
  8351  		})
  8352  	}
  8353  	if err != nil {
  8354  		return nil, err
  8355  	}
  8356  	defer googleapi.CloseBody(res)
  8357  	if err := googleapi.CheckResponse(res); err != nil {
  8358  		return nil, gensupport.WrapError(err)
  8359  	}
  8360  	ret := &EventTicketObject{
  8361  		ServerResponse: googleapi.ServerResponse{
  8362  			Header:         res.Header,
  8363  			HTTPStatusCode: res.StatusCode,
  8364  		},
  8365  	}
  8366  	target := &ret
  8367  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8368  		return nil, err
  8369  	}
  8370  	return ret, nil
  8371  }
  8372  
  8373  type EventticketobjectPatchCall struct {
  8374  	s                 *Service
  8375  	resourceId        string
  8376  	eventticketobject *EventTicketObject
  8377  	urlParams_        gensupport.URLParams
  8378  	ctx_              context.Context
  8379  	header_           http.Header
  8380  }
  8381  
  8382  // Patch: Updates the event ticket object referenced by the given object ID.
  8383  // This method supports patch semantics.
  8384  //
  8385  //   - resourceId: The unique identifier for an object. This ID must be unique
  8386  //     across all objects from an issuer. This value should follow the format
  8387  //     issuer ID. identifier where the former is issued by Google and latter is
  8388  //     chosen by you. Your unique identifier should only include alphanumeric
  8389  //     characters, '.', '_', or '-'.
  8390  func (r *EventticketobjectService) Patch(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectPatchCall {
  8391  	c := &EventticketobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8392  	c.resourceId = resourceId
  8393  	c.eventticketobject = eventticketobject
  8394  	return c
  8395  }
  8396  
  8397  // Fields allows partial responses to be retrieved. See
  8398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8399  // details.
  8400  func (c *EventticketobjectPatchCall) Fields(s ...googleapi.Field) *EventticketobjectPatchCall {
  8401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8402  	return c
  8403  }
  8404  
  8405  // Context sets the context to be used in this call's Do method.
  8406  func (c *EventticketobjectPatchCall) Context(ctx context.Context) *EventticketobjectPatchCall {
  8407  	c.ctx_ = ctx
  8408  	return c
  8409  }
  8410  
  8411  // Header returns a http.Header that can be modified by the caller to add
  8412  // headers to the request.
  8413  func (c *EventticketobjectPatchCall) Header() http.Header {
  8414  	if c.header_ == nil {
  8415  		c.header_ = make(http.Header)
  8416  	}
  8417  	return c.header_
  8418  }
  8419  
  8420  func (c *EventticketobjectPatchCall) doRequest(alt string) (*http.Response, error) {
  8421  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8422  	var body io.Reader = nil
  8423  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketobject)
  8424  	if err != nil {
  8425  		return nil, err
  8426  	}
  8427  	c.urlParams_.Set("alt", alt)
  8428  	c.urlParams_.Set("prettyPrint", "false")
  8429  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject/{resourceId}")
  8430  	urls += "?" + c.urlParams_.Encode()
  8431  	req, err := http.NewRequest("PATCH", urls, body)
  8432  	if err != nil {
  8433  		return nil, err
  8434  	}
  8435  	req.Header = reqHeaders
  8436  	googleapi.Expand(req.URL, map[string]string{
  8437  		"resourceId": c.resourceId,
  8438  	})
  8439  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8440  }
  8441  
  8442  // Do executes the "walletobjects.eventticketobject.patch" call.
  8443  // Any non-2xx status code is an error. Response headers are in either
  8444  // *EventTicketObject.ServerResponse.Header or (if a response was returned at
  8445  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8446  // check whether the returned error was because http.StatusNotModified was
  8447  // returned.
  8448  func (c *EventticketobjectPatchCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error) {
  8449  	gensupport.SetOptions(c.urlParams_, opts...)
  8450  	res, err := c.doRequest("json")
  8451  	if res != nil && res.StatusCode == http.StatusNotModified {
  8452  		if res.Body != nil {
  8453  			res.Body.Close()
  8454  		}
  8455  		return nil, gensupport.WrapError(&googleapi.Error{
  8456  			Code:   res.StatusCode,
  8457  			Header: res.Header,
  8458  		})
  8459  	}
  8460  	if err != nil {
  8461  		return nil, err
  8462  	}
  8463  	defer googleapi.CloseBody(res)
  8464  	if err := googleapi.CheckResponse(res); err != nil {
  8465  		return nil, gensupport.WrapError(err)
  8466  	}
  8467  	ret := &EventTicketObject{
  8468  		ServerResponse: googleapi.ServerResponse{
  8469  			Header:         res.Header,
  8470  			HTTPStatusCode: res.StatusCode,
  8471  		},
  8472  	}
  8473  	target := &ret
  8474  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8475  		return nil, err
  8476  	}
  8477  	return ret, nil
  8478  }
  8479  
  8480  type EventticketobjectUpdateCall struct {
  8481  	s                 *Service
  8482  	resourceId        string
  8483  	eventticketobject *EventTicketObject
  8484  	urlParams_        gensupport.URLParams
  8485  	ctx_              context.Context
  8486  	header_           http.Header
  8487  }
  8488  
  8489  // Update: Updates the event ticket object referenced by the given object ID.
  8490  //
  8491  //   - resourceId: The unique identifier for an object. This ID must be unique
  8492  //     across all objects from an issuer. This value should follow the format
  8493  //     issuer ID. identifier where the former is issued by Google and latter is
  8494  //     chosen by you. Your unique identifier should only include alphanumeric
  8495  //     characters, '.', '_', or '-'.
  8496  func (r *EventticketobjectService) Update(resourceId string, eventticketobject *EventTicketObject) *EventticketobjectUpdateCall {
  8497  	c := &EventticketobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8498  	c.resourceId = resourceId
  8499  	c.eventticketobject = eventticketobject
  8500  	return c
  8501  }
  8502  
  8503  // Fields allows partial responses to be retrieved. See
  8504  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8505  // details.
  8506  func (c *EventticketobjectUpdateCall) Fields(s ...googleapi.Field) *EventticketobjectUpdateCall {
  8507  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8508  	return c
  8509  }
  8510  
  8511  // Context sets the context to be used in this call's Do method.
  8512  func (c *EventticketobjectUpdateCall) Context(ctx context.Context) *EventticketobjectUpdateCall {
  8513  	c.ctx_ = ctx
  8514  	return c
  8515  }
  8516  
  8517  // Header returns a http.Header that can be modified by the caller to add
  8518  // headers to the request.
  8519  func (c *EventticketobjectUpdateCall) Header() http.Header {
  8520  	if c.header_ == nil {
  8521  		c.header_ = make(http.Header)
  8522  	}
  8523  	return c.header_
  8524  }
  8525  
  8526  func (c *EventticketobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
  8527  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8528  	var body io.Reader = nil
  8529  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.eventticketobject)
  8530  	if err != nil {
  8531  		return nil, err
  8532  	}
  8533  	c.urlParams_.Set("alt", alt)
  8534  	c.urlParams_.Set("prettyPrint", "false")
  8535  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/eventTicketObject/{resourceId}")
  8536  	urls += "?" + c.urlParams_.Encode()
  8537  	req, err := http.NewRequest("PUT", urls, body)
  8538  	if err != nil {
  8539  		return nil, err
  8540  	}
  8541  	req.Header = reqHeaders
  8542  	googleapi.Expand(req.URL, map[string]string{
  8543  		"resourceId": c.resourceId,
  8544  	})
  8545  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8546  }
  8547  
  8548  // Do executes the "walletobjects.eventticketobject.update" call.
  8549  // Any non-2xx status code is an error. Response headers are in either
  8550  // *EventTicketObject.ServerResponse.Header or (if a response was returned at
  8551  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8552  // check whether the returned error was because http.StatusNotModified was
  8553  // returned.
  8554  func (c *EventticketobjectUpdateCall) Do(opts ...googleapi.CallOption) (*EventTicketObject, error) {
  8555  	gensupport.SetOptions(c.urlParams_, opts...)
  8556  	res, err := c.doRequest("json")
  8557  	if res != nil && res.StatusCode == http.StatusNotModified {
  8558  		if res.Body != nil {
  8559  			res.Body.Close()
  8560  		}
  8561  		return nil, gensupport.WrapError(&googleapi.Error{
  8562  			Code:   res.StatusCode,
  8563  			Header: res.Header,
  8564  		})
  8565  	}
  8566  	if err != nil {
  8567  		return nil, err
  8568  	}
  8569  	defer googleapi.CloseBody(res)
  8570  	if err := googleapi.CheckResponse(res); err != nil {
  8571  		return nil, gensupport.WrapError(err)
  8572  	}
  8573  	ret := &EventTicketObject{
  8574  		ServerResponse: googleapi.ServerResponse{
  8575  			Header:         res.Header,
  8576  			HTTPStatusCode: res.StatusCode,
  8577  		},
  8578  	}
  8579  	target := &ret
  8580  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8581  		return nil, err
  8582  	}
  8583  	return ret, nil
  8584  }
  8585  
  8586  type FlightclassAddmessageCall struct {
  8587  	s                 *Service
  8588  	resourceId        string
  8589  	addmessagerequest *AddMessageRequest
  8590  	urlParams_        gensupport.URLParams
  8591  	ctx_              context.Context
  8592  	header_           http.Header
  8593  }
  8594  
  8595  // Addmessage: Adds a message to the flight class referenced by the given class
  8596  // ID.
  8597  //
  8598  //   - resourceId: The unique identifier for a class. This ID must be unique
  8599  //     across all classes from an issuer. This value should follow the format
  8600  //     issuer ID. identifier where the former is issued by Google and latter is
  8601  //     chosen by you. Your unique identifier should only include alphanumeric
  8602  //     characters, '.', '_', or '-'.
  8603  func (r *FlightclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightclassAddmessageCall {
  8604  	c := &FlightclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8605  	c.resourceId = resourceId
  8606  	c.addmessagerequest = addmessagerequest
  8607  	return c
  8608  }
  8609  
  8610  // Fields allows partial responses to be retrieved. See
  8611  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8612  // details.
  8613  func (c *FlightclassAddmessageCall) Fields(s ...googleapi.Field) *FlightclassAddmessageCall {
  8614  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8615  	return c
  8616  }
  8617  
  8618  // Context sets the context to be used in this call's Do method.
  8619  func (c *FlightclassAddmessageCall) Context(ctx context.Context) *FlightclassAddmessageCall {
  8620  	c.ctx_ = ctx
  8621  	return c
  8622  }
  8623  
  8624  // Header returns a http.Header that can be modified by the caller to add
  8625  // headers to the request.
  8626  func (c *FlightclassAddmessageCall) Header() http.Header {
  8627  	if c.header_ == nil {
  8628  		c.header_ = make(http.Header)
  8629  	}
  8630  	return c.header_
  8631  }
  8632  
  8633  func (c *FlightclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
  8634  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8635  	var body io.Reader = nil
  8636  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
  8637  	if err != nil {
  8638  		return nil, err
  8639  	}
  8640  	c.urlParams_.Set("alt", alt)
  8641  	c.urlParams_.Set("prettyPrint", "false")
  8642  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass/{resourceId}/addMessage")
  8643  	urls += "?" + c.urlParams_.Encode()
  8644  	req, err := http.NewRequest("POST", urls, body)
  8645  	if err != nil {
  8646  		return nil, err
  8647  	}
  8648  	req.Header = reqHeaders
  8649  	googleapi.Expand(req.URL, map[string]string{
  8650  		"resourceId": c.resourceId,
  8651  	})
  8652  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8653  }
  8654  
  8655  // Do executes the "walletobjects.flightclass.addmessage" call.
  8656  // Any non-2xx status code is an error. Response headers are in either
  8657  // *FlightClassAddMessageResponse.ServerResponse.Header or (if a response was
  8658  // returned at all) in error.(*googleapi.Error).Header. Use
  8659  // googleapi.IsNotModified to check whether the returned error was because
  8660  // http.StatusNotModified was returned.
  8661  func (c *FlightclassAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightClassAddMessageResponse, error) {
  8662  	gensupport.SetOptions(c.urlParams_, opts...)
  8663  	res, err := c.doRequest("json")
  8664  	if res != nil && res.StatusCode == http.StatusNotModified {
  8665  		if res.Body != nil {
  8666  			res.Body.Close()
  8667  		}
  8668  		return nil, gensupport.WrapError(&googleapi.Error{
  8669  			Code:   res.StatusCode,
  8670  			Header: res.Header,
  8671  		})
  8672  	}
  8673  	if err != nil {
  8674  		return nil, err
  8675  	}
  8676  	defer googleapi.CloseBody(res)
  8677  	if err := googleapi.CheckResponse(res); err != nil {
  8678  		return nil, gensupport.WrapError(err)
  8679  	}
  8680  	ret := &FlightClassAddMessageResponse{
  8681  		ServerResponse: googleapi.ServerResponse{
  8682  			Header:         res.Header,
  8683  			HTTPStatusCode: res.StatusCode,
  8684  		},
  8685  	}
  8686  	target := &ret
  8687  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8688  		return nil, err
  8689  	}
  8690  	return ret, nil
  8691  }
  8692  
  8693  type FlightclassGetCall struct {
  8694  	s            *Service
  8695  	resourceId   string
  8696  	urlParams_   gensupport.URLParams
  8697  	ifNoneMatch_ string
  8698  	ctx_         context.Context
  8699  	header_      http.Header
  8700  }
  8701  
  8702  // Get: Returns the flight class with the given class ID.
  8703  //
  8704  //   - resourceId: The unique identifier for a class. This ID must be unique
  8705  //     across all classes from an issuer. This value should follow the format
  8706  //     issuer ID. identifier where the former is issued by Google and latter is
  8707  //     chosen by you. Your unique identifier should only include alphanumeric
  8708  //     characters, '.', '_', or '-'.
  8709  func (r *FlightclassService) Get(resourceId string) *FlightclassGetCall {
  8710  	c := &FlightclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8711  	c.resourceId = resourceId
  8712  	return c
  8713  }
  8714  
  8715  // Fields allows partial responses to be retrieved. See
  8716  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8717  // details.
  8718  func (c *FlightclassGetCall) Fields(s ...googleapi.Field) *FlightclassGetCall {
  8719  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8720  	return c
  8721  }
  8722  
  8723  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8724  // object's ETag matches the given value. This is useful for getting updates
  8725  // only after the object has changed since the last request.
  8726  func (c *FlightclassGetCall) IfNoneMatch(entityTag string) *FlightclassGetCall {
  8727  	c.ifNoneMatch_ = entityTag
  8728  	return c
  8729  }
  8730  
  8731  // Context sets the context to be used in this call's Do method.
  8732  func (c *FlightclassGetCall) Context(ctx context.Context) *FlightclassGetCall {
  8733  	c.ctx_ = ctx
  8734  	return c
  8735  }
  8736  
  8737  // Header returns a http.Header that can be modified by the caller to add
  8738  // headers to the request.
  8739  func (c *FlightclassGetCall) Header() http.Header {
  8740  	if c.header_ == nil {
  8741  		c.header_ = make(http.Header)
  8742  	}
  8743  	return c.header_
  8744  }
  8745  
  8746  func (c *FlightclassGetCall) doRequest(alt string) (*http.Response, error) {
  8747  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8748  	if c.ifNoneMatch_ != "" {
  8749  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8750  	}
  8751  	var body io.Reader = nil
  8752  	c.urlParams_.Set("alt", alt)
  8753  	c.urlParams_.Set("prettyPrint", "false")
  8754  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass/{resourceId}")
  8755  	urls += "?" + c.urlParams_.Encode()
  8756  	req, err := http.NewRequest("GET", urls, body)
  8757  	if err != nil {
  8758  		return nil, err
  8759  	}
  8760  	req.Header = reqHeaders
  8761  	googleapi.Expand(req.URL, map[string]string{
  8762  		"resourceId": c.resourceId,
  8763  	})
  8764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8765  }
  8766  
  8767  // Do executes the "walletobjects.flightclass.get" call.
  8768  // Any non-2xx status code is an error. Response headers are in either
  8769  // *FlightClass.ServerResponse.Header or (if a response was returned at all) in
  8770  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8771  // whether the returned error was because http.StatusNotModified was returned.
  8772  func (c *FlightclassGetCall) Do(opts ...googleapi.CallOption) (*FlightClass, error) {
  8773  	gensupport.SetOptions(c.urlParams_, opts...)
  8774  	res, err := c.doRequest("json")
  8775  	if res != nil && res.StatusCode == http.StatusNotModified {
  8776  		if res.Body != nil {
  8777  			res.Body.Close()
  8778  		}
  8779  		return nil, gensupport.WrapError(&googleapi.Error{
  8780  			Code:   res.StatusCode,
  8781  			Header: res.Header,
  8782  		})
  8783  	}
  8784  	if err != nil {
  8785  		return nil, err
  8786  	}
  8787  	defer googleapi.CloseBody(res)
  8788  	if err := googleapi.CheckResponse(res); err != nil {
  8789  		return nil, gensupport.WrapError(err)
  8790  	}
  8791  	ret := &FlightClass{
  8792  		ServerResponse: googleapi.ServerResponse{
  8793  			Header:         res.Header,
  8794  			HTTPStatusCode: res.StatusCode,
  8795  		},
  8796  	}
  8797  	target := &ret
  8798  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8799  		return nil, err
  8800  	}
  8801  	return ret, nil
  8802  }
  8803  
  8804  type FlightclassInsertCall struct {
  8805  	s           *Service
  8806  	flightclass *FlightClass
  8807  	urlParams_  gensupport.URLParams
  8808  	ctx_        context.Context
  8809  	header_     http.Header
  8810  }
  8811  
  8812  // Insert: Inserts an flight class with the given ID and properties.
  8813  func (r *FlightclassService) Insert(flightclass *FlightClass) *FlightclassInsertCall {
  8814  	c := &FlightclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8815  	c.flightclass = flightclass
  8816  	return c
  8817  }
  8818  
  8819  // Fields allows partial responses to be retrieved. See
  8820  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8821  // details.
  8822  func (c *FlightclassInsertCall) Fields(s ...googleapi.Field) *FlightclassInsertCall {
  8823  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8824  	return c
  8825  }
  8826  
  8827  // Context sets the context to be used in this call's Do method.
  8828  func (c *FlightclassInsertCall) Context(ctx context.Context) *FlightclassInsertCall {
  8829  	c.ctx_ = ctx
  8830  	return c
  8831  }
  8832  
  8833  // Header returns a http.Header that can be modified by the caller to add
  8834  // headers to the request.
  8835  func (c *FlightclassInsertCall) Header() http.Header {
  8836  	if c.header_ == nil {
  8837  		c.header_ = make(http.Header)
  8838  	}
  8839  	return c.header_
  8840  }
  8841  
  8842  func (c *FlightclassInsertCall) doRequest(alt string) (*http.Response, error) {
  8843  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8844  	var body io.Reader = nil
  8845  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightclass)
  8846  	if err != nil {
  8847  		return nil, err
  8848  	}
  8849  	c.urlParams_.Set("alt", alt)
  8850  	c.urlParams_.Set("prettyPrint", "false")
  8851  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass")
  8852  	urls += "?" + c.urlParams_.Encode()
  8853  	req, err := http.NewRequest("POST", urls, body)
  8854  	if err != nil {
  8855  		return nil, err
  8856  	}
  8857  	req.Header = reqHeaders
  8858  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8859  }
  8860  
  8861  // Do executes the "walletobjects.flightclass.insert" call.
  8862  // Any non-2xx status code is an error. Response headers are in either
  8863  // *FlightClass.ServerResponse.Header or (if a response was returned at all) in
  8864  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8865  // whether the returned error was because http.StatusNotModified was returned.
  8866  func (c *FlightclassInsertCall) Do(opts ...googleapi.CallOption) (*FlightClass, error) {
  8867  	gensupport.SetOptions(c.urlParams_, opts...)
  8868  	res, err := c.doRequest("json")
  8869  	if res != nil && res.StatusCode == http.StatusNotModified {
  8870  		if res.Body != nil {
  8871  			res.Body.Close()
  8872  		}
  8873  		return nil, gensupport.WrapError(&googleapi.Error{
  8874  			Code:   res.StatusCode,
  8875  			Header: res.Header,
  8876  		})
  8877  	}
  8878  	if err != nil {
  8879  		return nil, err
  8880  	}
  8881  	defer googleapi.CloseBody(res)
  8882  	if err := googleapi.CheckResponse(res); err != nil {
  8883  		return nil, gensupport.WrapError(err)
  8884  	}
  8885  	ret := &FlightClass{
  8886  		ServerResponse: googleapi.ServerResponse{
  8887  			Header:         res.Header,
  8888  			HTTPStatusCode: res.StatusCode,
  8889  		},
  8890  	}
  8891  	target := &ret
  8892  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8893  		return nil, err
  8894  	}
  8895  	return ret, nil
  8896  }
  8897  
  8898  type FlightclassListCall struct {
  8899  	s            *Service
  8900  	urlParams_   gensupport.URLParams
  8901  	ifNoneMatch_ string
  8902  	ctx_         context.Context
  8903  	header_      http.Header
  8904  }
  8905  
  8906  // List: Returns a list of all flight classes for a given issuer ID.
  8907  func (r *FlightclassService) List() *FlightclassListCall {
  8908  	c := &FlightclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8909  	return c
  8910  }
  8911  
  8912  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
  8913  // authorized to list classes.
  8914  func (c *FlightclassListCall) IssuerId(issuerId int64) *FlightclassListCall {
  8915  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
  8916  	return c
  8917  }
  8918  
  8919  // MaxResults sets the optional parameter "maxResults": Identifies the max
  8920  // number of results returned by a list. All results are returned if
  8921  // `maxResults` isn't defined.
  8922  func (c *FlightclassListCall) MaxResults(maxResults int64) *FlightclassListCall {
  8923  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  8924  	return c
  8925  }
  8926  
  8927  // Token sets the optional parameter "token": Used to get the next set of
  8928  // results if `maxResults` is specified, but more than `maxResults` classes are
  8929  // available in a list. For example, if you have a list of 200 classes and you
  8930  // call list with `maxResults` set to 20, list will return the first 20 classes
  8931  // and a token. Call list again with `maxResults` set to 20 and the token to
  8932  // get the next 20 classes.
  8933  func (c *FlightclassListCall) Token(token string) *FlightclassListCall {
  8934  	c.urlParams_.Set("token", token)
  8935  	return c
  8936  }
  8937  
  8938  // Fields allows partial responses to be retrieved. See
  8939  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8940  // details.
  8941  func (c *FlightclassListCall) Fields(s ...googleapi.Field) *FlightclassListCall {
  8942  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8943  	return c
  8944  }
  8945  
  8946  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8947  // object's ETag matches the given value. This is useful for getting updates
  8948  // only after the object has changed since the last request.
  8949  func (c *FlightclassListCall) IfNoneMatch(entityTag string) *FlightclassListCall {
  8950  	c.ifNoneMatch_ = entityTag
  8951  	return c
  8952  }
  8953  
  8954  // Context sets the context to be used in this call's Do method.
  8955  func (c *FlightclassListCall) Context(ctx context.Context) *FlightclassListCall {
  8956  	c.ctx_ = ctx
  8957  	return c
  8958  }
  8959  
  8960  // Header returns a http.Header that can be modified by the caller to add
  8961  // headers to the request.
  8962  func (c *FlightclassListCall) Header() http.Header {
  8963  	if c.header_ == nil {
  8964  		c.header_ = make(http.Header)
  8965  	}
  8966  	return c.header_
  8967  }
  8968  
  8969  func (c *FlightclassListCall) doRequest(alt string) (*http.Response, error) {
  8970  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8971  	if c.ifNoneMatch_ != "" {
  8972  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8973  	}
  8974  	var body io.Reader = nil
  8975  	c.urlParams_.Set("alt", alt)
  8976  	c.urlParams_.Set("prettyPrint", "false")
  8977  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass")
  8978  	urls += "?" + c.urlParams_.Encode()
  8979  	req, err := http.NewRequest("GET", urls, body)
  8980  	if err != nil {
  8981  		return nil, err
  8982  	}
  8983  	req.Header = reqHeaders
  8984  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8985  }
  8986  
  8987  // Do executes the "walletobjects.flightclass.list" call.
  8988  // Any non-2xx status code is an error. Response headers are in either
  8989  // *FlightClassListResponse.ServerResponse.Header or (if a response was
  8990  // returned at all) in error.(*googleapi.Error).Header. Use
  8991  // googleapi.IsNotModified to check whether the returned error was because
  8992  // http.StatusNotModified was returned.
  8993  func (c *FlightclassListCall) Do(opts ...googleapi.CallOption) (*FlightClassListResponse, error) {
  8994  	gensupport.SetOptions(c.urlParams_, opts...)
  8995  	res, err := c.doRequest("json")
  8996  	if res != nil && res.StatusCode == http.StatusNotModified {
  8997  		if res.Body != nil {
  8998  			res.Body.Close()
  8999  		}
  9000  		return nil, gensupport.WrapError(&googleapi.Error{
  9001  			Code:   res.StatusCode,
  9002  			Header: res.Header,
  9003  		})
  9004  	}
  9005  	if err != nil {
  9006  		return nil, err
  9007  	}
  9008  	defer googleapi.CloseBody(res)
  9009  	if err := googleapi.CheckResponse(res); err != nil {
  9010  		return nil, gensupport.WrapError(err)
  9011  	}
  9012  	ret := &FlightClassListResponse{
  9013  		ServerResponse: googleapi.ServerResponse{
  9014  			Header:         res.Header,
  9015  			HTTPStatusCode: res.StatusCode,
  9016  		},
  9017  	}
  9018  	target := &ret
  9019  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9020  		return nil, err
  9021  	}
  9022  	return ret, nil
  9023  }
  9024  
  9025  type FlightclassPatchCall struct {
  9026  	s           *Service
  9027  	resourceId  string
  9028  	flightclass *FlightClass
  9029  	urlParams_  gensupport.URLParams
  9030  	ctx_        context.Context
  9031  	header_     http.Header
  9032  }
  9033  
  9034  // Patch: Updates the flight class referenced by the given class ID. This
  9035  // method supports patch semantics.
  9036  //
  9037  //   - resourceId: The unique identifier for a class. This ID must be unique
  9038  //     across all classes from an issuer. This value should follow the format
  9039  //     issuer ID. identifier where the former is issued by Google and latter is
  9040  //     chosen by you. Your unique identifier should only include alphanumeric
  9041  //     characters, '.', '_', or '-'.
  9042  func (r *FlightclassService) Patch(resourceId string, flightclass *FlightClass) *FlightclassPatchCall {
  9043  	c := &FlightclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9044  	c.resourceId = resourceId
  9045  	c.flightclass = flightclass
  9046  	return c
  9047  }
  9048  
  9049  // Fields allows partial responses to be retrieved. See
  9050  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9051  // details.
  9052  func (c *FlightclassPatchCall) Fields(s ...googleapi.Field) *FlightclassPatchCall {
  9053  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9054  	return c
  9055  }
  9056  
  9057  // Context sets the context to be used in this call's Do method.
  9058  func (c *FlightclassPatchCall) Context(ctx context.Context) *FlightclassPatchCall {
  9059  	c.ctx_ = ctx
  9060  	return c
  9061  }
  9062  
  9063  // Header returns a http.Header that can be modified by the caller to add
  9064  // headers to the request.
  9065  func (c *FlightclassPatchCall) Header() http.Header {
  9066  	if c.header_ == nil {
  9067  		c.header_ = make(http.Header)
  9068  	}
  9069  	return c.header_
  9070  }
  9071  
  9072  func (c *FlightclassPatchCall) doRequest(alt string) (*http.Response, error) {
  9073  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9074  	var body io.Reader = nil
  9075  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightclass)
  9076  	if err != nil {
  9077  		return nil, err
  9078  	}
  9079  	c.urlParams_.Set("alt", alt)
  9080  	c.urlParams_.Set("prettyPrint", "false")
  9081  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass/{resourceId}")
  9082  	urls += "?" + c.urlParams_.Encode()
  9083  	req, err := http.NewRequest("PATCH", urls, body)
  9084  	if err != nil {
  9085  		return nil, err
  9086  	}
  9087  	req.Header = reqHeaders
  9088  	googleapi.Expand(req.URL, map[string]string{
  9089  		"resourceId": c.resourceId,
  9090  	})
  9091  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9092  }
  9093  
  9094  // Do executes the "walletobjects.flightclass.patch" call.
  9095  // Any non-2xx status code is an error. Response headers are in either
  9096  // *FlightClass.ServerResponse.Header or (if a response was returned at all) in
  9097  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9098  // whether the returned error was because http.StatusNotModified was returned.
  9099  func (c *FlightclassPatchCall) Do(opts ...googleapi.CallOption) (*FlightClass, error) {
  9100  	gensupport.SetOptions(c.urlParams_, opts...)
  9101  	res, err := c.doRequest("json")
  9102  	if res != nil && res.StatusCode == http.StatusNotModified {
  9103  		if res.Body != nil {
  9104  			res.Body.Close()
  9105  		}
  9106  		return nil, gensupport.WrapError(&googleapi.Error{
  9107  			Code:   res.StatusCode,
  9108  			Header: res.Header,
  9109  		})
  9110  	}
  9111  	if err != nil {
  9112  		return nil, err
  9113  	}
  9114  	defer googleapi.CloseBody(res)
  9115  	if err := googleapi.CheckResponse(res); err != nil {
  9116  		return nil, gensupport.WrapError(err)
  9117  	}
  9118  	ret := &FlightClass{
  9119  		ServerResponse: googleapi.ServerResponse{
  9120  			Header:         res.Header,
  9121  			HTTPStatusCode: res.StatusCode,
  9122  		},
  9123  	}
  9124  	target := &ret
  9125  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9126  		return nil, err
  9127  	}
  9128  	return ret, nil
  9129  }
  9130  
  9131  type FlightclassUpdateCall struct {
  9132  	s           *Service
  9133  	resourceId  string
  9134  	flightclass *FlightClass
  9135  	urlParams_  gensupport.URLParams
  9136  	ctx_        context.Context
  9137  	header_     http.Header
  9138  }
  9139  
  9140  // Update: Updates the flight class referenced by the given class ID.
  9141  //
  9142  //   - resourceId: The unique identifier for a class. This ID must be unique
  9143  //     across all classes from an issuer. This value should follow the format
  9144  //     issuer ID. identifier where the former is issued by Google and latter is
  9145  //     chosen by you. Your unique identifier should only include alphanumeric
  9146  //     characters, '.', '_', or '-'.
  9147  func (r *FlightclassService) Update(resourceId string, flightclass *FlightClass) *FlightclassUpdateCall {
  9148  	c := &FlightclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9149  	c.resourceId = resourceId
  9150  	c.flightclass = flightclass
  9151  	return c
  9152  }
  9153  
  9154  // Fields allows partial responses to be retrieved. See
  9155  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9156  // details.
  9157  func (c *FlightclassUpdateCall) Fields(s ...googleapi.Field) *FlightclassUpdateCall {
  9158  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9159  	return c
  9160  }
  9161  
  9162  // Context sets the context to be used in this call's Do method.
  9163  func (c *FlightclassUpdateCall) Context(ctx context.Context) *FlightclassUpdateCall {
  9164  	c.ctx_ = ctx
  9165  	return c
  9166  }
  9167  
  9168  // Header returns a http.Header that can be modified by the caller to add
  9169  // headers to the request.
  9170  func (c *FlightclassUpdateCall) Header() http.Header {
  9171  	if c.header_ == nil {
  9172  		c.header_ = make(http.Header)
  9173  	}
  9174  	return c.header_
  9175  }
  9176  
  9177  func (c *FlightclassUpdateCall) doRequest(alt string) (*http.Response, error) {
  9178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9179  	var body io.Reader = nil
  9180  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightclass)
  9181  	if err != nil {
  9182  		return nil, err
  9183  	}
  9184  	c.urlParams_.Set("alt", alt)
  9185  	c.urlParams_.Set("prettyPrint", "false")
  9186  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightClass/{resourceId}")
  9187  	urls += "?" + c.urlParams_.Encode()
  9188  	req, err := http.NewRequest("PUT", urls, body)
  9189  	if err != nil {
  9190  		return nil, err
  9191  	}
  9192  	req.Header = reqHeaders
  9193  	googleapi.Expand(req.URL, map[string]string{
  9194  		"resourceId": c.resourceId,
  9195  	})
  9196  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9197  }
  9198  
  9199  // Do executes the "walletobjects.flightclass.update" call.
  9200  // Any non-2xx status code is an error. Response headers are in either
  9201  // *FlightClass.ServerResponse.Header or (if a response was returned at all) in
  9202  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9203  // whether the returned error was because http.StatusNotModified was returned.
  9204  func (c *FlightclassUpdateCall) Do(opts ...googleapi.CallOption) (*FlightClass, error) {
  9205  	gensupport.SetOptions(c.urlParams_, opts...)
  9206  	res, err := c.doRequest("json")
  9207  	if res != nil && res.StatusCode == http.StatusNotModified {
  9208  		if res.Body != nil {
  9209  			res.Body.Close()
  9210  		}
  9211  		return nil, gensupport.WrapError(&googleapi.Error{
  9212  			Code:   res.StatusCode,
  9213  			Header: res.Header,
  9214  		})
  9215  	}
  9216  	if err != nil {
  9217  		return nil, err
  9218  	}
  9219  	defer googleapi.CloseBody(res)
  9220  	if err := googleapi.CheckResponse(res); err != nil {
  9221  		return nil, gensupport.WrapError(err)
  9222  	}
  9223  	ret := &FlightClass{
  9224  		ServerResponse: googleapi.ServerResponse{
  9225  			Header:         res.Header,
  9226  			HTTPStatusCode: res.StatusCode,
  9227  		},
  9228  	}
  9229  	target := &ret
  9230  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9231  		return nil, err
  9232  	}
  9233  	return ret, nil
  9234  }
  9235  
  9236  type FlightobjectAddmessageCall struct {
  9237  	s                 *Service
  9238  	resourceId        string
  9239  	addmessagerequest *AddMessageRequest
  9240  	urlParams_        gensupport.URLParams
  9241  	ctx_              context.Context
  9242  	header_           http.Header
  9243  }
  9244  
  9245  // Addmessage: Adds a message to the flight object referenced by the given
  9246  // object ID.
  9247  //
  9248  //   - resourceId: The unique identifier for an object. This ID must be unique
  9249  //     across all objects from an issuer. This value should follow the format
  9250  //     issuer ID. identifier where the former is issued by Google and latter is
  9251  //     chosen by you. Your unique identifier should only include alphanumeric
  9252  //     characters, '.', '_', or '-'.
  9253  func (r *FlightobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *FlightobjectAddmessageCall {
  9254  	c := &FlightobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9255  	c.resourceId = resourceId
  9256  	c.addmessagerequest = addmessagerequest
  9257  	return c
  9258  }
  9259  
  9260  // Fields allows partial responses to be retrieved. See
  9261  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9262  // details.
  9263  func (c *FlightobjectAddmessageCall) Fields(s ...googleapi.Field) *FlightobjectAddmessageCall {
  9264  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9265  	return c
  9266  }
  9267  
  9268  // Context sets the context to be used in this call's Do method.
  9269  func (c *FlightobjectAddmessageCall) Context(ctx context.Context) *FlightobjectAddmessageCall {
  9270  	c.ctx_ = ctx
  9271  	return c
  9272  }
  9273  
  9274  // Header returns a http.Header that can be modified by the caller to add
  9275  // headers to the request.
  9276  func (c *FlightobjectAddmessageCall) Header() http.Header {
  9277  	if c.header_ == nil {
  9278  		c.header_ = make(http.Header)
  9279  	}
  9280  	return c.header_
  9281  }
  9282  
  9283  func (c *FlightobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
  9284  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9285  	var body io.Reader = nil
  9286  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
  9287  	if err != nil {
  9288  		return nil, err
  9289  	}
  9290  	c.urlParams_.Set("alt", alt)
  9291  	c.urlParams_.Set("prettyPrint", "false")
  9292  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject/{resourceId}/addMessage")
  9293  	urls += "?" + c.urlParams_.Encode()
  9294  	req, err := http.NewRequest("POST", urls, body)
  9295  	if err != nil {
  9296  		return nil, err
  9297  	}
  9298  	req.Header = reqHeaders
  9299  	googleapi.Expand(req.URL, map[string]string{
  9300  		"resourceId": c.resourceId,
  9301  	})
  9302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9303  }
  9304  
  9305  // Do executes the "walletobjects.flightobject.addmessage" call.
  9306  // Any non-2xx status code is an error. Response headers are in either
  9307  // *FlightObjectAddMessageResponse.ServerResponse.Header or (if a response was
  9308  // returned at all) in error.(*googleapi.Error).Header. Use
  9309  // googleapi.IsNotModified to check whether the returned error was because
  9310  // http.StatusNotModified was returned.
  9311  func (c *FlightobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*FlightObjectAddMessageResponse, error) {
  9312  	gensupport.SetOptions(c.urlParams_, opts...)
  9313  	res, err := c.doRequest("json")
  9314  	if res != nil && res.StatusCode == http.StatusNotModified {
  9315  		if res.Body != nil {
  9316  			res.Body.Close()
  9317  		}
  9318  		return nil, gensupport.WrapError(&googleapi.Error{
  9319  			Code:   res.StatusCode,
  9320  			Header: res.Header,
  9321  		})
  9322  	}
  9323  	if err != nil {
  9324  		return nil, err
  9325  	}
  9326  	defer googleapi.CloseBody(res)
  9327  	if err := googleapi.CheckResponse(res); err != nil {
  9328  		return nil, gensupport.WrapError(err)
  9329  	}
  9330  	ret := &FlightObjectAddMessageResponse{
  9331  		ServerResponse: googleapi.ServerResponse{
  9332  			Header:         res.Header,
  9333  			HTTPStatusCode: res.StatusCode,
  9334  		},
  9335  	}
  9336  	target := &ret
  9337  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9338  		return nil, err
  9339  	}
  9340  	return ret, nil
  9341  }
  9342  
  9343  type FlightobjectGetCall struct {
  9344  	s            *Service
  9345  	resourceId   string
  9346  	urlParams_   gensupport.URLParams
  9347  	ifNoneMatch_ string
  9348  	ctx_         context.Context
  9349  	header_      http.Header
  9350  }
  9351  
  9352  // Get: Returns the flight object with the given object ID.
  9353  //
  9354  //   - resourceId: The unique identifier for an object. This ID must be unique
  9355  //     across all objects from an issuer. This value should follow the format
  9356  //     issuer ID. identifier where the former is issued by Google and latter is
  9357  //     chosen by you. Your unique identifier should only include alphanumeric
  9358  //     characters, '.', '_', or '-'.
  9359  func (r *FlightobjectService) Get(resourceId string) *FlightobjectGetCall {
  9360  	c := &FlightobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9361  	c.resourceId = resourceId
  9362  	return c
  9363  }
  9364  
  9365  // Fields allows partial responses to be retrieved. See
  9366  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9367  // details.
  9368  func (c *FlightobjectGetCall) Fields(s ...googleapi.Field) *FlightobjectGetCall {
  9369  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9370  	return c
  9371  }
  9372  
  9373  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9374  // object's ETag matches the given value. This is useful for getting updates
  9375  // only after the object has changed since the last request.
  9376  func (c *FlightobjectGetCall) IfNoneMatch(entityTag string) *FlightobjectGetCall {
  9377  	c.ifNoneMatch_ = entityTag
  9378  	return c
  9379  }
  9380  
  9381  // Context sets the context to be used in this call's Do method.
  9382  func (c *FlightobjectGetCall) Context(ctx context.Context) *FlightobjectGetCall {
  9383  	c.ctx_ = ctx
  9384  	return c
  9385  }
  9386  
  9387  // Header returns a http.Header that can be modified by the caller to add
  9388  // headers to the request.
  9389  func (c *FlightobjectGetCall) Header() http.Header {
  9390  	if c.header_ == nil {
  9391  		c.header_ = make(http.Header)
  9392  	}
  9393  	return c.header_
  9394  }
  9395  
  9396  func (c *FlightobjectGetCall) doRequest(alt string) (*http.Response, error) {
  9397  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9398  	if c.ifNoneMatch_ != "" {
  9399  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9400  	}
  9401  	var body io.Reader = nil
  9402  	c.urlParams_.Set("alt", alt)
  9403  	c.urlParams_.Set("prettyPrint", "false")
  9404  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject/{resourceId}")
  9405  	urls += "?" + c.urlParams_.Encode()
  9406  	req, err := http.NewRequest("GET", urls, body)
  9407  	if err != nil {
  9408  		return nil, err
  9409  	}
  9410  	req.Header = reqHeaders
  9411  	googleapi.Expand(req.URL, map[string]string{
  9412  		"resourceId": c.resourceId,
  9413  	})
  9414  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9415  }
  9416  
  9417  // Do executes the "walletobjects.flightobject.get" call.
  9418  // Any non-2xx status code is an error. Response headers are in either
  9419  // *FlightObject.ServerResponse.Header or (if a response was returned at all)
  9420  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9421  // whether the returned error was because http.StatusNotModified was returned.
  9422  func (c *FlightobjectGetCall) Do(opts ...googleapi.CallOption) (*FlightObject, error) {
  9423  	gensupport.SetOptions(c.urlParams_, opts...)
  9424  	res, err := c.doRequest("json")
  9425  	if res != nil && res.StatusCode == http.StatusNotModified {
  9426  		if res.Body != nil {
  9427  			res.Body.Close()
  9428  		}
  9429  		return nil, gensupport.WrapError(&googleapi.Error{
  9430  			Code:   res.StatusCode,
  9431  			Header: res.Header,
  9432  		})
  9433  	}
  9434  	if err != nil {
  9435  		return nil, err
  9436  	}
  9437  	defer googleapi.CloseBody(res)
  9438  	if err := googleapi.CheckResponse(res); err != nil {
  9439  		return nil, gensupport.WrapError(err)
  9440  	}
  9441  	ret := &FlightObject{
  9442  		ServerResponse: googleapi.ServerResponse{
  9443  			Header:         res.Header,
  9444  			HTTPStatusCode: res.StatusCode,
  9445  		},
  9446  	}
  9447  	target := &ret
  9448  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9449  		return nil, err
  9450  	}
  9451  	return ret, nil
  9452  }
  9453  
  9454  type FlightobjectInsertCall struct {
  9455  	s            *Service
  9456  	flightobject *FlightObject
  9457  	urlParams_   gensupport.URLParams
  9458  	ctx_         context.Context
  9459  	header_      http.Header
  9460  }
  9461  
  9462  // Insert: Inserts an flight object with the given ID and properties.
  9463  func (r *FlightobjectService) Insert(flightobject *FlightObject) *FlightobjectInsertCall {
  9464  	c := &FlightobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9465  	c.flightobject = flightobject
  9466  	return c
  9467  }
  9468  
  9469  // Fields allows partial responses to be retrieved. See
  9470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9471  // details.
  9472  func (c *FlightobjectInsertCall) Fields(s ...googleapi.Field) *FlightobjectInsertCall {
  9473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9474  	return c
  9475  }
  9476  
  9477  // Context sets the context to be used in this call's Do method.
  9478  func (c *FlightobjectInsertCall) Context(ctx context.Context) *FlightobjectInsertCall {
  9479  	c.ctx_ = ctx
  9480  	return c
  9481  }
  9482  
  9483  // Header returns a http.Header that can be modified by the caller to add
  9484  // headers to the request.
  9485  func (c *FlightobjectInsertCall) Header() http.Header {
  9486  	if c.header_ == nil {
  9487  		c.header_ = make(http.Header)
  9488  	}
  9489  	return c.header_
  9490  }
  9491  
  9492  func (c *FlightobjectInsertCall) doRequest(alt string) (*http.Response, error) {
  9493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9494  	var body io.Reader = nil
  9495  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightobject)
  9496  	if err != nil {
  9497  		return nil, err
  9498  	}
  9499  	c.urlParams_.Set("alt", alt)
  9500  	c.urlParams_.Set("prettyPrint", "false")
  9501  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject")
  9502  	urls += "?" + c.urlParams_.Encode()
  9503  	req, err := http.NewRequest("POST", urls, body)
  9504  	if err != nil {
  9505  		return nil, err
  9506  	}
  9507  	req.Header = reqHeaders
  9508  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9509  }
  9510  
  9511  // Do executes the "walletobjects.flightobject.insert" call.
  9512  // Any non-2xx status code is an error. Response headers are in either
  9513  // *FlightObject.ServerResponse.Header or (if a response was returned at all)
  9514  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9515  // whether the returned error was because http.StatusNotModified was returned.
  9516  func (c *FlightobjectInsertCall) Do(opts ...googleapi.CallOption) (*FlightObject, error) {
  9517  	gensupport.SetOptions(c.urlParams_, opts...)
  9518  	res, err := c.doRequest("json")
  9519  	if res != nil && res.StatusCode == http.StatusNotModified {
  9520  		if res.Body != nil {
  9521  			res.Body.Close()
  9522  		}
  9523  		return nil, gensupport.WrapError(&googleapi.Error{
  9524  			Code:   res.StatusCode,
  9525  			Header: res.Header,
  9526  		})
  9527  	}
  9528  	if err != nil {
  9529  		return nil, err
  9530  	}
  9531  	defer googleapi.CloseBody(res)
  9532  	if err := googleapi.CheckResponse(res); err != nil {
  9533  		return nil, gensupport.WrapError(err)
  9534  	}
  9535  	ret := &FlightObject{
  9536  		ServerResponse: googleapi.ServerResponse{
  9537  			Header:         res.Header,
  9538  			HTTPStatusCode: res.StatusCode,
  9539  		},
  9540  	}
  9541  	target := &ret
  9542  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9543  		return nil, err
  9544  	}
  9545  	return ret, nil
  9546  }
  9547  
  9548  type FlightobjectListCall struct {
  9549  	s            *Service
  9550  	urlParams_   gensupport.URLParams
  9551  	ifNoneMatch_ string
  9552  	ctx_         context.Context
  9553  	header_      http.Header
  9554  }
  9555  
  9556  // List: Returns a list of all flight objects for a given issuer ID.
  9557  func (r *FlightobjectService) List() *FlightobjectListCall {
  9558  	c := &FlightobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9559  	return c
  9560  }
  9561  
  9562  // ClassId sets the optional parameter "classId": The ID of the class whose
  9563  // objects will be listed.
  9564  func (c *FlightobjectListCall) ClassId(classId string) *FlightobjectListCall {
  9565  	c.urlParams_.Set("classId", classId)
  9566  	return c
  9567  }
  9568  
  9569  // MaxResults sets the optional parameter "maxResults": Identifies the max
  9570  // number of results returned by a list. All results are returned if
  9571  // `maxResults` isn't defined.
  9572  func (c *FlightobjectListCall) MaxResults(maxResults int64) *FlightobjectListCall {
  9573  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
  9574  	return c
  9575  }
  9576  
  9577  // Token sets the optional parameter "token": Used to get the next set of
  9578  // results if `maxResults` is specified, but more than `maxResults` objects are
  9579  // available in a list. For example, if you have a list of 200 objects and you
  9580  // call list with `maxResults` set to 20, list will return the first 20 objects
  9581  // and a token. Call list again with `maxResults` set to 20 and the token to
  9582  // get the next 20 objects.
  9583  func (c *FlightobjectListCall) Token(token string) *FlightobjectListCall {
  9584  	c.urlParams_.Set("token", token)
  9585  	return c
  9586  }
  9587  
  9588  // Fields allows partial responses to be retrieved. See
  9589  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9590  // details.
  9591  func (c *FlightobjectListCall) Fields(s ...googleapi.Field) *FlightobjectListCall {
  9592  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9593  	return c
  9594  }
  9595  
  9596  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9597  // object's ETag matches the given value. This is useful for getting updates
  9598  // only after the object has changed since the last request.
  9599  func (c *FlightobjectListCall) IfNoneMatch(entityTag string) *FlightobjectListCall {
  9600  	c.ifNoneMatch_ = entityTag
  9601  	return c
  9602  }
  9603  
  9604  // Context sets the context to be used in this call's Do method.
  9605  func (c *FlightobjectListCall) Context(ctx context.Context) *FlightobjectListCall {
  9606  	c.ctx_ = ctx
  9607  	return c
  9608  }
  9609  
  9610  // Header returns a http.Header that can be modified by the caller to add
  9611  // headers to the request.
  9612  func (c *FlightobjectListCall) Header() http.Header {
  9613  	if c.header_ == nil {
  9614  		c.header_ = make(http.Header)
  9615  	}
  9616  	return c.header_
  9617  }
  9618  
  9619  func (c *FlightobjectListCall) doRequest(alt string) (*http.Response, error) {
  9620  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9621  	if c.ifNoneMatch_ != "" {
  9622  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9623  	}
  9624  	var body io.Reader = nil
  9625  	c.urlParams_.Set("alt", alt)
  9626  	c.urlParams_.Set("prettyPrint", "false")
  9627  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject")
  9628  	urls += "?" + c.urlParams_.Encode()
  9629  	req, err := http.NewRequest("GET", urls, body)
  9630  	if err != nil {
  9631  		return nil, err
  9632  	}
  9633  	req.Header = reqHeaders
  9634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9635  }
  9636  
  9637  // Do executes the "walletobjects.flightobject.list" call.
  9638  // Any non-2xx status code is an error. Response headers are in either
  9639  // *FlightObjectListResponse.ServerResponse.Header or (if a response was
  9640  // returned at all) in error.(*googleapi.Error).Header. Use
  9641  // googleapi.IsNotModified to check whether the returned error was because
  9642  // http.StatusNotModified was returned.
  9643  func (c *FlightobjectListCall) Do(opts ...googleapi.CallOption) (*FlightObjectListResponse, error) {
  9644  	gensupport.SetOptions(c.urlParams_, opts...)
  9645  	res, err := c.doRequest("json")
  9646  	if res != nil && res.StatusCode == http.StatusNotModified {
  9647  		if res.Body != nil {
  9648  			res.Body.Close()
  9649  		}
  9650  		return nil, gensupport.WrapError(&googleapi.Error{
  9651  			Code:   res.StatusCode,
  9652  			Header: res.Header,
  9653  		})
  9654  	}
  9655  	if err != nil {
  9656  		return nil, err
  9657  	}
  9658  	defer googleapi.CloseBody(res)
  9659  	if err := googleapi.CheckResponse(res); err != nil {
  9660  		return nil, gensupport.WrapError(err)
  9661  	}
  9662  	ret := &FlightObjectListResponse{
  9663  		ServerResponse: googleapi.ServerResponse{
  9664  			Header:         res.Header,
  9665  			HTTPStatusCode: res.StatusCode,
  9666  		},
  9667  	}
  9668  	target := &ret
  9669  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9670  		return nil, err
  9671  	}
  9672  	return ret, nil
  9673  }
  9674  
  9675  type FlightobjectPatchCall struct {
  9676  	s            *Service
  9677  	resourceId   string
  9678  	flightobject *FlightObject
  9679  	urlParams_   gensupport.URLParams
  9680  	ctx_         context.Context
  9681  	header_      http.Header
  9682  }
  9683  
  9684  // Patch: Updates the flight object referenced by the given object ID. This
  9685  // method supports patch semantics.
  9686  //
  9687  //   - resourceId: The unique identifier for an object. This ID must be unique
  9688  //     across all objects from an issuer. This value should follow the format
  9689  //     issuer ID. identifier where the former is issued by Google and latter is
  9690  //     chosen by you. Your unique identifier should only include alphanumeric
  9691  //     characters, '.', '_', or '-'.
  9692  func (r *FlightobjectService) Patch(resourceId string, flightobject *FlightObject) *FlightobjectPatchCall {
  9693  	c := &FlightobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9694  	c.resourceId = resourceId
  9695  	c.flightobject = flightobject
  9696  	return c
  9697  }
  9698  
  9699  // Fields allows partial responses to be retrieved. See
  9700  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9701  // details.
  9702  func (c *FlightobjectPatchCall) Fields(s ...googleapi.Field) *FlightobjectPatchCall {
  9703  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9704  	return c
  9705  }
  9706  
  9707  // Context sets the context to be used in this call's Do method.
  9708  func (c *FlightobjectPatchCall) Context(ctx context.Context) *FlightobjectPatchCall {
  9709  	c.ctx_ = ctx
  9710  	return c
  9711  }
  9712  
  9713  // Header returns a http.Header that can be modified by the caller to add
  9714  // headers to the request.
  9715  func (c *FlightobjectPatchCall) Header() http.Header {
  9716  	if c.header_ == nil {
  9717  		c.header_ = make(http.Header)
  9718  	}
  9719  	return c.header_
  9720  }
  9721  
  9722  func (c *FlightobjectPatchCall) doRequest(alt string) (*http.Response, error) {
  9723  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9724  	var body io.Reader = nil
  9725  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightobject)
  9726  	if err != nil {
  9727  		return nil, err
  9728  	}
  9729  	c.urlParams_.Set("alt", alt)
  9730  	c.urlParams_.Set("prettyPrint", "false")
  9731  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject/{resourceId}")
  9732  	urls += "?" + c.urlParams_.Encode()
  9733  	req, err := http.NewRequest("PATCH", urls, body)
  9734  	if err != nil {
  9735  		return nil, err
  9736  	}
  9737  	req.Header = reqHeaders
  9738  	googleapi.Expand(req.URL, map[string]string{
  9739  		"resourceId": c.resourceId,
  9740  	})
  9741  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9742  }
  9743  
  9744  // Do executes the "walletobjects.flightobject.patch" call.
  9745  // Any non-2xx status code is an error. Response headers are in either
  9746  // *FlightObject.ServerResponse.Header or (if a response was returned at all)
  9747  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9748  // whether the returned error was because http.StatusNotModified was returned.
  9749  func (c *FlightobjectPatchCall) Do(opts ...googleapi.CallOption) (*FlightObject, error) {
  9750  	gensupport.SetOptions(c.urlParams_, opts...)
  9751  	res, err := c.doRequest("json")
  9752  	if res != nil && res.StatusCode == http.StatusNotModified {
  9753  		if res.Body != nil {
  9754  			res.Body.Close()
  9755  		}
  9756  		return nil, gensupport.WrapError(&googleapi.Error{
  9757  			Code:   res.StatusCode,
  9758  			Header: res.Header,
  9759  		})
  9760  	}
  9761  	if err != nil {
  9762  		return nil, err
  9763  	}
  9764  	defer googleapi.CloseBody(res)
  9765  	if err := googleapi.CheckResponse(res); err != nil {
  9766  		return nil, gensupport.WrapError(err)
  9767  	}
  9768  	ret := &FlightObject{
  9769  		ServerResponse: googleapi.ServerResponse{
  9770  			Header:         res.Header,
  9771  			HTTPStatusCode: res.StatusCode,
  9772  		},
  9773  	}
  9774  	target := &ret
  9775  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9776  		return nil, err
  9777  	}
  9778  	return ret, nil
  9779  }
  9780  
  9781  type FlightobjectUpdateCall struct {
  9782  	s            *Service
  9783  	resourceId   string
  9784  	flightobject *FlightObject
  9785  	urlParams_   gensupport.URLParams
  9786  	ctx_         context.Context
  9787  	header_      http.Header
  9788  }
  9789  
  9790  // Update: Updates the flight object referenced by the given object ID.
  9791  //
  9792  //   - resourceId: The unique identifier for an object. This ID must be unique
  9793  //     across all objects from an issuer. This value should follow the format
  9794  //     issuer ID. identifier where the former is issued by Google and latter is
  9795  //     chosen by you. Your unique identifier should only include alphanumeric
  9796  //     characters, '.', '_', or '-'.
  9797  func (r *FlightobjectService) Update(resourceId string, flightobject *FlightObject) *FlightobjectUpdateCall {
  9798  	c := &FlightobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9799  	c.resourceId = resourceId
  9800  	c.flightobject = flightobject
  9801  	return c
  9802  }
  9803  
  9804  // Fields allows partial responses to be retrieved. See
  9805  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9806  // details.
  9807  func (c *FlightobjectUpdateCall) Fields(s ...googleapi.Field) *FlightobjectUpdateCall {
  9808  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9809  	return c
  9810  }
  9811  
  9812  // Context sets the context to be used in this call's Do method.
  9813  func (c *FlightobjectUpdateCall) Context(ctx context.Context) *FlightobjectUpdateCall {
  9814  	c.ctx_ = ctx
  9815  	return c
  9816  }
  9817  
  9818  // Header returns a http.Header that can be modified by the caller to add
  9819  // headers to the request.
  9820  func (c *FlightobjectUpdateCall) Header() http.Header {
  9821  	if c.header_ == nil {
  9822  		c.header_ = make(http.Header)
  9823  	}
  9824  	return c.header_
  9825  }
  9826  
  9827  func (c *FlightobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
  9828  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9829  	var body io.Reader = nil
  9830  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.flightobject)
  9831  	if err != nil {
  9832  		return nil, err
  9833  	}
  9834  	c.urlParams_.Set("alt", alt)
  9835  	c.urlParams_.Set("prettyPrint", "false")
  9836  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/flightObject/{resourceId}")
  9837  	urls += "?" + c.urlParams_.Encode()
  9838  	req, err := http.NewRequest("PUT", urls, body)
  9839  	if err != nil {
  9840  		return nil, err
  9841  	}
  9842  	req.Header = reqHeaders
  9843  	googleapi.Expand(req.URL, map[string]string{
  9844  		"resourceId": c.resourceId,
  9845  	})
  9846  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9847  }
  9848  
  9849  // Do executes the "walletobjects.flightobject.update" call.
  9850  // Any non-2xx status code is an error. Response headers are in either
  9851  // *FlightObject.ServerResponse.Header or (if a response was returned at all)
  9852  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9853  // whether the returned error was because http.StatusNotModified was returned.
  9854  func (c *FlightobjectUpdateCall) Do(opts ...googleapi.CallOption) (*FlightObject, error) {
  9855  	gensupport.SetOptions(c.urlParams_, opts...)
  9856  	res, err := c.doRequest("json")
  9857  	if res != nil && res.StatusCode == http.StatusNotModified {
  9858  		if res.Body != nil {
  9859  			res.Body.Close()
  9860  		}
  9861  		return nil, gensupport.WrapError(&googleapi.Error{
  9862  			Code:   res.StatusCode,
  9863  			Header: res.Header,
  9864  		})
  9865  	}
  9866  	if err != nil {
  9867  		return nil, err
  9868  	}
  9869  	defer googleapi.CloseBody(res)
  9870  	if err := googleapi.CheckResponse(res); err != nil {
  9871  		return nil, gensupport.WrapError(err)
  9872  	}
  9873  	ret := &FlightObject{
  9874  		ServerResponse: googleapi.ServerResponse{
  9875  			Header:         res.Header,
  9876  			HTTPStatusCode: res.StatusCode,
  9877  		},
  9878  	}
  9879  	target := &ret
  9880  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9881  		return nil, err
  9882  	}
  9883  	return ret, nil
  9884  }
  9885  
  9886  type GenericclassAddmessageCall struct {
  9887  	s                 *Service
  9888  	resourceId        string
  9889  	addmessagerequest *AddMessageRequest
  9890  	urlParams_        gensupport.URLParams
  9891  	ctx_              context.Context
  9892  	header_           http.Header
  9893  }
  9894  
  9895  // Addmessage: Adds a message to the generic class referenced by the given
  9896  // class ID.
  9897  //
  9898  //   - resourceId: The unique identifier for a class. This ID must be unique
  9899  //     across all classes from an issuer. This value should follow the format
  9900  //     issuer ID. identifier where the former is issued by Google and latter is
  9901  //     chosen by you. Your unique identifier should only include alphanumeric
  9902  //     characters, '.', '_', or '-'.
  9903  func (r *GenericclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GenericclassAddmessageCall {
  9904  	c := &GenericclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9905  	c.resourceId = resourceId
  9906  	c.addmessagerequest = addmessagerequest
  9907  	return c
  9908  }
  9909  
  9910  // Fields allows partial responses to be retrieved. See
  9911  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9912  // details.
  9913  func (c *GenericclassAddmessageCall) Fields(s ...googleapi.Field) *GenericclassAddmessageCall {
  9914  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9915  	return c
  9916  }
  9917  
  9918  // Context sets the context to be used in this call's Do method.
  9919  func (c *GenericclassAddmessageCall) Context(ctx context.Context) *GenericclassAddmessageCall {
  9920  	c.ctx_ = ctx
  9921  	return c
  9922  }
  9923  
  9924  // Header returns a http.Header that can be modified by the caller to add
  9925  // headers to the request.
  9926  func (c *GenericclassAddmessageCall) Header() http.Header {
  9927  	if c.header_ == nil {
  9928  		c.header_ = make(http.Header)
  9929  	}
  9930  	return c.header_
  9931  }
  9932  
  9933  func (c *GenericclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
  9934  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9935  	var body io.Reader = nil
  9936  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
  9937  	if err != nil {
  9938  		return nil, err
  9939  	}
  9940  	c.urlParams_.Set("alt", alt)
  9941  	c.urlParams_.Set("prettyPrint", "false")
  9942  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass/{resourceId}/addMessage")
  9943  	urls += "?" + c.urlParams_.Encode()
  9944  	req, err := http.NewRequest("POST", urls, body)
  9945  	if err != nil {
  9946  		return nil, err
  9947  	}
  9948  	req.Header = reqHeaders
  9949  	googleapi.Expand(req.URL, map[string]string{
  9950  		"resourceId": c.resourceId,
  9951  	})
  9952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9953  }
  9954  
  9955  // Do executes the "walletobjects.genericclass.addmessage" call.
  9956  // Any non-2xx status code is an error. Response headers are in either
  9957  // *GenericClassAddMessageResponse.ServerResponse.Header or (if a response was
  9958  // returned at all) in error.(*googleapi.Error).Header. Use
  9959  // googleapi.IsNotModified to check whether the returned error was because
  9960  // http.StatusNotModified was returned.
  9961  func (c *GenericclassAddmessageCall) Do(opts ...googleapi.CallOption) (*GenericClassAddMessageResponse, error) {
  9962  	gensupport.SetOptions(c.urlParams_, opts...)
  9963  	res, err := c.doRequest("json")
  9964  	if res != nil && res.StatusCode == http.StatusNotModified {
  9965  		if res.Body != nil {
  9966  			res.Body.Close()
  9967  		}
  9968  		return nil, gensupport.WrapError(&googleapi.Error{
  9969  			Code:   res.StatusCode,
  9970  			Header: res.Header,
  9971  		})
  9972  	}
  9973  	if err != nil {
  9974  		return nil, err
  9975  	}
  9976  	defer googleapi.CloseBody(res)
  9977  	if err := googleapi.CheckResponse(res); err != nil {
  9978  		return nil, gensupport.WrapError(err)
  9979  	}
  9980  	ret := &GenericClassAddMessageResponse{
  9981  		ServerResponse: googleapi.ServerResponse{
  9982  			Header:         res.Header,
  9983  			HTTPStatusCode: res.StatusCode,
  9984  		},
  9985  	}
  9986  	target := &ret
  9987  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9988  		return nil, err
  9989  	}
  9990  	return ret, nil
  9991  }
  9992  
  9993  type GenericclassGetCall struct {
  9994  	s            *Service
  9995  	resourceId   string
  9996  	urlParams_   gensupport.URLParams
  9997  	ifNoneMatch_ string
  9998  	ctx_         context.Context
  9999  	header_      http.Header
 10000  }
 10001  
 10002  // Get: Returns the generic class with the given class ID.
 10003  //
 10004  //   - resourceId: The unique identifier for a class. This ID must be unique
 10005  //     across all classes from an issuer. This value needs to follow the format
 10006  //     `issuerID.identifier` where `issuerID` is issued by Google and
 10007  //     `identifier` is chosen by you. The unique identifier can only include
 10008  //     alphanumeric characters, `.`, `_`, or `-`.
 10009  func (r *GenericclassService) Get(resourceId string) *GenericclassGetCall {
 10010  	c := &GenericclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10011  	c.resourceId = resourceId
 10012  	return c
 10013  }
 10014  
 10015  // Fields allows partial responses to be retrieved. See
 10016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10017  // details.
 10018  func (c *GenericclassGetCall) Fields(s ...googleapi.Field) *GenericclassGetCall {
 10019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10020  	return c
 10021  }
 10022  
 10023  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10024  // object's ETag matches the given value. This is useful for getting updates
 10025  // only after the object has changed since the last request.
 10026  func (c *GenericclassGetCall) IfNoneMatch(entityTag string) *GenericclassGetCall {
 10027  	c.ifNoneMatch_ = entityTag
 10028  	return c
 10029  }
 10030  
 10031  // Context sets the context to be used in this call's Do method.
 10032  func (c *GenericclassGetCall) Context(ctx context.Context) *GenericclassGetCall {
 10033  	c.ctx_ = ctx
 10034  	return c
 10035  }
 10036  
 10037  // Header returns a http.Header that can be modified by the caller to add
 10038  // headers to the request.
 10039  func (c *GenericclassGetCall) Header() http.Header {
 10040  	if c.header_ == nil {
 10041  		c.header_ = make(http.Header)
 10042  	}
 10043  	return c.header_
 10044  }
 10045  
 10046  func (c *GenericclassGetCall) doRequest(alt string) (*http.Response, error) {
 10047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10048  	if c.ifNoneMatch_ != "" {
 10049  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10050  	}
 10051  	var body io.Reader = nil
 10052  	c.urlParams_.Set("alt", alt)
 10053  	c.urlParams_.Set("prettyPrint", "false")
 10054  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass/{resourceId}")
 10055  	urls += "?" + c.urlParams_.Encode()
 10056  	req, err := http.NewRequest("GET", urls, body)
 10057  	if err != nil {
 10058  		return nil, err
 10059  	}
 10060  	req.Header = reqHeaders
 10061  	googleapi.Expand(req.URL, map[string]string{
 10062  		"resourceId": c.resourceId,
 10063  	})
 10064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10065  }
 10066  
 10067  // Do executes the "walletobjects.genericclass.get" call.
 10068  // Any non-2xx status code is an error. Response headers are in either
 10069  // *GenericClass.ServerResponse.Header or (if a response was returned at all)
 10070  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10071  // whether the returned error was because http.StatusNotModified was returned.
 10072  func (c *GenericclassGetCall) Do(opts ...googleapi.CallOption) (*GenericClass, error) {
 10073  	gensupport.SetOptions(c.urlParams_, opts...)
 10074  	res, err := c.doRequest("json")
 10075  	if res != nil && res.StatusCode == http.StatusNotModified {
 10076  		if res.Body != nil {
 10077  			res.Body.Close()
 10078  		}
 10079  		return nil, gensupport.WrapError(&googleapi.Error{
 10080  			Code:   res.StatusCode,
 10081  			Header: res.Header,
 10082  		})
 10083  	}
 10084  	if err != nil {
 10085  		return nil, err
 10086  	}
 10087  	defer googleapi.CloseBody(res)
 10088  	if err := googleapi.CheckResponse(res); err != nil {
 10089  		return nil, gensupport.WrapError(err)
 10090  	}
 10091  	ret := &GenericClass{
 10092  		ServerResponse: googleapi.ServerResponse{
 10093  			Header:         res.Header,
 10094  			HTTPStatusCode: res.StatusCode,
 10095  		},
 10096  	}
 10097  	target := &ret
 10098  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10099  		return nil, err
 10100  	}
 10101  	return ret, nil
 10102  }
 10103  
 10104  type GenericclassInsertCall struct {
 10105  	s            *Service
 10106  	genericclass *GenericClass
 10107  	urlParams_   gensupport.URLParams
 10108  	ctx_         context.Context
 10109  	header_      http.Header
 10110  }
 10111  
 10112  // Insert: Inserts a generic class with the given ID and properties.
 10113  func (r *GenericclassService) Insert(genericclass *GenericClass) *GenericclassInsertCall {
 10114  	c := &GenericclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10115  	c.genericclass = genericclass
 10116  	return c
 10117  }
 10118  
 10119  // Fields allows partial responses to be retrieved. See
 10120  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10121  // details.
 10122  func (c *GenericclassInsertCall) Fields(s ...googleapi.Field) *GenericclassInsertCall {
 10123  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10124  	return c
 10125  }
 10126  
 10127  // Context sets the context to be used in this call's Do method.
 10128  func (c *GenericclassInsertCall) Context(ctx context.Context) *GenericclassInsertCall {
 10129  	c.ctx_ = ctx
 10130  	return c
 10131  }
 10132  
 10133  // Header returns a http.Header that can be modified by the caller to add
 10134  // headers to the request.
 10135  func (c *GenericclassInsertCall) Header() http.Header {
 10136  	if c.header_ == nil {
 10137  		c.header_ = make(http.Header)
 10138  	}
 10139  	return c.header_
 10140  }
 10141  
 10142  func (c *GenericclassInsertCall) doRequest(alt string) (*http.Response, error) {
 10143  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10144  	var body io.Reader = nil
 10145  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericclass)
 10146  	if err != nil {
 10147  		return nil, err
 10148  	}
 10149  	c.urlParams_.Set("alt", alt)
 10150  	c.urlParams_.Set("prettyPrint", "false")
 10151  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass")
 10152  	urls += "?" + c.urlParams_.Encode()
 10153  	req, err := http.NewRequest("POST", urls, body)
 10154  	if err != nil {
 10155  		return nil, err
 10156  	}
 10157  	req.Header = reqHeaders
 10158  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10159  }
 10160  
 10161  // Do executes the "walletobjects.genericclass.insert" call.
 10162  // Any non-2xx status code is an error. Response headers are in either
 10163  // *GenericClass.ServerResponse.Header or (if a response was returned at all)
 10164  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10165  // whether the returned error was because http.StatusNotModified was returned.
 10166  func (c *GenericclassInsertCall) Do(opts ...googleapi.CallOption) (*GenericClass, error) {
 10167  	gensupport.SetOptions(c.urlParams_, opts...)
 10168  	res, err := c.doRequest("json")
 10169  	if res != nil && res.StatusCode == http.StatusNotModified {
 10170  		if res.Body != nil {
 10171  			res.Body.Close()
 10172  		}
 10173  		return nil, gensupport.WrapError(&googleapi.Error{
 10174  			Code:   res.StatusCode,
 10175  			Header: res.Header,
 10176  		})
 10177  	}
 10178  	if err != nil {
 10179  		return nil, err
 10180  	}
 10181  	defer googleapi.CloseBody(res)
 10182  	if err := googleapi.CheckResponse(res); err != nil {
 10183  		return nil, gensupport.WrapError(err)
 10184  	}
 10185  	ret := &GenericClass{
 10186  		ServerResponse: googleapi.ServerResponse{
 10187  			Header:         res.Header,
 10188  			HTTPStatusCode: res.StatusCode,
 10189  		},
 10190  	}
 10191  	target := &ret
 10192  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10193  		return nil, err
 10194  	}
 10195  	return ret, nil
 10196  }
 10197  
 10198  type GenericclassListCall struct {
 10199  	s            *Service
 10200  	urlParams_   gensupport.URLParams
 10201  	ifNoneMatch_ string
 10202  	ctx_         context.Context
 10203  	header_      http.Header
 10204  }
 10205  
 10206  // List: Returns a list of all generic classes for a given issuer ID.
 10207  func (r *GenericclassService) List() *GenericclassListCall {
 10208  	c := &GenericclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10209  	return c
 10210  }
 10211  
 10212  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
 10213  // authorized to list classes.
 10214  func (c *GenericclassListCall) IssuerId(issuerId int64) *GenericclassListCall {
 10215  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
 10216  	return c
 10217  }
 10218  
 10219  // MaxResults sets the optional parameter "maxResults": Identifies the max
 10220  // number of results returned by a list. All results are returned if
 10221  // `maxResults` isn't defined.
 10222  func (c *GenericclassListCall) MaxResults(maxResults int64) *GenericclassListCall {
 10223  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 10224  	return c
 10225  }
 10226  
 10227  // Token sets the optional parameter "token": Used to get the next set of
 10228  // results if `maxResults` is specified, but more than `maxResults` classes are
 10229  // available in a list. For example, if you have a list of 200 classes and you
 10230  // call list with `maxResults` set to 20, list will return the first 20 classes
 10231  // and a token. Call list again with `maxResults` set to 20 and the token to
 10232  // get the next 20 classes.
 10233  func (c *GenericclassListCall) Token(token string) *GenericclassListCall {
 10234  	c.urlParams_.Set("token", token)
 10235  	return c
 10236  }
 10237  
 10238  // Fields allows partial responses to be retrieved. See
 10239  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10240  // details.
 10241  func (c *GenericclassListCall) Fields(s ...googleapi.Field) *GenericclassListCall {
 10242  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10243  	return c
 10244  }
 10245  
 10246  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10247  // object's ETag matches the given value. This is useful for getting updates
 10248  // only after the object has changed since the last request.
 10249  func (c *GenericclassListCall) IfNoneMatch(entityTag string) *GenericclassListCall {
 10250  	c.ifNoneMatch_ = entityTag
 10251  	return c
 10252  }
 10253  
 10254  // Context sets the context to be used in this call's Do method.
 10255  func (c *GenericclassListCall) Context(ctx context.Context) *GenericclassListCall {
 10256  	c.ctx_ = ctx
 10257  	return c
 10258  }
 10259  
 10260  // Header returns a http.Header that can be modified by the caller to add
 10261  // headers to the request.
 10262  func (c *GenericclassListCall) Header() http.Header {
 10263  	if c.header_ == nil {
 10264  		c.header_ = make(http.Header)
 10265  	}
 10266  	return c.header_
 10267  }
 10268  
 10269  func (c *GenericclassListCall) doRequest(alt string) (*http.Response, error) {
 10270  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10271  	if c.ifNoneMatch_ != "" {
 10272  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10273  	}
 10274  	var body io.Reader = nil
 10275  	c.urlParams_.Set("alt", alt)
 10276  	c.urlParams_.Set("prettyPrint", "false")
 10277  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass")
 10278  	urls += "?" + c.urlParams_.Encode()
 10279  	req, err := http.NewRequest("GET", urls, body)
 10280  	if err != nil {
 10281  		return nil, err
 10282  	}
 10283  	req.Header = reqHeaders
 10284  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10285  }
 10286  
 10287  // Do executes the "walletobjects.genericclass.list" call.
 10288  // Any non-2xx status code is an error. Response headers are in either
 10289  // *GenericClassListResponse.ServerResponse.Header or (if a response was
 10290  // returned at all) in error.(*googleapi.Error).Header. Use
 10291  // googleapi.IsNotModified to check whether the returned error was because
 10292  // http.StatusNotModified was returned.
 10293  func (c *GenericclassListCall) Do(opts ...googleapi.CallOption) (*GenericClassListResponse, error) {
 10294  	gensupport.SetOptions(c.urlParams_, opts...)
 10295  	res, err := c.doRequest("json")
 10296  	if res != nil && res.StatusCode == http.StatusNotModified {
 10297  		if res.Body != nil {
 10298  			res.Body.Close()
 10299  		}
 10300  		return nil, gensupport.WrapError(&googleapi.Error{
 10301  			Code:   res.StatusCode,
 10302  			Header: res.Header,
 10303  		})
 10304  	}
 10305  	if err != nil {
 10306  		return nil, err
 10307  	}
 10308  	defer googleapi.CloseBody(res)
 10309  	if err := googleapi.CheckResponse(res); err != nil {
 10310  		return nil, gensupport.WrapError(err)
 10311  	}
 10312  	ret := &GenericClassListResponse{
 10313  		ServerResponse: googleapi.ServerResponse{
 10314  			Header:         res.Header,
 10315  			HTTPStatusCode: res.StatusCode,
 10316  		},
 10317  	}
 10318  	target := &ret
 10319  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10320  		return nil, err
 10321  	}
 10322  	return ret, nil
 10323  }
 10324  
 10325  type GenericclassPatchCall struct {
 10326  	s            *Service
 10327  	resourceId   string
 10328  	genericclass *GenericClass
 10329  	urlParams_   gensupport.URLParams
 10330  	ctx_         context.Context
 10331  	header_      http.Header
 10332  }
 10333  
 10334  // Patch: Updates the generic class referenced by the given class ID. This
 10335  // method supports patch semantics.
 10336  //
 10337  //   - resourceId: The unique identifier for a class. This ID must be unique
 10338  //     across all classes from an issuer. This value needs to follow the format
 10339  //     `issuerID.identifier` where `issuerID` is issued by Google and
 10340  //     `identifier` is chosen by you. The unique identifier can only include
 10341  //     alphanumeric characters, `.`, `_`, or `-`.
 10342  func (r *GenericclassService) Patch(resourceId string, genericclass *GenericClass) *GenericclassPatchCall {
 10343  	c := &GenericclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10344  	c.resourceId = resourceId
 10345  	c.genericclass = genericclass
 10346  	return c
 10347  }
 10348  
 10349  // Fields allows partial responses to be retrieved. See
 10350  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10351  // details.
 10352  func (c *GenericclassPatchCall) Fields(s ...googleapi.Field) *GenericclassPatchCall {
 10353  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10354  	return c
 10355  }
 10356  
 10357  // Context sets the context to be used in this call's Do method.
 10358  func (c *GenericclassPatchCall) Context(ctx context.Context) *GenericclassPatchCall {
 10359  	c.ctx_ = ctx
 10360  	return c
 10361  }
 10362  
 10363  // Header returns a http.Header that can be modified by the caller to add
 10364  // headers to the request.
 10365  func (c *GenericclassPatchCall) Header() http.Header {
 10366  	if c.header_ == nil {
 10367  		c.header_ = make(http.Header)
 10368  	}
 10369  	return c.header_
 10370  }
 10371  
 10372  func (c *GenericclassPatchCall) doRequest(alt string) (*http.Response, error) {
 10373  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10374  	var body io.Reader = nil
 10375  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericclass)
 10376  	if err != nil {
 10377  		return nil, err
 10378  	}
 10379  	c.urlParams_.Set("alt", alt)
 10380  	c.urlParams_.Set("prettyPrint", "false")
 10381  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass/{resourceId}")
 10382  	urls += "?" + c.urlParams_.Encode()
 10383  	req, err := http.NewRequest("PATCH", urls, body)
 10384  	if err != nil {
 10385  		return nil, err
 10386  	}
 10387  	req.Header = reqHeaders
 10388  	googleapi.Expand(req.URL, map[string]string{
 10389  		"resourceId": c.resourceId,
 10390  	})
 10391  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10392  }
 10393  
 10394  // Do executes the "walletobjects.genericclass.patch" call.
 10395  // Any non-2xx status code is an error. Response headers are in either
 10396  // *GenericClass.ServerResponse.Header or (if a response was returned at all)
 10397  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10398  // whether the returned error was because http.StatusNotModified was returned.
 10399  func (c *GenericclassPatchCall) Do(opts ...googleapi.CallOption) (*GenericClass, error) {
 10400  	gensupport.SetOptions(c.urlParams_, opts...)
 10401  	res, err := c.doRequest("json")
 10402  	if res != nil && res.StatusCode == http.StatusNotModified {
 10403  		if res.Body != nil {
 10404  			res.Body.Close()
 10405  		}
 10406  		return nil, gensupport.WrapError(&googleapi.Error{
 10407  			Code:   res.StatusCode,
 10408  			Header: res.Header,
 10409  		})
 10410  	}
 10411  	if err != nil {
 10412  		return nil, err
 10413  	}
 10414  	defer googleapi.CloseBody(res)
 10415  	if err := googleapi.CheckResponse(res); err != nil {
 10416  		return nil, gensupport.WrapError(err)
 10417  	}
 10418  	ret := &GenericClass{
 10419  		ServerResponse: googleapi.ServerResponse{
 10420  			Header:         res.Header,
 10421  			HTTPStatusCode: res.StatusCode,
 10422  		},
 10423  	}
 10424  	target := &ret
 10425  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10426  		return nil, err
 10427  	}
 10428  	return ret, nil
 10429  }
 10430  
 10431  type GenericclassUpdateCall struct {
 10432  	s            *Service
 10433  	resourceId   string
 10434  	genericclass *GenericClass
 10435  	urlParams_   gensupport.URLParams
 10436  	ctx_         context.Context
 10437  	header_      http.Header
 10438  }
 10439  
 10440  // Update: Updates the Generic class referenced by the given class ID.
 10441  //
 10442  //   - resourceId: The unique identifier for a class. This ID must be unique
 10443  //     across all classes from an issuer. This value needs to follow the format
 10444  //     `issuerID.identifier` where `issuerID` is issued by Google and
 10445  //     `identifier` is chosen by you. The unique identifier can only include
 10446  //     alphanumeric characters, `.`, `_`, or `-`.
 10447  func (r *GenericclassService) Update(resourceId string, genericclass *GenericClass) *GenericclassUpdateCall {
 10448  	c := &GenericclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10449  	c.resourceId = resourceId
 10450  	c.genericclass = genericclass
 10451  	return c
 10452  }
 10453  
 10454  // Fields allows partial responses to be retrieved. See
 10455  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10456  // details.
 10457  func (c *GenericclassUpdateCall) Fields(s ...googleapi.Field) *GenericclassUpdateCall {
 10458  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10459  	return c
 10460  }
 10461  
 10462  // Context sets the context to be used in this call's Do method.
 10463  func (c *GenericclassUpdateCall) Context(ctx context.Context) *GenericclassUpdateCall {
 10464  	c.ctx_ = ctx
 10465  	return c
 10466  }
 10467  
 10468  // Header returns a http.Header that can be modified by the caller to add
 10469  // headers to the request.
 10470  func (c *GenericclassUpdateCall) Header() http.Header {
 10471  	if c.header_ == nil {
 10472  		c.header_ = make(http.Header)
 10473  	}
 10474  	return c.header_
 10475  }
 10476  
 10477  func (c *GenericclassUpdateCall) doRequest(alt string) (*http.Response, error) {
 10478  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10479  	var body io.Reader = nil
 10480  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericclass)
 10481  	if err != nil {
 10482  		return nil, err
 10483  	}
 10484  	c.urlParams_.Set("alt", alt)
 10485  	c.urlParams_.Set("prettyPrint", "false")
 10486  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericClass/{resourceId}")
 10487  	urls += "?" + c.urlParams_.Encode()
 10488  	req, err := http.NewRequest("PUT", urls, body)
 10489  	if err != nil {
 10490  		return nil, err
 10491  	}
 10492  	req.Header = reqHeaders
 10493  	googleapi.Expand(req.URL, map[string]string{
 10494  		"resourceId": c.resourceId,
 10495  	})
 10496  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10497  }
 10498  
 10499  // Do executes the "walletobjects.genericclass.update" call.
 10500  // Any non-2xx status code is an error. Response headers are in either
 10501  // *GenericClass.ServerResponse.Header or (if a response was returned at all)
 10502  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10503  // whether the returned error was because http.StatusNotModified was returned.
 10504  func (c *GenericclassUpdateCall) Do(opts ...googleapi.CallOption) (*GenericClass, error) {
 10505  	gensupport.SetOptions(c.urlParams_, opts...)
 10506  	res, err := c.doRequest("json")
 10507  	if res != nil && res.StatusCode == http.StatusNotModified {
 10508  		if res.Body != nil {
 10509  			res.Body.Close()
 10510  		}
 10511  		return nil, gensupport.WrapError(&googleapi.Error{
 10512  			Code:   res.StatusCode,
 10513  			Header: res.Header,
 10514  		})
 10515  	}
 10516  	if err != nil {
 10517  		return nil, err
 10518  	}
 10519  	defer googleapi.CloseBody(res)
 10520  	if err := googleapi.CheckResponse(res); err != nil {
 10521  		return nil, gensupport.WrapError(err)
 10522  	}
 10523  	ret := &GenericClass{
 10524  		ServerResponse: googleapi.ServerResponse{
 10525  			Header:         res.Header,
 10526  			HTTPStatusCode: res.StatusCode,
 10527  		},
 10528  	}
 10529  	target := &ret
 10530  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10531  		return nil, err
 10532  	}
 10533  	return ret, nil
 10534  }
 10535  
 10536  type GenericobjectAddmessageCall struct {
 10537  	s                 *Service
 10538  	resourceId        string
 10539  	addmessagerequest *AddMessageRequest
 10540  	urlParams_        gensupport.URLParams
 10541  	ctx_              context.Context
 10542  	header_           http.Header
 10543  }
 10544  
 10545  // Addmessage: Adds a message to the generic object referenced by the given
 10546  // object ID.
 10547  //
 10548  //   - resourceId: The unique identifier for an object. This ID must be unique
 10549  //     across all classes from an issuer. This value should follow the format
 10550  //     issuer ID. identifier where the former is issued by Google and latter is
 10551  //     chosen by you. Your unique identifier should only include alphanumeric
 10552  //     characters, '.', '_', or '-'.
 10553  func (r *GenericobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GenericobjectAddmessageCall {
 10554  	c := &GenericobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10555  	c.resourceId = resourceId
 10556  	c.addmessagerequest = addmessagerequest
 10557  	return c
 10558  }
 10559  
 10560  // Fields allows partial responses to be retrieved. See
 10561  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10562  // details.
 10563  func (c *GenericobjectAddmessageCall) Fields(s ...googleapi.Field) *GenericobjectAddmessageCall {
 10564  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10565  	return c
 10566  }
 10567  
 10568  // Context sets the context to be used in this call's Do method.
 10569  func (c *GenericobjectAddmessageCall) Context(ctx context.Context) *GenericobjectAddmessageCall {
 10570  	c.ctx_ = ctx
 10571  	return c
 10572  }
 10573  
 10574  // Header returns a http.Header that can be modified by the caller to add
 10575  // headers to the request.
 10576  func (c *GenericobjectAddmessageCall) Header() http.Header {
 10577  	if c.header_ == nil {
 10578  		c.header_ = make(http.Header)
 10579  	}
 10580  	return c.header_
 10581  }
 10582  
 10583  func (c *GenericobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
 10584  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10585  	var body io.Reader = nil
 10586  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 10587  	if err != nil {
 10588  		return nil, err
 10589  	}
 10590  	c.urlParams_.Set("alt", alt)
 10591  	c.urlParams_.Set("prettyPrint", "false")
 10592  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject/{resourceId}/addMessage")
 10593  	urls += "?" + c.urlParams_.Encode()
 10594  	req, err := http.NewRequest("POST", urls, body)
 10595  	if err != nil {
 10596  		return nil, err
 10597  	}
 10598  	req.Header = reqHeaders
 10599  	googleapi.Expand(req.URL, map[string]string{
 10600  		"resourceId": c.resourceId,
 10601  	})
 10602  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10603  }
 10604  
 10605  // Do executes the "walletobjects.genericobject.addmessage" call.
 10606  // Any non-2xx status code is an error. Response headers are in either
 10607  // *GenericObjectAddMessageResponse.ServerResponse.Header or (if a response was
 10608  // returned at all) in error.(*googleapi.Error).Header. Use
 10609  // googleapi.IsNotModified to check whether the returned error was because
 10610  // http.StatusNotModified was returned.
 10611  func (c *GenericobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*GenericObjectAddMessageResponse, error) {
 10612  	gensupport.SetOptions(c.urlParams_, opts...)
 10613  	res, err := c.doRequest("json")
 10614  	if res != nil && res.StatusCode == http.StatusNotModified {
 10615  		if res.Body != nil {
 10616  			res.Body.Close()
 10617  		}
 10618  		return nil, gensupport.WrapError(&googleapi.Error{
 10619  			Code:   res.StatusCode,
 10620  			Header: res.Header,
 10621  		})
 10622  	}
 10623  	if err != nil {
 10624  		return nil, err
 10625  	}
 10626  	defer googleapi.CloseBody(res)
 10627  	if err := googleapi.CheckResponse(res); err != nil {
 10628  		return nil, gensupport.WrapError(err)
 10629  	}
 10630  	ret := &GenericObjectAddMessageResponse{
 10631  		ServerResponse: googleapi.ServerResponse{
 10632  			Header:         res.Header,
 10633  			HTTPStatusCode: res.StatusCode,
 10634  		},
 10635  	}
 10636  	target := &ret
 10637  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10638  		return nil, err
 10639  	}
 10640  	return ret, nil
 10641  }
 10642  
 10643  type GenericobjectGetCall struct {
 10644  	s            *Service
 10645  	resourceId   string
 10646  	urlParams_   gensupport.URLParams
 10647  	ifNoneMatch_ string
 10648  	ctx_         context.Context
 10649  	header_      http.Header
 10650  }
 10651  
 10652  // Get: Returns the generic object with the given object ID.
 10653  //
 10654  //   - resourceId: The unique identifier for an object. This ID must be unique
 10655  //     across all objects from an issuer. This value needs to follow the format
 10656  //     `issuerID.identifier` where `issuerID` is issued by Google and
 10657  //     `identifier` is chosen by you. The unique identifier can only include
 10658  //     alphanumeric characters, `.`, `_`, or `-`.
 10659  func (r *GenericobjectService) Get(resourceId string) *GenericobjectGetCall {
 10660  	c := &GenericobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10661  	c.resourceId = resourceId
 10662  	return c
 10663  }
 10664  
 10665  // Fields allows partial responses to be retrieved. See
 10666  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10667  // details.
 10668  func (c *GenericobjectGetCall) Fields(s ...googleapi.Field) *GenericobjectGetCall {
 10669  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10670  	return c
 10671  }
 10672  
 10673  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10674  // object's ETag matches the given value. This is useful for getting updates
 10675  // only after the object has changed since the last request.
 10676  func (c *GenericobjectGetCall) IfNoneMatch(entityTag string) *GenericobjectGetCall {
 10677  	c.ifNoneMatch_ = entityTag
 10678  	return c
 10679  }
 10680  
 10681  // Context sets the context to be used in this call's Do method.
 10682  func (c *GenericobjectGetCall) Context(ctx context.Context) *GenericobjectGetCall {
 10683  	c.ctx_ = ctx
 10684  	return c
 10685  }
 10686  
 10687  // Header returns a http.Header that can be modified by the caller to add
 10688  // headers to the request.
 10689  func (c *GenericobjectGetCall) Header() http.Header {
 10690  	if c.header_ == nil {
 10691  		c.header_ = make(http.Header)
 10692  	}
 10693  	return c.header_
 10694  }
 10695  
 10696  func (c *GenericobjectGetCall) doRequest(alt string) (*http.Response, error) {
 10697  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10698  	if c.ifNoneMatch_ != "" {
 10699  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10700  	}
 10701  	var body io.Reader = nil
 10702  	c.urlParams_.Set("alt", alt)
 10703  	c.urlParams_.Set("prettyPrint", "false")
 10704  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject/{resourceId}")
 10705  	urls += "?" + c.urlParams_.Encode()
 10706  	req, err := http.NewRequest("GET", urls, body)
 10707  	if err != nil {
 10708  		return nil, err
 10709  	}
 10710  	req.Header = reqHeaders
 10711  	googleapi.Expand(req.URL, map[string]string{
 10712  		"resourceId": c.resourceId,
 10713  	})
 10714  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10715  }
 10716  
 10717  // Do executes the "walletobjects.genericobject.get" call.
 10718  // Any non-2xx status code is an error. Response headers are in either
 10719  // *GenericObject.ServerResponse.Header or (if a response was returned at all)
 10720  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10721  // whether the returned error was because http.StatusNotModified was returned.
 10722  func (c *GenericobjectGetCall) Do(opts ...googleapi.CallOption) (*GenericObject, error) {
 10723  	gensupport.SetOptions(c.urlParams_, opts...)
 10724  	res, err := c.doRequest("json")
 10725  	if res != nil && res.StatusCode == http.StatusNotModified {
 10726  		if res.Body != nil {
 10727  			res.Body.Close()
 10728  		}
 10729  		return nil, gensupport.WrapError(&googleapi.Error{
 10730  			Code:   res.StatusCode,
 10731  			Header: res.Header,
 10732  		})
 10733  	}
 10734  	if err != nil {
 10735  		return nil, err
 10736  	}
 10737  	defer googleapi.CloseBody(res)
 10738  	if err := googleapi.CheckResponse(res); err != nil {
 10739  		return nil, gensupport.WrapError(err)
 10740  	}
 10741  	ret := &GenericObject{
 10742  		ServerResponse: googleapi.ServerResponse{
 10743  			Header:         res.Header,
 10744  			HTTPStatusCode: res.StatusCode,
 10745  		},
 10746  	}
 10747  	target := &ret
 10748  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10749  		return nil, err
 10750  	}
 10751  	return ret, nil
 10752  }
 10753  
 10754  type GenericobjectInsertCall struct {
 10755  	s             *Service
 10756  	genericobject *GenericObject
 10757  	urlParams_    gensupport.URLParams
 10758  	ctx_          context.Context
 10759  	header_       http.Header
 10760  }
 10761  
 10762  // Insert: Inserts a generic object with the given ID and properties.
 10763  func (r *GenericobjectService) Insert(genericobject *GenericObject) *GenericobjectInsertCall {
 10764  	c := &GenericobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10765  	c.genericobject = genericobject
 10766  	return c
 10767  }
 10768  
 10769  // Fields allows partial responses to be retrieved. See
 10770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10771  // details.
 10772  func (c *GenericobjectInsertCall) Fields(s ...googleapi.Field) *GenericobjectInsertCall {
 10773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10774  	return c
 10775  }
 10776  
 10777  // Context sets the context to be used in this call's Do method.
 10778  func (c *GenericobjectInsertCall) Context(ctx context.Context) *GenericobjectInsertCall {
 10779  	c.ctx_ = ctx
 10780  	return c
 10781  }
 10782  
 10783  // Header returns a http.Header that can be modified by the caller to add
 10784  // headers to the request.
 10785  func (c *GenericobjectInsertCall) Header() http.Header {
 10786  	if c.header_ == nil {
 10787  		c.header_ = make(http.Header)
 10788  	}
 10789  	return c.header_
 10790  }
 10791  
 10792  func (c *GenericobjectInsertCall) doRequest(alt string) (*http.Response, error) {
 10793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10794  	var body io.Reader = nil
 10795  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericobject)
 10796  	if err != nil {
 10797  		return nil, err
 10798  	}
 10799  	c.urlParams_.Set("alt", alt)
 10800  	c.urlParams_.Set("prettyPrint", "false")
 10801  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject")
 10802  	urls += "?" + c.urlParams_.Encode()
 10803  	req, err := http.NewRequest("POST", urls, body)
 10804  	if err != nil {
 10805  		return nil, err
 10806  	}
 10807  	req.Header = reqHeaders
 10808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10809  }
 10810  
 10811  // Do executes the "walletobjects.genericobject.insert" call.
 10812  // Any non-2xx status code is an error. Response headers are in either
 10813  // *GenericObject.ServerResponse.Header or (if a response was returned at all)
 10814  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10815  // whether the returned error was because http.StatusNotModified was returned.
 10816  func (c *GenericobjectInsertCall) Do(opts ...googleapi.CallOption) (*GenericObject, error) {
 10817  	gensupport.SetOptions(c.urlParams_, opts...)
 10818  	res, err := c.doRequest("json")
 10819  	if res != nil && res.StatusCode == http.StatusNotModified {
 10820  		if res.Body != nil {
 10821  			res.Body.Close()
 10822  		}
 10823  		return nil, gensupport.WrapError(&googleapi.Error{
 10824  			Code:   res.StatusCode,
 10825  			Header: res.Header,
 10826  		})
 10827  	}
 10828  	if err != nil {
 10829  		return nil, err
 10830  	}
 10831  	defer googleapi.CloseBody(res)
 10832  	if err := googleapi.CheckResponse(res); err != nil {
 10833  		return nil, gensupport.WrapError(err)
 10834  	}
 10835  	ret := &GenericObject{
 10836  		ServerResponse: googleapi.ServerResponse{
 10837  			Header:         res.Header,
 10838  			HTTPStatusCode: res.StatusCode,
 10839  		},
 10840  	}
 10841  	target := &ret
 10842  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10843  		return nil, err
 10844  	}
 10845  	return ret, nil
 10846  }
 10847  
 10848  type GenericobjectListCall struct {
 10849  	s            *Service
 10850  	urlParams_   gensupport.URLParams
 10851  	ifNoneMatch_ string
 10852  	ctx_         context.Context
 10853  	header_      http.Header
 10854  }
 10855  
 10856  // List: Returns a list of all generic objects for a given issuer ID.
 10857  func (r *GenericobjectService) List() *GenericobjectListCall {
 10858  	c := &GenericobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10859  	return c
 10860  }
 10861  
 10862  // ClassId sets the optional parameter "classId": The ID of the class whose
 10863  // objects will be listed.
 10864  func (c *GenericobjectListCall) ClassId(classId string) *GenericobjectListCall {
 10865  	c.urlParams_.Set("classId", classId)
 10866  	return c
 10867  }
 10868  
 10869  // MaxResults sets the optional parameter "maxResults": Identifies the max
 10870  // number of results returned by a list. All results are returned if
 10871  // `maxResults` isn't defined.
 10872  func (c *GenericobjectListCall) MaxResults(maxResults int64) *GenericobjectListCall {
 10873  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 10874  	return c
 10875  }
 10876  
 10877  // Token sets the optional parameter "token": Used to get the next set of
 10878  // results if `maxResults` is specified, but more than `maxResults` objects are
 10879  // available in a list. For example, if you have a list of 200 objects and you
 10880  // call list with `maxResults` set to 20, list will return the first 20 objects
 10881  // and a token. Call list again with `maxResults` set to 20 and the token to
 10882  // get the next 20 objects.
 10883  func (c *GenericobjectListCall) Token(token string) *GenericobjectListCall {
 10884  	c.urlParams_.Set("token", token)
 10885  	return c
 10886  }
 10887  
 10888  // Fields allows partial responses to be retrieved. See
 10889  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10890  // details.
 10891  func (c *GenericobjectListCall) Fields(s ...googleapi.Field) *GenericobjectListCall {
 10892  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10893  	return c
 10894  }
 10895  
 10896  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10897  // object's ETag matches the given value. This is useful for getting updates
 10898  // only after the object has changed since the last request.
 10899  func (c *GenericobjectListCall) IfNoneMatch(entityTag string) *GenericobjectListCall {
 10900  	c.ifNoneMatch_ = entityTag
 10901  	return c
 10902  }
 10903  
 10904  // Context sets the context to be used in this call's Do method.
 10905  func (c *GenericobjectListCall) Context(ctx context.Context) *GenericobjectListCall {
 10906  	c.ctx_ = ctx
 10907  	return c
 10908  }
 10909  
 10910  // Header returns a http.Header that can be modified by the caller to add
 10911  // headers to the request.
 10912  func (c *GenericobjectListCall) Header() http.Header {
 10913  	if c.header_ == nil {
 10914  		c.header_ = make(http.Header)
 10915  	}
 10916  	return c.header_
 10917  }
 10918  
 10919  func (c *GenericobjectListCall) doRequest(alt string) (*http.Response, error) {
 10920  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10921  	if c.ifNoneMatch_ != "" {
 10922  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10923  	}
 10924  	var body io.Reader = nil
 10925  	c.urlParams_.Set("alt", alt)
 10926  	c.urlParams_.Set("prettyPrint", "false")
 10927  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject")
 10928  	urls += "?" + c.urlParams_.Encode()
 10929  	req, err := http.NewRequest("GET", urls, body)
 10930  	if err != nil {
 10931  		return nil, err
 10932  	}
 10933  	req.Header = reqHeaders
 10934  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10935  }
 10936  
 10937  // Do executes the "walletobjects.genericobject.list" call.
 10938  // Any non-2xx status code is an error. Response headers are in either
 10939  // *GenericObjectListResponse.ServerResponse.Header or (if a response was
 10940  // returned at all) in error.(*googleapi.Error).Header. Use
 10941  // googleapi.IsNotModified to check whether the returned error was because
 10942  // http.StatusNotModified was returned.
 10943  func (c *GenericobjectListCall) Do(opts ...googleapi.CallOption) (*GenericObjectListResponse, error) {
 10944  	gensupport.SetOptions(c.urlParams_, opts...)
 10945  	res, err := c.doRequest("json")
 10946  	if res != nil && res.StatusCode == http.StatusNotModified {
 10947  		if res.Body != nil {
 10948  			res.Body.Close()
 10949  		}
 10950  		return nil, gensupport.WrapError(&googleapi.Error{
 10951  			Code:   res.StatusCode,
 10952  			Header: res.Header,
 10953  		})
 10954  	}
 10955  	if err != nil {
 10956  		return nil, err
 10957  	}
 10958  	defer googleapi.CloseBody(res)
 10959  	if err := googleapi.CheckResponse(res); err != nil {
 10960  		return nil, gensupport.WrapError(err)
 10961  	}
 10962  	ret := &GenericObjectListResponse{
 10963  		ServerResponse: googleapi.ServerResponse{
 10964  			Header:         res.Header,
 10965  			HTTPStatusCode: res.StatusCode,
 10966  		},
 10967  	}
 10968  	target := &ret
 10969  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10970  		return nil, err
 10971  	}
 10972  	return ret, nil
 10973  }
 10974  
 10975  type GenericobjectPatchCall struct {
 10976  	s             *Service
 10977  	resourceId    string
 10978  	genericobject *GenericObject
 10979  	urlParams_    gensupport.URLParams
 10980  	ctx_          context.Context
 10981  	header_       http.Header
 10982  }
 10983  
 10984  // Patch: Updates the generic object referenced by the given object ID. This
 10985  // method supports patch semantics.
 10986  //
 10987  //   - resourceId: The unique identifier for an object. This ID must be unique
 10988  //     across all objects from an issuer. This value needs to follow the format
 10989  //     `issuerID.identifier` where `issuerID` is issued by Google and
 10990  //     `identifier` is chosen by you. The unique identifier can only include
 10991  //     alphanumeric characters, `.`, `_`, or `-`.
 10992  func (r *GenericobjectService) Patch(resourceId string, genericobject *GenericObject) *GenericobjectPatchCall {
 10993  	c := &GenericobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10994  	c.resourceId = resourceId
 10995  	c.genericobject = genericobject
 10996  	return c
 10997  }
 10998  
 10999  // Fields allows partial responses to be retrieved. See
 11000  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11001  // details.
 11002  func (c *GenericobjectPatchCall) Fields(s ...googleapi.Field) *GenericobjectPatchCall {
 11003  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11004  	return c
 11005  }
 11006  
 11007  // Context sets the context to be used in this call's Do method.
 11008  func (c *GenericobjectPatchCall) Context(ctx context.Context) *GenericobjectPatchCall {
 11009  	c.ctx_ = ctx
 11010  	return c
 11011  }
 11012  
 11013  // Header returns a http.Header that can be modified by the caller to add
 11014  // headers to the request.
 11015  func (c *GenericobjectPatchCall) Header() http.Header {
 11016  	if c.header_ == nil {
 11017  		c.header_ = make(http.Header)
 11018  	}
 11019  	return c.header_
 11020  }
 11021  
 11022  func (c *GenericobjectPatchCall) doRequest(alt string) (*http.Response, error) {
 11023  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11024  	var body io.Reader = nil
 11025  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericobject)
 11026  	if err != nil {
 11027  		return nil, err
 11028  	}
 11029  	c.urlParams_.Set("alt", alt)
 11030  	c.urlParams_.Set("prettyPrint", "false")
 11031  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject/{resourceId}")
 11032  	urls += "?" + c.urlParams_.Encode()
 11033  	req, err := http.NewRequest("PATCH", urls, body)
 11034  	if err != nil {
 11035  		return nil, err
 11036  	}
 11037  	req.Header = reqHeaders
 11038  	googleapi.Expand(req.URL, map[string]string{
 11039  		"resourceId": c.resourceId,
 11040  	})
 11041  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11042  }
 11043  
 11044  // Do executes the "walletobjects.genericobject.patch" call.
 11045  // Any non-2xx status code is an error. Response headers are in either
 11046  // *GenericObject.ServerResponse.Header or (if a response was returned at all)
 11047  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11048  // whether the returned error was because http.StatusNotModified was returned.
 11049  func (c *GenericobjectPatchCall) Do(opts ...googleapi.CallOption) (*GenericObject, error) {
 11050  	gensupport.SetOptions(c.urlParams_, opts...)
 11051  	res, err := c.doRequest("json")
 11052  	if res != nil && res.StatusCode == http.StatusNotModified {
 11053  		if res.Body != nil {
 11054  			res.Body.Close()
 11055  		}
 11056  		return nil, gensupport.WrapError(&googleapi.Error{
 11057  			Code:   res.StatusCode,
 11058  			Header: res.Header,
 11059  		})
 11060  	}
 11061  	if err != nil {
 11062  		return nil, err
 11063  	}
 11064  	defer googleapi.CloseBody(res)
 11065  	if err := googleapi.CheckResponse(res); err != nil {
 11066  		return nil, gensupport.WrapError(err)
 11067  	}
 11068  	ret := &GenericObject{
 11069  		ServerResponse: googleapi.ServerResponse{
 11070  			Header:         res.Header,
 11071  			HTTPStatusCode: res.StatusCode,
 11072  		},
 11073  	}
 11074  	target := &ret
 11075  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11076  		return nil, err
 11077  	}
 11078  	return ret, nil
 11079  }
 11080  
 11081  type GenericobjectUpdateCall struct {
 11082  	s             *Service
 11083  	resourceId    string
 11084  	genericobject *GenericObject
 11085  	urlParams_    gensupport.URLParams
 11086  	ctx_          context.Context
 11087  	header_       http.Header
 11088  }
 11089  
 11090  // Update: Updates the generic object referenced by the given object ID.
 11091  //
 11092  //   - resourceId: The unique identifier for an object. This ID must be unique
 11093  //     across all objects from an issuer. This value needs to follow the format
 11094  //     `issuerID.identifier` where `issuerID` is issued by Google and
 11095  //     `identifier` is chosen by you. The unique identifier can only include
 11096  //     alphanumeric characters, `.`, `_`, or `-`.
 11097  func (r *GenericobjectService) Update(resourceId string, genericobject *GenericObject) *GenericobjectUpdateCall {
 11098  	c := &GenericobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11099  	c.resourceId = resourceId
 11100  	c.genericobject = genericobject
 11101  	return c
 11102  }
 11103  
 11104  // Fields allows partial responses to be retrieved. See
 11105  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11106  // details.
 11107  func (c *GenericobjectUpdateCall) Fields(s ...googleapi.Field) *GenericobjectUpdateCall {
 11108  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11109  	return c
 11110  }
 11111  
 11112  // Context sets the context to be used in this call's Do method.
 11113  func (c *GenericobjectUpdateCall) Context(ctx context.Context) *GenericobjectUpdateCall {
 11114  	c.ctx_ = ctx
 11115  	return c
 11116  }
 11117  
 11118  // Header returns a http.Header that can be modified by the caller to add
 11119  // headers to the request.
 11120  func (c *GenericobjectUpdateCall) Header() http.Header {
 11121  	if c.header_ == nil {
 11122  		c.header_ = make(http.Header)
 11123  	}
 11124  	return c.header_
 11125  }
 11126  
 11127  func (c *GenericobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
 11128  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11129  	var body io.Reader = nil
 11130  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.genericobject)
 11131  	if err != nil {
 11132  		return nil, err
 11133  	}
 11134  	c.urlParams_.Set("alt", alt)
 11135  	c.urlParams_.Set("prettyPrint", "false")
 11136  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/genericObject/{resourceId}")
 11137  	urls += "?" + c.urlParams_.Encode()
 11138  	req, err := http.NewRequest("PUT", urls, body)
 11139  	if err != nil {
 11140  		return nil, err
 11141  	}
 11142  	req.Header = reqHeaders
 11143  	googleapi.Expand(req.URL, map[string]string{
 11144  		"resourceId": c.resourceId,
 11145  	})
 11146  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11147  }
 11148  
 11149  // Do executes the "walletobjects.genericobject.update" call.
 11150  // Any non-2xx status code is an error. Response headers are in either
 11151  // *GenericObject.ServerResponse.Header or (if a response was returned at all)
 11152  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11153  // whether the returned error was because http.StatusNotModified was returned.
 11154  func (c *GenericobjectUpdateCall) Do(opts ...googleapi.CallOption) (*GenericObject, error) {
 11155  	gensupport.SetOptions(c.urlParams_, opts...)
 11156  	res, err := c.doRequest("json")
 11157  	if res != nil && res.StatusCode == http.StatusNotModified {
 11158  		if res.Body != nil {
 11159  			res.Body.Close()
 11160  		}
 11161  		return nil, gensupport.WrapError(&googleapi.Error{
 11162  			Code:   res.StatusCode,
 11163  			Header: res.Header,
 11164  		})
 11165  	}
 11166  	if err != nil {
 11167  		return nil, err
 11168  	}
 11169  	defer googleapi.CloseBody(res)
 11170  	if err := googleapi.CheckResponse(res); err != nil {
 11171  		return nil, gensupport.WrapError(err)
 11172  	}
 11173  	ret := &GenericObject{
 11174  		ServerResponse: googleapi.ServerResponse{
 11175  			Header:         res.Header,
 11176  			HTTPStatusCode: res.StatusCode,
 11177  		},
 11178  	}
 11179  	target := &ret
 11180  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11181  		return nil, err
 11182  	}
 11183  	return ret, nil
 11184  }
 11185  
 11186  type GiftcardclassAddmessageCall struct {
 11187  	s                 *Service
 11188  	resourceId        string
 11189  	addmessagerequest *AddMessageRequest
 11190  	urlParams_        gensupport.URLParams
 11191  	ctx_              context.Context
 11192  	header_           http.Header
 11193  }
 11194  
 11195  // Addmessage: Adds a message to the gift card class referenced by the given
 11196  // class ID.
 11197  //
 11198  //   - resourceId: The unique identifier for a class. This ID must be unique
 11199  //     across all classes from an issuer. This value should follow the format
 11200  //     issuer ID. identifier where the former is issued by Google and latter is
 11201  //     chosen by you. Your unique identifier should only include alphanumeric
 11202  //     characters, '.', '_', or '-'.
 11203  func (r *GiftcardclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardclassAddmessageCall {
 11204  	c := &GiftcardclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11205  	c.resourceId = resourceId
 11206  	c.addmessagerequest = addmessagerequest
 11207  	return c
 11208  }
 11209  
 11210  // Fields allows partial responses to be retrieved. See
 11211  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11212  // details.
 11213  func (c *GiftcardclassAddmessageCall) Fields(s ...googleapi.Field) *GiftcardclassAddmessageCall {
 11214  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11215  	return c
 11216  }
 11217  
 11218  // Context sets the context to be used in this call's Do method.
 11219  func (c *GiftcardclassAddmessageCall) Context(ctx context.Context) *GiftcardclassAddmessageCall {
 11220  	c.ctx_ = ctx
 11221  	return c
 11222  }
 11223  
 11224  // Header returns a http.Header that can be modified by the caller to add
 11225  // headers to the request.
 11226  func (c *GiftcardclassAddmessageCall) Header() http.Header {
 11227  	if c.header_ == nil {
 11228  		c.header_ = make(http.Header)
 11229  	}
 11230  	return c.header_
 11231  }
 11232  
 11233  func (c *GiftcardclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
 11234  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11235  	var body io.Reader = nil
 11236  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 11237  	if err != nil {
 11238  		return nil, err
 11239  	}
 11240  	c.urlParams_.Set("alt", alt)
 11241  	c.urlParams_.Set("prettyPrint", "false")
 11242  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass/{resourceId}/addMessage")
 11243  	urls += "?" + c.urlParams_.Encode()
 11244  	req, err := http.NewRequest("POST", urls, body)
 11245  	if err != nil {
 11246  		return nil, err
 11247  	}
 11248  	req.Header = reqHeaders
 11249  	googleapi.Expand(req.URL, map[string]string{
 11250  		"resourceId": c.resourceId,
 11251  	})
 11252  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11253  }
 11254  
 11255  // Do executes the "walletobjects.giftcardclass.addmessage" call.
 11256  // Any non-2xx status code is an error. Response headers are in either
 11257  // *GiftCardClassAddMessageResponse.ServerResponse.Header or (if a response was
 11258  // returned at all) in error.(*googleapi.Error).Header. Use
 11259  // googleapi.IsNotModified to check whether the returned error was because
 11260  // http.StatusNotModified was returned.
 11261  func (c *GiftcardclassAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardClassAddMessageResponse, error) {
 11262  	gensupport.SetOptions(c.urlParams_, opts...)
 11263  	res, err := c.doRequest("json")
 11264  	if res != nil && res.StatusCode == http.StatusNotModified {
 11265  		if res.Body != nil {
 11266  			res.Body.Close()
 11267  		}
 11268  		return nil, gensupport.WrapError(&googleapi.Error{
 11269  			Code:   res.StatusCode,
 11270  			Header: res.Header,
 11271  		})
 11272  	}
 11273  	if err != nil {
 11274  		return nil, err
 11275  	}
 11276  	defer googleapi.CloseBody(res)
 11277  	if err := googleapi.CheckResponse(res); err != nil {
 11278  		return nil, gensupport.WrapError(err)
 11279  	}
 11280  	ret := &GiftCardClassAddMessageResponse{
 11281  		ServerResponse: googleapi.ServerResponse{
 11282  			Header:         res.Header,
 11283  			HTTPStatusCode: res.StatusCode,
 11284  		},
 11285  	}
 11286  	target := &ret
 11287  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11288  		return nil, err
 11289  	}
 11290  	return ret, nil
 11291  }
 11292  
 11293  type GiftcardclassGetCall struct {
 11294  	s            *Service
 11295  	resourceId   string
 11296  	urlParams_   gensupport.URLParams
 11297  	ifNoneMatch_ string
 11298  	ctx_         context.Context
 11299  	header_      http.Header
 11300  }
 11301  
 11302  // Get: Returns the gift card class with the given class ID.
 11303  //
 11304  //   - resourceId: The unique identifier for a class. This ID must be unique
 11305  //     across all classes from an issuer. This value should follow the format
 11306  //     issuer ID. identifier where the former is issued by Google and latter is
 11307  //     chosen by you. Your unique identifier should only include alphanumeric
 11308  //     characters, '.', '_', or '-'.
 11309  func (r *GiftcardclassService) Get(resourceId string) *GiftcardclassGetCall {
 11310  	c := &GiftcardclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11311  	c.resourceId = resourceId
 11312  	return c
 11313  }
 11314  
 11315  // Fields allows partial responses to be retrieved. See
 11316  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11317  // details.
 11318  func (c *GiftcardclassGetCall) Fields(s ...googleapi.Field) *GiftcardclassGetCall {
 11319  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11320  	return c
 11321  }
 11322  
 11323  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11324  // object's ETag matches the given value. This is useful for getting updates
 11325  // only after the object has changed since the last request.
 11326  func (c *GiftcardclassGetCall) IfNoneMatch(entityTag string) *GiftcardclassGetCall {
 11327  	c.ifNoneMatch_ = entityTag
 11328  	return c
 11329  }
 11330  
 11331  // Context sets the context to be used in this call's Do method.
 11332  func (c *GiftcardclassGetCall) Context(ctx context.Context) *GiftcardclassGetCall {
 11333  	c.ctx_ = ctx
 11334  	return c
 11335  }
 11336  
 11337  // Header returns a http.Header that can be modified by the caller to add
 11338  // headers to the request.
 11339  func (c *GiftcardclassGetCall) Header() http.Header {
 11340  	if c.header_ == nil {
 11341  		c.header_ = make(http.Header)
 11342  	}
 11343  	return c.header_
 11344  }
 11345  
 11346  func (c *GiftcardclassGetCall) doRequest(alt string) (*http.Response, error) {
 11347  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11348  	if c.ifNoneMatch_ != "" {
 11349  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11350  	}
 11351  	var body io.Reader = nil
 11352  	c.urlParams_.Set("alt", alt)
 11353  	c.urlParams_.Set("prettyPrint", "false")
 11354  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass/{resourceId}")
 11355  	urls += "?" + c.urlParams_.Encode()
 11356  	req, err := http.NewRequest("GET", urls, body)
 11357  	if err != nil {
 11358  		return nil, err
 11359  	}
 11360  	req.Header = reqHeaders
 11361  	googleapi.Expand(req.URL, map[string]string{
 11362  		"resourceId": c.resourceId,
 11363  	})
 11364  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11365  }
 11366  
 11367  // Do executes the "walletobjects.giftcardclass.get" call.
 11368  // Any non-2xx status code is an error. Response headers are in either
 11369  // *GiftCardClass.ServerResponse.Header or (if a response was returned at all)
 11370  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11371  // whether the returned error was because http.StatusNotModified was returned.
 11372  func (c *GiftcardclassGetCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error) {
 11373  	gensupport.SetOptions(c.urlParams_, opts...)
 11374  	res, err := c.doRequest("json")
 11375  	if res != nil && res.StatusCode == http.StatusNotModified {
 11376  		if res.Body != nil {
 11377  			res.Body.Close()
 11378  		}
 11379  		return nil, gensupport.WrapError(&googleapi.Error{
 11380  			Code:   res.StatusCode,
 11381  			Header: res.Header,
 11382  		})
 11383  	}
 11384  	if err != nil {
 11385  		return nil, err
 11386  	}
 11387  	defer googleapi.CloseBody(res)
 11388  	if err := googleapi.CheckResponse(res); err != nil {
 11389  		return nil, gensupport.WrapError(err)
 11390  	}
 11391  	ret := &GiftCardClass{
 11392  		ServerResponse: googleapi.ServerResponse{
 11393  			Header:         res.Header,
 11394  			HTTPStatusCode: res.StatusCode,
 11395  		},
 11396  	}
 11397  	target := &ret
 11398  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11399  		return nil, err
 11400  	}
 11401  	return ret, nil
 11402  }
 11403  
 11404  type GiftcardclassInsertCall struct {
 11405  	s             *Service
 11406  	giftcardclass *GiftCardClass
 11407  	urlParams_    gensupport.URLParams
 11408  	ctx_          context.Context
 11409  	header_       http.Header
 11410  }
 11411  
 11412  // Insert: Inserts an gift card class with the given ID and properties.
 11413  func (r *GiftcardclassService) Insert(giftcardclass *GiftCardClass) *GiftcardclassInsertCall {
 11414  	c := &GiftcardclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11415  	c.giftcardclass = giftcardclass
 11416  	return c
 11417  }
 11418  
 11419  // Fields allows partial responses to be retrieved. See
 11420  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11421  // details.
 11422  func (c *GiftcardclassInsertCall) Fields(s ...googleapi.Field) *GiftcardclassInsertCall {
 11423  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11424  	return c
 11425  }
 11426  
 11427  // Context sets the context to be used in this call's Do method.
 11428  func (c *GiftcardclassInsertCall) Context(ctx context.Context) *GiftcardclassInsertCall {
 11429  	c.ctx_ = ctx
 11430  	return c
 11431  }
 11432  
 11433  // Header returns a http.Header that can be modified by the caller to add
 11434  // headers to the request.
 11435  func (c *GiftcardclassInsertCall) Header() http.Header {
 11436  	if c.header_ == nil {
 11437  		c.header_ = make(http.Header)
 11438  	}
 11439  	return c.header_
 11440  }
 11441  
 11442  func (c *GiftcardclassInsertCall) doRequest(alt string) (*http.Response, error) {
 11443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11444  	var body io.Reader = nil
 11445  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardclass)
 11446  	if err != nil {
 11447  		return nil, err
 11448  	}
 11449  	c.urlParams_.Set("alt", alt)
 11450  	c.urlParams_.Set("prettyPrint", "false")
 11451  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass")
 11452  	urls += "?" + c.urlParams_.Encode()
 11453  	req, err := http.NewRequest("POST", urls, body)
 11454  	if err != nil {
 11455  		return nil, err
 11456  	}
 11457  	req.Header = reqHeaders
 11458  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11459  }
 11460  
 11461  // Do executes the "walletobjects.giftcardclass.insert" call.
 11462  // Any non-2xx status code is an error. Response headers are in either
 11463  // *GiftCardClass.ServerResponse.Header or (if a response was returned at all)
 11464  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11465  // whether the returned error was because http.StatusNotModified was returned.
 11466  func (c *GiftcardclassInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error) {
 11467  	gensupport.SetOptions(c.urlParams_, opts...)
 11468  	res, err := c.doRequest("json")
 11469  	if res != nil && res.StatusCode == http.StatusNotModified {
 11470  		if res.Body != nil {
 11471  			res.Body.Close()
 11472  		}
 11473  		return nil, gensupport.WrapError(&googleapi.Error{
 11474  			Code:   res.StatusCode,
 11475  			Header: res.Header,
 11476  		})
 11477  	}
 11478  	if err != nil {
 11479  		return nil, err
 11480  	}
 11481  	defer googleapi.CloseBody(res)
 11482  	if err := googleapi.CheckResponse(res); err != nil {
 11483  		return nil, gensupport.WrapError(err)
 11484  	}
 11485  	ret := &GiftCardClass{
 11486  		ServerResponse: googleapi.ServerResponse{
 11487  			Header:         res.Header,
 11488  			HTTPStatusCode: res.StatusCode,
 11489  		},
 11490  	}
 11491  	target := &ret
 11492  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11493  		return nil, err
 11494  	}
 11495  	return ret, nil
 11496  }
 11497  
 11498  type GiftcardclassListCall struct {
 11499  	s            *Service
 11500  	urlParams_   gensupport.URLParams
 11501  	ifNoneMatch_ string
 11502  	ctx_         context.Context
 11503  	header_      http.Header
 11504  }
 11505  
 11506  // List: Returns a list of all gift card classes for a given issuer ID.
 11507  func (r *GiftcardclassService) List() *GiftcardclassListCall {
 11508  	c := &GiftcardclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11509  	return c
 11510  }
 11511  
 11512  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
 11513  // authorized to list classes.
 11514  func (c *GiftcardclassListCall) IssuerId(issuerId int64) *GiftcardclassListCall {
 11515  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
 11516  	return c
 11517  }
 11518  
 11519  // MaxResults sets the optional parameter "maxResults": Identifies the max
 11520  // number of results returned by a list. All results are returned if
 11521  // `maxResults` isn't defined.
 11522  func (c *GiftcardclassListCall) MaxResults(maxResults int64) *GiftcardclassListCall {
 11523  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 11524  	return c
 11525  }
 11526  
 11527  // Token sets the optional parameter "token": Used to get the next set of
 11528  // results if `maxResults` is specified, but more than `maxResults` classes are
 11529  // available in a list. For example, if you have a list of 200 classes and you
 11530  // call list with `maxResults` set to 20, list will return the first 20 classes
 11531  // and a token. Call list again with `maxResults` set to 20 and the token to
 11532  // get the next 20 classes.
 11533  func (c *GiftcardclassListCall) Token(token string) *GiftcardclassListCall {
 11534  	c.urlParams_.Set("token", token)
 11535  	return c
 11536  }
 11537  
 11538  // Fields allows partial responses to be retrieved. See
 11539  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11540  // details.
 11541  func (c *GiftcardclassListCall) Fields(s ...googleapi.Field) *GiftcardclassListCall {
 11542  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11543  	return c
 11544  }
 11545  
 11546  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11547  // object's ETag matches the given value. This is useful for getting updates
 11548  // only after the object has changed since the last request.
 11549  func (c *GiftcardclassListCall) IfNoneMatch(entityTag string) *GiftcardclassListCall {
 11550  	c.ifNoneMatch_ = entityTag
 11551  	return c
 11552  }
 11553  
 11554  // Context sets the context to be used in this call's Do method.
 11555  func (c *GiftcardclassListCall) Context(ctx context.Context) *GiftcardclassListCall {
 11556  	c.ctx_ = ctx
 11557  	return c
 11558  }
 11559  
 11560  // Header returns a http.Header that can be modified by the caller to add
 11561  // headers to the request.
 11562  func (c *GiftcardclassListCall) Header() http.Header {
 11563  	if c.header_ == nil {
 11564  		c.header_ = make(http.Header)
 11565  	}
 11566  	return c.header_
 11567  }
 11568  
 11569  func (c *GiftcardclassListCall) doRequest(alt string) (*http.Response, error) {
 11570  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11571  	if c.ifNoneMatch_ != "" {
 11572  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11573  	}
 11574  	var body io.Reader = nil
 11575  	c.urlParams_.Set("alt", alt)
 11576  	c.urlParams_.Set("prettyPrint", "false")
 11577  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass")
 11578  	urls += "?" + c.urlParams_.Encode()
 11579  	req, err := http.NewRequest("GET", urls, body)
 11580  	if err != nil {
 11581  		return nil, err
 11582  	}
 11583  	req.Header = reqHeaders
 11584  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11585  }
 11586  
 11587  // Do executes the "walletobjects.giftcardclass.list" call.
 11588  // Any non-2xx status code is an error. Response headers are in either
 11589  // *GiftCardClassListResponse.ServerResponse.Header or (if a response was
 11590  // returned at all) in error.(*googleapi.Error).Header. Use
 11591  // googleapi.IsNotModified to check whether the returned error was because
 11592  // http.StatusNotModified was returned.
 11593  func (c *GiftcardclassListCall) Do(opts ...googleapi.CallOption) (*GiftCardClassListResponse, error) {
 11594  	gensupport.SetOptions(c.urlParams_, opts...)
 11595  	res, err := c.doRequest("json")
 11596  	if res != nil && res.StatusCode == http.StatusNotModified {
 11597  		if res.Body != nil {
 11598  			res.Body.Close()
 11599  		}
 11600  		return nil, gensupport.WrapError(&googleapi.Error{
 11601  			Code:   res.StatusCode,
 11602  			Header: res.Header,
 11603  		})
 11604  	}
 11605  	if err != nil {
 11606  		return nil, err
 11607  	}
 11608  	defer googleapi.CloseBody(res)
 11609  	if err := googleapi.CheckResponse(res); err != nil {
 11610  		return nil, gensupport.WrapError(err)
 11611  	}
 11612  	ret := &GiftCardClassListResponse{
 11613  		ServerResponse: googleapi.ServerResponse{
 11614  			Header:         res.Header,
 11615  			HTTPStatusCode: res.StatusCode,
 11616  		},
 11617  	}
 11618  	target := &ret
 11619  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11620  		return nil, err
 11621  	}
 11622  	return ret, nil
 11623  }
 11624  
 11625  type GiftcardclassPatchCall struct {
 11626  	s             *Service
 11627  	resourceId    string
 11628  	giftcardclass *GiftCardClass
 11629  	urlParams_    gensupport.URLParams
 11630  	ctx_          context.Context
 11631  	header_       http.Header
 11632  }
 11633  
 11634  // Patch: Updates the gift card class referenced by the given class ID. This
 11635  // method supports patch semantics.
 11636  //
 11637  //   - resourceId: The unique identifier for a class. This ID must be unique
 11638  //     across all classes from an issuer. This value should follow the format
 11639  //     issuer ID. identifier where the former is issued by Google and latter is
 11640  //     chosen by you. Your unique identifier should only include alphanumeric
 11641  //     characters, '.', '_', or '-'.
 11642  func (r *GiftcardclassService) Patch(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassPatchCall {
 11643  	c := &GiftcardclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11644  	c.resourceId = resourceId
 11645  	c.giftcardclass = giftcardclass
 11646  	return c
 11647  }
 11648  
 11649  // Fields allows partial responses to be retrieved. See
 11650  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11651  // details.
 11652  func (c *GiftcardclassPatchCall) Fields(s ...googleapi.Field) *GiftcardclassPatchCall {
 11653  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11654  	return c
 11655  }
 11656  
 11657  // Context sets the context to be used in this call's Do method.
 11658  func (c *GiftcardclassPatchCall) Context(ctx context.Context) *GiftcardclassPatchCall {
 11659  	c.ctx_ = ctx
 11660  	return c
 11661  }
 11662  
 11663  // Header returns a http.Header that can be modified by the caller to add
 11664  // headers to the request.
 11665  func (c *GiftcardclassPatchCall) Header() http.Header {
 11666  	if c.header_ == nil {
 11667  		c.header_ = make(http.Header)
 11668  	}
 11669  	return c.header_
 11670  }
 11671  
 11672  func (c *GiftcardclassPatchCall) doRequest(alt string) (*http.Response, error) {
 11673  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11674  	var body io.Reader = nil
 11675  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardclass)
 11676  	if err != nil {
 11677  		return nil, err
 11678  	}
 11679  	c.urlParams_.Set("alt", alt)
 11680  	c.urlParams_.Set("prettyPrint", "false")
 11681  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass/{resourceId}")
 11682  	urls += "?" + c.urlParams_.Encode()
 11683  	req, err := http.NewRequest("PATCH", urls, body)
 11684  	if err != nil {
 11685  		return nil, err
 11686  	}
 11687  	req.Header = reqHeaders
 11688  	googleapi.Expand(req.URL, map[string]string{
 11689  		"resourceId": c.resourceId,
 11690  	})
 11691  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11692  }
 11693  
 11694  // Do executes the "walletobjects.giftcardclass.patch" call.
 11695  // Any non-2xx status code is an error. Response headers are in either
 11696  // *GiftCardClass.ServerResponse.Header or (if a response was returned at all)
 11697  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11698  // whether the returned error was because http.StatusNotModified was returned.
 11699  func (c *GiftcardclassPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error) {
 11700  	gensupport.SetOptions(c.urlParams_, opts...)
 11701  	res, err := c.doRequest("json")
 11702  	if res != nil && res.StatusCode == http.StatusNotModified {
 11703  		if res.Body != nil {
 11704  			res.Body.Close()
 11705  		}
 11706  		return nil, gensupport.WrapError(&googleapi.Error{
 11707  			Code:   res.StatusCode,
 11708  			Header: res.Header,
 11709  		})
 11710  	}
 11711  	if err != nil {
 11712  		return nil, err
 11713  	}
 11714  	defer googleapi.CloseBody(res)
 11715  	if err := googleapi.CheckResponse(res); err != nil {
 11716  		return nil, gensupport.WrapError(err)
 11717  	}
 11718  	ret := &GiftCardClass{
 11719  		ServerResponse: googleapi.ServerResponse{
 11720  			Header:         res.Header,
 11721  			HTTPStatusCode: res.StatusCode,
 11722  		},
 11723  	}
 11724  	target := &ret
 11725  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11726  		return nil, err
 11727  	}
 11728  	return ret, nil
 11729  }
 11730  
 11731  type GiftcardclassUpdateCall struct {
 11732  	s             *Service
 11733  	resourceId    string
 11734  	giftcardclass *GiftCardClass
 11735  	urlParams_    gensupport.URLParams
 11736  	ctx_          context.Context
 11737  	header_       http.Header
 11738  }
 11739  
 11740  // Update: Updates the gift card class referenced by the given class ID.
 11741  //
 11742  //   - resourceId: The unique identifier for a class. This ID must be unique
 11743  //     across all classes from an issuer. This value should follow the format
 11744  //     issuer ID. identifier where the former is issued by Google and latter is
 11745  //     chosen by you. Your unique identifier should only include alphanumeric
 11746  //     characters, '.', '_', or '-'.
 11747  func (r *GiftcardclassService) Update(resourceId string, giftcardclass *GiftCardClass) *GiftcardclassUpdateCall {
 11748  	c := &GiftcardclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11749  	c.resourceId = resourceId
 11750  	c.giftcardclass = giftcardclass
 11751  	return c
 11752  }
 11753  
 11754  // Fields allows partial responses to be retrieved. See
 11755  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11756  // details.
 11757  func (c *GiftcardclassUpdateCall) Fields(s ...googleapi.Field) *GiftcardclassUpdateCall {
 11758  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11759  	return c
 11760  }
 11761  
 11762  // Context sets the context to be used in this call's Do method.
 11763  func (c *GiftcardclassUpdateCall) Context(ctx context.Context) *GiftcardclassUpdateCall {
 11764  	c.ctx_ = ctx
 11765  	return c
 11766  }
 11767  
 11768  // Header returns a http.Header that can be modified by the caller to add
 11769  // headers to the request.
 11770  func (c *GiftcardclassUpdateCall) Header() http.Header {
 11771  	if c.header_ == nil {
 11772  		c.header_ = make(http.Header)
 11773  	}
 11774  	return c.header_
 11775  }
 11776  
 11777  func (c *GiftcardclassUpdateCall) doRequest(alt string) (*http.Response, error) {
 11778  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11779  	var body io.Reader = nil
 11780  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardclass)
 11781  	if err != nil {
 11782  		return nil, err
 11783  	}
 11784  	c.urlParams_.Set("alt", alt)
 11785  	c.urlParams_.Set("prettyPrint", "false")
 11786  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardClass/{resourceId}")
 11787  	urls += "?" + c.urlParams_.Encode()
 11788  	req, err := http.NewRequest("PUT", urls, body)
 11789  	if err != nil {
 11790  		return nil, err
 11791  	}
 11792  	req.Header = reqHeaders
 11793  	googleapi.Expand(req.URL, map[string]string{
 11794  		"resourceId": c.resourceId,
 11795  	})
 11796  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11797  }
 11798  
 11799  // Do executes the "walletobjects.giftcardclass.update" call.
 11800  // Any non-2xx status code is an error. Response headers are in either
 11801  // *GiftCardClass.ServerResponse.Header or (if a response was returned at all)
 11802  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11803  // whether the returned error was because http.StatusNotModified was returned.
 11804  func (c *GiftcardclassUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardClass, error) {
 11805  	gensupport.SetOptions(c.urlParams_, opts...)
 11806  	res, err := c.doRequest("json")
 11807  	if res != nil && res.StatusCode == http.StatusNotModified {
 11808  		if res.Body != nil {
 11809  			res.Body.Close()
 11810  		}
 11811  		return nil, gensupport.WrapError(&googleapi.Error{
 11812  			Code:   res.StatusCode,
 11813  			Header: res.Header,
 11814  		})
 11815  	}
 11816  	if err != nil {
 11817  		return nil, err
 11818  	}
 11819  	defer googleapi.CloseBody(res)
 11820  	if err := googleapi.CheckResponse(res); err != nil {
 11821  		return nil, gensupport.WrapError(err)
 11822  	}
 11823  	ret := &GiftCardClass{
 11824  		ServerResponse: googleapi.ServerResponse{
 11825  			Header:         res.Header,
 11826  			HTTPStatusCode: res.StatusCode,
 11827  		},
 11828  	}
 11829  	target := &ret
 11830  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11831  		return nil, err
 11832  	}
 11833  	return ret, nil
 11834  }
 11835  
 11836  type GiftcardobjectAddmessageCall struct {
 11837  	s                 *Service
 11838  	resourceId        string
 11839  	addmessagerequest *AddMessageRequest
 11840  	urlParams_        gensupport.URLParams
 11841  	ctx_              context.Context
 11842  	header_           http.Header
 11843  }
 11844  
 11845  // Addmessage: Adds a message to the gift card object referenced by the given
 11846  // object ID.
 11847  //
 11848  //   - resourceId: The unique identifier for an object. This ID must be unique
 11849  //     across all objects from an issuer. This value should follow the format
 11850  //     issuer ID. identifier where the former is issued by Google and latter is
 11851  //     chosen by you. Your unique identifier should only include alphanumeric
 11852  //     characters, '.', '_', or '-'.
 11853  func (r *GiftcardobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *GiftcardobjectAddmessageCall {
 11854  	c := &GiftcardobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11855  	c.resourceId = resourceId
 11856  	c.addmessagerequest = addmessagerequest
 11857  	return c
 11858  }
 11859  
 11860  // Fields allows partial responses to be retrieved. See
 11861  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11862  // details.
 11863  func (c *GiftcardobjectAddmessageCall) Fields(s ...googleapi.Field) *GiftcardobjectAddmessageCall {
 11864  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11865  	return c
 11866  }
 11867  
 11868  // Context sets the context to be used in this call's Do method.
 11869  func (c *GiftcardobjectAddmessageCall) Context(ctx context.Context) *GiftcardobjectAddmessageCall {
 11870  	c.ctx_ = ctx
 11871  	return c
 11872  }
 11873  
 11874  // Header returns a http.Header that can be modified by the caller to add
 11875  // headers to the request.
 11876  func (c *GiftcardobjectAddmessageCall) Header() http.Header {
 11877  	if c.header_ == nil {
 11878  		c.header_ = make(http.Header)
 11879  	}
 11880  	return c.header_
 11881  }
 11882  
 11883  func (c *GiftcardobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
 11884  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11885  	var body io.Reader = nil
 11886  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 11887  	if err != nil {
 11888  		return nil, err
 11889  	}
 11890  	c.urlParams_.Set("alt", alt)
 11891  	c.urlParams_.Set("prettyPrint", "false")
 11892  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject/{resourceId}/addMessage")
 11893  	urls += "?" + c.urlParams_.Encode()
 11894  	req, err := http.NewRequest("POST", urls, body)
 11895  	if err != nil {
 11896  		return nil, err
 11897  	}
 11898  	req.Header = reqHeaders
 11899  	googleapi.Expand(req.URL, map[string]string{
 11900  		"resourceId": c.resourceId,
 11901  	})
 11902  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11903  }
 11904  
 11905  // Do executes the "walletobjects.giftcardobject.addmessage" call.
 11906  // Any non-2xx status code is an error. Response headers are in either
 11907  // *GiftCardObjectAddMessageResponse.ServerResponse.Header or (if a response
 11908  // was returned at all) in error.(*googleapi.Error).Header. Use
 11909  // googleapi.IsNotModified to check whether the returned error was because
 11910  // http.StatusNotModified was returned.
 11911  func (c *GiftcardobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectAddMessageResponse, error) {
 11912  	gensupport.SetOptions(c.urlParams_, opts...)
 11913  	res, err := c.doRequest("json")
 11914  	if res != nil && res.StatusCode == http.StatusNotModified {
 11915  		if res.Body != nil {
 11916  			res.Body.Close()
 11917  		}
 11918  		return nil, gensupport.WrapError(&googleapi.Error{
 11919  			Code:   res.StatusCode,
 11920  			Header: res.Header,
 11921  		})
 11922  	}
 11923  	if err != nil {
 11924  		return nil, err
 11925  	}
 11926  	defer googleapi.CloseBody(res)
 11927  	if err := googleapi.CheckResponse(res); err != nil {
 11928  		return nil, gensupport.WrapError(err)
 11929  	}
 11930  	ret := &GiftCardObjectAddMessageResponse{
 11931  		ServerResponse: googleapi.ServerResponse{
 11932  			Header:         res.Header,
 11933  			HTTPStatusCode: res.StatusCode,
 11934  		},
 11935  	}
 11936  	target := &ret
 11937  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11938  		return nil, err
 11939  	}
 11940  	return ret, nil
 11941  }
 11942  
 11943  type GiftcardobjectGetCall struct {
 11944  	s            *Service
 11945  	resourceId   string
 11946  	urlParams_   gensupport.URLParams
 11947  	ifNoneMatch_ string
 11948  	ctx_         context.Context
 11949  	header_      http.Header
 11950  }
 11951  
 11952  // Get: Returns the gift card object with the given object ID.
 11953  //
 11954  //   - resourceId: The unique identifier for an object. This ID must be unique
 11955  //     across all objects from an issuer. This value should follow the format
 11956  //     issuer ID. identifier where the former is issued by Google and latter is
 11957  //     chosen by you. Your unique identifier should only include alphanumeric
 11958  //     characters, '.', '_', or '-'.
 11959  func (r *GiftcardobjectService) Get(resourceId string) *GiftcardobjectGetCall {
 11960  	c := &GiftcardobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11961  	c.resourceId = resourceId
 11962  	return c
 11963  }
 11964  
 11965  // Fields allows partial responses to be retrieved. See
 11966  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11967  // details.
 11968  func (c *GiftcardobjectGetCall) Fields(s ...googleapi.Field) *GiftcardobjectGetCall {
 11969  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11970  	return c
 11971  }
 11972  
 11973  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11974  // object's ETag matches the given value. This is useful for getting updates
 11975  // only after the object has changed since the last request.
 11976  func (c *GiftcardobjectGetCall) IfNoneMatch(entityTag string) *GiftcardobjectGetCall {
 11977  	c.ifNoneMatch_ = entityTag
 11978  	return c
 11979  }
 11980  
 11981  // Context sets the context to be used in this call's Do method.
 11982  func (c *GiftcardobjectGetCall) Context(ctx context.Context) *GiftcardobjectGetCall {
 11983  	c.ctx_ = ctx
 11984  	return c
 11985  }
 11986  
 11987  // Header returns a http.Header that can be modified by the caller to add
 11988  // headers to the request.
 11989  func (c *GiftcardobjectGetCall) Header() http.Header {
 11990  	if c.header_ == nil {
 11991  		c.header_ = make(http.Header)
 11992  	}
 11993  	return c.header_
 11994  }
 11995  
 11996  func (c *GiftcardobjectGetCall) doRequest(alt string) (*http.Response, error) {
 11997  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11998  	if c.ifNoneMatch_ != "" {
 11999  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12000  	}
 12001  	var body io.Reader = nil
 12002  	c.urlParams_.Set("alt", alt)
 12003  	c.urlParams_.Set("prettyPrint", "false")
 12004  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject/{resourceId}")
 12005  	urls += "?" + c.urlParams_.Encode()
 12006  	req, err := http.NewRequest("GET", urls, body)
 12007  	if err != nil {
 12008  		return nil, err
 12009  	}
 12010  	req.Header = reqHeaders
 12011  	googleapi.Expand(req.URL, map[string]string{
 12012  		"resourceId": c.resourceId,
 12013  	})
 12014  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12015  }
 12016  
 12017  // Do executes the "walletobjects.giftcardobject.get" call.
 12018  // Any non-2xx status code is an error. Response headers are in either
 12019  // *GiftCardObject.ServerResponse.Header or (if a response was returned at all)
 12020  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12021  // whether the returned error was because http.StatusNotModified was returned.
 12022  func (c *GiftcardobjectGetCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error) {
 12023  	gensupport.SetOptions(c.urlParams_, opts...)
 12024  	res, err := c.doRequest("json")
 12025  	if res != nil && res.StatusCode == http.StatusNotModified {
 12026  		if res.Body != nil {
 12027  			res.Body.Close()
 12028  		}
 12029  		return nil, gensupport.WrapError(&googleapi.Error{
 12030  			Code:   res.StatusCode,
 12031  			Header: res.Header,
 12032  		})
 12033  	}
 12034  	if err != nil {
 12035  		return nil, err
 12036  	}
 12037  	defer googleapi.CloseBody(res)
 12038  	if err := googleapi.CheckResponse(res); err != nil {
 12039  		return nil, gensupport.WrapError(err)
 12040  	}
 12041  	ret := &GiftCardObject{
 12042  		ServerResponse: googleapi.ServerResponse{
 12043  			Header:         res.Header,
 12044  			HTTPStatusCode: res.StatusCode,
 12045  		},
 12046  	}
 12047  	target := &ret
 12048  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12049  		return nil, err
 12050  	}
 12051  	return ret, nil
 12052  }
 12053  
 12054  type GiftcardobjectInsertCall struct {
 12055  	s              *Service
 12056  	giftcardobject *GiftCardObject
 12057  	urlParams_     gensupport.URLParams
 12058  	ctx_           context.Context
 12059  	header_        http.Header
 12060  }
 12061  
 12062  // Insert: Inserts an gift card object with the given ID and properties.
 12063  func (r *GiftcardobjectService) Insert(giftcardobject *GiftCardObject) *GiftcardobjectInsertCall {
 12064  	c := &GiftcardobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12065  	c.giftcardobject = giftcardobject
 12066  	return c
 12067  }
 12068  
 12069  // Fields allows partial responses to be retrieved. See
 12070  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12071  // details.
 12072  func (c *GiftcardobjectInsertCall) Fields(s ...googleapi.Field) *GiftcardobjectInsertCall {
 12073  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12074  	return c
 12075  }
 12076  
 12077  // Context sets the context to be used in this call's Do method.
 12078  func (c *GiftcardobjectInsertCall) Context(ctx context.Context) *GiftcardobjectInsertCall {
 12079  	c.ctx_ = ctx
 12080  	return c
 12081  }
 12082  
 12083  // Header returns a http.Header that can be modified by the caller to add
 12084  // headers to the request.
 12085  func (c *GiftcardobjectInsertCall) Header() http.Header {
 12086  	if c.header_ == nil {
 12087  		c.header_ = make(http.Header)
 12088  	}
 12089  	return c.header_
 12090  }
 12091  
 12092  func (c *GiftcardobjectInsertCall) doRequest(alt string) (*http.Response, error) {
 12093  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12094  	var body io.Reader = nil
 12095  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardobject)
 12096  	if err != nil {
 12097  		return nil, err
 12098  	}
 12099  	c.urlParams_.Set("alt", alt)
 12100  	c.urlParams_.Set("prettyPrint", "false")
 12101  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject")
 12102  	urls += "?" + c.urlParams_.Encode()
 12103  	req, err := http.NewRequest("POST", urls, body)
 12104  	if err != nil {
 12105  		return nil, err
 12106  	}
 12107  	req.Header = reqHeaders
 12108  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12109  }
 12110  
 12111  // Do executes the "walletobjects.giftcardobject.insert" call.
 12112  // Any non-2xx status code is an error. Response headers are in either
 12113  // *GiftCardObject.ServerResponse.Header or (if a response was returned at all)
 12114  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12115  // whether the returned error was because http.StatusNotModified was returned.
 12116  func (c *GiftcardobjectInsertCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error) {
 12117  	gensupport.SetOptions(c.urlParams_, opts...)
 12118  	res, err := c.doRequest("json")
 12119  	if res != nil && res.StatusCode == http.StatusNotModified {
 12120  		if res.Body != nil {
 12121  			res.Body.Close()
 12122  		}
 12123  		return nil, gensupport.WrapError(&googleapi.Error{
 12124  			Code:   res.StatusCode,
 12125  			Header: res.Header,
 12126  		})
 12127  	}
 12128  	if err != nil {
 12129  		return nil, err
 12130  	}
 12131  	defer googleapi.CloseBody(res)
 12132  	if err := googleapi.CheckResponse(res); err != nil {
 12133  		return nil, gensupport.WrapError(err)
 12134  	}
 12135  	ret := &GiftCardObject{
 12136  		ServerResponse: googleapi.ServerResponse{
 12137  			Header:         res.Header,
 12138  			HTTPStatusCode: res.StatusCode,
 12139  		},
 12140  	}
 12141  	target := &ret
 12142  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12143  		return nil, err
 12144  	}
 12145  	return ret, nil
 12146  }
 12147  
 12148  type GiftcardobjectListCall struct {
 12149  	s            *Service
 12150  	urlParams_   gensupport.URLParams
 12151  	ifNoneMatch_ string
 12152  	ctx_         context.Context
 12153  	header_      http.Header
 12154  }
 12155  
 12156  // List: Returns a list of all gift card objects for a given issuer ID.
 12157  func (r *GiftcardobjectService) List() *GiftcardobjectListCall {
 12158  	c := &GiftcardobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12159  	return c
 12160  }
 12161  
 12162  // ClassId sets the optional parameter "classId": The ID of the class whose
 12163  // objects will be listed.
 12164  func (c *GiftcardobjectListCall) ClassId(classId string) *GiftcardobjectListCall {
 12165  	c.urlParams_.Set("classId", classId)
 12166  	return c
 12167  }
 12168  
 12169  // MaxResults sets the optional parameter "maxResults": Identifies the max
 12170  // number of results returned by a list. All results are returned if
 12171  // `maxResults` isn't defined.
 12172  func (c *GiftcardobjectListCall) MaxResults(maxResults int64) *GiftcardobjectListCall {
 12173  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 12174  	return c
 12175  }
 12176  
 12177  // Token sets the optional parameter "token": Used to get the next set of
 12178  // results if `maxResults` is specified, but more than `maxResults` objects are
 12179  // available in a list. For example, if you have a list of 200 objects and you
 12180  // call list with `maxResults` set to 20, list will return the first 20 objects
 12181  // and a token. Call list again with `maxResults` set to 20 and the token to
 12182  // get the next 20 objects.
 12183  func (c *GiftcardobjectListCall) Token(token string) *GiftcardobjectListCall {
 12184  	c.urlParams_.Set("token", token)
 12185  	return c
 12186  }
 12187  
 12188  // Fields allows partial responses to be retrieved. See
 12189  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12190  // details.
 12191  func (c *GiftcardobjectListCall) Fields(s ...googleapi.Field) *GiftcardobjectListCall {
 12192  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12193  	return c
 12194  }
 12195  
 12196  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12197  // object's ETag matches the given value. This is useful for getting updates
 12198  // only after the object has changed since the last request.
 12199  func (c *GiftcardobjectListCall) IfNoneMatch(entityTag string) *GiftcardobjectListCall {
 12200  	c.ifNoneMatch_ = entityTag
 12201  	return c
 12202  }
 12203  
 12204  // Context sets the context to be used in this call's Do method.
 12205  func (c *GiftcardobjectListCall) Context(ctx context.Context) *GiftcardobjectListCall {
 12206  	c.ctx_ = ctx
 12207  	return c
 12208  }
 12209  
 12210  // Header returns a http.Header that can be modified by the caller to add
 12211  // headers to the request.
 12212  func (c *GiftcardobjectListCall) Header() http.Header {
 12213  	if c.header_ == nil {
 12214  		c.header_ = make(http.Header)
 12215  	}
 12216  	return c.header_
 12217  }
 12218  
 12219  func (c *GiftcardobjectListCall) doRequest(alt string) (*http.Response, error) {
 12220  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12221  	if c.ifNoneMatch_ != "" {
 12222  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12223  	}
 12224  	var body io.Reader = nil
 12225  	c.urlParams_.Set("alt", alt)
 12226  	c.urlParams_.Set("prettyPrint", "false")
 12227  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject")
 12228  	urls += "?" + c.urlParams_.Encode()
 12229  	req, err := http.NewRequest("GET", urls, body)
 12230  	if err != nil {
 12231  		return nil, err
 12232  	}
 12233  	req.Header = reqHeaders
 12234  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12235  }
 12236  
 12237  // Do executes the "walletobjects.giftcardobject.list" call.
 12238  // Any non-2xx status code is an error. Response headers are in either
 12239  // *GiftCardObjectListResponse.ServerResponse.Header or (if a response was
 12240  // returned at all) in error.(*googleapi.Error).Header. Use
 12241  // googleapi.IsNotModified to check whether the returned error was because
 12242  // http.StatusNotModified was returned.
 12243  func (c *GiftcardobjectListCall) Do(opts ...googleapi.CallOption) (*GiftCardObjectListResponse, error) {
 12244  	gensupport.SetOptions(c.urlParams_, opts...)
 12245  	res, err := c.doRequest("json")
 12246  	if res != nil && res.StatusCode == http.StatusNotModified {
 12247  		if res.Body != nil {
 12248  			res.Body.Close()
 12249  		}
 12250  		return nil, gensupport.WrapError(&googleapi.Error{
 12251  			Code:   res.StatusCode,
 12252  			Header: res.Header,
 12253  		})
 12254  	}
 12255  	if err != nil {
 12256  		return nil, err
 12257  	}
 12258  	defer googleapi.CloseBody(res)
 12259  	if err := googleapi.CheckResponse(res); err != nil {
 12260  		return nil, gensupport.WrapError(err)
 12261  	}
 12262  	ret := &GiftCardObjectListResponse{
 12263  		ServerResponse: googleapi.ServerResponse{
 12264  			Header:         res.Header,
 12265  			HTTPStatusCode: res.StatusCode,
 12266  		},
 12267  	}
 12268  	target := &ret
 12269  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12270  		return nil, err
 12271  	}
 12272  	return ret, nil
 12273  }
 12274  
 12275  type GiftcardobjectPatchCall struct {
 12276  	s              *Service
 12277  	resourceId     string
 12278  	giftcardobject *GiftCardObject
 12279  	urlParams_     gensupport.URLParams
 12280  	ctx_           context.Context
 12281  	header_        http.Header
 12282  }
 12283  
 12284  // Patch: Updates the gift card object referenced by the given object ID. This
 12285  // method supports patch semantics.
 12286  //
 12287  //   - resourceId: The unique identifier for an object. This ID must be unique
 12288  //     across all objects from an issuer. This value should follow the format
 12289  //     issuer ID. identifier where the former is issued by Google and latter is
 12290  //     chosen by you. Your unique identifier should only include alphanumeric
 12291  //     characters, '.', '_', or '-'.
 12292  func (r *GiftcardobjectService) Patch(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectPatchCall {
 12293  	c := &GiftcardobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12294  	c.resourceId = resourceId
 12295  	c.giftcardobject = giftcardobject
 12296  	return c
 12297  }
 12298  
 12299  // Fields allows partial responses to be retrieved. See
 12300  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12301  // details.
 12302  func (c *GiftcardobjectPatchCall) Fields(s ...googleapi.Field) *GiftcardobjectPatchCall {
 12303  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12304  	return c
 12305  }
 12306  
 12307  // Context sets the context to be used in this call's Do method.
 12308  func (c *GiftcardobjectPatchCall) Context(ctx context.Context) *GiftcardobjectPatchCall {
 12309  	c.ctx_ = ctx
 12310  	return c
 12311  }
 12312  
 12313  // Header returns a http.Header that can be modified by the caller to add
 12314  // headers to the request.
 12315  func (c *GiftcardobjectPatchCall) Header() http.Header {
 12316  	if c.header_ == nil {
 12317  		c.header_ = make(http.Header)
 12318  	}
 12319  	return c.header_
 12320  }
 12321  
 12322  func (c *GiftcardobjectPatchCall) doRequest(alt string) (*http.Response, error) {
 12323  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12324  	var body io.Reader = nil
 12325  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardobject)
 12326  	if err != nil {
 12327  		return nil, err
 12328  	}
 12329  	c.urlParams_.Set("alt", alt)
 12330  	c.urlParams_.Set("prettyPrint", "false")
 12331  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject/{resourceId}")
 12332  	urls += "?" + c.urlParams_.Encode()
 12333  	req, err := http.NewRequest("PATCH", urls, body)
 12334  	if err != nil {
 12335  		return nil, err
 12336  	}
 12337  	req.Header = reqHeaders
 12338  	googleapi.Expand(req.URL, map[string]string{
 12339  		"resourceId": c.resourceId,
 12340  	})
 12341  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12342  }
 12343  
 12344  // Do executes the "walletobjects.giftcardobject.patch" call.
 12345  // Any non-2xx status code is an error. Response headers are in either
 12346  // *GiftCardObject.ServerResponse.Header or (if a response was returned at all)
 12347  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12348  // whether the returned error was because http.StatusNotModified was returned.
 12349  func (c *GiftcardobjectPatchCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error) {
 12350  	gensupport.SetOptions(c.urlParams_, opts...)
 12351  	res, err := c.doRequest("json")
 12352  	if res != nil && res.StatusCode == http.StatusNotModified {
 12353  		if res.Body != nil {
 12354  			res.Body.Close()
 12355  		}
 12356  		return nil, gensupport.WrapError(&googleapi.Error{
 12357  			Code:   res.StatusCode,
 12358  			Header: res.Header,
 12359  		})
 12360  	}
 12361  	if err != nil {
 12362  		return nil, err
 12363  	}
 12364  	defer googleapi.CloseBody(res)
 12365  	if err := googleapi.CheckResponse(res); err != nil {
 12366  		return nil, gensupport.WrapError(err)
 12367  	}
 12368  	ret := &GiftCardObject{
 12369  		ServerResponse: googleapi.ServerResponse{
 12370  			Header:         res.Header,
 12371  			HTTPStatusCode: res.StatusCode,
 12372  		},
 12373  	}
 12374  	target := &ret
 12375  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12376  		return nil, err
 12377  	}
 12378  	return ret, nil
 12379  }
 12380  
 12381  type GiftcardobjectUpdateCall struct {
 12382  	s              *Service
 12383  	resourceId     string
 12384  	giftcardobject *GiftCardObject
 12385  	urlParams_     gensupport.URLParams
 12386  	ctx_           context.Context
 12387  	header_        http.Header
 12388  }
 12389  
 12390  // Update: Updates the gift card object referenced by the given object ID.
 12391  //
 12392  //   - resourceId: The unique identifier for an object. This ID must be unique
 12393  //     across all objects from an issuer. This value should follow the format
 12394  //     issuer ID. identifier where the former is issued by Google and latter is
 12395  //     chosen by you. Your unique identifier should only include alphanumeric
 12396  //     characters, '.', '_', or '-'.
 12397  func (r *GiftcardobjectService) Update(resourceId string, giftcardobject *GiftCardObject) *GiftcardobjectUpdateCall {
 12398  	c := &GiftcardobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12399  	c.resourceId = resourceId
 12400  	c.giftcardobject = giftcardobject
 12401  	return c
 12402  }
 12403  
 12404  // Fields allows partial responses to be retrieved. See
 12405  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12406  // details.
 12407  func (c *GiftcardobjectUpdateCall) Fields(s ...googleapi.Field) *GiftcardobjectUpdateCall {
 12408  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12409  	return c
 12410  }
 12411  
 12412  // Context sets the context to be used in this call's Do method.
 12413  func (c *GiftcardobjectUpdateCall) Context(ctx context.Context) *GiftcardobjectUpdateCall {
 12414  	c.ctx_ = ctx
 12415  	return c
 12416  }
 12417  
 12418  // Header returns a http.Header that can be modified by the caller to add
 12419  // headers to the request.
 12420  func (c *GiftcardobjectUpdateCall) Header() http.Header {
 12421  	if c.header_ == nil {
 12422  		c.header_ = make(http.Header)
 12423  	}
 12424  	return c.header_
 12425  }
 12426  
 12427  func (c *GiftcardobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
 12428  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12429  	var body io.Reader = nil
 12430  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.giftcardobject)
 12431  	if err != nil {
 12432  		return nil, err
 12433  	}
 12434  	c.urlParams_.Set("alt", alt)
 12435  	c.urlParams_.Set("prettyPrint", "false")
 12436  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/giftCardObject/{resourceId}")
 12437  	urls += "?" + c.urlParams_.Encode()
 12438  	req, err := http.NewRequest("PUT", urls, body)
 12439  	if err != nil {
 12440  		return nil, err
 12441  	}
 12442  	req.Header = reqHeaders
 12443  	googleapi.Expand(req.URL, map[string]string{
 12444  		"resourceId": c.resourceId,
 12445  	})
 12446  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12447  }
 12448  
 12449  // Do executes the "walletobjects.giftcardobject.update" call.
 12450  // Any non-2xx status code is an error. Response headers are in either
 12451  // *GiftCardObject.ServerResponse.Header or (if a response was returned at all)
 12452  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12453  // whether the returned error was because http.StatusNotModified was returned.
 12454  func (c *GiftcardobjectUpdateCall) Do(opts ...googleapi.CallOption) (*GiftCardObject, error) {
 12455  	gensupport.SetOptions(c.urlParams_, opts...)
 12456  	res, err := c.doRequest("json")
 12457  	if res != nil && res.StatusCode == http.StatusNotModified {
 12458  		if res.Body != nil {
 12459  			res.Body.Close()
 12460  		}
 12461  		return nil, gensupport.WrapError(&googleapi.Error{
 12462  			Code:   res.StatusCode,
 12463  			Header: res.Header,
 12464  		})
 12465  	}
 12466  	if err != nil {
 12467  		return nil, err
 12468  	}
 12469  	defer googleapi.CloseBody(res)
 12470  	if err := googleapi.CheckResponse(res); err != nil {
 12471  		return nil, gensupport.WrapError(err)
 12472  	}
 12473  	ret := &GiftCardObject{
 12474  		ServerResponse: googleapi.ServerResponse{
 12475  			Header:         res.Header,
 12476  			HTTPStatusCode: res.StatusCode,
 12477  		},
 12478  	}
 12479  	target := &ret
 12480  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12481  		return nil, err
 12482  	}
 12483  	return ret, nil
 12484  }
 12485  
 12486  type IssuerGetCall struct {
 12487  	s            *Service
 12488  	resourceId   int64
 12489  	urlParams_   gensupport.URLParams
 12490  	ifNoneMatch_ string
 12491  	ctx_         context.Context
 12492  	header_      http.Header
 12493  }
 12494  
 12495  // Get: Returns the issuer with the given issuer ID.
 12496  //
 12497  // - resourceId: The unique identifier for an issuer.
 12498  func (r *IssuerService) Get(resourceId int64) *IssuerGetCall {
 12499  	c := &IssuerGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12500  	c.resourceId = resourceId
 12501  	return c
 12502  }
 12503  
 12504  // Fields allows partial responses to be retrieved. See
 12505  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12506  // details.
 12507  func (c *IssuerGetCall) Fields(s ...googleapi.Field) *IssuerGetCall {
 12508  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12509  	return c
 12510  }
 12511  
 12512  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12513  // object's ETag matches the given value. This is useful for getting updates
 12514  // only after the object has changed since the last request.
 12515  func (c *IssuerGetCall) IfNoneMatch(entityTag string) *IssuerGetCall {
 12516  	c.ifNoneMatch_ = entityTag
 12517  	return c
 12518  }
 12519  
 12520  // Context sets the context to be used in this call's Do method.
 12521  func (c *IssuerGetCall) Context(ctx context.Context) *IssuerGetCall {
 12522  	c.ctx_ = ctx
 12523  	return c
 12524  }
 12525  
 12526  // Header returns a http.Header that can be modified by the caller to add
 12527  // headers to the request.
 12528  func (c *IssuerGetCall) Header() http.Header {
 12529  	if c.header_ == nil {
 12530  		c.header_ = make(http.Header)
 12531  	}
 12532  	return c.header_
 12533  }
 12534  
 12535  func (c *IssuerGetCall) doRequest(alt string) (*http.Response, error) {
 12536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12537  	if c.ifNoneMatch_ != "" {
 12538  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12539  	}
 12540  	var body io.Reader = nil
 12541  	c.urlParams_.Set("alt", alt)
 12542  	c.urlParams_.Set("prettyPrint", "false")
 12543  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/issuer/{resourceId}")
 12544  	urls += "?" + c.urlParams_.Encode()
 12545  	req, err := http.NewRequest("GET", urls, body)
 12546  	if err != nil {
 12547  		return nil, err
 12548  	}
 12549  	req.Header = reqHeaders
 12550  	googleapi.Expand(req.URL, map[string]string{
 12551  		"resourceId": strconv.FormatInt(c.resourceId, 10),
 12552  	})
 12553  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12554  }
 12555  
 12556  // Do executes the "walletobjects.issuer.get" call.
 12557  // Any non-2xx status code is an error. Response headers are in either
 12558  // *Issuer.ServerResponse.Header or (if a response was returned at all) in
 12559  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12560  // whether the returned error was because http.StatusNotModified was returned.
 12561  func (c *IssuerGetCall) Do(opts ...googleapi.CallOption) (*Issuer, error) {
 12562  	gensupport.SetOptions(c.urlParams_, opts...)
 12563  	res, err := c.doRequest("json")
 12564  	if res != nil && res.StatusCode == http.StatusNotModified {
 12565  		if res.Body != nil {
 12566  			res.Body.Close()
 12567  		}
 12568  		return nil, gensupport.WrapError(&googleapi.Error{
 12569  			Code:   res.StatusCode,
 12570  			Header: res.Header,
 12571  		})
 12572  	}
 12573  	if err != nil {
 12574  		return nil, err
 12575  	}
 12576  	defer googleapi.CloseBody(res)
 12577  	if err := googleapi.CheckResponse(res); err != nil {
 12578  		return nil, gensupport.WrapError(err)
 12579  	}
 12580  	ret := &Issuer{
 12581  		ServerResponse: googleapi.ServerResponse{
 12582  			Header:         res.Header,
 12583  			HTTPStatusCode: res.StatusCode,
 12584  		},
 12585  	}
 12586  	target := &ret
 12587  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12588  		return nil, err
 12589  	}
 12590  	return ret, nil
 12591  }
 12592  
 12593  type IssuerInsertCall struct {
 12594  	s          *Service
 12595  	issuer     *Issuer
 12596  	urlParams_ gensupport.URLParams
 12597  	ctx_       context.Context
 12598  	header_    http.Header
 12599  }
 12600  
 12601  // Insert: Inserts an issuer with the given ID and properties.
 12602  func (r *IssuerService) Insert(issuer *Issuer) *IssuerInsertCall {
 12603  	c := &IssuerInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12604  	c.issuer = issuer
 12605  	return c
 12606  }
 12607  
 12608  // Fields allows partial responses to be retrieved. See
 12609  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12610  // details.
 12611  func (c *IssuerInsertCall) Fields(s ...googleapi.Field) *IssuerInsertCall {
 12612  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12613  	return c
 12614  }
 12615  
 12616  // Context sets the context to be used in this call's Do method.
 12617  func (c *IssuerInsertCall) Context(ctx context.Context) *IssuerInsertCall {
 12618  	c.ctx_ = ctx
 12619  	return c
 12620  }
 12621  
 12622  // Header returns a http.Header that can be modified by the caller to add
 12623  // headers to the request.
 12624  func (c *IssuerInsertCall) Header() http.Header {
 12625  	if c.header_ == nil {
 12626  		c.header_ = make(http.Header)
 12627  	}
 12628  	return c.header_
 12629  }
 12630  
 12631  func (c *IssuerInsertCall) doRequest(alt string) (*http.Response, error) {
 12632  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12633  	var body io.Reader = nil
 12634  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.issuer)
 12635  	if err != nil {
 12636  		return nil, err
 12637  	}
 12638  	c.urlParams_.Set("alt", alt)
 12639  	c.urlParams_.Set("prettyPrint", "false")
 12640  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/issuer")
 12641  	urls += "?" + c.urlParams_.Encode()
 12642  	req, err := http.NewRequest("POST", urls, body)
 12643  	if err != nil {
 12644  		return nil, err
 12645  	}
 12646  	req.Header = reqHeaders
 12647  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12648  }
 12649  
 12650  // Do executes the "walletobjects.issuer.insert" call.
 12651  // Any non-2xx status code is an error. Response headers are in either
 12652  // *Issuer.ServerResponse.Header or (if a response was returned at all) in
 12653  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12654  // whether the returned error was because http.StatusNotModified was returned.
 12655  func (c *IssuerInsertCall) Do(opts ...googleapi.CallOption) (*Issuer, error) {
 12656  	gensupport.SetOptions(c.urlParams_, opts...)
 12657  	res, err := c.doRequest("json")
 12658  	if res != nil && res.StatusCode == http.StatusNotModified {
 12659  		if res.Body != nil {
 12660  			res.Body.Close()
 12661  		}
 12662  		return nil, gensupport.WrapError(&googleapi.Error{
 12663  			Code:   res.StatusCode,
 12664  			Header: res.Header,
 12665  		})
 12666  	}
 12667  	if err != nil {
 12668  		return nil, err
 12669  	}
 12670  	defer googleapi.CloseBody(res)
 12671  	if err := googleapi.CheckResponse(res); err != nil {
 12672  		return nil, gensupport.WrapError(err)
 12673  	}
 12674  	ret := &Issuer{
 12675  		ServerResponse: googleapi.ServerResponse{
 12676  			Header:         res.Header,
 12677  			HTTPStatusCode: res.StatusCode,
 12678  		},
 12679  	}
 12680  	target := &ret
 12681  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12682  		return nil, err
 12683  	}
 12684  	return ret, nil
 12685  }
 12686  
 12687  type IssuerListCall struct {
 12688  	s            *Service
 12689  	urlParams_   gensupport.URLParams
 12690  	ifNoneMatch_ string
 12691  	ctx_         context.Context
 12692  	header_      http.Header
 12693  }
 12694  
 12695  // List: Returns a list of all issuers shared to the caller.
 12696  func (r *IssuerService) List() *IssuerListCall {
 12697  	c := &IssuerListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12698  	return c
 12699  }
 12700  
 12701  // Fields allows partial responses to be retrieved. See
 12702  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12703  // details.
 12704  func (c *IssuerListCall) Fields(s ...googleapi.Field) *IssuerListCall {
 12705  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12706  	return c
 12707  }
 12708  
 12709  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12710  // object's ETag matches the given value. This is useful for getting updates
 12711  // only after the object has changed since the last request.
 12712  func (c *IssuerListCall) IfNoneMatch(entityTag string) *IssuerListCall {
 12713  	c.ifNoneMatch_ = entityTag
 12714  	return c
 12715  }
 12716  
 12717  // Context sets the context to be used in this call's Do method.
 12718  func (c *IssuerListCall) Context(ctx context.Context) *IssuerListCall {
 12719  	c.ctx_ = ctx
 12720  	return c
 12721  }
 12722  
 12723  // Header returns a http.Header that can be modified by the caller to add
 12724  // headers to the request.
 12725  func (c *IssuerListCall) Header() http.Header {
 12726  	if c.header_ == nil {
 12727  		c.header_ = make(http.Header)
 12728  	}
 12729  	return c.header_
 12730  }
 12731  
 12732  func (c *IssuerListCall) doRequest(alt string) (*http.Response, error) {
 12733  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12734  	if c.ifNoneMatch_ != "" {
 12735  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12736  	}
 12737  	var body io.Reader = nil
 12738  	c.urlParams_.Set("alt", alt)
 12739  	c.urlParams_.Set("prettyPrint", "false")
 12740  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/issuer")
 12741  	urls += "?" + c.urlParams_.Encode()
 12742  	req, err := http.NewRequest("GET", urls, body)
 12743  	if err != nil {
 12744  		return nil, err
 12745  	}
 12746  	req.Header = reqHeaders
 12747  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12748  }
 12749  
 12750  // Do executes the "walletobjects.issuer.list" call.
 12751  // Any non-2xx status code is an error. Response headers are in either
 12752  // *IssuerListResponse.ServerResponse.Header or (if a response was returned at
 12753  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12754  // check whether the returned error was because http.StatusNotModified was
 12755  // returned.
 12756  func (c *IssuerListCall) Do(opts ...googleapi.CallOption) (*IssuerListResponse, error) {
 12757  	gensupport.SetOptions(c.urlParams_, opts...)
 12758  	res, err := c.doRequest("json")
 12759  	if res != nil && res.StatusCode == http.StatusNotModified {
 12760  		if res.Body != nil {
 12761  			res.Body.Close()
 12762  		}
 12763  		return nil, gensupport.WrapError(&googleapi.Error{
 12764  			Code:   res.StatusCode,
 12765  			Header: res.Header,
 12766  		})
 12767  	}
 12768  	if err != nil {
 12769  		return nil, err
 12770  	}
 12771  	defer googleapi.CloseBody(res)
 12772  	if err := googleapi.CheckResponse(res); err != nil {
 12773  		return nil, gensupport.WrapError(err)
 12774  	}
 12775  	ret := &IssuerListResponse{
 12776  		ServerResponse: googleapi.ServerResponse{
 12777  			Header:         res.Header,
 12778  			HTTPStatusCode: res.StatusCode,
 12779  		},
 12780  	}
 12781  	target := &ret
 12782  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12783  		return nil, err
 12784  	}
 12785  	return ret, nil
 12786  }
 12787  
 12788  type IssuerPatchCall struct {
 12789  	s          *Service
 12790  	resourceId int64
 12791  	issuer     *Issuer
 12792  	urlParams_ gensupport.URLParams
 12793  	ctx_       context.Context
 12794  	header_    http.Header
 12795  }
 12796  
 12797  // Patch: Updates the issuer referenced by the given issuer ID. This method
 12798  // supports patch semantics.
 12799  //
 12800  // - resourceId: The unique identifier for an issuer.
 12801  func (r *IssuerService) Patch(resourceId int64, issuer *Issuer) *IssuerPatchCall {
 12802  	c := &IssuerPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12803  	c.resourceId = resourceId
 12804  	c.issuer = issuer
 12805  	return c
 12806  }
 12807  
 12808  // Fields allows partial responses to be retrieved. See
 12809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12810  // details.
 12811  func (c *IssuerPatchCall) Fields(s ...googleapi.Field) *IssuerPatchCall {
 12812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12813  	return c
 12814  }
 12815  
 12816  // Context sets the context to be used in this call's Do method.
 12817  func (c *IssuerPatchCall) Context(ctx context.Context) *IssuerPatchCall {
 12818  	c.ctx_ = ctx
 12819  	return c
 12820  }
 12821  
 12822  // Header returns a http.Header that can be modified by the caller to add
 12823  // headers to the request.
 12824  func (c *IssuerPatchCall) Header() http.Header {
 12825  	if c.header_ == nil {
 12826  		c.header_ = make(http.Header)
 12827  	}
 12828  	return c.header_
 12829  }
 12830  
 12831  func (c *IssuerPatchCall) doRequest(alt string) (*http.Response, error) {
 12832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12833  	var body io.Reader = nil
 12834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.issuer)
 12835  	if err != nil {
 12836  		return nil, err
 12837  	}
 12838  	c.urlParams_.Set("alt", alt)
 12839  	c.urlParams_.Set("prettyPrint", "false")
 12840  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/issuer/{resourceId}")
 12841  	urls += "?" + c.urlParams_.Encode()
 12842  	req, err := http.NewRequest("PATCH", urls, body)
 12843  	if err != nil {
 12844  		return nil, err
 12845  	}
 12846  	req.Header = reqHeaders
 12847  	googleapi.Expand(req.URL, map[string]string{
 12848  		"resourceId": strconv.FormatInt(c.resourceId, 10),
 12849  	})
 12850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12851  }
 12852  
 12853  // Do executes the "walletobjects.issuer.patch" call.
 12854  // Any non-2xx status code is an error. Response headers are in either
 12855  // *Issuer.ServerResponse.Header or (if a response was returned at all) in
 12856  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12857  // whether the returned error was because http.StatusNotModified was returned.
 12858  func (c *IssuerPatchCall) Do(opts ...googleapi.CallOption) (*Issuer, error) {
 12859  	gensupport.SetOptions(c.urlParams_, opts...)
 12860  	res, err := c.doRequest("json")
 12861  	if res != nil && res.StatusCode == http.StatusNotModified {
 12862  		if res.Body != nil {
 12863  			res.Body.Close()
 12864  		}
 12865  		return nil, gensupport.WrapError(&googleapi.Error{
 12866  			Code:   res.StatusCode,
 12867  			Header: res.Header,
 12868  		})
 12869  	}
 12870  	if err != nil {
 12871  		return nil, err
 12872  	}
 12873  	defer googleapi.CloseBody(res)
 12874  	if err := googleapi.CheckResponse(res); err != nil {
 12875  		return nil, gensupport.WrapError(err)
 12876  	}
 12877  	ret := &Issuer{
 12878  		ServerResponse: googleapi.ServerResponse{
 12879  			Header:         res.Header,
 12880  			HTTPStatusCode: res.StatusCode,
 12881  		},
 12882  	}
 12883  	target := &ret
 12884  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12885  		return nil, err
 12886  	}
 12887  	return ret, nil
 12888  }
 12889  
 12890  type IssuerUpdateCall struct {
 12891  	s          *Service
 12892  	resourceId int64
 12893  	issuer     *Issuer
 12894  	urlParams_ gensupport.URLParams
 12895  	ctx_       context.Context
 12896  	header_    http.Header
 12897  }
 12898  
 12899  // Update: Updates the issuer referenced by the given issuer ID.
 12900  //
 12901  // - resourceId: The unique identifier for an issuer.
 12902  func (r *IssuerService) Update(resourceId int64, issuer *Issuer) *IssuerUpdateCall {
 12903  	c := &IssuerUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12904  	c.resourceId = resourceId
 12905  	c.issuer = issuer
 12906  	return c
 12907  }
 12908  
 12909  // Fields allows partial responses to be retrieved. See
 12910  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12911  // details.
 12912  func (c *IssuerUpdateCall) Fields(s ...googleapi.Field) *IssuerUpdateCall {
 12913  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12914  	return c
 12915  }
 12916  
 12917  // Context sets the context to be used in this call's Do method.
 12918  func (c *IssuerUpdateCall) Context(ctx context.Context) *IssuerUpdateCall {
 12919  	c.ctx_ = ctx
 12920  	return c
 12921  }
 12922  
 12923  // Header returns a http.Header that can be modified by the caller to add
 12924  // headers to the request.
 12925  func (c *IssuerUpdateCall) Header() http.Header {
 12926  	if c.header_ == nil {
 12927  		c.header_ = make(http.Header)
 12928  	}
 12929  	return c.header_
 12930  }
 12931  
 12932  func (c *IssuerUpdateCall) doRequest(alt string) (*http.Response, error) {
 12933  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12934  	var body io.Reader = nil
 12935  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.issuer)
 12936  	if err != nil {
 12937  		return nil, err
 12938  	}
 12939  	c.urlParams_.Set("alt", alt)
 12940  	c.urlParams_.Set("prettyPrint", "false")
 12941  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/issuer/{resourceId}")
 12942  	urls += "?" + c.urlParams_.Encode()
 12943  	req, err := http.NewRequest("PUT", urls, body)
 12944  	if err != nil {
 12945  		return nil, err
 12946  	}
 12947  	req.Header = reqHeaders
 12948  	googleapi.Expand(req.URL, map[string]string{
 12949  		"resourceId": strconv.FormatInt(c.resourceId, 10),
 12950  	})
 12951  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12952  }
 12953  
 12954  // Do executes the "walletobjects.issuer.update" call.
 12955  // Any non-2xx status code is an error. Response headers are in either
 12956  // *Issuer.ServerResponse.Header or (if a response was returned at all) in
 12957  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12958  // whether the returned error was because http.StatusNotModified was returned.
 12959  func (c *IssuerUpdateCall) Do(opts ...googleapi.CallOption) (*Issuer, error) {
 12960  	gensupport.SetOptions(c.urlParams_, opts...)
 12961  	res, err := c.doRequest("json")
 12962  	if res != nil && res.StatusCode == http.StatusNotModified {
 12963  		if res.Body != nil {
 12964  			res.Body.Close()
 12965  		}
 12966  		return nil, gensupport.WrapError(&googleapi.Error{
 12967  			Code:   res.StatusCode,
 12968  			Header: res.Header,
 12969  		})
 12970  	}
 12971  	if err != nil {
 12972  		return nil, err
 12973  	}
 12974  	defer googleapi.CloseBody(res)
 12975  	if err := googleapi.CheckResponse(res); err != nil {
 12976  		return nil, gensupport.WrapError(err)
 12977  	}
 12978  	ret := &Issuer{
 12979  		ServerResponse: googleapi.ServerResponse{
 12980  			Header:         res.Header,
 12981  			HTTPStatusCode: res.StatusCode,
 12982  		},
 12983  	}
 12984  	target := &ret
 12985  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12986  		return nil, err
 12987  	}
 12988  	return ret, nil
 12989  }
 12990  
 12991  type JwtInsertCall struct {
 12992  	s           *Service
 12993  	jwtresource *JwtResource
 12994  	urlParams_  gensupport.URLParams
 12995  	ctx_        context.Context
 12996  	header_     http.Header
 12997  }
 12998  
 12999  // Insert: Inserts the resources in the JWT.
 13000  func (r *JwtService) Insert(jwtresource *JwtResource) *JwtInsertCall {
 13001  	c := &JwtInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13002  	c.jwtresource = jwtresource
 13003  	return c
 13004  }
 13005  
 13006  // Fields allows partial responses to be retrieved. See
 13007  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13008  // details.
 13009  func (c *JwtInsertCall) Fields(s ...googleapi.Field) *JwtInsertCall {
 13010  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13011  	return c
 13012  }
 13013  
 13014  // Context sets the context to be used in this call's Do method.
 13015  func (c *JwtInsertCall) Context(ctx context.Context) *JwtInsertCall {
 13016  	c.ctx_ = ctx
 13017  	return c
 13018  }
 13019  
 13020  // Header returns a http.Header that can be modified by the caller to add
 13021  // headers to the request.
 13022  func (c *JwtInsertCall) Header() http.Header {
 13023  	if c.header_ == nil {
 13024  		c.header_ = make(http.Header)
 13025  	}
 13026  	return c.header_
 13027  }
 13028  
 13029  func (c *JwtInsertCall) doRequest(alt string) (*http.Response, error) {
 13030  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13031  	var body io.Reader = nil
 13032  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.jwtresource)
 13033  	if err != nil {
 13034  		return nil, err
 13035  	}
 13036  	c.urlParams_.Set("alt", alt)
 13037  	c.urlParams_.Set("prettyPrint", "false")
 13038  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/jwt")
 13039  	urls += "?" + c.urlParams_.Encode()
 13040  	req, err := http.NewRequest("POST", urls, body)
 13041  	if err != nil {
 13042  		return nil, err
 13043  	}
 13044  	req.Header = reqHeaders
 13045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13046  }
 13047  
 13048  // Do executes the "walletobjects.jwt.insert" call.
 13049  // Any non-2xx status code is an error. Response headers are in either
 13050  // *JwtInsertResponse.ServerResponse.Header or (if a response was returned at
 13051  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13052  // check whether the returned error was because http.StatusNotModified was
 13053  // returned.
 13054  func (c *JwtInsertCall) Do(opts ...googleapi.CallOption) (*JwtInsertResponse, error) {
 13055  	gensupport.SetOptions(c.urlParams_, opts...)
 13056  	res, err := c.doRequest("json")
 13057  	if res != nil && res.StatusCode == http.StatusNotModified {
 13058  		if res.Body != nil {
 13059  			res.Body.Close()
 13060  		}
 13061  		return nil, gensupport.WrapError(&googleapi.Error{
 13062  			Code:   res.StatusCode,
 13063  			Header: res.Header,
 13064  		})
 13065  	}
 13066  	if err != nil {
 13067  		return nil, err
 13068  	}
 13069  	defer googleapi.CloseBody(res)
 13070  	if err := googleapi.CheckResponse(res); err != nil {
 13071  		return nil, gensupport.WrapError(err)
 13072  	}
 13073  	ret := &JwtInsertResponse{
 13074  		ServerResponse: googleapi.ServerResponse{
 13075  			Header:         res.Header,
 13076  			HTTPStatusCode: res.StatusCode,
 13077  		},
 13078  	}
 13079  	target := &ret
 13080  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13081  		return nil, err
 13082  	}
 13083  	return ret, nil
 13084  }
 13085  
 13086  type LoyaltyclassAddmessageCall struct {
 13087  	s                 *Service
 13088  	resourceId        string
 13089  	addmessagerequest *AddMessageRequest
 13090  	urlParams_        gensupport.URLParams
 13091  	ctx_              context.Context
 13092  	header_           http.Header
 13093  }
 13094  
 13095  // Addmessage: Adds a message to the loyalty class referenced by the given
 13096  // class ID.
 13097  //
 13098  //   - resourceId: The unique identifier for a class. This ID must be unique
 13099  //     across all classes from an issuer. This value should follow the format
 13100  //     issuer ID. identifier where the former is issued by Google and latter is
 13101  //     chosen by you. Your unique identifier should only include alphanumeric
 13102  //     characters, '.', '_', or '-'.
 13103  func (r *LoyaltyclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyclassAddmessageCall {
 13104  	c := &LoyaltyclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13105  	c.resourceId = resourceId
 13106  	c.addmessagerequest = addmessagerequest
 13107  	return c
 13108  }
 13109  
 13110  // Fields allows partial responses to be retrieved. See
 13111  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13112  // details.
 13113  func (c *LoyaltyclassAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyclassAddmessageCall {
 13114  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13115  	return c
 13116  }
 13117  
 13118  // Context sets the context to be used in this call's Do method.
 13119  func (c *LoyaltyclassAddmessageCall) Context(ctx context.Context) *LoyaltyclassAddmessageCall {
 13120  	c.ctx_ = ctx
 13121  	return c
 13122  }
 13123  
 13124  // Header returns a http.Header that can be modified by the caller to add
 13125  // headers to the request.
 13126  func (c *LoyaltyclassAddmessageCall) Header() http.Header {
 13127  	if c.header_ == nil {
 13128  		c.header_ = make(http.Header)
 13129  	}
 13130  	return c.header_
 13131  }
 13132  
 13133  func (c *LoyaltyclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
 13134  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13135  	var body io.Reader = nil
 13136  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 13137  	if err != nil {
 13138  		return nil, err
 13139  	}
 13140  	c.urlParams_.Set("alt", alt)
 13141  	c.urlParams_.Set("prettyPrint", "false")
 13142  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass/{resourceId}/addMessage")
 13143  	urls += "?" + c.urlParams_.Encode()
 13144  	req, err := http.NewRequest("POST", urls, body)
 13145  	if err != nil {
 13146  		return nil, err
 13147  	}
 13148  	req.Header = reqHeaders
 13149  	googleapi.Expand(req.URL, map[string]string{
 13150  		"resourceId": c.resourceId,
 13151  	})
 13152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13153  }
 13154  
 13155  // Do executes the "walletobjects.loyaltyclass.addmessage" call.
 13156  // Any non-2xx status code is an error. Response headers are in either
 13157  // *LoyaltyClassAddMessageResponse.ServerResponse.Header or (if a response was
 13158  // returned at all) in error.(*googleapi.Error).Header. Use
 13159  // googleapi.IsNotModified to check whether the returned error was because
 13160  // http.StatusNotModified was returned.
 13161  func (c *LoyaltyclassAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassAddMessageResponse, error) {
 13162  	gensupport.SetOptions(c.urlParams_, opts...)
 13163  	res, err := c.doRequest("json")
 13164  	if res != nil && res.StatusCode == http.StatusNotModified {
 13165  		if res.Body != nil {
 13166  			res.Body.Close()
 13167  		}
 13168  		return nil, gensupport.WrapError(&googleapi.Error{
 13169  			Code:   res.StatusCode,
 13170  			Header: res.Header,
 13171  		})
 13172  	}
 13173  	if err != nil {
 13174  		return nil, err
 13175  	}
 13176  	defer googleapi.CloseBody(res)
 13177  	if err := googleapi.CheckResponse(res); err != nil {
 13178  		return nil, gensupport.WrapError(err)
 13179  	}
 13180  	ret := &LoyaltyClassAddMessageResponse{
 13181  		ServerResponse: googleapi.ServerResponse{
 13182  			Header:         res.Header,
 13183  			HTTPStatusCode: res.StatusCode,
 13184  		},
 13185  	}
 13186  	target := &ret
 13187  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13188  		return nil, err
 13189  	}
 13190  	return ret, nil
 13191  }
 13192  
 13193  type LoyaltyclassGetCall struct {
 13194  	s            *Service
 13195  	resourceId   string
 13196  	urlParams_   gensupport.URLParams
 13197  	ifNoneMatch_ string
 13198  	ctx_         context.Context
 13199  	header_      http.Header
 13200  }
 13201  
 13202  // Get: Returns the loyalty class with the given class ID.
 13203  //
 13204  //   - resourceId: The unique identifier for a class. This ID must be unique
 13205  //     across all classes from an issuer. This value should follow the format
 13206  //     issuer ID. identifier where the former is issued by Google and latter is
 13207  //     chosen by you. Your unique identifier should only include alphanumeric
 13208  //     characters, '.', '_', or '-'.
 13209  func (r *LoyaltyclassService) Get(resourceId string) *LoyaltyclassGetCall {
 13210  	c := &LoyaltyclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13211  	c.resourceId = resourceId
 13212  	return c
 13213  }
 13214  
 13215  // Fields allows partial responses to be retrieved. See
 13216  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13217  // details.
 13218  func (c *LoyaltyclassGetCall) Fields(s ...googleapi.Field) *LoyaltyclassGetCall {
 13219  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13220  	return c
 13221  }
 13222  
 13223  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13224  // object's ETag matches the given value. This is useful for getting updates
 13225  // only after the object has changed since the last request.
 13226  func (c *LoyaltyclassGetCall) IfNoneMatch(entityTag string) *LoyaltyclassGetCall {
 13227  	c.ifNoneMatch_ = entityTag
 13228  	return c
 13229  }
 13230  
 13231  // Context sets the context to be used in this call's Do method.
 13232  func (c *LoyaltyclassGetCall) Context(ctx context.Context) *LoyaltyclassGetCall {
 13233  	c.ctx_ = ctx
 13234  	return c
 13235  }
 13236  
 13237  // Header returns a http.Header that can be modified by the caller to add
 13238  // headers to the request.
 13239  func (c *LoyaltyclassGetCall) Header() http.Header {
 13240  	if c.header_ == nil {
 13241  		c.header_ = make(http.Header)
 13242  	}
 13243  	return c.header_
 13244  }
 13245  
 13246  func (c *LoyaltyclassGetCall) doRequest(alt string) (*http.Response, error) {
 13247  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13248  	if c.ifNoneMatch_ != "" {
 13249  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13250  	}
 13251  	var body io.Reader = nil
 13252  	c.urlParams_.Set("alt", alt)
 13253  	c.urlParams_.Set("prettyPrint", "false")
 13254  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass/{resourceId}")
 13255  	urls += "?" + c.urlParams_.Encode()
 13256  	req, err := http.NewRequest("GET", urls, body)
 13257  	if err != nil {
 13258  		return nil, err
 13259  	}
 13260  	req.Header = reqHeaders
 13261  	googleapi.Expand(req.URL, map[string]string{
 13262  		"resourceId": c.resourceId,
 13263  	})
 13264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13265  }
 13266  
 13267  // Do executes the "walletobjects.loyaltyclass.get" call.
 13268  // Any non-2xx status code is an error. Response headers are in either
 13269  // *LoyaltyClass.ServerResponse.Header or (if a response was returned at all)
 13270  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13271  // whether the returned error was because http.StatusNotModified was returned.
 13272  func (c *LoyaltyclassGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error) {
 13273  	gensupport.SetOptions(c.urlParams_, opts...)
 13274  	res, err := c.doRequest("json")
 13275  	if res != nil && res.StatusCode == http.StatusNotModified {
 13276  		if res.Body != nil {
 13277  			res.Body.Close()
 13278  		}
 13279  		return nil, gensupport.WrapError(&googleapi.Error{
 13280  			Code:   res.StatusCode,
 13281  			Header: res.Header,
 13282  		})
 13283  	}
 13284  	if err != nil {
 13285  		return nil, err
 13286  	}
 13287  	defer googleapi.CloseBody(res)
 13288  	if err := googleapi.CheckResponse(res); err != nil {
 13289  		return nil, gensupport.WrapError(err)
 13290  	}
 13291  	ret := &LoyaltyClass{
 13292  		ServerResponse: googleapi.ServerResponse{
 13293  			Header:         res.Header,
 13294  			HTTPStatusCode: res.StatusCode,
 13295  		},
 13296  	}
 13297  	target := &ret
 13298  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13299  		return nil, err
 13300  	}
 13301  	return ret, nil
 13302  }
 13303  
 13304  type LoyaltyclassInsertCall struct {
 13305  	s            *Service
 13306  	loyaltyclass *LoyaltyClass
 13307  	urlParams_   gensupport.URLParams
 13308  	ctx_         context.Context
 13309  	header_      http.Header
 13310  }
 13311  
 13312  // Insert: Inserts an loyalty class with the given ID and properties.
 13313  func (r *LoyaltyclassService) Insert(loyaltyclass *LoyaltyClass) *LoyaltyclassInsertCall {
 13314  	c := &LoyaltyclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13315  	c.loyaltyclass = loyaltyclass
 13316  	return c
 13317  }
 13318  
 13319  // Fields allows partial responses to be retrieved. See
 13320  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13321  // details.
 13322  func (c *LoyaltyclassInsertCall) Fields(s ...googleapi.Field) *LoyaltyclassInsertCall {
 13323  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13324  	return c
 13325  }
 13326  
 13327  // Context sets the context to be used in this call's Do method.
 13328  func (c *LoyaltyclassInsertCall) Context(ctx context.Context) *LoyaltyclassInsertCall {
 13329  	c.ctx_ = ctx
 13330  	return c
 13331  }
 13332  
 13333  // Header returns a http.Header that can be modified by the caller to add
 13334  // headers to the request.
 13335  func (c *LoyaltyclassInsertCall) Header() http.Header {
 13336  	if c.header_ == nil {
 13337  		c.header_ = make(http.Header)
 13338  	}
 13339  	return c.header_
 13340  }
 13341  
 13342  func (c *LoyaltyclassInsertCall) doRequest(alt string) (*http.Response, error) {
 13343  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13344  	var body io.Reader = nil
 13345  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyclass)
 13346  	if err != nil {
 13347  		return nil, err
 13348  	}
 13349  	c.urlParams_.Set("alt", alt)
 13350  	c.urlParams_.Set("prettyPrint", "false")
 13351  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass")
 13352  	urls += "?" + c.urlParams_.Encode()
 13353  	req, err := http.NewRequest("POST", urls, body)
 13354  	if err != nil {
 13355  		return nil, err
 13356  	}
 13357  	req.Header = reqHeaders
 13358  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13359  }
 13360  
 13361  // Do executes the "walletobjects.loyaltyclass.insert" call.
 13362  // Any non-2xx status code is an error. Response headers are in either
 13363  // *LoyaltyClass.ServerResponse.Header or (if a response was returned at all)
 13364  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13365  // whether the returned error was because http.StatusNotModified was returned.
 13366  func (c *LoyaltyclassInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error) {
 13367  	gensupport.SetOptions(c.urlParams_, opts...)
 13368  	res, err := c.doRequest("json")
 13369  	if res != nil && res.StatusCode == http.StatusNotModified {
 13370  		if res.Body != nil {
 13371  			res.Body.Close()
 13372  		}
 13373  		return nil, gensupport.WrapError(&googleapi.Error{
 13374  			Code:   res.StatusCode,
 13375  			Header: res.Header,
 13376  		})
 13377  	}
 13378  	if err != nil {
 13379  		return nil, err
 13380  	}
 13381  	defer googleapi.CloseBody(res)
 13382  	if err := googleapi.CheckResponse(res); err != nil {
 13383  		return nil, gensupport.WrapError(err)
 13384  	}
 13385  	ret := &LoyaltyClass{
 13386  		ServerResponse: googleapi.ServerResponse{
 13387  			Header:         res.Header,
 13388  			HTTPStatusCode: res.StatusCode,
 13389  		},
 13390  	}
 13391  	target := &ret
 13392  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13393  		return nil, err
 13394  	}
 13395  	return ret, nil
 13396  }
 13397  
 13398  type LoyaltyclassListCall struct {
 13399  	s            *Service
 13400  	urlParams_   gensupport.URLParams
 13401  	ifNoneMatch_ string
 13402  	ctx_         context.Context
 13403  	header_      http.Header
 13404  }
 13405  
 13406  // List: Returns a list of all loyalty classes for a given issuer ID.
 13407  func (r *LoyaltyclassService) List() *LoyaltyclassListCall {
 13408  	c := &LoyaltyclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13409  	return c
 13410  }
 13411  
 13412  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
 13413  // authorized to list classes.
 13414  func (c *LoyaltyclassListCall) IssuerId(issuerId int64) *LoyaltyclassListCall {
 13415  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
 13416  	return c
 13417  }
 13418  
 13419  // MaxResults sets the optional parameter "maxResults": Identifies the max
 13420  // number of results returned by a list. All results are returned if
 13421  // `maxResults` isn't defined.
 13422  func (c *LoyaltyclassListCall) MaxResults(maxResults int64) *LoyaltyclassListCall {
 13423  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 13424  	return c
 13425  }
 13426  
 13427  // Token sets the optional parameter "token": Used to get the next set of
 13428  // results if `maxResults` is specified, but more than `maxResults` classes are
 13429  // available in a list. For example, if you have a list of 200 classes and you
 13430  // call list with `maxResults` set to 20, list will return the first 20 classes
 13431  // and a token. Call list again with `maxResults` set to 20 and the token to
 13432  // get the next 20 classes.
 13433  func (c *LoyaltyclassListCall) Token(token string) *LoyaltyclassListCall {
 13434  	c.urlParams_.Set("token", token)
 13435  	return c
 13436  }
 13437  
 13438  // Fields allows partial responses to be retrieved. See
 13439  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13440  // details.
 13441  func (c *LoyaltyclassListCall) Fields(s ...googleapi.Field) *LoyaltyclassListCall {
 13442  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13443  	return c
 13444  }
 13445  
 13446  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13447  // object's ETag matches the given value. This is useful for getting updates
 13448  // only after the object has changed since the last request.
 13449  func (c *LoyaltyclassListCall) IfNoneMatch(entityTag string) *LoyaltyclassListCall {
 13450  	c.ifNoneMatch_ = entityTag
 13451  	return c
 13452  }
 13453  
 13454  // Context sets the context to be used in this call's Do method.
 13455  func (c *LoyaltyclassListCall) Context(ctx context.Context) *LoyaltyclassListCall {
 13456  	c.ctx_ = ctx
 13457  	return c
 13458  }
 13459  
 13460  // Header returns a http.Header that can be modified by the caller to add
 13461  // headers to the request.
 13462  func (c *LoyaltyclassListCall) Header() http.Header {
 13463  	if c.header_ == nil {
 13464  		c.header_ = make(http.Header)
 13465  	}
 13466  	return c.header_
 13467  }
 13468  
 13469  func (c *LoyaltyclassListCall) doRequest(alt string) (*http.Response, error) {
 13470  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13471  	if c.ifNoneMatch_ != "" {
 13472  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13473  	}
 13474  	var body io.Reader = nil
 13475  	c.urlParams_.Set("alt", alt)
 13476  	c.urlParams_.Set("prettyPrint", "false")
 13477  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass")
 13478  	urls += "?" + c.urlParams_.Encode()
 13479  	req, err := http.NewRequest("GET", urls, body)
 13480  	if err != nil {
 13481  		return nil, err
 13482  	}
 13483  	req.Header = reqHeaders
 13484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13485  }
 13486  
 13487  // Do executes the "walletobjects.loyaltyclass.list" call.
 13488  // Any non-2xx status code is an error. Response headers are in either
 13489  // *LoyaltyClassListResponse.ServerResponse.Header or (if a response was
 13490  // returned at all) in error.(*googleapi.Error).Header. Use
 13491  // googleapi.IsNotModified to check whether the returned error was because
 13492  // http.StatusNotModified was returned.
 13493  func (c *LoyaltyclassListCall) Do(opts ...googleapi.CallOption) (*LoyaltyClassListResponse, error) {
 13494  	gensupport.SetOptions(c.urlParams_, opts...)
 13495  	res, err := c.doRequest("json")
 13496  	if res != nil && res.StatusCode == http.StatusNotModified {
 13497  		if res.Body != nil {
 13498  			res.Body.Close()
 13499  		}
 13500  		return nil, gensupport.WrapError(&googleapi.Error{
 13501  			Code:   res.StatusCode,
 13502  			Header: res.Header,
 13503  		})
 13504  	}
 13505  	if err != nil {
 13506  		return nil, err
 13507  	}
 13508  	defer googleapi.CloseBody(res)
 13509  	if err := googleapi.CheckResponse(res); err != nil {
 13510  		return nil, gensupport.WrapError(err)
 13511  	}
 13512  	ret := &LoyaltyClassListResponse{
 13513  		ServerResponse: googleapi.ServerResponse{
 13514  			Header:         res.Header,
 13515  			HTTPStatusCode: res.StatusCode,
 13516  		},
 13517  	}
 13518  	target := &ret
 13519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13520  		return nil, err
 13521  	}
 13522  	return ret, nil
 13523  }
 13524  
 13525  type LoyaltyclassPatchCall struct {
 13526  	s            *Service
 13527  	resourceId   string
 13528  	loyaltyclass *LoyaltyClass
 13529  	urlParams_   gensupport.URLParams
 13530  	ctx_         context.Context
 13531  	header_      http.Header
 13532  }
 13533  
 13534  // Patch: Updates the loyalty class referenced by the given class ID. This
 13535  // method supports patch semantics.
 13536  //
 13537  //   - resourceId: The unique identifier for a class. This ID must be unique
 13538  //     across all classes from an issuer. This value should follow the format
 13539  //     issuer ID. identifier where the former is issued by Google and latter is
 13540  //     chosen by you. Your unique identifier should only include alphanumeric
 13541  //     characters, '.', '_', or '-'.
 13542  func (r *LoyaltyclassService) Patch(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassPatchCall {
 13543  	c := &LoyaltyclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13544  	c.resourceId = resourceId
 13545  	c.loyaltyclass = loyaltyclass
 13546  	return c
 13547  }
 13548  
 13549  // Fields allows partial responses to be retrieved. See
 13550  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13551  // details.
 13552  func (c *LoyaltyclassPatchCall) Fields(s ...googleapi.Field) *LoyaltyclassPatchCall {
 13553  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13554  	return c
 13555  }
 13556  
 13557  // Context sets the context to be used in this call's Do method.
 13558  func (c *LoyaltyclassPatchCall) Context(ctx context.Context) *LoyaltyclassPatchCall {
 13559  	c.ctx_ = ctx
 13560  	return c
 13561  }
 13562  
 13563  // Header returns a http.Header that can be modified by the caller to add
 13564  // headers to the request.
 13565  func (c *LoyaltyclassPatchCall) Header() http.Header {
 13566  	if c.header_ == nil {
 13567  		c.header_ = make(http.Header)
 13568  	}
 13569  	return c.header_
 13570  }
 13571  
 13572  func (c *LoyaltyclassPatchCall) doRequest(alt string) (*http.Response, error) {
 13573  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13574  	var body io.Reader = nil
 13575  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyclass)
 13576  	if err != nil {
 13577  		return nil, err
 13578  	}
 13579  	c.urlParams_.Set("alt", alt)
 13580  	c.urlParams_.Set("prettyPrint", "false")
 13581  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass/{resourceId}")
 13582  	urls += "?" + c.urlParams_.Encode()
 13583  	req, err := http.NewRequest("PATCH", urls, body)
 13584  	if err != nil {
 13585  		return nil, err
 13586  	}
 13587  	req.Header = reqHeaders
 13588  	googleapi.Expand(req.URL, map[string]string{
 13589  		"resourceId": c.resourceId,
 13590  	})
 13591  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13592  }
 13593  
 13594  // Do executes the "walletobjects.loyaltyclass.patch" call.
 13595  // Any non-2xx status code is an error. Response headers are in either
 13596  // *LoyaltyClass.ServerResponse.Header or (if a response was returned at all)
 13597  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13598  // whether the returned error was because http.StatusNotModified was returned.
 13599  func (c *LoyaltyclassPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error) {
 13600  	gensupport.SetOptions(c.urlParams_, opts...)
 13601  	res, err := c.doRequest("json")
 13602  	if res != nil && res.StatusCode == http.StatusNotModified {
 13603  		if res.Body != nil {
 13604  			res.Body.Close()
 13605  		}
 13606  		return nil, gensupport.WrapError(&googleapi.Error{
 13607  			Code:   res.StatusCode,
 13608  			Header: res.Header,
 13609  		})
 13610  	}
 13611  	if err != nil {
 13612  		return nil, err
 13613  	}
 13614  	defer googleapi.CloseBody(res)
 13615  	if err := googleapi.CheckResponse(res); err != nil {
 13616  		return nil, gensupport.WrapError(err)
 13617  	}
 13618  	ret := &LoyaltyClass{
 13619  		ServerResponse: googleapi.ServerResponse{
 13620  			Header:         res.Header,
 13621  			HTTPStatusCode: res.StatusCode,
 13622  		},
 13623  	}
 13624  	target := &ret
 13625  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13626  		return nil, err
 13627  	}
 13628  	return ret, nil
 13629  }
 13630  
 13631  type LoyaltyclassUpdateCall struct {
 13632  	s            *Service
 13633  	resourceId   string
 13634  	loyaltyclass *LoyaltyClass
 13635  	urlParams_   gensupport.URLParams
 13636  	ctx_         context.Context
 13637  	header_      http.Header
 13638  }
 13639  
 13640  // Update: Updates the loyalty class referenced by the given class ID.
 13641  //
 13642  //   - resourceId: The unique identifier for a class. This ID must be unique
 13643  //     across all classes from an issuer. This value should follow the format
 13644  //     issuer ID. identifier where the former is issued by Google and latter is
 13645  //     chosen by you. Your unique identifier should only include alphanumeric
 13646  //     characters, '.', '_', or '-'.
 13647  func (r *LoyaltyclassService) Update(resourceId string, loyaltyclass *LoyaltyClass) *LoyaltyclassUpdateCall {
 13648  	c := &LoyaltyclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13649  	c.resourceId = resourceId
 13650  	c.loyaltyclass = loyaltyclass
 13651  	return c
 13652  }
 13653  
 13654  // Fields allows partial responses to be retrieved. See
 13655  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13656  // details.
 13657  func (c *LoyaltyclassUpdateCall) Fields(s ...googleapi.Field) *LoyaltyclassUpdateCall {
 13658  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13659  	return c
 13660  }
 13661  
 13662  // Context sets the context to be used in this call's Do method.
 13663  func (c *LoyaltyclassUpdateCall) Context(ctx context.Context) *LoyaltyclassUpdateCall {
 13664  	c.ctx_ = ctx
 13665  	return c
 13666  }
 13667  
 13668  // Header returns a http.Header that can be modified by the caller to add
 13669  // headers to the request.
 13670  func (c *LoyaltyclassUpdateCall) Header() http.Header {
 13671  	if c.header_ == nil {
 13672  		c.header_ = make(http.Header)
 13673  	}
 13674  	return c.header_
 13675  }
 13676  
 13677  func (c *LoyaltyclassUpdateCall) doRequest(alt string) (*http.Response, error) {
 13678  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13679  	var body io.Reader = nil
 13680  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyclass)
 13681  	if err != nil {
 13682  		return nil, err
 13683  	}
 13684  	c.urlParams_.Set("alt", alt)
 13685  	c.urlParams_.Set("prettyPrint", "false")
 13686  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyClass/{resourceId}")
 13687  	urls += "?" + c.urlParams_.Encode()
 13688  	req, err := http.NewRequest("PUT", urls, body)
 13689  	if err != nil {
 13690  		return nil, err
 13691  	}
 13692  	req.Header = reqHeaders
 13693  	googleapi.Expand(req.URL, map[string]string{
 13694  		"resourceId": c.resourceId,
 13695  	})
 13696  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13697  }
 13698  
 13699  // Do executes the "walletobjects.loyaltyclass.update" call.
 13700  // Any non-2xx status code is an error. Response headers are in either
 13701  // *LoyaltyClass.ServerResponse.Header or (if a response was returned at all)
 13702  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13703  // whether the returned error was because http.StatusNotModified was returned.
 13704  func (c *LoyaltyclassUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyClass, error) {
 13705  	gensupport.SetOptions(c.urlParams_, opts...)
 13706  	res, err := c.doRequest("json")
 13707  	if res != nil && res.StatusCode == http.StatusNotModified {
 13708  		if res.Body != nil {
 13709  			res.Body.Close()
 13710  		}
 13711  		return nil, gensupport.WrapError(&googleapi.Error{
 13712  			Code:   res.StatusCode,
 13713  			Header: res.Header,
 13714  		})
 13715  	}
 13716  	if err != nil {
 13717  		return nil, err
 13718  	}
 13719  	defer googleapi.CloseBody(res)
 13720  	if err := googleapi.CheckResponse(res); err != nil {
 13721  		return nil, gensupport.WrapError(err)
 13722  	}
 13723  	ret := &LoyaltyClass{
 13724  		ServerResponse: googleapi.ServerResponse{
 13725  			Header:         res.Header,
 13726  			HTTPStatusCode: res.StatusCode,
 13727  		},
 13728  	}
 13729  	target := &ret
 13730  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13731  		return nil, err
 13732  	}
 13733  	return ret, nil
 13734  }
 13735  
 13736  type LoyaltyobjectAddmessageCall struct {
 13737  	s                 *Service
 13738  	resourceId        string
 13739  	addmessagerequest *AddMessageRequest
 13740  	urlParams_        gensupport.URLParams
 13741  	ctx_              context.Context
 13742  	header_           http.Header
 13743  }
 13744  
 13745  // Addmessage: Adds a message to the loyalty object referenced by the given
 13746  // object ID.
 13747  //
 13748  //   - resourceId: The unique identifier for an object. This ID must be unique
 13749  //     across all objects from an issuer. This value should follow the format
 13750  //     issuer ID. identifier where the former is issued by Google and latter is
 13751  //     chosen by you. Your unique identifier should only include alphanumeric
 13752  //     characters, '.', '_', or '-'.
 13753  func (r *LoyaltyobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *LoyaltyobjectAddmessageCall {
 13754  	c := &LoyaltyobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13755  	c.resourceId = resourceId
 13756  	c.addmessagerequest = addmessagerequest
 13757  	return c
 13758  }
 13759  
 13760  // Fields allows partial responses to be retrieved. See
 13761  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13762  // details.
 13763  func (c *LoyaltyobjectAddmessageCall) Fields(s ...googleapi.Field) *LoyaltyobjectAddmessageCall {
 13764  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13765  	return c
 13766  }
 13767  
 13768  // Context sets the context to be used in this call's Do method.
 13769  func (c *LoyaltyobjectAddmessageCall) Context(ctx context.Context) *LoyaltyobjectAddmessageCall {
 13770  	c.ctx_ = ctx
 13771  	return c
 13772  }
 13773  
 13774  // Header returns a http.Header that can be modified by the caller to add
 13775  // headers to the request.
 13776  func (c *LoyaltyobjectAddmessageCall) Header() http.Header {
 13777  	if c.header_ == nil {
 13778  		c.header_ = make(http.Header)
 13779  	}
 13780  	return c.header_
 13781  }
 13782  
 13783  func (c *LoyaltyobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
 13784  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13785  	var body io.Reader = nil
 13786  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 13787  	if err != nil {
 13788  		return nil, err
 13789  	}
 13790  	c.urlParams_.Set("alt", alt)
 13791  	c.urlParams_.Set("prettyPrint", "false")
 13792  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject/{resourceId}/addMessage")
 13793  	urls += "?" + c.urlParams_.Encode()
 13794  	req, err := http.NewRequest("POST", urls, body)
 13795  	if err != nil {
 13796  		return nil, err
 13797  	}
 13798  	req.Header = reqHeaders
 13799  	googleapi.Expand(req.URL, map[string]string{
 13800  		"resourceId": c.resourceId,
 13801  	})
 13802  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13803  }
 13804  
 13805  // Do executes the "walletobjects.loyaltyobject.addmessage" call.
 13806  // Any non-2xx status code is an error. Response headers are in either
 13807  // *LoyaltyObjectAddMessageResponse.ServerResponse.Header or (if a response was
 13808  // returned at all) in error.(*googleapi.Error).Header. Use
 13809  // googleapi.IsNotModified to check whether the returned error was because
 13810  // http.StatusNotModified was returned.
 13811  func (c *LoyaltyobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectAddMessageResponse, error) {
 13812  	gensupport.SetOptions(c.urlParams_, opts...)
 13813  	res, err := c.doRequest("json")
 13814  	if res != nil && res.StatusCode == http.StatusNotModified {
 13815  		if res.Body != nil {
 13816  			res.Body.Close()
 13817  		}
 13818  		return nil, gensupport.WrapError(&googleapi.Error{
 13819  			Code:   res.StatusCode,
 13820  			Header: res.Header,
 13821  		})
 13822  	}
 13823  	if err != nil {
 13824  		return nil, err
 13825  	}
 13826  	defer googleapi.CloseBody(res)
 13827  	if err := googleapi.CheckResponse(res); err != nil {
 13828  		return nil, gensupport.WrapError(err)
 13829  	}
 13830  	ret := &LoyaltyObjectAddMessageResponse{
 13831  		ServerResponse: googleapi.ServerResponse{
 13832  			Header:         res.Header,
 13833  			HTTPStatusCode: res.StatusCode,
 13834  		},
 13835  	}
 13836  	target := &ret
 13837  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13838  		return nil, err
 13839  	}
 13840  	return ret, nil
 13841  }
 13842  
 13843  type LoyaltyobjectGetCall struct {
 13844  	s            *Service
 13845  	resourceId   string
 13846  	urlParams_   gensupport.URLParams
 13847  	ifNoneMatch_ string
 13848  	ctx_         context.Context
 13849  	header_      http.Header
 13850  }
 13851  
 13852  // Get: Returns the loyalty object with the given object ID.
 13853  //
 13854  //   - resourceId: The unique identifier for an object. This ID must be unique
 13855  //     across all objects from an issuer. This value should follow the format
 13856  //     issuer ID. identifier where the former is issued by Google and latter is
 13857  //     chosen by you. Your unique identifier should only include alphanumeric
 13858  //     characters, '.', '_', or '-'.
 13859  func (r *LoyaltyobjectService) Get(resourceId string) *LoyaltyobjectGetCall {
 13860  	c := &LoyaltyobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13861  	c.resourceId = resourceId
 13862  	return c
 13863  }
 13864  
 13865  // Fields allows partial responses to be retrieved. See
 13866  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13867  // details.
 13868  func (c *LoyaltyobjectGetCall) Fields(s ...googleapi.Field) *LoyaltyobjectGetCall {
 13869  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13870  	return c
 13871  }
 13872  
 13873  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13874  // object's ETag matches the given value. This is useful for getting updates
 13875  // only after the object has changed since the last request.
 13876  func (c *LoyaltyobjectGetCall) IfNoneMatch(entityTag string) *LoyaltyobjectGetCall {
 13877  	c.ifNoneMatch_ = entityTag
 13878  	return c
 13879  }
 13880  
 13881  // Context sets the context to be used in this call's Do method.
 13882  func (c *LoyaltyobjectGetCall) Context(ctx context.Context) *LoyaltyobjectGetCall {
 13883  	c.ctx_ = ctx
 13884  	return c
 13885  }
 13886  
 13887  // Header returns a http.Header that can be modified by the caller to add
 13888  // headers to the request.
 13889  func (c *LoyaltyobjectGetCall) Header() http.Header {
 13890  	if c.header_ == nil {
 13891  		c.header_ = make(http.Header)
 13892  	}
 13893  	return c.header_
 13894  }
 13895  
 13896  func (c *LoyaltyobjectGetCall) doRequest(alt string) (*http.Response, error) {
 13897  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13898  	if c.ifNoneMatch_ != "" {
 13899  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13900  	}
 13901  	var body io.Reader = nil
 13902  	c.urlParams_.Set("alt", alt)
 13903  	c.urlParams_.Set("prettyPrint", "false")
 13904  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject/{resourceId}")
 13905  	urls += "?" + c.urlParams_.Encode()
 13906  	req, err := http.NewRequest("GET", urls, body)
 13907  	if err != nil {
 13908  		return nil, err
 13909  	}
 13910  	req.Header = reqHeaders
 13911  	googleapi.Expand(req.URL, map[string]string{
 13912  		"resourceId": c.resourceId,
 13913  	})
 13914  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13915  }
 13916  
 13917  // Do executes the "walletobjects.loyaltyobject.get" call.
 13918  // Any non-2xx status code is an error. Response headers are in either
 13919  // *LoyaltyObject.ServerResponse.Header or (if a response was returned at all)
 13920  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13921  // whether the returned error was because http.StatusNotModified was returned.
 13922  func (c *LoyaltyobjectGetCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error) {
 13923  	gensupport.SetOptions(c.urlParams_, opts...)
 13924  	res, err := c.doRequest("json")
 13925  	if res != nil && res.StatusCode == http.StatusNotModified {
 13926  		if res.Body != nil {
 13927  			res.Body.Close()
 13928  		}
 13929  		return nil, gensupport.WrapError(&googleapi.Error{
 13930  			Code:   res.StatusCode,
 13931  			Header: res.Header,
 13932  		})
 13933  	}
 13934  	if err != nil {
 13935  		return nil, err
 13936  	}
 13937  	defer googleapi.CloseBody(res)
 13938  	if err := googleapi.CheckResponse(res); err != nil {
 13939  		return nil, gensupport.WrapError(err)
 13940  	}
 13941  	ret := &LoyaltyObject{
 13942  		ServerResponse: googleapi.ServerResponse{
 13943  			Header:         res.Header,
 13944  			HTTPStatusCode: res.StatusCode,
 13945  		},
 13946  	}
 13947  	target := &ret
 13948  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13949  		return nil, err
 13950  	}
 13951  	return ret, nil
 13952  }
 13953  
 13954  type LoyaltyobjectInsertCall struct {
 13955  	s             *Service
 13956  	loyaltyobject *LoyaltyObject
 13957  	urlParams_    gensupport.URLParams
 13958  	ctx_          context.Context
 13959  	header_       http.Header
 13960  }
 13961  
 13962  // Insert: Inserts an loyalty object with the given ID and properties.
 13963  func (r *LoyaltyobjectService) Insert(loyaltyobject *LoyaltyObject) *LoyaltyobjectInsertCall {
 13964  	c := &LoyaltyobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13965  	c.loyaltyobject = loyaltyobject
 13966  	return c
 13967  }
 13968  
 13969  // Fields allows partial responses to be retrieved. See
 13970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13971  // details.
 13972  func (c *LoyaltyobjectInsertCall) Fields(s ...googleapi.Field) *LoyaltyobjectInsertCall {
 13973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13974  	return c
 13975  }
 13976  
 13977  // Context sets the context to be used in this call's Do method.
 13978  func (c *LoyaltyobjectInsertCall) Context(ctx context.Context) *LoyaltyobjectInsertCall {
 13979  	c.ctx_ = ctx
 13980  	return c
 13981  }
 13982  
 13983  // Header returns a http.Header that can be modified by the caller to add
 13984  // headers to the request.
 13985  func (c *LoyaltyobjectInsertCall) Header() http.Header {
 13986  	if c.header_ == nil {
 13987  		c.header_ = make(http.Header)
 13988  	}
 13989  	return c.header_
 13990  }
 13991  
 13992  func (c *LoyaltyobjectInsertCall) doRequest(alt string) (*http.Response, error) {
 13993  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13994  	var body io.Reader = nil
 13995  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyobject)
 13996  	if err != nil {
 13997  		return nil, err
 13998  	}
 13999  	c.urlParams_.Set("alt", alt)
 14000  	c.urlParams_.Set("prettyPrint", "false")
 14001  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject")
 14002  	urls += "?" + c.urlParams_.Encode()
 14003  	req, err := http.NewRequest("POST", urls, body)
 14004  	if err != nil {
 14005  		return nil, err
 14006  	}
 14007  	req.Header = reqHeaders
 14008  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14009  }
 14010  
 14011  // Do executes the "walletobjects.loyaltyobject.insert" call.
 14012  // Any non-2xx status code is an error. Response headers are in either
 14013  // *LoyaltyObject.ServerResponse.Header or (if a response was returned at all)
 14014  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14015  // whether the returned error was because http.StatusNotModified was returned.
 14016  func (c *LoyaltyobjectInsertCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error) {
 14017  	gensupport.SetOptions(c.urlParams_, opts...)
 14018  	res, err := c.doRequest("json")
 14019  	if res != nil && res.StatusCode == http.StatusNotModified {
 14020  		if res.Body != nil {
 14021  			res.Body.Close()
 14022  		}
 14023  		return nil, gensupport.WrapError(&googleapi.Error{
 14024  			Code:   res.StatusCode,
 14025  			Header: res.Header,
 14026  		})
 14027  	}
 14028  	if err != nil {
 14029  		return nil, err
 14030  	}
 14031  	defer googleapi.CloseBody(res)
 14032  	if err := googleapi.CheckResponse(res); err != nil {
 14033  		return nil, gensupport.WrapError(err)
 14034  	}
 14035  	ret := &LoyaltyObject{
 14036  		ServerResponse: googleapi.ServerResponse{
 14037  			Header:         res.Header,
 14038  			HTTPStatusCode: res.StatusCode,
 14039  		},
 14040  	}
 14041  	target := &ret
 14042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14043  		return nil, err
 14044  	}
 14045  	return ret, nil
 14046  }
 14047  
 14048  type LoyaltyobjectListCall struct {
 14049  	s            *Service
 14050  	urlParams_   gensupport.URLParams
 14051  	ifNoneMatch_ string
 14052  	ctx_         context.Context
 14053  	header_      http.Header
 14054  }
 14055  
 14056  // List: Returns a list of all loyalty objects for a given issuer ID.
 14057  func (r *LoyaltyobjectService) List() *LoyaltyobjectListCall {
 14058  	c := &LoyaltyobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14059  	return c
 14060  }
 14061  
 14062  // ClassId sets the optional parameter "classId": The ID of the class whose
 14063  // objects will be listed.
 14064  func (c *LoyaltyobjectListCall) ClassId(classId string) *LoyaltyobjectListCall {
 14065  	c.urlParams_.Set("classId", classId)
 14066  	return c
 14067  }
 14068  
 14069  // MaxResults sets the optional parameter "maxResults": Identifies the max
 14070  // number of results returned by a list. All results are returned if
 14071  // `maxResults` isn't defined.
 14072  func (c *LoyaltyobjectListCall) MaxResults(maxResults int64) *LoyaltyobjectListCall {
 14073  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 14074  	return c
 14075  }
 14076  
 14077  // Token sets the optional parameter "token": Used to get the next set of
 14078  // results if `maxResults` is specified, but more than `maxResults` objects are
 14079  // available in a list. For example, if you have a list of 200 objects and you
 14080  // call list with `maxResults` set to 20, list will return the first 20 objects
 14081  // and a token. Call list again with `maxResults` set to 20 and the token to
 14082  // get the next 20 objects.
 14083  func (c *LoyaltyobjectListCall) Token(token string) *LoyaltyobjectListCall {
 14084  	c.urlParams_.Set("token", token)
 14085  	return c
 14086  }
 14087  
 14088  // Fields allows partial responses to be retrieved. See
 14089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14090  // details.
 14091  func (c *LoyaltyobjectListCall) Fields(s ...googleapi.Field) *LoyaltyobjectListCall {
 14092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14093  	return c
 14094  }
 14095  
 14096  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14097  // object's ETag matches the given value. This is useful for getting updates
 14098  // only after the object has changed since the last request.
 14099  func (c *LoyaltyobjectListCall) IfNoneMatch(entityTag string) *LoyaltyobjectListCall {
 14100  	c.ifNoneMatch_ = entityTag
 14101  	return c
 14102  }
 14103  
 14104  // Context sets the context to be used in this call's Do method.
 14105  func (c *LoyaltyobjectListCall) Context(ctx context.Context) *LoyaltyobjectListCall {
 14106  	c.ctx_ = ctx
 14107  	return c
 14108  }
 14109  
 14110  // Header returns a http.Header that can be modified by the caller to add
 14111  // headers to the request.
 14112  func (c *LoyaltyobjectListCall) Header() http.Header {
 14113  	if c.header_ == nil {
 14114  		c.header_ = make(http.Header)
 14115  	}
 14116  	return c.header_
 14117  }
 14118  
 14119  func (c *LoyaltyobjectListCall) doRequest(alt string) (*http.Response, error) {
 14120  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14121  	if c.ifNoneMatch_ != "" {
 14122  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14123  	}
 14124  	var body io.Reader = nil
 14125  	c.urlParams_.Set("alt", alt)
 14126  	c.urlParams_.Set("prettyPrint", "false")
 14127  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject")
 14128  	urls += "?" + c.urlParams_.Encode()
 14129  	req, err := http.NewRequest("GET", urls, body)
 14130  	if err != nil {
 14131  		return nil, err
 14132  	}
 14133  	req.Header = reqHeaders
 14134  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14135  }
 14136  
 14137  // Do executes the "walletobjects.loyaltyobject.list" call.
 14138  // Any non-2xx status code is an error. Response headers are in either
 14139  // *LoyaltyObjectListResponse.ServerResponse.Header or (if a response was
 14140  // returned at all) in error.(*googleapi.Error).Header. Use
 14141  // googleapi.IsNotModified to check whether the returned error was because
 14142  // http.StatusNotModified was returned.
 14143  func (c *LoyaltyobjectListCall) Do(opts ...googleapi.CallOption) (*LoyaltyObjectListResponse, error) {
 14144  	gensupport.SetOptions(c.urlParams_, opts...)
 14145  	res, err := c.doRequest("json")
 14146  	if res != nil && res.StatusCode == http.StatusNotModified {
 14147  		if res.Body != nil {
 14148  			res.Body.Close()
 14149  		}
 14150  		return nil, gensupport.WrapError(&googleapi.Error{
 14151  			Code:   res.StatusCode,
 14152  			Header: res.Header,
 14153  		})
 14154  	}
 14155  	if err != nil {
 14156  		return nil, err
 14157  	}
 14158  	defer googleapi.CloseBody(res)
 14159  	if err := googleapi.CheckResponse(res); err != nil {
 14160  		return nil, gensupport.WrapError(err)
 14161  	}
 14162  	ret := &LoyaltyObjectListResponse{
 14163  		ServerResponse: googleapi.ServerResponse{
 14164  			Header:         res.Header,
 14165  			HTTPStatusCode: res.StatusCode,
 14166  		},
 14167  	}
 14168  	target := &ret
 14169  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14170  		return nil, err
 14171  	}
 14172  	return ret, nil
 14173  }
 14174  
 14175  type LoyaltyobjectModifylinkedofferobjectsCall struct {
 14176  	s                               *Service
 14177  	resourceId                      string
 14178  	modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest
 14179  	urlParams_                      gensupport.URLParams
 14180  	ctx_                            context.Context
 14181  	header_                         http.Header
 14182  }
 14183  
 14184  // Modifylinkedofferobjects: Modifies linked offer objects for the loyalty
 14185  // object with the given ID.
 14186  //
 14187  //   - resourceId: The unique identifier for an object. This ID must be unique
 14188  //     across all objects from an issuer. This value should follow the format
 14189  //     issuer ID. identifier where the former is issued by Google and latter is
 14190  //     chosen by you. Your unique identifier should only include alphanumeric
 14191  //     characters, '.', '_', or '-'.
 14192  func (r *LoyaltyobjectService) Modifylinkedofferobjects(resourceId string, modifylinkedofferobjectsrequest *ModifyLinkedOfferObjectsRequest) *LoyaltyobjectModifylinkedofferobjectsCall {
 14193  	c := &LoyaltyobjectModifylinkedofferobjectsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14194  	c.resourceId = resourceId
 14195  	c.modifylinkedofferobjectsrequest = modifylinkedofferobjectsrequest
 14196  	return c
 14197  }
 14198  
 14199  // Fields allows partial responses to be retrieved. See
 14200  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14201  // details.
 14202  func (c *LoyaltyobjectModifylinkedofferobjectsCall) Fields(s ...googleapi.Field) *LoyaltyobjectModifylinkedofferobjectsCall {
 14203  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14204  	return c
 14205  }
 14206  
 14207  // Context sets the context to be used in this call's Do method.
 14208  func (c *LoyaltyobjectModifylinkedofferobjectsCall) Context(ctx context.Context) *LoyaltyobjectModifylinkedofferobjectsCall {
 14209  	c.ctx_ = ctx
 14210  	return c
 14211  }
 14212  
 14213  // Header returns a http.Header that can be modified by the caller to add
 14214  // headers to the request.
 14215  func (c *LoyaltyobjectModifylinkedofferobjectsCall) Header() http.Header {
 14216  	if c.header_ == nil {
 14217  		c.header_ = make(http.Header)
 14218  	}
 14219  	return c.header_
 14220  }
 14221  
 14222  func (c *LoyaltyobjectModifylinkedofferobjectsCall) doRequest(alt string) (*http.Response, error) {
 14223  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14224  	var body io.Reader = nil
 14225  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.modifylinkedofferobjectsrequest)
 14226  	if err != nil {
 14227  		return nil, err
 14228  	}
 14229  	c.urlParams_.Set("alt", alt)
 14230  	c.urlParams_.Set("prettyPrint", "false")
 14231  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects")
 14232  	urls += "?" + c.urlParams_.Encode()
 14233  	req, err := http.NewRequest("POST", urls, body)
 14234  	if err != nil {
 14235  		return nil, err
 14236  	}
 14237  	req.Header = reqHeaders
 14238  	googleapi.Expand(req.URL, map[string]string{
 14239  		"resourceId": c.resourceId,
 14240  	})
 14241  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14242  }
 14243  
 14244  // Do executes the "walletobjects.loyaltyobject.modifylinkedofferobjects" call.
 14245  // Any non-2xx status code is an error. Response headers are in either
 14246  // *LoyaltyObject.ServerResponse.Header or (if a response was returned at all)
 14247  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14248  // whether the returned error was because http.StatusNotModified was returned.
 14249  func (c *LoyaltyobjectModifylinkedofferobjectsCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error) {
 14250  	gensupport.SetOptions(c.urlParams_, opts...)
 14251  	res, err := c.doRequest("json")
 14252  	if res != nil && res.StatusCode == http.StatusNotModified {
 14253  		if res.Body != nil {
 14254  			res.Body.Close()
 14255  		}
 14256  		return nil, gensupport.WrapError(&googleapi.Error{
 14257  			Code:   res.StatusCode,
 14258  			Header: res.Header,
 14259  		})
 14260  	}
 14261  	if err != nil {
 14262  		return nil, err
 14263  	}
 14264  	defer googleapi.CloseBody(res)
 14265  	if err := googleapi.CheckResponse(res); err != nil {
 14266  		return nil, gensupport.WrapError(err)
 14267  	}
 14268  	ret := &LoyaltyObject{
 14269  		ServerResponse: googleapi.ServerResponse{
 14270  			Header:         res.Header,
 14271  			HTTPStatusCode: res.StatusCode,
 14272  		},
 14273  	}
 14274  	target := &ret
 14275  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14276  		return nil, err
 14277  	}
 14278  	return ret, nil
 14279  }
 14280  
 14281  type LoyaltyobjectPatchCall struct {
 14282  	s             *Service
 14283  	resourceId    string
 14284  	loyaltyobject *LoyaltyObject
 14285  	urlParams_    gensupport.URLParams
 14286  	ctx_          context.Context
 14287  	header_       http.Header
 14288  }
 14289  
 14290  // Patch: Updates the loyalty object referenced by the given object ID. This
 14291  // method supports patch semantics.
 14292  //
 14293  //   - resourceId: The unique identifier for an object. This ID must be unique
 14294  //     across all objects from an issuer. This value should follow the format
 14295  //     issuer ID. identifier where the former is issued by Google and latter is
 14296  //     chosen by you. Your unique identifier should only include alphanumeric
 14297  //     characters, '.', '_', or '-'.
 14298  func (r *LoyaltyobjectService) Patch(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectPatchCall {
 14299  	c := &LoyaltyobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14300  	c.resourceId = resourceId
 14301  	c.loyaltyobject = loyaltyobject
 14302  	return c
 14303  }
 14304  
 14305  // Fields allows partial responses to be retrieved. See
 14306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14307  // details.
 14308  func (c *LoyaltyobjectPatchCall) Fields(s ...googleapi.Field) *LoyaltyobjectPatchCall {
 14309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14310  	return c
 14311  }
 14312  
 14313  // Context sets the context to be used in this call's Do method.
 14314  func (c *LoyaltyobjectPatchCall) Context(ctx context.Context) *LoyaltyobjectPatchCall {
 14315  	c.ctx_ = ctx
 14316  	return c
 14317  }
 14318  
 14319  // Header returns a http.Header that can be modified by the caller to add
 14320  // headers to the request.
 14321  func (c *LoyaltyobjectPatchCall) Header() http.Header {
 14322  	if c.header_ == nil {
 14323  		c.header_ = make(http.Header)
 14324  	}
 14325  	return c.header_
 14326  }
 14327  
 14328  func (c *LoyaltyobjectPatchCall) doRequest(alt string) (*http.Response, error) {
 14329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14330  	var body io.Reader = nil
 14331  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyobject)
 14332  	if err != nil {
 14333  		return nil, err
 14334  	}
 14335  	c.urlParams_.Set("alt", alt)
 14336  	c.urlParams_.Set("prettyPrint", "false")
 14337  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject/{resourceId}")
 14338  	urls += "?" + c.urlParams_.Encode()
 14339  	req, err := http.NewRequest("PATCH", urls, body)
 14340  	if err != nil {
 14341  		return nil, err
 14342  	}
 14343  	req.Header = reqHeaders
 14344  	googleapi.Expand(req.URL, map[string]string{
 14345  		"resourceId": c.resourceId,
 14346  	})
 14347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14348  }
 14349  
 14350  // Do executes the "walletobjects.loyaltyobject.patch" call.
 14351  // Any non-2xx status code is an error. Response headers are in either
 14352  // *LoyaltyObject.ServerResponse.Header or (if a response was returned at all)
 14353  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14354  // whether the returned error was because http.StatusNotModified was returned.
 14355  func (c *LoyaltyobjectPatchCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error) {
 14356  	gensupport.SetOptions(c.urlParams_, opts...)
 14357  	res, err := c.doRequest("json")
 14358  	if res != nil && res.StatusCode == http.StatusNotModified {
 14359  		if res.Body != nil {
 14360  			res.Body.Close()
 14361  		}
 14362  		return nil, gensupport.WrapError(&googleapi.Error{
 14363  			Code:   res.StatusCode,
 14364  			Header: res.Header,
 14365  		})
 14366  	}
 14367  	if err != nil {
 14368  		return nil, err
 14369  	}
 14370  	defer googleapi.CloseBody(res)
 14371  	if err := googleapi.CheckResponse(res); err != nil {
 14372  		return nil, gensupport.WrapError(err)
 14373  	}
 14374  	ret := &LoyaltyObject{
 14375  		ServerResponse: googleapi.ServerResponse{
 14376  			Header:         res.Header,
 14377  			HTTPStatusCode: res.StatusCode,
 14378  		},
 14379  	}
 14380  	target := &ret
 14381  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14382  		return nil, err
 14383  	}
 14384  	return ret, nil
 14385  }
 14386  
 14387  type LoyaltyobjectUpdateCall struct {
 14388  	s             *Service
 14389  	resourceId    string
 14390  	loyaltyobject *LoyaltyObject
 14391  	urlParams_    gensupport.URLParams
 14392  	ctx_          context.Context
 14393  	header_       http.Header
 14394  }
 14395  
 14396  // Update: Updates the loyalty object referenced by the given object ID.
 14397  //
 14398  //   - resourceId: The unique identifier for an object. This ID must be unique
 14399  //     across all objects from an issuer. This value should follow the format
 14400  //     issuer ID. identifier where the former is issued by Google and latter is
 14401  //     chosen by you. Your unique identifier should only include alphanumeric
 14402  //     characters, '.', '_', or '-'.
 14403  func (r *LoyaltyobjectService) Update(resourceId string, loyaltyobject *LoyaltyObject) *LoyaltyobjectUpdateCall {
 14404  	c := &LoyaltyobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14405  	c.resourceId = resourceId
 14406  	c.loyaltyobject = loyaltyobject
 14407  	return c
 14408  }
 14409  
 14410  // Fields allows partial responses to be retrieved. See
 14411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14412  // details.
 14413  func (c *LoyaltyobjectUpdateCall) Fields(s ...googleapi.Field) *LoyaltyobjectUpdateCall {
 14414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14415  	return c
 14416  }
 14417  
 14418  // Context sets the context to be used in this call's Do method.
 14419  func (c *LoyaltyobjectUpdateCall) Context(ctx context.Context) *LoyaltyobjectUpdateCall {
 14420  	c.ctx_ = ctx
 14421  	return c
 14422  }
 14423  
 14424  // Header returns a http.Header that can be modified by the caller to add
 14425  // headers to the request.
 14426  func (c *LoyaltyobjectUpdateCall) Header() http.Header {
 14427  	if c.header_ == nil {
 14428  		c.header_ = make(http.Header)
 14429  	}
 14430  	return c.header_
 14431  }
 14432  
 14433  func (c *LoyaltyobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
 14434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14435  	var body io.Reader = nil
 14436  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.loyaltyobject)
 14437  	if err != nil {
 14438  		return nil, err
 14439  	}
 14440  	c.urlParams_.Set("alt", alt)
 14441  	c.urlParams_.Set("prettyPrint", "false")
 14442  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/loyaltyObject/{resourceId}")
 14443  	urls += "?" + c.urlParams_.Encode()
 14444  	req, err := http.NewRequest("PUT", urls, body)
 14445  	if err != nil {
 14446  		return nil, err
 14447  	}
 14448  	req.Header = reqHeaders
 14449  	googleapi.Expand(req.URL, map[string]string{
 14450  		"resourceId": c.resourceId,
 14451  	})
 14452  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14453  }
 14454  
 14455  // Do executes the "walletobjects.loyaltyobject.update" call.
 14456  // Any non-2xx status code is an error. Response headers are in either
 14457  // *LoyaltyObject.ServerResponse.Header or (if a response was returned at all)
 14458  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14459  // whether the returned error was because http.StatusNotModified was returned.
 14460  func (c *LoyaltyobjectUpdateCall) Do(opts ...googleapi.CallOption) (*LoyaltyObject, error) {
 14461  	gensupport.SetOptions(c.urlParams_, opts...)
 14462  	res, err := c.doRequest("json")
 14463  	if res != nil && res.StatusCode == http.StatusNotModified {
 14464  		if res.Body != nil {
 14465  			res.Body.Close()
 14466  		}
 14467  		return nil, gensupport.WrapError(&googleapi.Error{
 14468  			Code:   res.StatusCode,
 14469  			Header: res.Header,
 14470  		})
 14471  	}
 14472  	if err != nil {
 14473  		return nil, err
 14474  	}
 14475  	defer googleapi.CloseBody(res)
 14476  	if err := googleapi.CheckResponse(res); err != nil {
 14477  		return nil, gensupport.WrapError(err)
 14478  	}
 14479  	ret := &LoyaltyObject{
 14480  		ServerResponse: googleapi.ServerResponse{
 14481  			Header:         res.Header,
 14482  			HTTPStatusCode: res.StatusCode,
 14483  		},
 14484  	}
 14485  	target := &ret
 14486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14487  		return nil, err
 14488  	}
 14489  	return ret, nil
 14490  }
 14491  
 14492  type MediaDownloadCall struct {
 14493  	s            *Service
 14494  	resourceId   string
 14495  	urlParams_   gensupport.URLParams
 14496  	ifNoneMatch_ string
 14497  	ctx_         context.Context
 14498  	header_      http.Header
 14499  }
 14500  
 14501  // Download: Downloads rotating barcode values for the transit object
 14502  // referenced by the given object ID.
 14503  //
 14504  //   - resourceId: The unique identifier for an object. This ID must be unique
 14505  //     across all objects from an issuer. This value should follow the format
 14506  //     issuer ID. identifier where the former is issued by Google and latter is
 14507  //     chosen by you. Your unique identifier should only include alphanumeric
 14508  //     characters, '.', '_', or '-'.
 14509  func (r *MediaService) Download(resourceId string) *MediaDownloadCall {
 14510  	c := &MediaDownloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14511  	c.resourceId = resourceId
 14512  	return c
 14513  }
 14514  
 14515  // Fields allows partial responses to be retrieved. See
 14516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14517  // details.
 14518  func (c *MediaDownloadCall) Fields(s ...googleapi.Field) *MediaDownloadCall {
 14519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14520  	return c
 14521  }
 14522  
 14523  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14524  // object's ETag matches the given value. This is useful for getting updates
 14525  // only after the object has changed since the last request.
 14526  func (c *MediaDownloadCall) IfNoneMatch(entityTag string) *MediaDownloadCall {
 14527  	c.ifNoneMatch_ = entityTag
 14528  	return c
 14529  }
 14530  
 14531  // Context sets the context to be used in this call's Do and Download methods.
 14532  func (c *MediaDownloadCall) Context(ctx context.Context) *MediaDownloadCall {
 14533  	c.ctx_ = ctx
 14534  	return c
 14535  }
 14536  
 14537  // Header returns a http.Header that can be modified by the caller to add
 14538  // headers to the request.
 14539  func (c *MediaDownloadCall) Header() http.Header {
 14540  	if c.header_ == nil {
 14541  		c.header_ = make(http.Header)
 14542  	}
 14543  	return c.header_
 14544  }
 14545  
 14546  func (c *MediaDownloadCall) doRequest(alt string) (*http.Response, error) {
 14547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14548  	if c.ifNoneMatch_ != "" {
 14549  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14550  	}
 14551  	var body io.Reader = nil
 14552  	c.urlParams_.Set("alt", alt)
 14553  	c.urlParams_.Set("prettyPrint", "false")
 14554  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}/downloadRotatingBarcodeValues")
 14555  	urls += "?" + c.urlParams_.Encode()
 14556  	req, err := http.NewRequest("GET", urls, body)
 14557  	if err != nil {
 14558  		return nil, err
 14559  	}
 14560  	req.Header = reqHeaders
 14561  	googleapi.Expand(req.URL, map[string]string{
 14562  		"resourceId": c.resourceId,
 14563  	})
 14564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14565  }
 14566  
 14567  // Download fetches the API endpoint's "media" value, instead of the normal
 14568  // API response value. If the returned error is nil, the Response is guaranteed to
 14569  // have a 2xx status code. Callers must close the Response.Body as usual.
 14570  func (c *MediaDownloadCall) Download(opts ...googleapi.CallOption) (*http.Response, error) {
 14571  	gensupport.SetOptions(c.urlParams_, opts...)
 14572  	res, err := c.doRequest("media")
 14573  	if err != nil {
 14574  		return nil, err
 14575  	}
 14576  	if err := googleapi.CheckResponse(res); err != nil {
 14577  		res.Body.Close()
 14578  		return nil, gensupport.WrapError(err)
 14579  	}
 14580  	return res, nil
 14581  }
 14582  
 14583  // Do executes the "walletobjects.media.download" call.
 14584  // Any non-2xx status code is an error. Response headers are in either
 14585  // *Media.ServerResponse.Header or (if a response was returned at all) in
 14586  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14587  // whether the returned error was because http.StatusNotModified was returned.
 14588  func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) {
 14589  	gensupport.SetOptions(c.urlParams_, opts...)
 14590  	res, err := c.doRequest("json")
 14591  	if res != nil && res.StatusCode == http.StatusNotModified {
 14592  		if res.Body != nil {
 14593  			res.Body.Close()
 14594  		}
 14595  		return nil, gensupport.WrapError(&googleapi.Error{
 14596  			Code:   res.StatusCode,
 14597  			Header: res.Header,
 14598  		})
 14599  	}
 14600  	if err != nil {
 14601  		return nil, err
 14602  	}
 14603  	defer googleapi.CloseBody(res)
 14604  	if err := googleapi.CheckResponse(res); err != nil {
 14605  		return nil, gensupport.WrapError(err)
 14606  	}
 14607  	ret := &Media{
 14608  		ServerResponse: googleapi.ServerResponse{
 14609  			Header:         res.Header,
 14610  			HTTPStatusCode: res.StatusCode,
 14611  		},
 14612  	}
 14613  	target := &ret
 14614  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14615  		return nil, err
 14616  	}
 14617  	return ret, nil
 14618  }
 14619  
 14620  type MediaUploadCall struct {
 14621  	s                                               *Service
 14622  	resourceId                                      string
 14623  	transitobjectuploadrotatingbarcodevaluesrequest *TransitObjectUploadRotatingBarcodeValuesRequest
 14624  	urlParams_                                      gensupport.URLParams
 14625  	mediaInfo_                                      *gensupport.MediaInfo
 14626  	ctx_                                            context.Context
 14627  	header_                                         http.Header
 14628  }
 14629  
 14630  // Upload: Uploads rotating barcode values for the transit object referenced by
 14631  // the given object ID. Note the max upload size is specified in
 14632  // google3/production/config/cdd/apps-upload/customers/payments-consumer-passes/
 14633  // config.gcl and enforced by Scotty.
 14634  //
 14635  //   - resourceId: The unique identifier for an object. This ID must be unique
 14636  //     across all objects from an issuer. This value should follow the format
 14637  //     issuer ID. identifier where the former is issued by Google and latter is
 14638  //     chosen by you. Your unique identifier should only include alphanumeric
 14639  //     characters, '.', '_', or '-'.
 14640  func (r *MediaService) Upload(resourceId string, transitobjectuploadrotatingbarcodevaluesrequest *TransitObjectUploadRotatingBarcodeValuesRequest) *MediaUploadCall {
 14641  	c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14642  	c.resourceId = resourceId
 14643  	c.transitobjectuploadrotatingbarcodevaluesrequest = transitobjectuploadrotatingbarcodevaluesrequest
 14644  	return c
 14645  }
 14646  
 14647  // Media specifies the media to upload in one or more chunks. The chunk size
 14648  // may be controlled by supplying a MediaOption generated by
 14649  // googleapi.ChunkSize. The chunk size defaults to
 14650  // googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload
 14651  // request will be determined by sniffing the contents of r, unless a
 14652  // MediaOption generated by googleapi.ContentType is supplied.
 14653  // At most one of Media and ResumableMedia may be set.
 14654  func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall {
 14655  	c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
 14656  	return c
 14657  }
 14658  
 14659  // ResumableMedia specifies the media to upload in chunks and can be canceled
 14660  // with ctx.
 14661  //
 14662  // Deprecated: use Media instead.
 14663  //
 14664  // At most one of Media and ResumableMedia may be set. mediaType identifies the
 14665  // MIME media type of the upload, such as "image/png". If mediaType is "", it
 14666  // will be auto-detected. The provided ctx will supersede any context
 14667  // previously provided to the Context method.
 14668  func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall {
 14669  	c.ctx_ = ctx
 14670  	c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
 14671  	return c
 14672  }
 14673  
 14674  // ProgressUpdater provides a callback function that will be called after every
 14675  // chunk. It should be a low-latency function in order to not slow down the
 14676  // upload operation. This should only be called when using ResumableMedia (as
 14677  // opposed to Media).
 14678  func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
 14679  	c.mediaInfo_.SetProgressUpdater(pu)
 14680  	return c
 14681  }
 14682  
 14683  // Fields allows partial responses to be retrieved. See
 14684  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14685  // details.
 14686  func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
 14687  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14688  	return c
 14689  }
 14690  
 14691  // Context sets the context to be used in this call's Do method.
 14692  // This context will supersede any context previously provided to the
 14693  // ResumableMedia method.
 14694  func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
 14695  	c.ctx_ = ctx
 14696  	return c
 14697  }
 14698  
 14699  // Header returns a http.Header that can be modified by the caller to add
 14700  // headers to the request.
 14701  func (c *MediaUploadCall) Header() http.Header {
 14702  	if c.header_ == nil {
 14703  		c.header_ = make(http.Header)
 14704  	}
 14705  	return c.header_
 14706  }
 14707  
 14708  func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) {
 14709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14710  	var body io.Reader = nil
 14711  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitobjectuploadrotatingbarcodevaluesrequest)
 14712  	if err != nil {
 14713  		return nil, err
 14714  	}
 14715  	c.urlParams_.Set("alt", alt)
 14716  	c.urlParams_.Set("prettyPrint", "false")
 14717  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues")
 14718  	if c.mediaInfo_ != nil {
 14719  		urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues")
 14720  		c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
 14721  	}
 14722  	if body == nil {
 14723  		body = new(bytes.Buffer)
 14724  		reqHeaders.Set("Content-Type", "application/json")
 14725  	}
 14726  	body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
 14727  	defer cleanup()
 14728  	urls += "?" + c.urlParams_.Encode()
 14729  	req, err := http.NewRequest("POST", urls, body)
 14730  	if err != nil {
 14731  		return nil, err
 14732  	}
 14733  	req.Header = reqHeaders
 14734  	req.GetBody = getBody
 14735  	googleapi.Expand(req.URL, map[string]string{
 14736  		"resourceId": c.resourceId,
 14737  	})
 14738  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14739  }
 14740  
 14741  // Do executes the "walletobjects.media.upload" call.
 14742  // Any non-2xx status code is an error. Response headers are in either
 14743  // *TransitObjectUploadRotatingBarcodeValuesResponse.ServerResponse.Header or
 14744  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 14745  // googleapi.IsNotModified to check whether the returned error was because
 14746  // http.StatusNotModified was returned.
 14747  func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*TransitObjectUploadRotatingBarcodeValuesResponse, error) {
 14748  	gensupport.SetOptions(c.urlParams_, opts...)
 14749  	res, err := c.doRequest("json")
 14750  	if res != nil && res.StatusCode == http.StatusNotModified {
 14751  		if res.Body != nil {
 14752  			res.Body.Close()
 14753  		}
 14754  		return nil, gensupport.WrapError(&googleapi.Error{
 14755  			Code:   res.StatusCode,
 14756  			Header: res.Header,
 14757  		})
 14758  	}
 14759  	if err != nil {
 14760  		return nil, err
 14761  	}
 14762  	defer googleapi.CloseBody(res)
 14763  	if err := googleapi.CheckResponse(res); err != nil {
 14764  		return nil, gensupport.WrapError(err)
 14765  	}
 14766  	rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
 14767  	if rx != nil {
 14768  		rx.Client = c.s.client
 14769  		rx.UserAgent = c.s.userAgent()
 14770  		ctx := c.ctx_
 14771  		if ctx == nil {
 14772  			ctx = context.TODO()
 14773  		}
 14774  		res, err = rx.Upload(ctx)
 14775  		if err != nil {
 14776  			return nil, err
 14777  		}
 14778  		defer res.Body.Close()
 14779  		if err := googleapi.CheckResponse(res); err != nil {
 14780  			return nil, gensupport.WrapError(err)
 14781  		}
 14782  	}
 14783  	ret := &TransitObjectUploadRotatingBarcodeValuesResponse{
 14784  		ServerResponse: googleapi.ServerResponse{
 14785  			Header:         res.Header,
 14786  			HTTPStatusCode: res.StatusCode,
 14787  		},
 14788  	}
 14789  	target := &ret
 14790  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14791  		return nil, err
 14792  	}
 14793  	return ret, nil
 14794  }
 14795  
 14796  type OfferclassAddmessageCall struct {
 14797  	s                 *Service
 14798  	resourceId        string
 14799  	addmessagerequest *AddMessageRequest
 14800  	urlParams_        gensupport.URLParams
 14801  	ctx_              context.Context
 14802  	header_           http.Header
 14803  }
 14804  
 14805  // Addmessage: Adds a message to the offer class referenced by the given class
 14806  // ID.
 14807  //
 14808  //   - resourceId: The unique identifier for a class. This ID must be unique
 14809  //     across all classes from an issuer. This value should follow the format
 14810  //     issuer ID. identifier where the former is issued by Google and latter is
 14811  //     chosen by you. Your unique identifier should only include alphanumeric
 14812  //     characters, '.', '_', or '-'.
 14813  func (r *OfferclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferclassAddmessageCall {
 14814  	c := &OfferclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14815  	c.resourceId = resourceId
 14816  	c.addmessagerequest = addmessagerequest
 14817  	return c
 14818  }
 14819  
 14820  // Fields allows partial responses to be retrieved. See
 14821  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14822  // details.
 14823  func (c *OfferclassAddmessageCall) Fields(s ...googleapi.Field) *OfferclassAddmessageCall {
 14824  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14825  	return c
 14826  }
 14827  
 14828  // Context sets the context to be used in this call's Do method.
 14829  func (c *OfferclassAddmessageCall) Context(ctx context.Context) *OfferclassAddmessageCall {
 14830  	c.ctx_ = ctx
 14831  	return c
 14832  }
 14833  
 14834  // Header returns a http.Header that can be modified by the caller to add
 14835  // headers to the request.
 14836  func (c *OfferclassAddmessageCall) Header() http.Header {
 14837  	if c.header_ == nil {
 14838  		c.header_ = make(http.Header)
 14839  	}
 14840  	return c.header_
 14841  }
 14842  
 14843  func (c *OfferclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
 14844  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14845  	var body io.Reader = nil
 14846  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 14847  	if err != nil {
 14848  		return nil, err
 14849  	}
 14850  	c.urlParams_.Set("alt", alt)
 14851  	c.urlParams_.Set("prettyPrint", "false")
 14852  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass/{resourceId}/addMessage")
 14853  	urls += "?" + c.urlParams_.Encode()
 14854  	req, err := http.NewRequest("POST", urls, body)
 14855  	if err != nil {
 14856  		return nil, err
 14857  	}
 14858  	req.Header = reqHeaders
 14859  	googleapi.Expand(req.URL, map[string]string{
 14860  		"resourceId": c.resourceId,
 14861  	})
 14862  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14863  }
 14864  
 14865  // Do executes the "walletobjects.offerclass.addmessage" call.
 14866  // Any non-2xx status code is an error. Response headers are in either
 14867  // *OfferClassAddMessageResponse.ServerResponse.Header or (if a response was
 14868  // returned at all) in error.(*googleapi.Error).Header. Use
 14869  // googleapi.IsNotModified to check whether the returned error was because
 14870  // http.StatusNotModified was returned.
 14871  func (c *OfferclassAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferClassAddMessageResponse, error) {
 14872  	gensupport.SetOptions(c.urlParams_, opts...)
 14873  	res, err := c.doRequest("json")
 14874  	if res != nil && res.StatusCode == http.StatusNotModified {
 14875  		if res.Body != nil {
 14876  			res.Body.Close()
 14877  		}
 14878  		return nil, gensupport.WrapError(&googleapi.Error{
 14879  			Code:   res.StatusCode,
 14880  			Header: res.Header,
 14881  		})
 14882  	}
 14883  	if err != nil {
 14884  		return nil, err
 14885  	}
 14886  	defer googleapi.CloseBody(res)
 14887  	if err := googleapi.CheckResponse(res); err != nil {
 14888  		return nil, gensupport.WrapError(err)
 14889  	}
 14890  	ret := &OfferClassAddMessageResponse{
 14891  		ServerResponse: googleapi.ServerResponse{
 14892  			Header:         res.Header,
 14893  			HTTPStatusCode: res.StatusCode,
 14894  		},
 14895  	}
 14896  	target := &ret
 14897  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14898  		return nil, err
 14899  	}
 14900  	return ret, nil
 14901  }
 14902  
 14903  type OfferclassGetCall struct {
 14904  	s            *Service
 14905  	resourceId   string
 14906  	urlParams_   gensupport.URLParams
 14907  	ifNoneMatch_ string
 14908  	ctx_         context.Context
 14909  	header_      http.Header
 14910  }
 14911  
 14912  // Get: Returns the offer class with the given class ID.
 14913  //
 14914  //   - resourceId: The unique identifier for a class. This ID must be unique
 14915  //     across all classes from an issuer. This value should follow the format
 14916  //     issuer ID. identifier where the former is issued by Google and latter is
 14917  //     chosen by you. Your unique identifier should only include alphanumeric
 14918  //     characters, '.', '_', or '-'.
 14919  func (r *OfferclassService) Get(resourceId string) *OfferclassGetCall {
 14920  	c := &OfferclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14921  	c.resourceId = resourceId
 14922  	return c
 14923  }
 14924  
 14925  // Fields allows partial responses to be retrieved. See
 14926  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14927  // details.
 14928  func (c *OfferclassGetCall) Fields(s ...googleapi.Field) *OfferclassGetCall {
 14929  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14930  	return c
 14931  }
 14932  
 14933  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14934  // object's ETag matches the given value. This is useful for getting updates
 14935  // only after the object has changed since the last request.
 14936  func (c *OfferclassGetCall) IfNoneMatch(entityTag string) *OfferclassGetCall {
 14937  	c.ifNoneMatch_ = entityTag
 14938  	return c
 14939  }
 14940  
 14941  // Context sets the context to be used in this call's Do method.
 14942  func (c *OfferclassGetCall) Context(ctx context.Context) *OfferclassGetCall {
 14943  	c.ctx_ = ctx
 14944  	return c
 14945  }
 14946  
 14947  // Header returns a http.Header that can be modified by the caller to add
 14948  // headers to the request.
 14949  func (c *OfferclassGetCall) Header() http.Header {
 14950  	if c.header_ == nil {
 14951  		c.header_ = make(http.Header)
 14952  	}
 14953  	return c.header_
 14954  }
 14955  
 14956  func (c *OfferclassGetCall) doRequest(alt string) (*http.Response, error) {
 14957  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14958  	if c.ifNoneMatch_ != "" {
 14959  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14960  	}
 14961  	var body io.Reader = nil
 14962  	c.urlParams_.Set("alt", alt)
 14963  	c.urlParams_.Set("prettyPrint", "false")
 14964  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass/{resourceId}")
 14965  	urls += "?" + c.urlParams_.Encode()
 14966  	req, err := http.NewRequest("GET", urls, body)
 14967  	if err != nil {
 14968  		return nil, err
 14969  	}
 14970  	req.Header = reqHeaders
 14971  	googleapi.Expand(req.URL, map[string]string{
 14972  		"resourceId": c.resourceId,
 14973  	})
 14974  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14975  }
 14976  
 14977  // Do executes the "walletobjects.offerclass.get" call.
 14978  // Any non-2xx status code is an error. Response headers are in either
 14979  // *OfferClass.ServerResponse.Header or (if a response was returned at all) in
 14980  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14981  // whether the returned error was because http.StatusNotModified was returned.
 14982  func (c *OfferclassGetCall) Do(opts ...googleapi.CallOption) (*OfferClass, error) {
 14983  	gensupport.SetOptions(c.urlParams_, opts...)
 14984  	res, err := c.doRequest("json")
 14985  	if res != nil && res.StatusCode == http.StatusNotModified {
 14986  		if res.Body != nil {
 14987  			res.Body.Close()
 14988  		}
 14989  		return nil, gensupport.WrapError(&googleapi.Error{
 14990  			Code:   res.StatusCode,
 14991  			Header: res.Header,
 14992  		})
 14993  	}
 14994  	if err != nil {
 14995  		return nil, err
 14996  	}
 14997  	defer googleapi.CloseBody(res)
 14998  	if err := googleapi.CheckResponse(res); err != nil {
 14999  		return nil, gensupport.WrapError(err)
 15000  	}
 15001  	ret := &OfferClass{
 15002  		ServerResponse: googleapi.ServerResponse{
 15003  			Header:         res.Header,
 15004  			HTTPStatusCode: res.StatusCode,
 15005  		},
 15006  	}
 15007  	target := &ret
 15008  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15009  		return nil, err
 15010  	}
 15011  	return ret, nil
 15012  }
 15013  
 15014  type OfferclassInsertCall struct {
 15015  	s          *Service
 15016  	offerclass *OfferClass
 15017  	urlParams_ gensupport.URLParams
 15018  	ctx_       context.Context
 15019  	header_    http.Header
 15020  }
 15021  
 15022  // Insert: Inserts an offer class with the given ID and properties.
 15023  func (r *OfferclassService) Insert(offerclass *OfferClass) *OfferclassInsertCall {
 15024  	c := &OfferclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15025  	c.offerclass = offerclass
 15026  	return c
 15027  }
 15028  
 15029  // Fields allows partial responses to be retrieved. See
 15030  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15031  // details.
 15032  func (c *OfferclassInsertCall) Fields(s ...googleapi.Field) *OfferclassInsertCall {
 15033  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15034  	return c
 15035  }
 15036  
 15037  // Context sets the context to be used in this call's Do method.
 15038  func (c *OfferclassInsertCall) Context(ctx context.Context) *OfferclassInsertCall {
 15039  	c.ctx_ = ctx
 15040  	return c
 15041  }
 15042  
 15043  // Header returns a http.Header that can be modified by the caller to add
 15044  // headers to the request.
 15045  func (c *OfferclassInsertCall) Header() http.Header {
 15046  	if c.header_ == nil {
 15047  		c.header_ = make(http.Header)
 15048  	}
 15049  	return c.header_
 15050  }
 15051  
 15052  func (c *OfferclassInsertCall) doRequest(alt string) (*http.Response, error) {
 15053  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15054  	var body io.Reader = nil
 15055  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerclass)
 15056  	if err != nil {
 15057  		return nil, err
 15058  	}
 15059  	c.urlParams_.Set("alt", alt)
 15060  	c.urlParams_.Set("prettyPrint", "false")
 15061  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass")
 15062  	urls += "?" + c.urlParams_.Encode()
 15063  	req, err := http.NewRequest("POST", urls, body)
 15064  	if err != nil {
 15065  		return nil, err
 15066  	}
 15067  	req.Header = reqHeaders
 15068  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15069  }
 15070  
 15071  // Do executes the "walletobjects.offerclass.insert" call.
 15072  // Any non-2xx status code is an error. Response headers are in either
 15073  // *OfferClass.ServerResponse.Header or (if a response was returned at all) in
 15074  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15075  // whether the returned error was because http.StatusNotModified was returned.
 15076  func (c *OfferclassInsertCall) Do(opts ...googleapi.CallOption) (*OfferClass, error) {
 15077  	gensupport.SetOptions(c.urlParams_, opts...)
 15078  	res, err := c.doRequest("json")
 15079  	if res != nil && res.StatusCode == http.StatusNotModified {
 15080  		if res.Body != nil {
 15081  			res.Body.Close()
 15082  		}
 15083  		return nil, gensupport.WrapError(&googleapi.Error{
 15084  			Code:   res.StatusCode,
 15085  			Header: res.Header,
 15086  		})
 15087  	}
 15088  	if err != nil {
 15089  		return nil, err
 15090  	}
 15091  	defer googleapi.CloseBody(res)
 15092  	if err := googleapi.CheckResponse(res); err != nil {
 15093  		return nil, gensupport.WrapError(err)
 15094  	}
 15095  	ret := &OfferClass{
 15096  		ServerResponse: googleapi.ServerResponse{
 15097  			Header:         res.Header,
 15098  			HTTPStatusCode: res.StatusCode,
 15099  		},
 15100  	}
 15101  	target := &ret
 15102  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15103  		return nil, err
 15104  	}
 15105  	return ret, nil
 15106  }
 15107  
 15108  type OfferclassListCall struct {
 15109  	s            *Service
 15110  	urlParams_   gensupport.URLParams
 15111  	ifNoneMatch_ string
 15112  	ctx_         context.Context
 15113  	header_      http.Header
 15114  }
 15115  
 15116  // List: Returns a list of all offer classes for a given issuer ID.
 15117  func (r *OfferclassService) List() *OfferclassListCall {
 15118  	c := &OfferclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15119  	return c
 15120  }
 15121  
 15122  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
 15123  // authorized to list classes.
 15124  func (c *OfferclassListCall) IssuerId(issuerId int64) *OfferclassListCall {
 15125  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
 15126  	return c
 15127  }
 15128  
 15129  // MaxResults sets the optional parameter "maxResults": Identifies the max
 15130  // number of results returned by a list. All results are returned if
 15131  // `maxResults` isn't defined.
 15132  func (c *OfferclassListCall) MaxResults(maxResults int64) *OfferclassListCall {
 15133  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 15134  	return c
 15135  }
 15136  
 15137  // Token sets the optional parameter "token": Used to get the next set of
 15138  // results if `maxResults` is specified, but more than `maxResults` classes are
 15139  // available in a list. For example, if you have a list of 200 classes and you
 15140  // call list with `maxResults` set to 20, list will return the first 20 classes
 15141  // and a token. Call list again with `maxResults` set to 20 and the token to
 15142  // get the next 20 classes.
 15143  func (c *OfferclassListCall) Token(token string) *OfferclassListCall {
 15144  	c.urlParams_.Set("token", token)
 15145  	return c
 15146  }
 15147  
 15148  // Fields allows partial responses to be retrieved. See
 15149  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15150  // details.
 15151  func (c *OfferclassListCall) Fields(s ...googleapi.Field) *OfferclassListCall {
 15152  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15153  	return c
 15154  }
 15155  
 15156  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15157  // object's ETag matches the given value. This is useful for getting updates
 15158  // only after the object has changed since the last request.
 15159  func (c *OfferclassListCall) IfNoneMatch(entityTag string) *OfferclassListCall {
 15160  	c.ifNoneMatch_ = entityTag
 15161  	return c
 15162  }
 15163  
 15164  // Context sets the context to be used in this call's Do method.
 15165  func (c *OfferclassListCall) Context(ctx context.Context) *OfferclassListCall {
 15166  	c.ctx_ = ctx
 15167  	return c
 15168  }
 15169  
 15170  // Header returns a http.Header that can be modified by the caller to add
 15171  // headers to the request.
 15172  func (c *OfferclassListCall) Header() http.Header {
 15173  	if c.header_ == nil {
 15174  		c.header_ = make(http.Header)
 15175  	}
 15176  	return c.header_
 15177  }
 15178  
 15179  func (c *OfferclassListCall) doRequest(alt string) (*http.Response, error) {
 15180  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15181  	if c.ifNoneMatch_ != "" {
 15182  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15183  	}
 15184  	var body io.Reader = nil
 15185  	c.urlParams_.Set("alt", alt)
 15186  	c.urlParams_.Set("prettyPrint", "false")
 15187  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass")
 15188  	urls += "?" + c.urlParams_.Encode()
 15189  	req, err := http.NewRequest("GET", urls, body)
 15190  	if err != nil {
 15191  		return nil, err
 15192  	}
 15193  	req.Header = reqHeaders
 15194  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15195  }
 15196  
 15197  // Do executes the "walletobjects.offerclass.list" call.
 15198  // Any non-2xx status code is an error. Response headers are in either
 15199  // *OfferClassListResponse.ServerResponse.Header or (if a response was returned
 15200  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15201  // check whether the returned error was because http.StatusNotModified was
 15202  // returned.
 15203  func (c *OfferclassListCall) Do(opts ...googleapi.CallOption) (*OfferClassListResponse, error) {
 15204  	gensupport.SetOptions(c.urlParams_, opts...)
 15205  	res, err := c.doRequest("json")
 15206  	if res != nil && res.StatusCode == http.StatusNotModified {
 15207  		if res.Body != nil {
 15208  			res.Body.Close()
 15209  		}
 15210  		return nil, gensupport.WrapError(&googleapi.Error{
 15211  			Code:   res.StatusCode,
 15212  			Header: res.Header,
 15213  		})
 15214  	}
 15215  	if err != nil {
 15216  		return nil, err
 15217  	}
 15218  	defer googleapi.CloseBody(res)
 15219  	if err := googleapi.CheckResponse(res); err != nil {
 15220  		return nil, gensupport.WrapError(err)
 15221  	}
 15222  	ret := &OfferClassListResponse{
 15223  		ServerResponse: googleapi.ServerResponse{
 15224  			Header:         res.Header,
 15225  			HTTPStatusCode: res.StatusCode,
 15226  		},
 15227  	}
 15228  	target := &ret
 15229  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15230  		return nil, err
 15231  	}
 15232  	return ret, nil
 15233  }
 15234  
 15235  type OfferclassPatchCall struct {
 15236  	s          *Service
 15237  	resourceId string
 15238  	offerclass *OfferClass
 15239  	urlParams_ gensupport.URLParams
 15240  	ctx_       context.Context
 15241  	header_    http.Header
 15242  }
 15243  
 15244  // Patch: Updates the offer class referenced by the given class ID. This method
 15245  // supports patch semantics.
 15246  //
 15247  //   - resourceId: The unique identifier for a class. This ID must be unique
 15248  //     across all classes from an issuer. This value should follow the format
 15249  //     issuer ID. identifier where the former is issued by Google and latter is
 15250  //     chosen by you. Your unique identifier should only include alphanumeric
 15251  //     characters, '.', '_', or '-'.
 15252  func (r *OfferclassService) Patch(resourceId string, offerclass *OfferClass) *OfferclassPatchCall {
 15253  	c := &OfferclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15254  	c.resourceId = resourceId
 15255  	c.offerclass = offerclass
 15256  	return c
 15257  }
 15258  
 15259  // Fields allows partial responses to be retrieved. See
 15260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15261  // details.
 15262  func (c *OfferclassPatchCall) Fields(s ...googleapi.Field) *OfferclassPatchCall {
 15263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15264  	return c
 15265  }
 15266  
 15267  // Context sets the context to be used in this call's Do method.
 15268  func (c *OfferclassPatchCall) Context(ctx context.Context) *OfferclassPatchCall {
 15269  	c.ctx_ = ctx
 15270  	return c
 15271  }
 15272  
 15273  // Header returns a http.Header that can be modified by the caller to add
 15274  // headers to the request.
 15275  func (c *OfferclassPatchCall) Header() http.Header {
 15276  	if c.header_ == nil {
 15277  		c.header_ = make(http.Header)
 15278  	}
 15279  	return c.header_
 15280  }
 15281  
 15282  func (c *OfferclassPatchCall) doRequest(alt string) (*http.Response, error) {
 15283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15284  	var body io.Reader = nil
 15285  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerclass)
 15286  	if err != nil {
 15287  		return nil, err
 15288  	}
 15289  	c.urlParams_.Set("alt", alt)
 15290  	c.urlParams_.Set("prettyPrint", "false")
 15291  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass/{resourceId}")
 15292  	urls += "?" + c.urlParams_.Encode()
 15293  	req, err := http.NewRequest("PATCH", urls, body)
 15294  	if err != nil {
 15295  		return nil, err
 15296  	}
 15297  	req.Header = reqHeaders
 15298  	googleapi.Expand(req.URL, map[string]string{
 15299  		"resourceId": c.resourceId,
 15300  	})
 15301  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15302  }
 15303  
 15304  // Do executes the "walletobjects.offerclass.patch" call.
 15305  // Any non-2xx status code is an error. Response headers are in either
 15306  // *OfferClass.ServerResponse.Header or (if a response was returned at all) in
 15307  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15308  // whether the returned error was because http.StatusNotModified was returned.
 15309  func (c *OfferclassPatchCall) Do(opts ...googleapi.CallOption) (*OfferClass, error) {
 15310  	gensupport.SetOptions(c.urlParams_, opts...)
 15311  	res, err := c.doRequest("json")
 15312  	if res != nil && res.StatusCode == http.StatusNotModified {
 15313  		if res.Body != nil {
 15314  			res.Body.Close()
 15315  		}
 15316  		return nil, gensupport.WrapError(&googleapi.Error{
 15317  			Code:   res.StatusCode,
 15318  			Header: res.Header,
 15319  		})
 15320  	}
 15321  	if err != nil {
 15322  		return nil, err
 15323  	}
 15324  	defer googleapi.CloseBody(res)
 15325  	if err := googleapi.CheckResponse(res); err != nil {
 15326  		return nil, gensupport.WrapError(err)
 15327  	}
 15328  	ret := &OfferClass{
 15329  		ServerResponse: googleapi.ServerResponse{
 15330  			Header:         res.Header,
 15331  			HTTPStatusCode: res.StatusCode,
 15332  		},
 15333  	}
 15334  	target := &ret
 15335  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15336  		return nil, err
 15337  	}
 15338  	return ret, nil
 15339  }
 15340  
 15341  type OfferclassUpdateCall struct {
 15342  	s          *Service
 15343  	resourceId string
 15344  	offerclass *OfferClass
 15345  	urlParams_ gensupport.URLParams
 15346  	ctx_       context.Context
 15347  	header_    http.Header
 15348  }
 15349  
 15350  // Update: Updates the offer class referenced by the given class ID.
 15351  //
 15352  //   - resourceId: The unique identifier for a class. This ID must be unique
 15353  //     across all classes from an issuer. This value should follow the format
 15354  //     issuer ID. identifier where the former is issued by Google and latter is
 15355  //     chosen by you. Your unique identifier should only include alphanumeric
 15356  //     characters, '.', '_', or '-'.
 15357  func (r *OfferclassService) Update(resourceId string, offerclass *OfferClass) *OfferclassUpdateCall {
 15358  	c := &OfferclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15359  	c.resourceId = resourceId
 15360  	c.offerclass = offerclass
 15361  	return c
 15362  }
 15363  
 15364  // Fields allows partial responses to be retrieved. See
 15365  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15366  // details.
 15367  func (c *OfferclassUpdateCall) Fields(s ...googleapi.Field) *OfferclassUpdateCall {
 15368  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15369  	return c
 15370  }
 15371  
 15372  // Context sets the context to be used in this call's Do method.
 15373  func (c *OfferclassUpdateCall) Context(ctx context.Context) *OfferclassUpdateCall {
 15374  	c.ctx_ = ctx
 15375  	return c
 15376  }
 15377  
 15378  // Header returns a http.Header that can be modified by the caller to add
 15379  // headers to the request.
 15380  func (c *OfferclassUpdateCall) Header() http.Header {
 15381  	if c.header_ == nil {
 15382  		c.header_ = make(http.Header)
 15383  	}
 15384  	return c.header_
 15385  }
 15386  
 15387  func (c *OfferclassUpdateCall) doRequest(alt string) (*http.Response, error) {
 15388  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15389  	var body io.Reader = nil
 15390  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerclass)
 15391  	if err != nil {
 15392  		return nil, err
 15393  	}
 15394  	c.urlParams_.Set("alt", alt)
 15395  	c.urlParams_.Set("prettyPrint", "false")
 15396  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerClass/{resourceId}")
 15397  	urls += "?" + c.urlParams_.Encode()
 15398  	req, err := http.NewRequest("PUT", urls, body)
 15399  	if err != nil {
 15400  		return nil, err
 15401  	}
 15402  	req.Header = reqHeaders
 15403  	googleapi.Expand(req.URL, map[string]string{
 15404  		"resourceId": c.resourceId,
 15405  	})
 15406  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15407  }
 15408  
 15409  // Do executes the "walletobjects.offerclass.update" call.
 15410  // Any non-2xx status code is an error. Response headers are in either
 15411  // *OfferClass.ServerResponse.Header or (if a response was returned at all) in
 15412  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15413  // whether the returned error was because http.StatusNotModified was returned.
 15414  func (c *OfferclassUpdateCall) Do(opts ...googleapi.CallOption) (*OfferClass, error) {
 15415  	gensupport.SetOptions(c.urlParams_, opts...)
 15416  	res, err := c.doRequest("json")
 15417  	if res != nil && res.StatusCode == http.StatusNotModified {
 15418  		if res.Body != nil {
 15419  			res.Body.Close()
 15420  		}
 15421  		return nil, gensupport.WrapError(&googleapi.Error{
 15422  			Code:   res.StatusCode,
 15423  			Header: res.Header,
 15424  		})
 15425  	}
 15426  	if err != nil {
 15427  		return nil, err
 15428  	}
 15429  	defer googleapi.CloseBody(res)
 15430  	if err := googleapi.CheckResponse(res); err != nil {
 15431  		return nil, gensupport.WrapError(err)
 15432  	}
 15433  	ret := &OfferClass{
 15434  		ServerResponse: googleapi.ServerResponse{
 15435  			Header:         res.Header,
 15436  			HTTPStatusCode: res.StatusCode,
 15437  		},
 15438  	}
 15439  	target := &ret
 15440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15441  		return nil, err
 15442  	}
 15443  	return ret, nil
 15444  }
 15445  
 15446  type OfferobjectAddmessageCall struct {
 15447  	s                 *Service
 15448  	resourceId        string
 15449  	addmessagerequest *AddMessageRequest
 15450  	urlParams_        gensupport.URLParams
 15451  	ctx_              context.Context
 15452  	header_           http.Header
 15453  }
 15454  
 15455  // Addmessage: Adds a message to the offer object referenced by the given
 15456  // object ID.
 15457  //
 15458  //   - resourceId: The unique identifier for an object. This ID must be unique
 15459  //     across all objects from an issuer. This value should follow the format
 15460  //     issuer ID. identifier where the former is issued by Google and latter is
 15461  //     chosen by you. Your unique identifier should only include alphanumeric
 15462  //     characters, '.', '_', or '-'.
 15463  func (r *OfferobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *OfferobjectAddmessageCall {
 15464  	c := &OfferobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15465  	c.resourceId = resourceId
 15466  	c.addmessagerequest = addmessagerequest
 15467  	return c
 15468  }
 15469  
 15470  // Fields allows partial responses to be retrieved. See
 15471  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15472  // details.
 15473  func (c *OfferobjectAddmessageCall) Fields(s ...googleapi.Field) *OfferobjectAddmessageCall {
 15474  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15475  	return c
 15476  }
 15477  
 15478  // Context sets the context to be used in this call's Do method.
 15479  func (c *OfferobjectAddmessageCall) Context(ctx context.Context) *OfferobjectAddmessageCall {
 15480  	c.ctx_ = ctx
 15481  	return c
 15482  }
 15483  
 15484  // Header returns a http.Header that can be modified by the caller to add
 15485  // headers to the request.
 15486  func (c *OfferobjectAddmessageCall) Header() http.Header {
 15487  	if c.header_ == nil {
 15488  		c.header_ = make(http.Header)
 15489  	}
 15490  	return c.header_
 15491  }
 15492  
 15493  func (c *OfferobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
 15494  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15495  	var body io.Reader = nil
 15496  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 15497  	if err != nil {
 15498  		return nil, err
 15499  	}
 15500  	c.urlParams_.Set("alt", alt)
 15501  	c.urlParams_.Set("prettyPrint", "false")
 15502  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject/{resourceId}/addMessage")
 15503  	urls += "?" + c.urlParams_.Encode()
 15504  	req, err := http.NewRequest("POST", urls, body)
 15505  	if err != nil {
 15506  		return nil, err
 15507  	}
 15508  	req.Header = reqHeaders
 15509  	googleapi.Expand(req.URL, map[string]string{
 15510  		"resourceId": c.resourceId,
 15511  	})
 15512  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15513  }
 15514  
 15515  // Do executes the "walletobjects.offerobject.addmessage" call.
 15516  // Any non-2xx status code is an error. Response headers are in either
 15517  // *OfferObjectAddMessageResponse.ServerResponse.Header or (if a response was
 15518  // returned at all) in error.(*googleapi.Error).Header. Use
 15519  // googleapi.IsNotModified to check whether the returned error was because
 15520  // http.StatusNotModified was returned.
 15521  func (c *OfferobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*OfferObjectAddMessageResponse, error) {
 15522  	gensupport.SetOptions(c.urlParams_, opts...)
 15523  	res, err := c.doRequest("json")
 15524  	if res != nil && res.StatusCode == http.StatusNotModified {
 15525  		if res.Body != nil {
 15526  			res.Body.Close()
 15527  		}
 15528  		return nil, gensupport.WrapError(&googleapi.Error{
 15529  			Code:   res.StatusCode,
 15530  			Header: res.Header,
 15531  		})
 15532  	}
 15533  	if err != nil {
 15534  		return nil, err
 15535  	}
 15536  	defer googleapi.CloseBody(res)
 15537  	if err := googleapi.CheckResponse(res); err != nil {
 15538  		return nil, gensupport.WrapError(err)
 15539  	}
 15540  	ret := &OfferObjectAddMessageResponse{
 15541  		ServerResponse: googleapi.ServerResponse{
 15542  			Header:         res.Header,
 15543  			HTTPStatusCode: res.StatusCode,
 15544  		},
 15545  	}
 15546  	target := &ret
 15547  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15548  		return nil, err
 15549  	}
 15550  	return ret, nil
 15551  }
 15552  
 15553  type OfferobjectGetCall struct {
 15554  	s            *Service
 15555  	resourceId   string
 15556  	urlParams_   gensupport.URLParams
 15557  	ifNoneMatch_ string
 15558  	ctx_         context.Context
 15559  	header_      http.Header
 15560  }
 15561  
 15562  // Get: Returns the offer object with the given object ID.
 15563  //
 15564  //   - resourceId: The unique identifier for an object. This ID must be unique
 15565  //     across all objects from an issuer. This value should follow the format
 15566  //     issuer ID. identifier where the former is issued by Google and latter is
 15567  //     chosen by you. Your unique identifier should only include alphanumeric
 15568  //     characters, '.', '_', or '-'.
 15569  func (r *OfferobjectService) Get(resourceId string) *OfferobjectGetCall {
 15570  	c := &OfferobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15571  	c.resourceId = resourceId
 15572  	return c
 15573  }
 15574  
 15575  // Fields allows partial responses to be retrieved. See
 15576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15577  // details.
 15578  func (c *OfferobjectGetCall) Fields(s ...googleapi.Field) *OfferobjectGetCall {
 15579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15580  	return c
 15581  }
 15582  
 15583  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15584  // object's ETag matches the given value. This is useful for getting updates
 15585  // only after the object has changed since the last request.
 15586  func (c *OfferobjectGetCall) IfNoneMatch(entityTag string) *OfferobjectGetCall {
 15587  	c.ifNoneMatch_ = entityTag
 15588  	return c
 15589  }
 15590  
 15591  // Context sets the context to be used in this call's Do method.
 15592  func (c *OfferobjectGetCall) Context(ctx context.Context) *OfferobjectGetCall {
 15593  	c.ctx_ = ctx
 15594  	return c
 15595  }
 15596  
 15597  // Header returns a http.Header that can be modified by the caller to add
 15598  // headers to the request.
 15599  func (c *OfferobjectGetCall) Header() http.Header {
 15600  	if c.header_ == nil {
 15601  		c.header_ = make(http.Header)
 15602  	}
 15603  	return c.header_
 15604  }
 15605  
 15606  func (c *OfferobjectGetCall) doRequest(alt string) (*http.Response, error) {
 15607  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15608  	if c.ifNoneMatch_ != "" {
 15609  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15610  	}
 15611  	var body io.Reader = nil
 15612  	c.urlParams_.Set("alt", alt)
 15613  	c.urlParams_.Set("prettyPrint", "false")
 15614  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject/{resourceId}")
 15615  	urls += "?" + c.urlParams_.Encode()
 15616  	req, err := http.NewRequest("GET", urls, body)
 15617  	if err != nil {
 15618  		return nil, err
 15619  	}
 15620  	req.Header = reqHeaders
 15621  	googleapi.Expand(req.URL, map[string]string{
 15622  		"resourceId": c.resourceId,
 15623  	})
 15624  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15625  }
 15626  
 15627  // Do executes the "walletobjects.offerobject.get" call.
 15628  // Any non-2xx status code is an error. Response headers are in either
 15629  // *OfferObject.ServerResponse.Header or (if a response was returned at all) in
 15630  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15631  // whether the returned error was because http.StatusNotModified was returned.
 15632  func (c *OfferobjectGetCall) Do(opts ...googleapi.CallOption) (*OfferObject, error) {
 15633  	gensupport.SetOptions(c.urlParams_, opts...)
 15634  	res, err := c.doRequest("json")
 15635  	if res != nil && res.StatusCode == http.StatusNotModified {
 15636  		if res.Body != nil {
 15637  			res.Body.Close()
 15638  		}
 15639  		return nil, gensupport.WrapError(&googleapi.Error{
 15640  			Code:   res.StatusCode,
 15641  			Header: res.Header,
 15642  		})
 15643  	}
 15644  	if err != nil {
 15645  		return nil, err
 15646  	}
 15647  	defer googleapi.CloseBody(res)
 15648  	if err := googleapi.CheckResponse(res); err != nil {
 15649  		return nil, gensupport.WrapError(err)
 15650  	}
 15651  	ret := &OfferObject{
 15652  		ServerResponse: googleapi.ServerResponse{
 15653  			Header:         res.Header,
 15654  			HTTPStatusCode: res.StatusCode,
 15655  		},
 15656  	}
 15657  	target := &ret
 15658  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15659  		return nil, err
 15660  	}
 15661  	return ret, nil
 15662  }
 15663  
 15664  type OfferobjectInsertCall struct {
 15665  	s           *Service
 15666  	offerobject *OfferObject
 15667  	urlParams_  gensupport.URLParams
 15668  	ctx_        context.Context
 15669  	header_     http.Header
 15670  }
 15671  
 15672  // Insert: Inserts an offer object with the given ID and properties.
 15673  func (r *OfferobjectService) Insert(offerobject *OfferObject) *OfferobjectInsertCall {
 15674  	c := &OfferobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15675  	c.offerobject = offerobject
 15676  	return c
 15677  }
 15678  
 15679  // Fields allows partial responses to be retrieved. See
 15680  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15681  // details.
 15682  func (c *OfferobjectInsertCall) Fields(s ...googleapi.Field) *OfferobjectInsertCall {
 15683  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15684  	return c
 15685  }
 15686  
 15687  // Context sets the context to be used in this call's Do method.
 15688  func (c *OfferobjectInsertCall) Context(ctx context.Context) *OfferobjectInsertCall {
 15689  	c.ctx_ = ctx
 15690  	return c
 15691  }
 15692  
 15693  // Header returns a http.Header that can be modified by the caller to add
 15694  // headers to the request.
 15695  func (c *OfferobjectInsertCall) Header() http.Header {
 15696  	if c.header_ == nil {
 15697  		c.header_ = make(http.Header)
 15698  	}
 15699  	return c.header_
 15700  }
 15701  
 15702  func (c *OfferobjectInsertCall) doRequest(alt string) (*http.Response, error) {
 15703  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15704  	var body io.Reader = nil
 15705  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerobject)
 15706  	if err != nil {
 15707  		return nil, err
 15708  	}
 15709  	c.urlParams_.Set("alt", alt)
 15710  	c.urlParams_.Set("prettyPrint", "false")
 15711  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject")
 15712  	urls += "?" + c.urlParams_.Encode()
 15713  	req, err := http.NewRequest("POST", urls, body)
 15714  	if err != nil {
 15715  		return nil, err
 15716  	}
 15717  	req.Header = reqHeaders
 15718  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15719  }
 15720  
 15721  // Do executes the "walletobjects.offerobject.insert" call.
 15722  // Any non-2xx status code is an error. Response headers are in either
 15723  // *OfferObject.ServerResponse.Header or (if a response was returned at all) in
 15724  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15725  // whether the returned error was because http.StatusNotModified was returned.
 15726  func (c *OfferobjectInsertCall) Do(opts ...googleapi.CallOption) (*OfferObject, error) {
 15727  	gensupport.SetOptions(c.urlParams_, opts...)
 15728  	res, err := c.doRequest("json")
 15729  	if res != nil && res.StatusCode == http.StatusNotModified {
 15730  		if res.Body != nil {
 15731  			res.Body.Close()
 15732  		}
 15733  		return nil, gensupport.WrapError(&googleapi.Error{
 15734  			Code:   res.StatusCode,
 15735  			Header: res.Header,
 15736  		})
 15737  	}
 15738  	if err != nil {
 15739  		return nil, err
 15740  	}
 15741  	defer googleapi.CloseBody(res)
 15742  	if err := googleapi.CheckResponse(res); err != nil {
 15743  		return nil, gensupport.WrapError(err)
 15744  	}
 15745  	ret := &OfferObject{
 15746  		ServerResponse: googleapi.ServerResponse{
 15747  			Header:         res.Header,
 15748  			HTTPStatusCode: res.StatusCode,
 15749  		},
 15750  	}
 15751  	target := &ret
 15752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15753  		return nil, err
 15754  	}
 15755  	return ret, nil
 15756  }
 15757  
 15758  type OfferobjectListCall struct {
 15759  	s            *Service
 15760  	urlParams_   gensupport.URLParams
 15761  	ifNoneMatch_ string
 15762  	ctx_         context.Context
 15763  	header_      http.Header
 15764  }
 15765  
 15766  // List: Returns a list of all offer objects for a given issuer ID.
 15767  func (r *OfferobjectService) List() *OfferobjectListCall {
 15768  	c := &OfferobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15769  	return c
 15770  }
 15771  
 15772  // ClassId sets the optional parameter "classId": The ID of the class whose
 15773  // objects will be listed.
 15774  func (c *OfferobjectListCall) ClassId(classId string) *OfferobjectListCall {
 15775  	c.urlParams_.Set("classId", classId)
 15776  	return c
 15777  }
 15778  
 15779  // MaxResults sets the optional parameter "maxResults": Identifies the max
 15780  // number of results returned by a list. All results are returned if
 15781  // `maxResults` isn't defined.
 15782  func (c *OfferobjectListCall) MaxResults(maxResults int64) *OfferobjectListCall {
 15783  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 15784  	return c
 15785  }
 15786  
 15787  // Token sets the optional parameter "token": Used to get the next set of
 15788  // results if `maxResults` is specified, but more than `maxResults` objects are
 15789  // available in a list. For example, if you have a list of 200 objects and you
 15790  // call list with `maxResults` set to 20, list will return the first 20 objects
 15791  // and a token. Call list again with `maxResults` set to 20 and the token to
 15792  // get the next 20 objects.
 15793  func (c *OfferobjectListCall) Token(token string) *OfferobjectListCall {
 15794  	c.urlParams_.Set("token", token)
 15795  	return c
 15796  }
 15797  
 15798  // Fields allows partial responses to be retrieved. See
 15799  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15800  // details.
 15801  func (c *OfferobjectListCall) Fields(s ...googleapi.Field) *OfferobjectListCall {
 15802  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15803  	return c
 15804  }
 15805  
 15806  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15807  // object's ETag matches the given value. This is useful for getting updates
 15808  // only after the object has changed since the last request.
 15809  func (c *OfferobjectListCall) IfNoneMatch(entityTag string) *OfferobjectListCall {
 15810  	c.ifNoneMatch_ = entityTag
 15811  	return c
 15812  }
 15813  
 15814  // Context sets the context to be used in this call's Do method.
 15815  func (c *OfferobjectListCall) Context(ctx context.Context) *OfferobjectListCall {
 15816  	c.ctx_ = ctx
 15817  	return c
 15818  }
 15819  
 15820  // Header returns a http.Header that can be modified by the caller to add
 15821  // headers to the request.
 15822  func (c *OfferobjectListCall) Header() http.Header {
 15823  	if c.header_ == nil {
 15824  		c.header_ = make(http.Header)
 15825  	}
 15826  	return c.header_
 15827  }
 15828  
 15829  func (c *OfferobjectListCall) doRequest(alt string) (*http.Response, error) {
 15830  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15831  	if c.ifNoneMatch_ != "" {
 15832  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15833  	}
 15834  	var body io.Reader = nil
 15835  	c.urlParams_.Set("alt", alt)
 15836  	c.urlParams_.Set("prettyPrint", "false")
 15837  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject")
 15838  	urls += "?" + c.urlParams_.Encode()
 15839  	req, err := http.NewRequest("GET", urls, body)
 15840  	if err != nil {
 15841  		return nil, err
 15842  	}
 15843  	req.Header = reqHeaders
 15844  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15845  }
 15846  
 15847  // Do executes the "walletobjects.offerobject.list" call.
 15848  // Any non-2xx status code is an error. Response headers are in either
 15849  // *OfferObjectListResponse.ServerResponse.Header or (if a response was
 15850  // returned at all) in error.(*googleapi.Error).Header. Use
 15851  // googleapi.IsNotModified to check whether the returned error was because
 15852  // http.StatusNotModified was returned.
 15853  func (c *OfferobjectListCall) Do(opts ...googleapi.CallOption) (*OfferObjectListResponse, error) {
 15854  	gensupport.SetOptions(c.urlParams_, opts...)
 15855  	res, err := c.doRequest("json")
 15856  	if res != nil && res.StatusCode == http.StatusNotModified {
 15857  		if res.Body != nil {
 15858  			res.Body.Close()
 15859  		}
 15860  		return nil, gensupport.WrapError(&googleapi.Error{
 15861  			Code:   res.StatusCode,
 15862  			Header: res.Header,
 15863  		})
 15864  	}
 15865  	if err != nil {
 15866  		return nil, err
 15867  	}
 15868  	defer googleapi.CloseBody(res)
 15869  	if err := googleapi.CheckResponse(res); err != nil {
 15870  		return nil, gensupport.WrapError(err)
 15871  	}
 15872  	ret := &OfferObjectListResponse{
 15873  		ServerResponse: googleapi.ServerResponse{
 15874  			Header:         res.Header,
 15875  			HTTPStatusCode: res.StatusCode,
 15876  		},
 15877  	}
 15878  	target := &ret
 15879  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15880  		return nil, err
 15881  	}
 15882  	return ret, nil
 15883  }
 15884  
 15885  type OfferobjectPatchCall struct {
 15886  	s           *Service
 15887  	resourceId  string
 15888  	offerobject *OfferObject
 15889  	urlParams_  gensupport.URLParams
 15890  	ctx_        context.Context
 15891  	header_     http.Header
 15892  }
 15893  
 15894  // Patch: Updates the offer object referenced by the given object ID. This
 15895  // method supports patch semantics.
 15896  //
 15897  //   - resourceId: The unique identifier for an object. This ID must be unique
 15898  //     across all objects from an issuer. This value should follow the format
 15899  //     issuer ID. identifier where the former is issued by Google and latter is
 15900  //     chosen by you. Your unique identifier should only include alphanumeric
 15901  //     characters, '.', '_', or '-'.
 15902  func (r *OfferobjectService) Patch(resourceId string, offerobject *OfferObject) *OfferobjectPatchCall {
 15903  	c := &OfferobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15904  	c.resourceId = resourceId
 15905  	c.offerobject = offerobject
 15906  	return c
 15907  }
 15908  
 15909  // Fields allows partial responses to be retrieved. See
 15910  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15911  // details.
 15912  func (c *OfferobjectPatchCall) Fields(s ...googleapi.Field) *OfferobjectPatchCall {
 15913  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15914  	return c
 15915  }
 15916  
 15917  // Context sets the context to be used in this call's Do method.
 15918  func (c *OfferobjectPatchCall) Context(ctx context.Context) *OfferobjectPatchCall {
 15919  	c.ctx_ = ctx
 15920  	return c
 15921  }
 15922  
 15923  // Header returns a http.Header that can be modified by the caller to add
 15924  // headers to the request.
 15925  func (c *OfferobjectPatchCall) Header() http.Header {
 15926  	if c.header_ == nil {
 15927  		c.header_ = make(http.Header)
 15928  	}
 15929  	return c.header_
 15930  }
 15931  
 15932  func (c *OfferobjectPatchCall) doRequest(alt string) (*http.Response, error) {
 15933  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15934  	var body io.Reader = nil
 15935  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerobject)
 15936  	if err != nil {
 15937  		return nil, err
 15938  	}
 15939  	c.urlParams_.Set("alt", alt)
 15940  	c.urlParams_.Set("prettyPrint", "false")
 15941  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject/{resourceId}")
 15942  	urls += "?" + c.urlParams_.Encode()
 15943  	req, err := http.NewRequest("PATCH", urls, body)
 15944  	if err != nil {
 15945  		return nil, err
 15946  	}
 15947  	req.Header = reqHeaders
 15948  	googleapi.Expand(req.URL, map[string]string{
 15949  		"resourceId": c.resourceId,
 15950  	})
 15951  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15952  }
 15953  
 15954  // Do executes the "walletobjects.offerobject.patch" call.
 15955  // Any non-2xx status code is an error. Response headers are in either
 15956  // *OfferObject.ServerResponse.Header or (if a response was returned at all) in
 15957  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15958  // whether the returned error was because http.StatusNotModified was returned.
 15959  func (c *OfferobjectPatchCall) Do(opts ...googleapi.CallOption) (*OfferObject, error) {
 15960  	gensupport.SetOptions(c.urlParams_, opts...)
 15961  	res, err := c.doRequest("json")
 15962  	if res != nil && res.StatusCode == http.StatusNotModified {
 15963  		if res.Body != nil {
 15964  			res.Body.Close()
 15965  		}
 15966  		return nil, gensupport.WrapError(&googleapi.Error{
 15967  			Code:   res.StatusCode,
 15968  			Header: res.Header,
 15969  		})
 15970  	}
 15971  	if err != nil {
 15972  		return nil, err
 15973  	}
 15974  	defer googleapi.CloseBody(res)
 15975  	if err := googleapi.CheckResponse(res); err != nil {
 15976  		return nil, gensupport.WrapError(err)
 15977  	}
 15978  	ret := &OfferObject{
 15979  		ServerResponse: googleapi.ServerResponse{
 15980  			Header:         res.Header,
 15981  			HTTPStatusCode: res.StatusCode,
 15982  		},
 15983  	}
 15984  	target := &ret
 15985  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15986  		return nil, err
 15987  	}
 15988  	return ret, nil
 15989  }
 15990  
 15991  type OfferobjectUpdateCall struct {
 15992  	s           *Service
 15993  	resourceId  string
 15994  	offerobject *OfferObject
 15995  	urlParams_  gensupport.URLParams
 15996  	ctx_        context.Context
 15997  	header_     http.Header
 15998  }
 15999  
 16000  // Update: Updates the offer object referenced by the given object ID.
 16001  //
 16002  //   - resourceId: The unique identifier for an object. This ID must be unique
 16003  //     across all objects from an issuer. This value should follow the format
 16004  //     issuer ID. identifier where the former is issued by Google and latter is
 16005  //     chosen by you. Your unique identifier should only include alphanumeric
 16006  //     characters, '.', '_', or '-'.
 16007  func (r *OfferobjectService) Update(resourceId string, offerobject *OfferObject) *OfferobjectUpdateCall {
 16008  	c := &OfferobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16009  	c.resourceId = resourceId
 16010  	c.offerobject = offerobject
 16011  	return c
 16012  }
 16013  
 16014  // Fields allows partial responses to be retrieved. See
 16015  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16016  // details.
 16017  func (c *OfferobjectUpdateCall) Fields(s ...googleapi.Field) *OfferobjectUpdateCall {
 16018  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16019  	return c
 16020  }
 16021  
 16022  // Context sets the context to be used in this call's Do method.
 16023  func (c *OfferobjectUpdateCall) Context(ctx context.Context) *OfferobjectUpdateCall {
 16024  	c.ctx_ = ctx
 16025  	return c
 16026  }
 16027  
 16028  // Header returns a http.Header that can be modified by the caller to add
 16029  // headers to the request.
 16030  func (c *OfferobjectUpdateCall) Header() http.Header {
 16031  	if c.header_ == nil {
 16032  		c.header_ = make(http.Header)
 16033  	}
 16034  	return c.header_
 16035  }
 16036  
 16037  func (c *OfferobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
 16038  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16039  	var body io.Reader = nil
 16040  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.offerobject)
 16041  	if err != nil {
 16042  		return nil, err
 16043  	}
 16044  	c.urlParams_.Set("alt", alt)
 16045  	c.urlParams_.Set("prettyPrint", "false")
 16046  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/offerObject/{resourceId}")
 16047  	urls += "?" + c.urlParams_.Encode()
 16048  	req, err := http.NewRequest("PUT", urls, body)
 16049  	if err != nil {
 16050  		return nil, err
 16051  	}
 16052  	req.Header = reqHeaders
 16053  	googleapi.Expand(req.URL, map[string]string{
 16054  		"resourceId": c.resourceId,
 16055  	})
 16056  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16057  }
 16058  
 16059  // Do executes the "walletobjects.offerobject.update" call.
 16060  // Any non-2xx status code is an error. Response headers are in either
 16061  // *OfferObject.ServerResponse.Header or (if a response was returned at all) in
 16062  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16063  // whether the returned error was because http.StatusNotModified was returned.
 16064  func (c *OfferobjectUpdateCall) Do(opts ...googleapi.CallOption) (*OfferObject, error) {
 16065  	gensupport.SetOptions(c.urlParams_, opts...)
 16066  	res, err := c.doRequest("json")
 16067  	if res != nil && res.StatusCode == http.StatusNotModified {
 16068  		if res.Body != nil {
 16069  			res.Body.Close()
 16070  		}
 16071  		return nil, gensupport.WrapError(&googleapi.Error{
 16072  			Code:   res.StatusCode,
 16073  			Header: res.Header,
 16074  		})
 16075  	}
 16076  	if err != nil {
 16077  		return nil, err
 16078  	}
 16079  	defer googleapi.CloseBody(res)
 16080  	if err := googleapi.CheckResponse(res); err != nil {
 16081  		return nil, gensupport.WrapError(err)
 16082  	}
 16083  	ret := &OfferObject{
 16084  		ServerResponse: googleapi.ServerResponse{
 16085  			Header:         res.Header,
 16086  			HTTPStatusCode: res.StatusCode,
 16087  		},
 16088  	}
 16089  	target := &ret
 16090  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16091  		return nil, err
 16092  	}
 16093  	return ret, nil
 16094  }
 16095  
 16096  type PermissionsGetCall struct {
 16097  	s            *Service
 16098  	resourceId   int64
 16099  	urlParams_   gensupport.URLParams
 16100  	ifNoneMatch_ string
 16101  	ctx_         context.Context
 16102  	header_      http.Header
 16103  }
 16104  
 16105  // Get: Returns the permissions for the given issuer id.
 16106  //
 16107  //   - resourceId: The unique identifier for an issuer. This ID must be unique
 16108  //     across all issuers.
 16109  func (r *PermissionsService) Get(resourceId int64) *PermissionsGetCall {
 16110  	c := &PermissionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16111  	c.resourceId = resourceId
 16112  	return c
 16113  }
 16114  
 16115  // Fields allows partial responses to be retrieved. See
 16116  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16117  // details.
 16118  func (c *PermissionsGetCall) Fields(s ...googleapi.Field) *PermissionsGetCall {
 16119  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16120  	return c
 16121  }
 16122  
 16123  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16124  // object's ETag matches the given value. This is useful for getting updates
 16125  // only after the object has changed since the last request.
 16126  func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall {
 16127  	c.ifNoneMatch_ = entityTag
 16128  	return c
 16129  }
 16130  
 16131  // Context sets the context to be used in this call's Do method.
 16132  func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall {
 16133  	c.ctx_ = ctx
 16134  	return c
 16135  }
 16136  
 16137  // Header returns a http.Header that can be modified by the caller to add
 16138  // headers to the request.
 16139  func (c *PermissionsGetCall) Header() http.Header {
 16140  	if c.header_ == nil {
 16141  		c.header_ = make(http.Header)
 16142  	}
 16143  	return c.header_
 16144  }
 16145  
 16146  func (c *PermissionsGetCall) doRequest(alt string) (*http.Response, error) {
 16147  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16148  	if c.ifNoneMatch_ != "" {
 16149  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16150  	}
 16151  	var body io.Reader = nil
 16152  	c.urlParams_.Set("alt", alt)
 16153  	c.urlParams_.Set("prettyPrint", "false")
 16154  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/permissions/{resourceId}")
 16155  	urls += "?" + c.urlParams_.Encode()
 16156  	req, err := http.NewRequest("GET", urls, body)
 16157  	if err != nil {
 16158  		return nil, err
 16159  	}
 16160  	req.Header = reqHeaders
 16161  	googleapi.Expand(req.URL, map[string]string{
 16162  		"resourceId": strconv.FormatInt(c.resourceId, 10),
 16163  	})
 16164  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16165  }
 16166  
 16167  // Do executes the "walletobjects.permissions.get" call.
 16168  // Any non-2xx status code is an error. Response headers are in either
 16169  // *Permissions.ServerResponse.Header or (if a response was returned at all) in
 16170  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16171  // whether the returned error was because http.StatusNotModified was returned.
 16172  func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permissions, error) {
 16173  	gensupport.SetOptions(c.urlParams_, opts...)
 16174  	res, err := c.doRequest("json")
 16175  	if res != nil && res.StatusCode == http.StatusNotModified {
 16176  		if res.Body != nil {
 16177  			res.Body.Close()
 16178  		}
 16179  		return nil, gensupport.WrapError(&googleapi.Error{
 16180  			Code:   res.StatusCode,
 16181  			Header: res.Header,
 16182  		})
 16183  	}
 16184  	if err != nil {
 16185  		return nil, err
 16186  	}
 16187  	defer googleapi.CloseBody(res)
 16188  	if err := googleapi.CheckResponse(res); err != nil {
 16189  		return nil, gensupport.WrapError(err)
 16190  	}
 16191  	ret := &Permissions{
 16192  		ServerResponse: googleapi.ServerResponse{
 16193  			Header:         res.Header,
 16194  			HTTPStatusCode: res.StatusCode,
 16195  		},
 16196  	}
 16197  	target := &ret
 16198  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16199  		return nil, err
 16200  	}
 16201  	return ret, nil
 16202  }
 16203  
 16204  type PermissionsUpdateCall struct {
 16205  	s           *Service
 16206  	resourceId  int64
 16207  	permissions *Permissions
 16208  	urlParams_  gensupport.URLParams
 16209  	ctx_        context.Context
 16210  	header_     http.Header
 16211  }
 16212  
 16213  // Update: Updates the permissions for the given issuer.
 16214  //
 16215  //   - resourceId: The unique identifier for an issuer. This ID must be unique
 16216  //     across all issuers.
 16217  func (r *PermissionsService) Update(resourceId int64, permissions *Permissions) *PermissionsUpdateCall {
 16218  	c := &PermissionsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16219  	c.resourceId = resourceId
 16220  	c.permissions = permissions
 16221  	return c
 16222  }
 16223  
 16224  // Fields allows partial responses to be retrieved. See
 16225  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16226  // details.
 16227  func (c *PermissionsUpdateCall) Fields(s ...googleapi.Field) *PermissionsUpdateCall {
 16228  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16229  	return c
 16230  }
 16231  
 16232  // Context sets the context to be used in this call's Do method.
 16233  func (c *PermissionsUpdateCall) Context(ctx context.Context) *PermissionsUpdateCall {
 16234  	c.ctx_ = ctx
 16235  	return c
 16236  }
 16237  
 16238  // Header returns a http.Header that can be modified by the caller to add
 16239  // headers to the request.
 16240  func (c *PermissionsUpdateCall) Header() http.Header {
 16241  	if c.header_ == nil {
 16242  		c.header_ = make(http.Header)
 16243  	}
 16244  	return c.header_
 16245  }
 16246  
 16247  func (c *PermissionsUpdateCall) doRequest(alt string) (*http.Response, error) {
 16248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16249  	var body io.Reader = nil
 16250  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.permissions)
 16251  	if err != nil {
 16252  		return nil, err
 16253  	}
 16254  	c.urlParams_.Set("alt", alt)
 16255  	c.urlParams_.Set("prettyPrint", "false")
 16256  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/permissions/{resourceId}")
 16257  	urls += "?" + c.urlParams_.Encode()
 16258  	req, err := http.NewRequest("PUT", urls, body)
 16259  	if err != nil {
 16260  		return nil, err
 16261  	}
 16262  	req.Header = reqHeaders
 16263  	googleapi.Expand(req.URL, map[string]string{
 16264  		"resourceId": strconv.FormatInt(c.resourceId, 10),
 16265  	})
 16266  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16267  }
 16268  
 16269  // Do executes the "walletobjects.permissions.update" call.
 16270  // Any non-2xx status code is an error. Response headers are in either
 16271  // *Permissions.ServerResponse.Header or (if a response was returned at all) in
 16272  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16273  // whether the returned error was because http.StatusNotModified was returned.
 16274  func (c *PermissionsUpdateCall) Do(opts ...googleapi.CallOption) (*Permissions, error) {
 16275  	gensupport.SetOptions(c.urlParams_, opts...)
 16276  	res, err := c.doRequest("json")
 16277  	if res != nil && res.StatusCode == http.StatusNotModified {
 16278  		if res.Body != nil {
 16279  			res.Body.Close()
 16280  		}
 16281  		return nil, gensupport.WrapError(&googleapi.Error{
 16282  			Code:   res.StatusCode,
 16283  			Header: res.Header,
 16284  		})
 16285  	}
 16286  	if err != nil {
 16287  		return nil, err
 16288  	}
 16289  	defer googleapi.CloseBody(res)
 16290  	if err := googleapi.CheckResponse(res); err != nil {
 16291  		return nil, gensupport.WrapError(err)
 16292  	}
 16293  	ret := &Permissions{
 16294  		ServerResponse: googleapi.ServerResponse{
 16295  			Header:         res.Header,
 16296  			HTTPStatusCode: res.StatusCode,
 16297  		},
 16298  	}
 16299  	target := &ret
 16300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16301  		return nil, err
 16302  	}
 16303  	return ret, nil
 16304  }
 16305  
 16306  type SmarttapInsertCall struct {
 16307  	s          *Service
 16308  	smarttap   *SmartTap
 16309  	urlParams_ gensupport.URLParams
 16310  	ctx_       context.Context
 16311  	header_    http.Header
 16312  }
 16313  
 16314  // Insert: Inserts the smart tap.
 16315  func (r *SmarttapService) Insert(smarttap *SmartTap) *SmarttapInsertCall {
 16316  	c := &SmarttapInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16317  	c.smarttap = smarttap
 16318  	return c
 16319  }
 16320  
 16321  // Fields allows partial responses to be retrieved. See
 16322  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16323  // details.
 16324  func (c *SmarttapInsertCall) Fields(s ...googleapi.Field) *SmarttapInsertCall {
 16325  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16326  	return c
 16327  }
 16328  
 16329  // Context sets the context to be used in this call's Do method.
 16330  func (c *SmarttapInsertCall) Context(ctx context.Context) *SmarttapInsertCall {
 16331  	c.ctx_ = ctx
 16332  	return c
 16333  }
 16334  
 16335  // Header returns a http.Header that can be modified by the caller to add
 16336  // headers to the request.
 16337  func (c *SmarttapInsertCall) Header() http.Header {
 16338  	if c.header_ == nil {
 16339  		c.header_ = make(http.Header)
 16340  	}
 16341  	return c.header_
 16342  }
 16343  
 16344  func (c *SmarttapInsertCall) doRequest(alt string) (*http.Response, error) {
 16345  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16346  	var body io.Reader = nil
 16347  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.smarttap)
 16348  	if err != nil {
 16349  		return nil, err
 16350  	}
 16351  	c.urlParams_.Set("alt", alt)
 16352  	c.urlParams_.Set("prettyPrint", "false")
 16353  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/smartTap")
 16354  	urls += "?" + c.urlParams_.Encode()
 16355  	req, err := http.NewRequest("POST", urls, body)
 16356  	if err != nil {
 16357  		return nil, err
 16358  	}
 16359  	req.Header = reqHeaders
 16360  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16361  }
 16362  
 16363  // Do executes the "walletobjects.smarttap.insert" call.
 16364  // Any non-2xx status code is an error. Response headers are in either
 16365  // *SmartTap.ServerResponse.Header or (if a response was returned at all) in
 16366  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16367  // whether the returned error was because http.StatusNotModified was returned.
 16368  func (c *SmarttapInsertCall) Do(opts ...googleapi.CallOption) (*SmartTap, error) {
 16369  	gensupport.SetOptions(c.urlParams_, opts...)
 16370  	res, err := c.doRequest("json")
 16371  	if res != nil && res.StatusCode == http.StatusNotModified {
 16372  		if res.Body != nil {
 16373  			res.Body.Close()
 16374  		}
 16375  		return nil, gensupport.WrapError(&googleapi.Error{
 16376  			Code:   res.StatusCode,
 16377  			Header: res.Header,
 16378  		})
 16379  	}
 16380  	if err != nil {
 16381  		return nil, err
 16382  	}
 16383  	defer googleapi.CloseBody(res)
 16384  	if err := googleapi.CheckResponse(res); err != nil {
 16385  		return nil, gensupport.WrapError(err)
 16386  	}
 16387  	ret := &SmartTap{
 16388  		ServerResponse: googleapi.ServerResponse{
 16389  			Header:         res.Header,
 16390  			HTTPStatusCode: res.StatusCode,
 16391  		},
 16392  	}
 16393  	target := &ret
 16394  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16395  		return nil, err
 16396  	}
 16397  	return ret, nil
 16398  }
 16399  
 16400  type TransitclassAddmessageCall struct {
 16401  	s                 *Service
 16402  	resourceId        string
 16403  	addmessagerequest *AddMessageRequest
 16404  	urlParams_        gensupport.URLParams
 16405  	ctx_              context.Context
 16406  	header_           http.Header
 16407  }
 16408  
 16409  // Addmessage: Adds a message to the transit class referenced by the given
 16410  // class ID.
 16411  //
 16412  //   - resourceId: The unique identifier for a class. This ID must be unique
 16413  //     across all classes from an issuer. This value should follow the format
 16414  //     issuer ID. identifier where the former is issued by Google and latter is
 16415  //     chosen by you. Your unique identifier should only include alphanumeric
 16416  //     characters, '.', '_', or '-'.
 16417  func (r *TransitclassService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitclassAddmessageCall {
 16418  	c := &TransitclassAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16419  	c.resourceId = resourceId
 16420  	c.addmessagerequest = addmessagerequest
 16421  	return c
 16422  }
 16423  
 16424  // Fields allows partial responses to be retrieved. See
 16425  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16426  // details.
 16427  func (c *TransitclassAddmessageCall) Fields(s ...googleapi.Field) *TransitclassAddmessageCall {
 16428  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16429  	return c
 16430  }
 16431  
 16432  // Context sets the context to be used in this call's Do method.
 16433  func (c *TransitclassAddmessageCall) Context(ctx context.Context) *TransitclassAddmessageCall {
 16434  	c.ctx_ = ctx
 16435  	return c
 16436  }
 16437  
 16438  // Header returns a http.Header that can be modified by the caller to add
 16439  // headers to the request.
 16440  func (c *TransitclassAddmessageCall) Header() http.Header {
 16441  	if c.header_ == nil {
 16442  		c.header_ = make(http.Header)
 16443  	}
 16444  	return c.header_
 16445  }
 16446  
 16447  func (c *TransitclassAddmessageCall) doRequest(alt string) (*http.Response, error) {
 16448  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16449  	var body io.Reader = nil
 16450  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 16451  	if err != nil {
 16452  		return nil, err
 16453  	}
 16454  	c.urlParams_.Set("alt", alt)
 16455  	c.urlParams_.Set("prettyPrint", "false")
 16456  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass/{resourceId}/addMessage")
 16457  	urls += "?" + c.urlParams_.Encode()
 16458  	req, err := http.NewRequest("POST", urls, body)
 16459  	if err != nil {
 16460  		return nil, err
 16461  	}
 16462  	req.Header = reqHeaders
 16463  	googleapi.Expand(req.URL, map[string]string{
 16464  		"resourceId": c.resourceId,
 16465  	})
 16466  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16467  }
 16468  
 16469  // Do executes the "walletobjects.transitclass.addmessage" call.
 16470  // Any non-2xx status code is an error. Response headers are in either
 16471  // *TransitClassAddMessageResponse.ServerResponse.Header or (if a response was
 16472  // returned at all) in error.(*googleapi.Error).Header. Use
 16473  // googleapi.IsNotModified to check whether the returned error was because
 16474  // http.StatusNotModified was returned.
 16475  func (c *TransitclassAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitClassAddMessageResponse, error) {
 16476  	gensupport.SetOptions(c.urlParams_, opts...)
 16477  	res, err := c.doRequest("json")
 16478  	if res != nil && res.StatusCode == http.StatusNotModified {
 16479  		if res.Body != nil {
 16480  			res.Body.Close()
 16481  		}
 16482  		return nil, gensupport.WrapError(&googleapi.Error{
 16483  			Code:   res.StatusCode,
 16484  			Header: res.Header,
 16485  		})
 16486  	}
 16487  	if err != nil {
 16488  		return nil, err
 16489  	}
 16490  	defer googleapi.CloseBody(res)
 16491  	if err := googleapi.CheckResponse(res); err != nil {
 16492  		return nil, gensupport.WrapError(err)
 16493  	}
 16494  	ret := &TransitClassAddMessageResponse{
 16495  		ServerResponse: googleapi.ServerResponse{
 16496  			Header:         res.Header,
 16497  			HTTPStatusCode: res.StatusCode,
 16498  		},
 16499  	}
 16500  	target := &ret
 16501  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16502  		return nil, err
 16503  	}
 16504  	return ret, nil
 16505  }
 16506  
 16507  type TransitclassGetCall struct {
 16508  	s            *Service
 16509  	resourceId   string
 16510  	urlParams_   gensupport.URLParams
 16511  	ifNoneMatch_ string
 16512  	ctx_         context.Context
 16513  	header_      http.Header
 16514  }
 16515  
 16516  // Get: Returns the transit class with the given class ID.
 16517  //
 16518  //   - resourceId: The unique identifier for a class. This ID must be unique
 16519  //     across all classes from an issuer. This value should follow the format
 16520  //     issuer ID. identifier where the former is issued by Google and latter is
 16521  //     chosen by you. Your unique identifier should only include alphanumeric
 16522  //     characters, '.', '_', or '-'.
 16523  func (r *TransitclassService) Get(resourceId string) *TransitclassGetCall {
 16524  	c := &TransitclassGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16525  	c.resourceId = resourceId
 16526  	return c
 16527  }
 16528  
 16529  // Fields allows partial responses to be retrieved. See
 16530  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16531  // details.
 16532  func (c *TransitclassGetCall) Fields(s ...googleapi.Field) *TransitclassGetCall {
 16533  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16534  	return c
 16535  }
 16536  
 16537  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16538  // object's ETag matches the given value. This is useful for getting updates
 16539  // only after the object has changed since the last request.
 16540  func (c *TransitclassGetCall) IfNoneMatch(entityTag string) *TransitclassGetCall {
 16541  	c.ifNoneMatch_ = entityTag
 16542  	return c
 16543  }
 16544  
 16545  // Context sets the context to be used in this call's Do method.
 16546  func (c *TransitclassGetCall) Context(ctx context.Context) *TransitclassGetCall {
 16547  	c.ctx_ = ctx
 16548  	return c
 16549  }
 16550  
 16551  // Header returns a http.Header that can be modified by the caller to add
 16552  // headers to the request.
 16553  func (c *TransitclassGetCall) Header() http.Header {
 16554  	if c.header_ == nil {
 16555  		c.header_ = make(http.Header)
 16556  	}
 16557  	return c.header_
 16558  }
 16559  
 16560  func (c *TransitclassGetCall) doRequest(alt string) (*http.Response, error) {
 16561  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16562  	if c.ifNoneMatch_ != "" {
 16563  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16564  	}
 16565  	var body io.Reader = nil
 16566  	c.urlParams_.Set("alt", alt)
 16567  	c.urlParams_.Set("prettyPrint", "false")
 16568  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass/{resourceId}")
 16569  	urls += "?" + c.urlParams_.Encode()
 16570  	req, err := http.NewRequest("GET", urls, body)
 16571  	if err != nil {
 16572  		return nil, err
 16573  	}
 16574  	req.Header = reqHeaders
 16575  	googleapi.Expand(req.URL, map[string]string{
 16576  		"resourceId": c.resourceId,
 16577  	})
 16578  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16579  }
 16580  
 16581  // Do executes the "walletobjects.transitclass.get" call.
 16582  // Any non-2xx status code is an error. Response headers are in either
 16583  // *TransitClass.ServerResponse.Header or (if a response was returned at all)
 16584  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16585  // whether the returned error was because http.StatusNotModified was returned.
 16586  func (c *TransitclassGetCall) Do(opts ...googleapi.CallOption) (*TransitClass, error) {
 16587  	gensupport.SetOptions(c.urlParams_, opts...)
 16588  	res, err := c.doRequest("json")
 16589  	if res != nil && res.StatusCode == http.StatusNotModified {
 16590  		if res.Body != nil {
 16591  			res.Body.Close()
 16592  		}
 16593  		return nil, gensupport.WrapError(&googleapi.Error{
 16594  			Code:   res.StatusCode,
 16595  			Header: res.Header,
 16596  		})
 16597  	}
 16598  	if err != nil {
 16599  		return nil, err
 16600  	}
 16601  	defer googleapi.CloseBody(res)
 16602  	if err := googleapi.CheckResponse(res); err != nil {
 16603  		return nil, gensupport.WrapError(err)
 16604  	}
 16605  	ret := &TransitClass{
 16606  		ServerResponse: googleapi.ServerResponse{
 16607  			Header:         res.Header,
 16608  			HTTPStatusCode: res.StatusCode,
 16609  		},
 16610  	}
 16611  	target := &ret
 16612  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16613  		return nil, err
 16614  	}
 16615  	return ret, nil
 16616  }
 16617  
 16618  type TransitclassInsertCall struct {
 16619  	s            *Service
 16620  	transitclass *TransitClass
 16621  	urlParams_   gensupport.URLParams
 16622  	ctx_         context.Context
 16623  	header_      http.Header
 16624  }
 16625  
 16626  // Insert: Inserts a transit class with the given ID and properties.
 16627  func (r *TransitclassService) Insert(transitclass *TransitClass) *TransitclassInsertCall {
 16628  	c := &TransitclassInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16629  	c.transitclass = transitclass
 16630  	return c
 16631  }
 16632  
 16633  // Fields allows partial responses to be retrieved. See
 16634  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16635  // details.
 16636  func (c *TransitclassInsertCall) Fields(s ...googleapi.Field) *TransitclassInsertCall {
 16637  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16638  	return c
 16639  }
 16640  
 16641  // Context sets the context to be used in this call's Do method.
 16642  func (c *TransitclassInsertCall) Context(ctx context.Context) *TransitclassInsertCall {
 16643  	c.ctx_ = ctx
 16644  	return c
 16645  }
 16646  
 16647  // Header returns a http.Header that can be modified by the caller to add
 16648  // headers to the request.
 16649  func (c *TransitclassInsertCall) Header() http.Header {
 16650  	if c.header_ == nil {
 16651  		c.header_ = make(http.Header)
 16652  	}
 16653  	return c.header_
 16654  }
 16655  
 16656  func (c *TransitclassInsertCall) doRequest(alt string) (*http.Response, error) {
 16657  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16658  	var body io.Reader = nil
 16659  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitclass)
 16660  	if err != nil {
 16661  		return nil, err
 16662  	}
 16663  	c.urlParams_.Set("alt", alt)
 16664  	c.urlParams_.Set("prettyPrint", "false")
 16665  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass")
 16666  	urls += "?" + c.urlParams_.Encode()
 16667  	req, err := http.NewRequest("POST", urls, body)
 16668  	if err != nil {
 16669  		return nil, err
 16670  	}
 16671  	req.Header = reqHeaders
 16672  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16673  }
 16674  
 16675  // Do executes the "walletobjects.transitclass.insert" call.
 16676  // Any non-2xx status code is an error. Response headers are in either
 16677  // *TransitClass.ServerResponse.Header or (if a response was returned at all)
 16678  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16679  // whether the returned error was because http.StatusNotModified was returned.
 16680  func (c *TransitclassInsertCall) Do(opts ...googleapi.CallOption) (*TransitClass, error) {
 16681  	gensupport.SetOptions(c.urlParams_, opts...)
 16682  	res, err := c.doRequest("json")
 16683  	if res != nil && res.StatusCode == http.StatusNotModified {
 16684  		if res.Body != nil {
 16685  			res.Body.Close()
 16686  		}
 16687  		return nil, gensupport.WrapError(&googleapi.Error{
 16688  			Code:   res.StatusCode,
 16689  			Header: res.Header,
 16690  		})
 16691  	}
 16692  	if err != nil {
 16693  		return nil, err
 16694  	}
 16695  	defer googleapi.CloseBody(res)
 16696  	if err := googleapi.CheckResponse(res); err != nil {
 16697  		return nil, gensupport.WrapError(err)
 16698  	}
 16699  	ret := &TransitClass{
 16700  		ServerResponse: googleapi.ServerResponse{
 16701  			Header:         res.Header,
 16702  			HTTPStatusCode: res.StatusCode,
 16703  		},
 16704  	}
 16705  	target := &ret
 16706  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16707  		return nil, err
 16708  	}
 16709  	return ret, nil
 16710  }
 16711  
 16712  type TransitclassListCall struct {
 16713  	s            *Service
 16714  	urlParams_   gensupport.URLParams
 16715  	ifNoneMatch_ string
 16716  	ctx_         context.Context
 16717  	header_      http.Header
 16718  }
 16719  
 16720  // List: Returns a list of all transit classes for a given issuer ID.
 16721  func (r *TransitclassService) List() *TransitclassListCall {
 16722  	c := &TransitclassListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16723  	return c
 16724  }
 16725  
 16726  // IssuerId sets the optional parameter "issuerId": The ID of the issuer
 16727  // authorized to list classes.
 16728  func (c *TransitclassListCall) IssuerId(issuerId int64) *TransitclassListCall {
 16729  	c.urlParams_.Set("issuerId", fmt.Sprint(issuerId))
 16730  	return c
 16731  }
 16732  
 16733  // MaxResults sets the optional parameter "maxResults": Identifies the max
 16734  // number of results returned by a list. All results are returned if
 16735  // `maxResults` isn't defined.
 16736  func (c *TransitclassListCall) MaxResults(maxResults int64) *TransitclassListCall {
 16737  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 16738  	return c
 16739  }
 16740  
 16741  // Token sets the optional parameter "token": Used to get the next set of
 16742  // results if `maxResults` is specified, but more than `maxResults` classes are
 16743  // available in a list. For example, if you have a list of 200 classes and you
 16744  // call list with `maxResults` set to 20, list will return the first 20 classes
 16745  // and a token. Call list again with `maxResults` set to 20 and the token to
 16746  // get the next 20 classes.
 16747  func (c *TransitclassListCall) Token(token string) *TransitclassListCall {
 16748  	c.urlParams_.Set("token", token)
 16749  	return c
 16750  }
 16751  
 16752  // Fields allows partial responses to be retrieved. See
 16753  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16754  // details.
 16755  func (c *TransitclassListCall) Fields(s ...googleapi.Field) *TransitclassListCall {
 16756  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16757  	return c
 16758  }
 16759  
 16760  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16761  // object's ETag matches the given value. This is useful for getting updates
 16762  // only after the object has changed since the last request.
 16763  func (c *TransitclassListCall) IfNoneMatch(entityTag string) *TransitclassListCall {
 16764  	c.ifNoneMatch_ = entityTag
 16765  	return c
 16766  }
 16767  
 16768  // Context sets the context to be used in this call's Do method.
 16769  func (c *TransitclassListCall) Context(ctx context.Context) *TransitclassListCall {
 16770  	c.ctx_ = ctx
 16771  	return c
 16772  }
 16773  
 16774  // Header returns a http.Header that can be modified by the caller to add
 16775  // headers to the request.
 16776  func (c *TransitclassListCall) Header() http.Header {
 16777  	if c.header_ == nil {
 16778  		c.header_ = make(http.Header)
 16779  	}
 16780  	return c.header_
 16781  }
 16782  
 16783  func (c *TransitclassListCall) doRequest(alt string) (*http.Response, error) {
 16784  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16785  	if c.ifNoneMatch_ != "" {
 16786  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16787  	}
 16788  	var body io.Reader = nil
 16789  	c.urlParams_.Set("alt", alt)
 16790  	c.urlParams_.Set("prettyPrint", "false")
 16791  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass")
 16792  	urls += "?" + c.urlParams_.Encode()
 16793  	req, err := http.NewRequest("GET", urls, body)
 16794  	if err != nil {
 16795  		return nil, err
 16796  	}
 16797  	req.Header = reqHeaders
 16798  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16799  }
 16800  
 16801  // Do executes the "walletobjects.transitclass.list" call.
 16802  // Any non-2xx status code is an error. Response headers are in either
 16803  // *TransitClassListResponse.ServerResponse.Header or (if a response was
 16804  // returned at all) in error.(*googleapi.Error).Header. Use
 16805  // googleapi.IsNotModified to check whether the returned error was because
 16806  // http.StatusNotModified was returned.
 16807  func (c *TransitclassListCall) Do(opts ...googleapi.CallOption) (*TransitClassListResponse, error) {
 16808  	gensupport.SetOptions(c.urlParams_, opts...)
 16809  	res, err := c.doRequest("json")
 16810  	if res != nil && res.StatusCode == http.StatusNotModified {
 16811  		if res.Body != nil {
 16812  			res.Body.Close()
 16813  		}
 16814  		return nil, gensupport.WrapError(&googleapi.Error{
 16815  			Code:   res.StatusCode,
 16816  			Header: res.Header,
 16817  		})
 16818  	}
 16819  	if err != nil {
 16820  		return nil, err
 16821  	}
 16822  	defer googleapi.CloseBody(res)
 16823  	if err := googleapi.CheckResponse(res); err != nil {
 16824  		return nil, gensupport.WrapError(err)
 16825  	}
 16826  	ret := &TransitClassListResponse{
 16827  		ServerResponse: googleapi.ServerResponse{
 16828  			Header:         res.Header,
 16829  			HTTPStatusCode: res.StatusCode,
 16830  		},
 16831  	}
 16832  	target := &ret
 16833  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16834  		return nil, err
 16835  	}
 16836  	return ret, nil
 16837  }
 16838  
 16839  type TransitclassPatchCall struct {
 16840  	s            *Service
 16841  	resourceId   string
 16842  	transitclass *TransitClass
 16843  	urlParams_   gensupport.URLParams
 16844  	ctx_         context.Context
 16845  	header_      http.Header
 16846  }
 16847  
 16848  // Patch: Updates the transit class referenced by the given class ID. This
 16849  // method supports patch semantics.
 16850  //
 16851  //   - resourceId: The unique identifier for a class. This ID must be unique
 16852  //     across all classes from an issuer. This value should follow the format
 16853  //     issuer ID. identifier where the former is issued by Google and latter is
 16854  //     chosen by you. Your unique identifier should only include alphanumeric
 16855  //     characters, '.', '_', or '-'.
 16856  func (r *TransitclassService) Patch(resourceId string, transitclass *TransitClass) *TransitclassPatchCall {
 16857  	c := &TransitclassPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16858  	c.resourceId = resourceId
 16859  	c.transitclass = transitclass
 16860  	return c
 16861  }
 16862  
 16863  // Fields allows partial responses to be retrieved. See
 16864  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16865  // details.
 16866  func (c *TransitclassPatchCall) Fields(s ...googleapi.Field) *TransitclassPatchCall {
 16867  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16868  	return c
 16869  }
 16870  
 16871  // Context sets the context to be used in this call's Do method.
 16872  func (c *TransitclassPatchCall) Context(ctx context.Context) *TransitclassPatchCall {
 16873  	c.ctx_ = ctx
 16874  	return c
 16875  }
 16876  
 16877  // Header returns a http.Header that can be modified by the caller to add
 16878  // headers to the request.
 16879  func (c *TransitclassPatchCall) Header() http.Header {
 16880  	if c.header_ == nil {
 16881  		c.header_ = make(http.Header)
 16882  	}
 16883  	return c.header_
 16884  }
 16885  
 16886  func (c *TransitclassPatchCall) doRequest(alt string) (*http.Response, error) {
 16887  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16888  	var body io.Reader = nil
 16889  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitclass)
 16890  	if err != nil {
 16891  		return nil, err
 16892  	}
 16893  	c.urlParams_.Set("alt", alt)
 16894  	c.urlParams_.Set("prettyPrint", "false")
 16895  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass/{resourceId}")
 16896  	urls += "?" + c.urlParams_.Encode()
 16897  	req, err := http.NewRequest("PATCH", urls, body)
 16898  	if err != nil {
 16899  		return nil, err
 16900  	}
 16901  	req.Header = reqHeaders
 16902  	googleapi.Expand(req.URL, map[string]string{
 16903  		"resourceId": c.resourceId,
 16904  	})
 16905  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16906  }
 16907  
 16908  // Do executes the "walletobjects.transitclass.patch" call.
 16909  // Any non-2xx status code is an error. Response headers are in either
 16910  // *TransitClass.ServerResponse.Header or (if a response was returned at all)
 16911  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16912  // whether the returned error was because http.StatusNotModified was returned.
 16913  func (c *TransitclassPatchCall) Do(opts ...googleapi.CallOption) (*TransitClass, error) {
 16914  	gensupport.SetOptions(c.urlParams_, opts...)
 16915  	res, err := c.doRequest("json")
 16916  	if res != nil && res.StatusCode == http.StatusNotModified {
 16917  		if res.Body != nil {
 16918  			res.Body.Close()
 16919  		}
 16920  		return nil, gensupport.WrapError(&googleapi.Error{
 16921  			Code:   res.StatusCode,
 16922  			Header: res.Header,
 16923  		})
 16924  	}
 16925  	if err != nil {
 16926  		return nil, err
 16927  	}
 16928  	defer googleapi.CloseBody(res)
 16929  	if err := googleapi.CheckResponse(res); err != nil {
 16930  		return nil, gensupport.WrapError(err)
 16931  	}
 16932  	ret := &TransitClass{
 16933  		ServerResponse: googleapi.ServerResponse{
 16934  			Header:         res.Header,
 16935  			HTTPStatusCode: res.StatusCode,
 16936  		},
 16937  	}
 16938  	target := &ret
 16939  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16940  		return nil, err
 16941  	}
 16942  	return ret, nil
 16943  }
 16944  
 16945  type TransitclassUpdateCall struct {
 16946  	s            *Service
 16947  	resourceId   string
 16948  	transitclass *TransitClass
 16949  	urlParams_   gensupport.URLParams
 16950  	ctx_         context.Context
 16951  	header_      http.Header
 16952  }
 16953  
 16954  // Update: Updates the transit class referenced by the given class ID.
 16955  //
 16956  //   - resourceId: The unique identifier for a class. This ID must be unique
 16957  //     across all classes from an issuer. This value should follow the format
 16958  //     issuer ID. identifier where the former is issued by Google and latter is
 16959  //     chosen by you. Your unique identifier should only include alphanumeric
 16960  //     characters, '.', '_', or '-'.
 16961  func (r *TransitclassService) Update(resourceId string, transitclass *TransitClass) *TransitclassUpdateCall {
 16962  	c := &TransitclassUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16963  	c.resourceId = resourceId
 16964  	c.transitclass = transitclass
 16965  	return c
 16966  }
 16967  
 16968  // Fields allows partial responses to be retrieved. See
 16969  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16970  // details.
 16971  func (c *TransitclassUpdateCall) Fields(s ...googleapi.Field) *TransitclassUpdateCall {
 16972  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16973  	return c
 16974  }
 16975  
 16976  // Context sets the context to be used in this call's Do method.
 16977  func (c *TransitclassUpdateCall) Context(ctx context.Context) *TransitclassUpdateCall {
 16978  	c.ctx_ = ctx
 16979  	return c
 16980  }
 16981  
 16982  // Header returns a http.Header that can be modified by the caller to add
 16983  // headers to the request.
 16984  func (c *TransitclassUpdateCall) Header() http.Header {
 16985  	if c.header_ == nil {
 16986  		c.header_ = make(http.Header)
 16987  	}
 16988  	return c.header_
 16989  }
 16990  
 16991  func (c *TransitclassUpdateCall) doRequest(alt string) (*http.Response, error) {
 16992  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16993  	var body io.Reader = nil
 16994  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitclass)
 16995  	if err != nil {
 16996  		return nil, err
 16997  	}
 16998  	c.urlParams_.Set("alt", alt)
 16999  	c.urlParams_.Set("prettyPrint", "false")
 17000  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitClass/{resourceId}")
 17001  	urls += "?" + c.urlParams_.Encode()
 17002  	req, err := http.NewRequest("PUT", urls, body)
 17003  	if err != nil {
 17004  		return nil, err
 17005  	}
 17006  	req.Header = reqHeaders
 17007  	googleapi.Expand(req.URL, map[string]string{
 17008  		"resourceId": c.resourceId,
 17009  	})
 17010  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17011  }
 17012  
 17013  // Do executes the "walletobjects.transitclass.update" call.
 17014  // Any non-2xx status code is an error. Response headers are in either
 17015  // *TransitClass.ServerResponse.Header or (if a response was returned at all)
 17016  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17017  // whether the returned error was because http.StatusNotModified was returned.
 17018  func (c *TransitclassUpdateCall) Do(opts ...googleapi.CallOption) (*TransitClass, error) {
 17019  	gensupport.SetOptions(c.urlParams_, opts...)
 17020  	res, err := c.doRequest("json")
 17021  	if res != nil && res.StatusCode == http.StatusNotModified {
 17022  		if res.Body != nil {
 17023  			res.Body.Close()
 17024  		}
 17025  		return nil, gensupport.WrapError(&googleapi.Error{
 17026  			Code:   res.StatusCode,
 17027  			Header: res.Header,
 17028  		})
 17029  	}
 17030  	if err != nil {
 17031  		return nil, err
 17032  	}
 17033  	defer googleapi.CloseBody(res)
 17034  	if err := googleapi.CheckResponse(res); err != nil {
 17035  		return nil, gensupport.WrapError(err)
 17036  	}
 17037  	ret := &TransitClass{
 17038  		ServerResponse: googleapi.ServerResponse{
 17039  			Header:         res.Header,
 17040  			HTTPStatusCode: res.StatusCode,
 17041  		},
 17042  	}
 17043  	target := &ret
 17044  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17045  		return nil, err
 17046  	}
 17047  	return ret, nil
 17048  }
 17049  
 17050  type TransitobjectAddmessageCall struct {
 17051  	s                 *Service
 17052  	resourceId        string
 17053  	addmessagerequest *AddMessageRequest
 17054  	urlParams_        gensupport.URLParams
 17055  	ctx_              context.Context
 17056  	header_           http.Header
 17057  }
 17058  
 17059  // Addmessage: Adds a message to the transit object referenced by the given
 17060  // object ID.
 17061  //
 17062  //   - resourceId: The unique identifier for an object. This ID must be unique
 17063  //     across all objects from an issuer. This value should follow the format
 17064  //     issuer ID. identifier where the former is issued by Google and latter is
 17065  //     chosen by you. Your unique identifier should only include alphanumeric
 17066  //     characters, '.', '_', or '-'.
 17067  func (r *TransitobjectService) Addmessage(resourceId string, addmessagerequest *AddMessageRequest) *TransitobjectAddmessageCall {
 17068  	c := &TransitobjectAddmessageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17069  	c.resourceId = resourceId
 17070  	c.addmessagerequest = addmessagerequest
 17071  	return c
 17072  }
 17073  
 17074  // Fields allows partial responses to be retrieved. See
 17075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17076  // details.
 17077  func (c *TransitobjectAddmessageCall) Fields(s ...googleapi.Field) *TransitobjectAddmessageCall {
 17078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17079  	return c
 17080  }
 17081  
 17082  // Context sets the context to be used in this call's Do method.
 17083  func (c *TransitobjectAddmessageCall) Context(ctx context.Context) *TransitobjectAddmessageCall {
 17084  	c.ctx_ = ctx
 17085  	return c
 17086  }
 17087  
 17088  // Header returns a http.Header that can be modified by the caller to add
 17089  // headers to the request.
 17090  func (c *TransitobjectAddmessageCall) Header() http.Header {
 17091  	if c.header_ == nil {
 17092  		c.header_ = make(http.Header)
 17093  	}
 17094  	return c.header_
 17095  }
 17096  
 17097  func (c *TransitobjectAddmessageCall) doRequest(alt string) (*http.Response, error) {
 17098  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17099  	var body io.Reader = nil
 17100  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.addmessagerequest)
 17101  	if err != nil {
 17102  		return nil, err
 17103  	}
 17104  	c.urlParams_.Set("alt", alt)
 17105  	c.urlParams_.Set("prettyPrint", "false")
 17106  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}/addMessage")
 17107  	urls += "?" + c.urlParams_.Encode()
 17108  	req, err := http.NewRequest("POST", urls, body)
 17109  	if err != nil {
 17110  		return nil, err
 17111  	}
 17112  	req.Header = reqHeaders
 17113  	googleapi.Expand(req.URL, map[string]string{
 17114  		"resourceId": c.resourceId,
 17115  	})
 17116  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17117  }
 17118  
 17119  // Do executes the "walletobjects.transitobject.addmessage" call.
 17120  // Any non-2xx status code is an error. Response headers are in either
 17121  // *TransitObjectAddMessageResponse.ServerResponse.Header or (if a response was
 17122  // returned at all) in error.(*googleapi.Error).Header. Use
 17123  // googleapi.IsNotModified to check whether the returned error was because
 17124  // http.StatusNotModified was returned.
 17125  func (c *TransitobjectAddmessageCall) Do(opts ...googleapi.CallOption) (*TransitObjectAddMessageResponse, error) {
 17126  	gensupport.SetOptions(c.urlParams_, opts...)
 17127  	res, err := c.doRequest("json")
 17128  	if res != nil && res.StatusCode == http.StatusNotModified {
 17129  		if res.Body != nil {
 17130  			res.Body.Close()
 17131  		}
 17132  		return nil, gensupport.WrapError(&googleapi.Error{
 17133  			Code:   res.StatusCode,
 17134  			Header: res.Header,
 17135  		})
 17136  	}
 17137  	if err != nil {
 17138  		return nil, err
 17139  	}
 17140  	defer googleapi.CloseBody(res)
 17141  	if err := googleapi.CheckResponse(res); err != nil {
 17142  		return nil, gensupport.WrapError(err)
 17143  	}
 17144  	ret := &TransitObjectAddMessageResponse{
 17145  		ServerResponse: googleapi.ServerResponse{
 17146  			Header:         res.Header,
 17147  			HTTPStatusCode: res.StatusCode,
 17148  		},
 17149  	}
 17150  	target := &ret
 17151  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17152  		return nil, err
 17153  	}
 17154  	return ret, nil
 17155  }
 17156  
 17157  type TransitobjectGetCall struct {
 17158  	s            *Service
 17159  	resourceId   string
 17160  	urlParams_   gensupport.URLParams
 17161  	ifNoneMatch_ string
 17162  	ctx_         context.Context
 17163  	header_      http.Header
 17164  }
 17165  
 17166  // Get: Returns the transit object with the given object ID.
 17167  //
 17168  //   - resourceId: The unique identifier for an object. This ID must be unique
 17169  //     across all objects from an issuer. This value should follow the format
 17170  //     issuer ID. identifier where the former is issued by Google and latter is
 17171  //     chosen by you. Your unique identifier should only include alphanumeric
 17172  //     characters, '.', '_', or '-'.
 17173  func (r *TransitobjectService) Get(resourceId string) *TransitobjectGetCall {
 17174  	c := &TransitobjectGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17175  	c.resourceId = resourceId
 17176  	return c
 17177  }
 17178  
 17179  // Fields allows partial responses to be retrieved. See
 17180  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17181  // details.
 17182  func (c *TransitobjectGetCall) Fields(s ...googleapi.Field) *TransitobjectGetCall {
 17183  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17184  	return c
 17185  }
 17186  
 17187  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17188  // object's ETag matches the given value. This is useful for getting updates
 17189  // only after the object has changed since the last request.
 17190  func (c *TransitobjectGetCall) IfNoneMatch(entityTag string) *TransitobjectGetCall {
 17191  	c.ifNoneMatch_ = entityTag
 17192  	return c
 17193  }
 17194  
 17195  // Context sets the context to be used in this call's Do method.
 17196  func (c *TransitobjectGetCall) Context(ctx context.Context) *TransitobjectGetCall {
 17197  	c.ctx_ = ctx
 17198  	return c
 17199  }
 17200  
 17201  // Header returns a http.Header that can be modified by the caller to add
 17202  // headers to the request.
 17203  func (c *TransitobjectGetCall) Header() http.Header {
 17204  	if c.header_ == nil {
 17205  		c.header_ = make(http.Header)
 17206  	}
 17207  	return c.header_
 17208  }
 17209  
 17210  func (c *TransitobjectGetCall) doRequest(alt string) (*http.Response, error) {
 17211  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17212  	if c.ifNoneMatch_ != "" {
 17213  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17214  	}
 17215  	var body io.Reader = nil
 17216  	c.urlParams_.Set("alt", alt)
 17217  	c.urlParams_.Set("prettyPrint", "false")
 17218  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}")
 17219  	urls += "?" + c.urlParams_.Encode()
 17220  	req, err := http.NewRequest("GET", urls, body)
 17221  	if err != nil {
 17222  		return nil, err
 17223  	}
 17224  	req.Header = reqHeaders
 17225  	googleapi.Expand(req.URL, map[string]string{
 17226  		"resourceId": c.resourceId,
 17227  	})
 17228  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17229  }
 17230  
 17231  // Do executes the "walletobjects.transitobject.get" call.
 17232  // Any non-2xx status code is an error. Response headers are in either
 17233  // *TransitObject.ServerResponse.Header or (if a response was returned at all)
 17234  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17235  // whether the returned error was because http.StatusNotModified was returned.
 17236  func (c *TransitobjectGetCall) Do(opts ...googleapi.CallOption) (*TransitObject, error) {
 17237  	gensupport.SetOptions(c.urlParams_, opts...)
 17238  	res, err := c.doRequest("json")
 17239  	if res != nil && res.StatusCode == http.StatusNotModified {
 17240  		if res.Body != nil {
 17241  			res.Body.Close()
 17242  		}
 17243  		return nil, gensupport.WrapError(&googleapi.Error{
 17244  			Code:   res.StatusCode,
 17245  			Header: res.Header,
 17246  		})
 17247  	}
 17248  	if err != nil {
 17249  		return nil, err
 17250  	}
 17251  	defer googleapi.CloseBody(res)
 17252  	if err := googleapi.CheckResponse(res); err != nil {
 17253  		return nil, gensupport.WrapError(err)
 17254  	}
 17255  	ret := &TransitObject{
 17256  		ServerResponse: googleapi.ServerResponse{
 17257  			Header:         res.Header,
 17258  			HTTPStatusCode: res.StatusCode,
 17259  		},
 17260  	}
 17261  	target := &ret
 17262  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17263  		return nil, err
 17264  	}
 17265  	return ret, nil
 17266  }
 17267  
 17268  type TransitobjectInsertCall struct {
 17269  	s             *Service
 17270  	transitobject *TransitObject
 17271  	urlParams_    gensupport.URLParams
 17272  	ctx_          context.Context
 17273  	header_       http.Header
 17274  }
 17275  
 17276  // Insert: Inserts an transit object with the given ID and properties.
 17277  func (r *TransitobjectService) Insert(transitobject *TransitObject) *TransitobjectInsertCall {
 17278  	c := &TransitobjectInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17279  	c.transitobject = transitobject
 17280  	return c
 17281  }
 17282  
 17283  // Fields allows partial responses to be retrieved. See
 17284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17285  // details.
 17286  func (c *TransitobjectInsertCall) Fields(s ...googleapi.Field) *TransitobjectInsertCall {
 17287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17288  	return c
 17289  }
 17290  
 17291  // Context sets the context to be used in this call's Do method.
 17292  func (c *TransitobjectInsertCall) Context(ctx context.Context) *TransitobjectInsertCall {
 17293  	c.ctx_ = ctx
 17294  	return c
 17295  }
 17296  
 17297  // Header returns a http.Header that can be modified by the caller to add
 17298  // headers to the request.
 17299  func (c *TransitobjectInsertCall) Header() http.Header {
 17300  	if c.header_ == nil {
 17301  		c.header_ = make(http.Header)
 17302  	}
 17303  	return c.header_
 17304  }
 17305  
 17306  func (c *TransitobjectInsertCall) doRequest(alt string) (*http.Response, error) {
 17307  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17308  	var body io.Reader = nil
 17309  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitobject)
 17310  	if err != nil {
 17311  		return nil, err
 17312  	}
 17313  	c.urlParams_.Set("alt", alt)
 17314  	c.urlParams_.Set("prettyPrint", "false")
 17315  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject")
 17316  	urls += "?" + c.urlParams_.Encode()
 17317  	req, err := http.NewRequest("POST", urls, body)
 17318  	if err != nil {
 17319  		return nil, err
 17320  	}
 17321  	req.Header = reqHeaders
 17322  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17323  }
 17324  
 17325  // Do executes the "walletobjects.transitobject.insert" call.
 17326  // Any non-2xx status code is an error. Response headers are in either
 17327  // *TransitObject.ServerResponse.Header or (if a response was returned at all)
 17328  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17329  // whether the returned error was because http.StatusNotModified was returned.
 17330  func (c *TransitobjectInsertCall) Do(opts ...googleapi.CallOption) (*TransitObject, error) {
 17331  	gensupport.SetOptions(c.urlParams_, opts...)
 17332  	res, err := c.doRequest("json")
 17333  	if res != nil && res.StatusCode == http.StatusNotModified {
 17334  		if res.Body != nil {
 17335  			res.Body.Close()
 17336  		}
 17337  		return nil, gensupport.WrapError(&googleapi.Error{
 17338  			Code:   res.StatusCode,
 17339  			Header: res.Header,
 17340  		})
 17341  	}
 17342  	if err != nil {
 17343  		return nil, err
 17344  	}
 17345  	defer googleapi.CloseBody(res)
 17346  	if err := googleapi.CheckResponse(res); err != nil {
 17347  		return nil, gensupport.WrapError(err)
 17348  	}
 17349  	ret := &TransitObject{
 17350  		ServerResponse: googleapi.ServerResponse{
 17351  			Header:         res.Header,
 17352  			HTTPStatusCode: res.StatusCode,
 17353  		},
 17354  	}
 17355  	target := &ret
 17356  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17357  		return nil, err
 17358  	}
 17359  	return ret, nil
 17360  }
 17361  
 17362  type TransitobjectListCall struct {
 17363  	s            *Service
 17364  	urlParams_   gensupport.URLParams
 17365  	ifNoneMatch_ string
 17366  	ctx_         context.Context
 17367  	header_      http.Header
 17368  }
 17369  
 17370  // List: Returns a list of all transit objects for a given issuer ID.
 17371  func (r *TransitobjectService) List() *TransitobjectListCall {
 17372  	c := &TransitobjectListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17373  	return c
 17374  }
 17375  
 17376  // ClassId sets the optional parameter "classId": The ID of the class whose
 17377  // objects will be listed.
 17378  func (c *TransitobjectListCall) ClassId(classId string) *TransitobjectListCall {
 17379  	c.urlParams_.Set("classId", classId)
 17380  	return c
 17381  }
 17382  
 17383  // MaxResults sets the optional parameter "maxResults": Identifies the max
 17384  // number of results returned by a list. All results are returned if
 17385  // `maxResults` isn't defined.
 17386  func (c *TransitobjectListCall) MaxResults(maxResults int64) *TransitobjectListCall {
 17387  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 17388  	return c
 17389  }
 17390  
 17391  // Token sets the optional parameter "token": Used to get the next set of
 17392  // results if `maxResults` is specified, but more than `maxResults` objects are
 17393  // available in a list. For example, if you have a list of 200 objects and you
 17394  // call list with `maxResults` set to 20, list will return the first 20 objects
 17395  // and a token. Call list again with `maxResults` set to 20 and the token to
 17396  // get the next 20 objects.
 17397  func (c *TransitobjectListCall) Token(token string) *TransitobjectListCall {
 17398  	c.urlParams_.Set("token", token)
 17399  	return c
 17400  }
 17401  
 17402  // Fields allows partial responses to be retrieved. See
 17403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17404  // details.
 17405  func (c *TransitobjectListCall) Fields(s ...googleapi.Field) *TransitobjectListCall {
 17406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17407  	return c
 17408  }
 17409  
 17410  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17411  // object's ETag matches the given value. This is useful for getting updates
 17412  // only after the object has changed since the last request.
 17413  func (c *TransitobjectListCall) IfNoneMatch(entityTag string) *TransitobjectListCall {
 17414  	c.ifNoneMatch_ = entityTag
 17415  	return c
 17416  }
 17417  
 17418  // Context sets the context to be used in this call's Do method.
 17419  func (c *TransitobjectListCall) Context(ctx context.Context) *TransitobjectListCall {
 17420  	c.ctx_ = ctx
 17421  	return c
 17422  }
 17423  
 17424  // Header returns a http.Header that can be modified by the caller to add
 17425  // headers to the request.
 17426  func (c *TransitobjectListCall) Header() http.Header {
 17427  	if c.header_ == nil {
 17428  		c.header_ = make(http.Header)
 17429  	}
 17430  	return c.header_
 17431  }
 17432  
 17433  func (c *TransitobjectListCall) doRequest(alt string) (*http.Response, error) {
 17434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17435  	if c.ifNoneMatch_ != "" {
 17436  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17437  	}
 17438  	var body io.Reader = nil
 17439  	c.urlParams_.Set("alt", alt)
 17440  	c.urlParams_.Set("prettyPrint", "false")
 17441  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject")
 17442  	urls += "?" + c.urlParams_.Encode()
 17443  	req, err := http.NewRequest("GET", urls, body)
 17444  	if err != nil {
 17445  		return nil, err
 17446  	}
 17447  	req.Header = reqHeaders
 17448  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17449  }
 17450  
 17451  // Do executes the "walletobjects.transitobject.list" call.
 17452  // Any non-2xx status code is an error. Response headers are in either
 17453  // *TransitObjectListResponse.ServerResponse.Header or (if a response was
 17454  // returned at all) in error.(*googleapi.Error).Header. Use
 17455  // googleapi.IsNotModified to check whether the returned error was because
 17456  // http.StatusNotModified was returned.
 17457  func (c *TransitobjectListCall) Do(opts ...googleapi.CallOption) (*TransitObjectListResponse, error) {
 17458  	gensupport.SetOptions(c.urlParams_, opts...)
 17459  	res, err := c.doRequest("json")
 17460  	if res != nil && res.StatusCode == http.StatusNotModified {
 17461  		if res.Body != nil {
 17462  			res.Body.Close()
 17463  		}
 17464  		return nil, gensupport.WrapError(&googleapi.Error{
 17465  			Code:   res.StatusCode,
 17466  			Header: res.Header,
 17467  		})
 17468  	}
 17469  	if err != nil {
 17470  		return nil, err
 17471  	}
 17472  	defer googleapi.CloseBody(res)
 17473  	if err := googleapi.CheckResponse(res); err != nil {
 17474  		return nil, gensupport.WrapError(err)
 17475  	}
 17476  	ret := &TransitObjectListResponse{
 17477  		ServerResponse: googleapi.ServerResponse{
 17478  			Header:         res.Header,
 17479  			HTTPStatusCode: res.StatusCode,
 17480  		},
 17481  	}
 17482  	target := &ret
 17483  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17484  		return nil, err
 17485  	}
 17486  	return ret, nil
 17487  }
 17488  
 17489  type TransitobjectPatchCall struct {
 17490  	s             *Service
 17491  	resourceId    string
 17492  	transitobject *TransitObject
 17493  	urlParams_    gensupport.URLParams
 17494  	ctx_          context.Context
 17495  	header_       http.Header
 17496  }
 17497  
 17498  // Patch: Updates the transit object referenced by the given object ID. This
 17499  // method supports patch semantics.
 17500  //
 17501  //   - resourceId: The unique identifier for an object. This ID must be unique
 17502  //     across all objects from an issuer. This value should follow the format
 17503  //     issuer ID. identifier where the former is issued by Google and latter is
 17504  //     chosen by you. Your unique identifier should only include alphanumeric
 17505  //     characters, '.', '_', or '-'.
 17506  func (r *TransitobjectService) Patch(resourceId string, transitobject *TransitObject) *TransitobjectPatchCall {
 17507  	c := &TransitobjectPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17508  	c.resourceId = resourceId
 17509  	c.transitobject = transitobject
 17510  	return c
 17511  }
 17512  
 17513  // Fields allows partial responses to be retrieved. See
 17514  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17515  // details.
 17516  func (c *TransitobjectPatchCall) Fields(s ...googleapi.Field) *TransitobjectPatchCall {
 17517  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17518  	return c
 17519  }
 17520  
 17521  // Context sets the context to be used in this call's Do method.
 17522  func (c *TransitobjectPatchCall) Context(ctx context.Context) *TransitobjectPatchCall {
 17523  	c.ctx_ = ctx
 17524  	return c
 17525  }
 17526  
 17527  // Header returns a http.Header that can be modified by the caller to add
 17528  // headers to the request.
 17529  func (c *TransitobjectPatchCall) Header() http.Header {
 17530  	if c.header_ == nil {
 17531  		c.header_ = make(http.Header)
 17532  	}
 17533  	return c.header_
 17534  }
 17535  
 17536  func (c *TransitobjectPatchCall) doRequest(alt string) (*http.Response, error) {
 17537  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17538  	var body io.Reader = nil
 17539  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitobject)
 17540  	if err != nil {
 17541  		return nil, err
 17542  	}
 17543  	c.urlParams_.Set("alt", alt)
 17544  	c.urlParams_.Set("prettyPrint", "false")
 17545  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}")
 17546  	urls += "?" + c.urlParams_.Encode()
 17547  	req, err := http.NewRequest("PATCH", urls, body)
 17548  	if err != nil {
 17549  		return nil, err
 17550  	}
 17551  	req.Header = reqHeaders
 17552  	googleapi.Expand(req.URL, map[string]string{
 17553  		"resourceId": c.resourceId,
 17554  	})
 17555  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17556  }
 17557  
 17558  // Do executes the "walletobjects.transitobject.patch" call.
 17559  // Any non-2xx status code is an error. Response headers are in either
 17560  // *TransitObject.ServerResponse.Header or (if a response was returned at all)
 17561  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17562  // whether the returned error was because http.StatusNotModified was returned.
 17563  func (c *TransitobjectPatchCall) Do(opts ...googleapi.CallOption) (*TransitObject, error) {
 17564  	gensupport.SetOptions(c.urlParams_, opts...)
 17565  	res, err := c.doRequest("json")
 17566  	if res != nil && res.StatusCode == http.StatusNotModified {
 17567  		if res.Body != nil {
 17568  			res.Body.Close()
 17569  		}
 17570  		return nil, gensupport.WrapError(&googleapi.Error{
 17571  			Code:   res.StatusCode,
 17572  			Header: res.Header,
 17573  		})
 17574  	}
 17575  	if err != nil {
 17576  		return nil, err
 17577  	}
 17578  	defer googleapi.CloseBody(res)
 17579  	if err := googleapi.CheckResponse(res); err != nil {
 17580  		return nil, gensupport.WrapError(err)
 17581  	}
 17582  	ret := &TransitObject{
 17583  		ServerResponse: googleapi.ServerResponse{
 17584  			Header:         res.Header,
 17585  			HTTPStatusCode: res.StatusCode,
 17586  		},
 17587  	}
 17588  	target := &ret
 17589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17590  		return nil, err
 17591  	}
 17592  	return ret, nil
 17593  }
 17594  
 17595  type TransitobjectUpdateCall struct {
 17596  	s             *Service
 17597  	resourceId    string
 17598  	transitobject *TransitObject
 17599  	urlParams_    gensupport.URLParams
 17600  	ctx_          context.Context
 17601  	header_       http.Header
 17602  }
 17603  
 17604  // Update: Updates the transit object referenced by the given object ID.
 17605  //
 17606  //   - resourceId: The unique identifier for an object. This ID must be unique
 17607  //     across all objects from an issuer. This value should follow the format
 17608  //     issuer ID. identifier where the former is issued by Google and latter is
 17609  //     chosen by you. Your unique identifier should only include alphanumeric
 17610  //     characters, '.', '_', or '-'.
 17611  func (r *TransitobjectService) Update(resourceId string, transitobject *TransitObject) *TransitobjectUpdateCall {
 17612  	c := &TransitobjectUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17613  	c.resourceId = resourceId
 17614  	c.transitobject = transitobject
 17615  	return c
 17616  }
 17617  
 17618  // Fields allows partial responses to be retrieved. See
 17619  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17620  // details.
 17621  func (c *TransitobjectUpdateCall) Fields(s ...googleapi.Field) *TransitobjectUpdateCall {
 17622  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17623  	return c
 17624  }
 17625  
 17626  // Context sets the context to be used in this call's Do method.
 17627  func (c *TransitobjectUpdateCall) Context(ctx context.Context) *TransitobjectUpdateCall {
 17628  	c.ctx_ = ctx
 17629  	return c
 17630  }
 17631  
 17632  // Header returns a http.Header that can be modified by the caller to add
 17633  // headers to the request.
 17634  func (c *TransitobjectUpdateCall) Header() http.Header {
 17635  	if c.header_ == nil {
 17636  		c.header_ = make(http.Header)
 17637  	}
 17638  	return c.header_
 17639  }
 17640  
 17641  func (c *TransitobjectUpdateCall) doRequest(alt string) (*http.Response, error) {
 17642  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17643  	var body io.Reader = nil
 17644  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.transitobject)
 17645  	if err != nil {
 17646  		return nil, err
 17647  	}
 17648  	c.urlParams_.Set("alt", alt)
 17649  	c.urlParams_.Set("prettyPrint", "false")
 17650  	urls := googleapi.ResolveRelative(c.s.BasePath, "walletobjects/v1/transitObject/{resourceId}")
 17651  	urls += "?" + c.urlParams_.Encode()
 17652  	req, err := http.NewRequest("PUT", urls, body)
 17653  	if err != nil {
 17654  		return nil, err
 17655  	}
 17656  	req.Header = reqHeaders
 17657  	googleapi.Expand(req.URL, map[string]string{
 17658  		"resourceId": c.resourceId,
 17659  	})
 17660  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17661  }
 17662  
 17663  // Do executes the "walletobjects.transitobject.update" call.
 17664  // Any non-2xx status code is an error. Response headers are in either
 17665  // *TransitObject.ServerResponse.Header or (if a response was returned at all)
 17666  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17667  // whether the returned error was because http.StatusNotModified was returned.
 17668  func (c *TransitobjectUpdateCall) Do(opts ...googleapi.CallOption) (*TransitObject, error) {
 17669  	gensupport.SetOptions(c.urlParams_, opts...)
 17670  	res, err := c.doRequest("json")
 17671  	if res != nil && res.StatusCode == http.StatusNotModified {
 17672  		if res.Body != nil {
 17673  			res.Body.Close()
 17674  		}
 17675  		return nil, gensupport.WrapError(&googleapi.Error{
 17676  			Code:   res.StatusCode,
 17677  			Header: res.Header,
 17678  		})
 17679  	}
 17680  	if err != nil {
 17681  		return nil, err
 17682  	}
 17683  	defer googleapi.CloseBody(res)
 17684  	if err := googleapi.CheckResponse(res); err != nil {
 17685  		return nil, gensupport.WrapError(err)
 17686  	}
 17687  	ret := &TransitObject{
 17688  		ServerResponse: googleapi.ServerResponse{
 17689  			Header:         res.Header,
 17690  			HTTPStatusCode: res.StatusCode,
 17691  		},
 17692  	}
 17693  	target := &ret
 17694  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17695  		return nil, err
 17696  	}
 17697  	return ret, nil
 17698  }
 17699  

View as plain text