1// Copyright 2019 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 jobs provides access to the Cloud Talent Solution API.
8//
9// For product documentation, see: https://cloud.google.com/talent-solution/job-search/docs/
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/jobs/v2"
16//   ...
17//   ctx := context.Background()
18//   jobsService, err := jobs.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// By default, all available scopes (see "Constants") are used to authenticate. To restrict scopes, use option.WithScopes:
27//
28//   jobsService, err := jobs.NewService(ctx, option.WithScopes(jobs.JobsScope))
29//
30// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
31//
32//   jobsService, err := jobs.NewService(ctx, option.WithAPIKey("AIza..."))
33//
34// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
35//
36//   config := &oauth2.Config{...}
37//   // ...
38//   token, err := config.Exchange(ctx, ...)
39//   jobsService, err := jobs.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
40//
41// See https://godoc.org/google.golang.org/api/option/ for details on options.
42package jobs // import "google.golang.org/api/jobs/v2"
43
44import (
45	"bytes"
46	"context"
47	"encoding/json"
48	"errors"
49	"fmt"
50	"io"
51	"net/http"
52	"net/url"
53	"strconv"
54	"strings"
55
56	googleapi "google.golang.org/api/googleapi"
57	gensupport "google.golang.org/api/internal/gensupport"
58	option "google.golang.org/api/option"
59	htransport "google.golang.org/api/transport/http"
60)
61
62// Always reference these packages, just in case the auto-generated code
63// below doesn't.
64var _ = bytes.NewBuffer
65var _ = strconv.Itoa
66var _ = fmt.Sprintf
67var _ = json.NewDecoder
68var _ = io.Copy
69var _ = url.Parse
70var _ = gensupport.MarshalJSON
71var _ = googleapi.Version
72var _ = errors.New
73var _ = strings.Replace
74var _ = context.Canceled
75
76const apiId = "jobs:v2"
77const apiName = "jobs"
78const apiVersion = "v2"
79const basePath = "https://jobs.googleapis.com/"
80
81// OAuth2 scopes used by this API.
82const (
83	// View and manage your data across Google Cloud Platform services
84	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
85
86	// Manage job postings
87	JobsScope = "https://www.googleapis.com/auth/jobs"
88)
89
90// NewService creates a new Service.
91func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
92	scopesOption := option.WithScopes(
93		"https://www.googleapis.com/auth/cloud-platform",
94		"https://www.googleapis.com/auth/jobs",
95	)
96	// NOTE: prepend, so we don't override user-specified scopes.
97	opts = append([]option.ClientOption{scopesOption}, opts...)
98	client, endpoint, err := htransport.NewClient(ctx, opts...)
99	if err != nil {
100		return nil, err
101	}
102	s, err := New(client)
103	if err != nil {
104		return nil, err
105	}
106	if endpoint != "" {
107		s.BasePath = endpoint
108	}
109	return s, nil
110}
111
112// New creates a new Service. It uses the provided http.Client for requests.
113//
114// Deprecated: please use NewService instead.
115// To provide a custom HTTP client, use option.WithHTTPClient.
116// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
117func New(client *http.Client) (*Service, error) {
118	if client == nil {
119		return nil, errors.New("client is nil")
120	}
121	s := &Service{client: client, BasePath: basePath}
122	s.Companies = NewCompaniesService(s)
123	s.Jobs = NewJobsService(s)
124	s.V2 = NewV2Service(s)
125	return s, nil
126}
127
128type Service struct {
129	client    *http.Client
130	BasePath  string // API endpoint base URL
131	UserAgent string // optional additional User-Agent fragment
132
133	Companies *CompaniesService
134
135	Jobs *JobsService
136
137	V2 *V2Service
138}
139
140func (s *Service) userAgent() string {
141	if s.UserAgent == "" {
142		return googleapi.UserAgent
143	}
144	return googleapi.UserAgent + " " + s.UserAgent
145}
146
147func NewCompaniesService(s *Service) *CompaniesService {
148	rs := &CompaniesService{s: s}
149	rs.Jobs = NewCompaniesJobsService(s)
150	return rs
151}
152
153type CompaniesService struct {
154	s *Service
155
156	Jobs *CompaniesJobsService
157}
158
159func NewCompaniesJobsService(s *Service) *CompaniesJobsService {
160	rs := &CompaniesJobsService{s: s}
161	return rs
162}
163
164type CompaniesJobsService struct {
165	s *Service
166}
167
168func NewJobsService(s *Service) *JobsService {
169	rs := &JobsService{s: s}
170	return rs
171}
172
173type JobsService struct {
174	s *Service
175}
176
177func NewV2Service(s *Service) *V2Service {
178	rs := &V2Service{s: s}
179	return rs
180}
181
182type V2Service struct {
183	s *Service
184}
185
186// BatchDeleteJobsRequest: Input only.
187//
188// Batch delete jobs request.
189type BatchDeleteJobsRequest struct {
190	// Filter: Required. The filter string specifies the jobs to be
191	// deleted.
192	//
193	// Supported operator: =, AND
194	//
195	// The fields eligible for filtering are:
196	//
197	// * `companyName` (Required)
198	// * `requisitionId` (Required)
199	//
200	// Sample Query: companyName = "companies/123" AND requisitionId =
201	// "req-1"
202	Filter string `json:"filter,omitempty"`
203
204	// ForceSendFields is a list of field names (e.g. "Filter") to
205	// unconditionally include in API requests. By default, fields with
206	// empty values are omitted from API requests. However, any non-pointer,
207	// non-interface field appearing in ForceSendFields will be sent to the
208	// server regardless of whether the field is empty or not. This may be
209	// used to include empty fields in Patch requests.
210	ForceSendFields []string `json:"-"`
211
212	// NullFields is a list of field names (e.g. "Filter") to include in API
213	// requests with the JSON null value. By default, fields with empty
214	// values are omitted from API requests. However, any field with an
215	// empty value appearing in NullFields will be sent to the server as
216	// null. It is an error if a field in this list has a non-empty value.
217	// This may be used to include null fields in Patch requests.
218	NullFields []string `json:"-"`
219}
220
221func (s *BatchDeleteJobsRequest) MarshalJSON() ([]byte, error) {
222	type NoMethod BatchDeleteJobsRequest
223	raw := NoMethod(*s)
224	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
225}
226
227// BucketRange: Represents starting and ending value of a range in
228// double.
229type BucketRange struct {
230	// From: Starting value of the bucket range.
231	From float64 `json:"from,omitempty"`
232
233	// To: Ending value of the bucket range.
234	To float64 `json:"to,omitempty"`
235
236	// ForceSendFields is a list of field names (e.g. "From") to
237	// unconditionally include in API requests. By default, fields with
238	// empty values are omitted from API requests. However, any non-pointer,
239	// non-interface field appearing in ForceSendFields will be sent to the
240	// server regardless of whether the field is empty or not. This may be
241	// used to include empty fields in Patch requests.
242	ForceSendFields []string `json:"-"`
243
244	// NullFields is a list of field names (e.g. "From") to include in API
245	// requests with the JSON null value. By default, fields with empty
246	// values are omitted from API requests. However, any field with an
247	// empty value appearing in NullFields will be sent to the server as
248	// null. It is an error if a field in this list has a non-empty value.
249	// This may be used to include null fields in Patch requests.
250	NullFields []string `json:"-"`
251}
252
253func (s *BucketRange) MarshalJSON() ([]byte, error) {
254	type NoMethod BucketRange
255	raw := NoMethod(*s)
256	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
257}
258
259func (s *BucketRange) UnmarshalJSON(data []byte) error {
260	type NoMethod BucketRange
261	var s1 struct {
262		From gensupport.JSONFloat64 `json:"from"`
263		To   gensupport.JSONFloat64 `json:"to"`
264		*NoMethod
265	}
266	s1.NoMethod = (*NoMethod)(s)
267	if err := json.Unmarshal(data, &s1); err != nil {
268		return err
269	}
270	s.From = float64(s1.From)
271	s.To = float64(s1.To)
272	return nil
273}
274
275// BucketizedCount: Represents count of jobs within one bucket.
276type BucketizedCount struct {
277	// Count: Number of jobs whose numeric field value fall into `range`.
278	Count int64 `json:"count,omitempty"`
279
280	// Range: Bucket range on which histogram was performed for the numeric
281	// field,
282	// that is, the count represents number of jobs in this range.
283	Range *BucketRange `json:"range,omitempty"`
284
285	// ForceSendFields is a list of field names (e.g. "Count") to
286	// unconditionally include in API requests. By default, fields with
287	// empty values are omitted from API requests. However, any non-pointer,
288	// non-interface field appearing in ForceSendFields will be sent to the
289	// server regardless of whether the field is empty or not. This may be
290	// used to include empty fields in Patch requests.
291	ForceSendFields []string `json:"-"`
292
293	// NullFields is a list of field names (e.g. "Count") to include in API
294	// requests with the JSON null value. By default, fields with empty
295	// values are omitted from API requests. However, any field with an
296	// empty value appearing in NullFields will be sent to the server as
297	// null. It is an error if a field in this list has a non-empty value.
298	// This may be used to include null fields in Patch requests.
299	NullFields []string `json:"-"`
300}
301
302func (s *BucketizedCount) MarshalJSON() ([]byte, error) {
303	type NoMethod BucketizedCount
304	raw := NoMethod(*s)
305	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
306}
307
308// CommuteInfo: Output only.
309//
310// Commute details related to this job.
311type CommuteInfo struct {
312	// JobLocation: Location used as the destination in the commute
313	// calculation.
314	JobLocation *JobLocation `json:"jobLocation,omitempty"`
315
316	// TravelDuration: The number of seconds required to travel to the job
317	// location from the query
318	// location. A duration of 0 seconds indicates that the job is
319	// not
320	// reachable within the requested duration, but was returned as part of
321	// an
322	// expanded query.
323	TravelDuration string `json:"travelDuration,omitempty"`
324
325	// ForceSendFields is a list of field names (e.g. "JobLocation") to
326	// unconditionally include in API requests. By default, fields with
327	// empty values are omitted from API requests. However, any non-pointer,
328	// non-interface field appearing in ForceSendFields will be sent to the
329	// server regardless of whether the field is empty or not. This may be
330	// used to include empty fields in Patch requests.
331	ForceSendFields []string `json:"-"`
332
333	// NullFields is a list of field names (e.g. "JobLocation") to include
334	// in API requests with the JSON null value. By default, fields with
335	// empty values are omitted from API requests. However, any field with
336	// an empty value appearing in NullFields will be sent to the server as
337	// null. It is an error if a field in this list has a non-empty value.
338	// This may be used to include null fields in Patch requests.
339	NullFields []string `json:"-"`
340}
341
342func (s *CommuteInfo) MarshalJSON() ([]byte, error) {
343	type NoMethod CommuteInfo
344	raw := NoMethod(*s)
345	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
346}
347
348// CommutePreference: Input only.
349//
350// Parameters needed for commute search.
351type CommutePreference struct {
352	// AllowNonStreetLevelAddress: Optional. If `true`, jobs without street
353	// level addresses may also be returned.
354	// For city level addresses, the city center is used. For state and
355	// coarser
356	// level addresses, text matching is used.
357	// If this field is set to `false` or is not specified, only jobs that
358	// include
359	// street level addresses will be returned by commute search.
360	AllowNonStreetLevelAddress bool `json:"allowNonStreetLevelAddress,omitempty"`
361
362	// DepartureHourLocal: Optional. The departure hour to use to calculate
363	// traffic impact. Accepts an
364	// integer between 0 and 23, representing the hour in the time zone of
365	// the
366	// start_location. Must not be present if road_traffic is specified.
367	DepartureHourLocal int64 `json:"departureHourLocal,omitempty"`
368
369	// Method: Required. The method of transportation for which to calculate
370	// the commute time.
371	//
372	// Possible values:
373	//   "COMMUTE_METHOD_UNSPECIFIED" - Commute method is not specified.
374	//   "DRIVING" - Commute time is calculated based on driving time.
375	//   "TRANSIT" - Commute time is calculated based on public transit
376	// including bus, metro,
377	// subway, etc.
378	Method string `json:"method,omitempty"`
379
380	// RoadTraffic: Optional. Specifies the traffic density to use when
381	// calculating commute time.
382	// Must not be present if departure_hour_local is specified.
383	//
384	// Possible values:
385	//   "ROAD_TRAFFIC_UNSPECIFIED" - Road traffic situation is not
386	// specified.
387	//   "TRAFFIC_FREE" - Optimal commute time without considering any
388	// traffic impact.
389	//   "BUSY_HOUR" - Commute time calculation takes in account the peak
390	// traffic impact.
391	RoadTraffic string `json:"roadTraffic,omitempty"`
392
393	// StartLocation: Required. The latitude and longitude of the location
394	// from which to calculate the
395	// commute time.
396	StartLocation *LatLng `json:"startLocation,omitempty"`
397
398	// TravelTime: Required. The maximum travel time in seconds. The maximum
399	// allowed value is `3600s`
400	// (one hour). Format is `123s`.
401	TravelTime string `json:"travelTime,omitempty"`
402
403	// ForceSendFields is a list of field names (e.g.
404	// "AllowNonStreetLevelAddress") to unconditionally include in API
405	// requests. By default, fields with empty values are omitted from API
406	// requests. However, any non-pointer, non-interface field appearing in
407	// ForceSendFields will be sent to the server regardless of whether the
408	// field is empty or not. This may be used to include empty fields in
409	// Patch requests.
410	ForceSendFields []string `json:"-"`
411
412	// NullFields is a list of field names (e.g.
413	// "AllowNonStreetLevelAddress") to include in API requests with the
414	// JSON null value. By default, fields with empty values are omitted
415	// from API requests. However, any field with an empty value appearing
416	// in NullFields will be sent to the server as null. It is an error if a
417	// field in this list has a non-empty value. This may be used to include
418	// null fields in Patch requests.
419	NullFields []string `json:"-"`
420}
421
422func (s *CommutePreference) MarshalJSON() ([]byte, error) {
423	type NoMethod CommutePreference
424	raw := NoMethod(*s)
425	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
426}
427
428// Company: A Company resource represents a company in the service. A
429// company is the
430// entity that owns job listings, that is, the hiring entity responsible
431// for
432// employing applicants for the job position.
433type Company struct {
434	// CareerPageLink: Optional. The URL to employer's career site or
435	// careers page on the employer's web
436	// site.
437	CareerPageLink string `json:"careerPageLink,omitempty"`
438
439	// CompanyInfoSources: Optional. Identifiers external to the application
440	// that help to further identify
441	// the employer.
442	CompanyInfoSources []*CompanyInfoSource `json:"companyInfoSources,omitempty"`
443
444	// CompanySize: Optional. The employer's company size.
445	//
446	// Possible values:
447	//   "COMPANY_SIZE_UNSPECIFIED" - Default value if the size is not
448	// specified.
449	//   "MINI" - The company has less than 50 employees.
450	//   "SMALL" - The company has between 50 and 99 employees.
451	//   "SMEDIUM" - The company has between 100 and 499 employees.
452	//   "MEDIUM" - The company has between 500 and 999 employees.
453	//   "BIG" - The company has between 1,000 and 4,999 employees.
454	//   "BIGGER" - The company has between 5,000 and 9,999 employees.
455	//   "GIANT" - The company has 10,000 or more employees.
456	CompanySize string `json:"companySize,omitempty"`
457
458	// DisableLocationOptimization: Deprecated. Do not use this
459	// field.
460	//
461	// Optional.
462	//
463	// This field is no longer used. Any value set to it is ignored.
464	DisableLocationOptimization bool `json:"disableLocationOptimization,omitempty"`
465
466	// DisplayName: Required. The name of the employer to be displayed with
467	// the job,
468	// for example, "Google, LLC.".
469	DisplayName string `json:"displayName,omitempty"`
470
471	// DistributorBillingCompanyId: Optional. The unique company identifier
472	// provided by the client to identify an
473	// employer for billing purposes. Recommended practice is to use
474	// the distributor_company_id.
475	//
476	// Defaults to same value as distributor_company_id when a value
477	// is not provided.
478	DistributorBillingCompanyId string `json:"distributorBillingCompanyId,omitempty"`
479
480	// DistributorCompanyId: Required. A client's company identifier, used
481	// to uniquely identify the
482	// company. If an employer has a subsidiary or sub-brand, such as
483	// "Alphabet"
484	// and "Google", which the client wishes to use as the company displayed
485	// on
486	// the job. Best practice is to create a distinct company identifier for
487	// each
488	// distinct brand displayed.
489	//
490	// The maximum number of allowed characters is 255.
491	DistributorCompanyId string `json:"distributorCompanyId,omitempty"`
492
493	// EeoText: Optional. Equal Employment Opportunity legal disclaimer text
494	// to be
495	// associated with all jobs, and typically to be displayed in
496	// all
497	// roles.
498	//
499	// The maximum number of allowed characters is 500.
500	EeoText string `json:"eeoText,omitempty"`
501
502	// HiringAgency: Optional. Set to true if it is the hiring agency that
503	// post jobs for other
504	// employers.
505	//
506	// Defaults to false if not provided.
507	HiringAgency bool `json:"hiringAgency,omitempty"`
508
509	// HqLocation: Optional. The street address of the company's main
510	// headquarters, which may be
511	// different from the job location. The service attempts
512	// to geolocate the provided address, and populates a more
513	// specific
514	// location wherever possible in structured_company_hq_location.
515	HqLocation string `json:"hqLocation,omitempty"`
516
517	// ImageUrl: Optional. A URL that hosts the employer's company logo. If
518	// provided,
519	// the logo image should be squared at 80x80 pixels.
520	//
521	// The url must be a Google Photos or Google Album url.
522	// Only images in these Google sub-domains are accepted.
523	ImageUrl string `json:"imageUrl,omitempty"`
524
525	// KeywordSearchableCustomAttributes: Optional. A list of keys of
526	// filterable Job.custom_attributes, whose
527	// corresponding `string_values` are used in keyword search. Jobs
528	// with
529	// `string_values` under these specified field keys are returned if
530	// any
531	// of the values matches the search keyword. Custom field values
532	// with
533	// parenthesis, brackets and special symbols might not be properly
534	// searchable,
535	// and those keyword queries need to be surrounded by quotes.
536	KeywordSearchableCustomAttributes []string `json:"keywordSearchableCustomAttributes,omitempty"`
537
538	// KeywordSearchableCustomFields: Deprecated. Use
539	// keyword_searchable_custom_attributes instead.
540	//
541	// Optional.
542	//
543	// A list of filterable custom fields that should be used in
544	// keyword
545	// search. The jobs of this company are returned if any of these
546	// custom
547	// fields matches the search keyword. Custom field values with
548	// parenthesis,
549	// brackets and special symbols might not be properly searchable, and
550	// those
551	// keyword queries need to be surrounded by quotes.
552	KeywordSearchableCustomFields []int64 `json:"keywordSearchableCustomFields,omitempty"`
553
554	// Name: Required during company update.
555	//
556	// The resource name for a company. This is generated by the service
557	// when a
558	// company is created, for
559	// example,
560	// "companies/0000aaaa-1111-bbbb-2222-cccc3333dddd".
561	Name string `json:"name,omitempty"`
562
563	// StructuredCompanyHqLocation: Output only. A structured headquarters
564	// location of the company,
565	// resolved from hq_location if possible.
566	StructuredCompanyHqLocation *JobLocation `json:"structuredCompanyHqLocation,omitempty"`
567
568	// Suspended: Output only. Indicates whether a company is flagged to be
569	// suspended from public
570	// availability by the service when job content appears
571	// suspicious,
572	// abusive, or spammy.
573	Suspended bool `json:"suspended,omitempty"`
574
575	// Title: Deprecated. Use display_name instead.
576	//
577	// Required.
578	//
579	// The name of the employer to be displayed with the job,
580	// for example, "Google, LLC.".
581	Title string `json:"title,omitempty"`
582
583	// Website: Optional. The URL representing the company's primary web
584	// site or home page,
585	// such as, "www.google.com".
586	Website string `json:"website,omitempty"`
587
588	// ServerResponse contains the HTTP response code and headers from the
589	// server.
590	googleapi.ServerResponse `json:"-"`
591
592	// ForceSendFields is a list of field names (e.g. "CareerPageLink") to
593	// unconditionally include in API requests. By default, fields with
594	// empty values are omitted from API requests. However, any non-pointer,
595	// non-interface field appearing in ForceSendFields will be sent to the
596	// server regardless of whether the field is empty or not. This may be
597	// used to include empty fields in Patch requests.
598	ForceSendFields []string `json:"-"`
599
600	// NullFields is a list of field names (e.g. "CareerPageLink") to
601	// include in API requests with the JSON null value. By default, fields
602	// with empty values are omitted from API requests. However, any field
603	// with an empty value appearing in NullFields will be sent to the
604	// server as null. It is an error if a field in this list has a
605	// non-empty value. This may be used to include null fields in Patch
606	// requests.
607	NullFields []string `json:"-"`
608}
609
610func (s *Company) MarshalJSON() ([]byte, error) {
611	type NoMethod Company
612	raw := NoMethod(*s)
613	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
614}
615
616// CompanyInfoSource: A resource that represents an external  Google
617// identifier for a company,
618// for example, a Google+ business page or a Google Maps business
619// page.
620// For unsupported types, use `unknown_type_id`.
621type CompanyInfoSource struct {
622	// FreebaseMid: Optional. The Google's Knowledge Graph value for the
623	// employer's company.
624	FreebaseMid string `json:"freebaseMid,omitempty"`
625
626	// GplusId: Optional. The numeric identifier for the employer's Google+
627	// business page.
628	GplusId string `json:"gplusId,omitempty"`
629
630	// MapsCid: Optional. The numeric identifier for the employer's
631	// headquarters on Google Maps,
632	// namely, the Google Maps CID (cell id).
633	MapsCid string `json:"mapsCid,omitempty"`
634
635	// UnknownTypeId: Optional. A Google identifier that does not match any
636	// of the other types.
637	UnknownTypeId string `json:"unknownTypeId,omitempty"`
638
639	// ForceSendFields is a list of field names (e.g. "FreebaseMid") to
640	// unconditionally include in API requests. By default, fields with
641	// empty values are omitted from API requests. However, any non-pointer,
642	// non-interface field appearing in ForceSendFields will be sent to the
643	// server regardless of whether the field is empty or not. This may be
644	// used to include empty fields in Patch requests.
645	ForceSendFields []string `json:"-"`
646
647	// NullFields is a list of field names (e.g. "FreebaseMid") to include
648	// in API requests with the JSON null value. By default, fields with
649	// empty values are omitted from API requests. However, any field with
650	// an empty value appearing in NullFields will be sent to the server as
651	// null. It is an error if a field in this list has a non-empty value.
652	// This may be used to include null fields in Patch requests.
653	NullFields []string `json:"-"`
654}
655
656func (s *CompanyInfoSource) MarshalJSON() ([]byte, error) {
657	type NoMethod CompanyInfoSource
658	raw := NoMethod(*s)
659	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
660}
661
662// CompensationEntry: A compensation entry that represents one component
663// of compensation, such
664// as base pay, bonus, or other compensation type.
665//
666// Annualization: One compensation entry can be annualized if
667// - it contains valid amount or range.
668// - and its expected_units_per_year is set or can be derived.
669// Its annualized range is determined as (amount or range)
670// times
671// expected_units_per_year.
672type CompensationEntry struct {
673	// Amount: Optional. Compensation amount.
674	Amount *Money `json:"amount,omitempty"`
675
676	// Description: Optional. Compensation description.  For example,
677	// could
678	// indicate equity terms or provide additional context to an
679	// estimated
680	// bonus.
681	Description string `json:"description,omitempty"`
682
683	// ExpectedUnitsPerYear: Optional. Expected number of units paid each
684	// year. If not specified, when
685	// Job.employment_types is FULLTIME, a default value is inferred
686	// based on unit. Default values:
687	// - HOURLY: 2080
688	// - DAILY: 260
689	// - WEEKLY: 52
690	// - MONTHLY: 12
691	// - ANNUAL: 1
692	ExpectedUnitsPerYear float64 `json:"expectedUnitsPerYear,omitempty"`
693
694	// Range: Optional. Compensation range.
695	Range *CompensationRange `json:"range,omitempty"`
696
697	// Type: Required. Compensation type.
698	//
699	// Possible values:
700	//   "COMPENSATION_TYPE_UNSPECIFIED" - Default value. Equivalent to
701	// OTHER_COMPENSATION_TYPE.
702	//   "BASE" - Base compensation: Refers to the fixed amount of money
703	// paid to an
704	// employee by an employer in return for work performed. Base
705	// compensation
706	// does not include benefits, bonuses or any other potential
707	// compensation
708	// from an employer.
709	//   "BONUS" - Bonus.
710	//   "SIGNING_BONUS" - Signing bonus.
711	//   "EQUITY" - Equity.
712	//   "PROFIT_SHARING" - Profit sharing.
713	//   "COMMISSIONS" - Commission.
714	//   "TIPS" - Tips.
715	//   "OTHER_COMPENSATION_TYPE" - Other compensation type.
716	Type string `json:"type,omitempty"`
717
718	// Unit: Optional. Frequency of the specified amount.
719	//
720	// Default is CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED.
721	//
722	// Possible values:
723	//   "COMPENSATION_UNIT_UNSPECIFIED" - Default value. Equivalent to
724	// OTHER_COMPENSATION_UNIT.
725	//   "HOURLY" - Hourly.
726	//   "DAILY" - Daily.
727	//   "WEEKLY" - Weekly
728	//   "MONTHLY" - Monthly.
729	//   "YEARLY" - Yearly.
730	//   "ONE_TIME" - One time.
731	//   "OTHER_COMPENSATION_UNIT" - Other compensation units.
732	Unit string `json:"unit,omitempty"`
733
734	// ForceSendFields is a list of field names (e.g. "Amount") to
735	// unconditionally include in API requests. By default, fields with
736	// empty values are omitted from API requests. However, any non-pointer,
737	// non-interface field appearing in ForceSendFields will be sent to the
738	// server regardless of whether the field is empty or not. This may be
739	// used to include empty fields in Patch requests.
740	ForceSendFields []string `json:"-"`
741
742	// NullFields is a list of field names (e.g. "Amount") to include in API
743	// requests with the JSON null value. By default, fields with empty
744	// values are omitted from API requests. However, any field with an
745	// empty value appearing in NullFields will be sent to the server as
746	// null. It is an error if a field in this list has a non-empty value.
747	// This may be used to include null fields in Patch requests.
748	NullFields []string `json:"-"`
749}
750
751func (s *CompensationEntry) MarshalJSON() ([]byte, error) {
752	type NoMethod CompensationEntry
753	raw := NoMethod(*s)
754	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
755}
756
757func (s *CompensationEntry) UnmarshalJSON(data []byte) error {
758	type NoMethod CompensationEntry
759	var s1 struct {
760		ExpectedUnitsPerYear gensupport.JSONFloat64 `json:"expectedUnitsPerYear"`
761		*NoMethod
762	}
763	s1.NoMethod = (*NoMethod)(s)
764	if err := json.Unmarshal(data, &s1); err != nil {
765		return err
766	}
767	s.ExpectedUnitsPerYear = float64(s1.ExpectedUnitsPerYear)
768	return nil
769}
770
771// CompensationFilter: Input only.
772//
773// Filter on job compensation type and amount.
774type CompensationFilter struct {
775	// IncludeJobsWithUnspecifiedCompensationRange: Optional. Whether to
776	// include jobs whose compensation range is unspecified.
777	IncludeJobsWithUnspecifiedCompensationRange bool `json:"includeJobsWithUnspecifiedCompensationRange,omitempty"`
778
779	// Range: Optional. Compensation range.
780	Range *CompensationRange `json:"range,omitempty"`
781
782	// Type: Required. Type of filter.
783	//
784	// Possible values:
785	//   "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position
786	// holder, INVALID, should never be used.
787	//   "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is
788	// a match if and
789	// only if the job contains a base CompensationEntry and the
790	// base
791	// CompensationEntry's unit matches provided units.
792	// Populate one or more units.
793	//
794	// See CompensationInfo.CompensationEntry for definition of
795	// base compensation entry.
796	//   "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and
797	// amount / range. A job
798	// is a match if and only if the job contains a base CompensationEntry,
799	// and
800	// the base entry's unit matches provided compensation_units and
801	// amount
802	// or range overlaps with provided compensation_range.
803	//
804	// See CompensationInfo.CompensationEntry for definition of
805	// base compensation entry.
806	//
807	// Set exactly one units and populate range.
808	//   "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation
809	// amount and `base compensation
810	// entry's` unit. Populate range and zero or more units.
811	//   "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation
812	// amount and `base compensation
813	// entry's` unit . Populate range and zero or more units.
814	Type string `json:"type,omitempty"`
815
816	// Units: Required. Specify desired `base compensation
817	// entry's`
818	// CompensationInfo.CompensationUnit.
819	//
820	// Possible values:
821	//   "COMPENSATION_UNIT_UNSPECIFIED" - Default value. Equivalent to
822	// OTHER_COMPENSATION_UNIT.
823	//   "HOURLY" - Hourly.
824	//   "DAILY" - Daily.
825	//   "WEEKLY" - Weekly
826	//   "MONTHLY" - Monthly.
827	//   "YEARLY" - Yearly.
828	//   "ONE_TIME" - One time.
829	//   "OTHER_COMPENSATION_UNIT" - Other compensation units.
830	Units []string `json:"units,omitempty"`
831
832	// ForceSendFields is a list of field names (e.g.
833	// "IncludeJobsWithUnspecifiedCompensationRange") to unconditionally
834	// include in API requests. By default, fields with empty values are
835	// omitted from API requests. However, any non-pointer, non-interface
836	// field appearing in ForceSendFields will be sent to the server
837	// regardless of whether the field is empty or not. This may be used to
838	// include empty fields in Patch requests.
839	ForceSendFields []string `json:"-"`
840
841	// NullFields is a list of field names (e.g.
842	// "IncludeJobsWithUnspecifiedCompensationRange") to include in API
843	// requests with the JSON null value. By default, fields with empty
844	// values are omitted from API requests. However, any field with an
845	// empty value appearing in NullFields will be sent to the server as
846	// null. It is an error if a field in this list has a non-empty value.
847	// This may be used to include null fields in Patch requests.
848	NullFields []string `json:"-"`
849}
850
851func (s *CompensationFilter) MarshalJSON() ([]byte, error) {
852	type NoMethod CompensationFilter
853	raw := NoMethod(*s)
854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
855}
856
857// CompensationHistogramRequest: Input only.
858//
859// Compensation based histogram request.
860type CompensationHistogramRequest struct {
861	// BucketingOption: Required. Numeric histogram options, like buckets,
862	// whether include min or max value.
863	BucketingOption *NumericBucketingOption `json:"bucketingOption,omitempty"`
864
865	// Type: Required. Type of the request, representing which field the
866	// histogramming should be
867	// performed over. A single request can only specify one histogram of
868	// each
869	// `CompensationHistogramRequestType`.
870	//
871	// Possible values:
872	//   "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value.
873	// Invalid.
874	//   "BASE" - Histogram by job's base compensation. See
875	// CompensationEntry for
876	// definition of base compensation.
877	//   "ANNUALIZED_BASE" - Histogram by job's annualized base
878	// compensation. See CompensationEntry
879	// for definition of annualized base compensation.
880	//   "ANNUALIZED_TOTAL" - Histogram by job's annualized total
881	// compensation. See CompensationEntry
882	// for definition of annualized total compensation.
883	Type string `json:"type,omitempty"`
884
885	// ForceSendFields is a list of field names (e.g. "BucketingOption") to
886	// unconditionally include in API requests. By default, fields with
887	// empty values are omitted from API requests. However, any non-pointer,
888	// non-interface field appearing in ForceSendFields will be sent to the
889	// server regardless of whether the field is empty or not. This may be
890	// used to include empty fields in Patch requests.
891	ForceSendFields []string `json:"-"`
892
893	// NullFields is a list of field names (e.g. "BucketingOption") to
894	// include in API requests with the JSON null value. By default, fields
895	// with empty values are omitted from API requests. However, any field
896	// with an empty value appearing in NullFields will be sent to the
897	// server as null. It is an error if a field in this list has a
898	// non-empty value. This may be used to include null fields in Patch
899	// requests.
900	NullFields []string `json:"-"`
901}
902
903func (s *CompensationHistogramRequest) MarshalJSON() ([]byte, error) {
904	type NoMethod CompensationHistogramRequest
905	raw := NoMethod(*s)
906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
907}
908
909// CompensationHistogramResult: Output only.
910//
911// Compensation based histogram result.
912type CompensationHistogramResult struct {
913	// Result: Histogram result.
914	Result *NumericBucketingResult `json:"result,omitempty"`
915
916	// Type: Type of the request, corresponding
917	// to
918	// CompensationHistogramRequest.type.
919	//
920	// Possible values:
921	//   "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value.
922	// Invalid.
923	//   "BASE" - Histogram by job's base compensation. See
924	// CompensationEntry for
925	// definition of base compensation.
926	//   "ANNUALIZED_BASE" - Histogram by job's annualized base
927	// compensation. See CompensationEntry
928	// for definition of annualized base compensation.
929	//   "ANNUALIZED_TOTAL" - Histogram by job's annualized total
930	// compensation. See CompensationEntry
931	// for definition of annualized total compensation.
932	Type string `json:"type,omitempty"`
933
934	// ForceSendFields is a list of field names (e.g. "Result") to
935	// unconditionally include in API requests. By default, fields with
936	// empty values are omitted from API requests. However, any non-pointer,
937	// non-interface field appearing in ForceSendFields will be sent to the
938	// server regardless of whether the field is empty or not. This may be
939	// used to include empty fields in Patch requests.
940	ForceSendFields []string `json:"-"`
941
942	// NullFields is a list of field names (e.g. "Result") to include in API
943	// requests with the JSON null value. By default, fields with empty
944	// values are omitted from API requests. However, any field with an
945	// empty value appearing in NullFields will be sent to the server as
946	// null. It is an error if a field in this list has a non-empty value.
947	// This may be used to include null fields in Patch requests.
948	NullFields []string `json:"-"`
949}
950
951func (s *CompensationHistogramResult) MarshalJSON() ([]byte, error) {
952	type NoMethod CompensationHistogramResult
953	raw := NoMethod(*s)
954	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
955}
956
957// CompensationInfo: Job compensation details.
958type CompensationInfo struct {
959	// Amount: Deprecated. Use entries instead.
960	//
961	// Optional.
962	//
963	// The amount of compensation or pay for the job.
964	// As an alternative, compensation_amount_min
965	// and
966	// compensation_amount_max may be used to define a range
967	// of
968	// compensation.
969	Amount *Money `json:"amount,omitempty"`
970
971	// AnnualizedBaseCompensationRange: Output only. Annualized base
972	// compensation range. Computed as
973	// base compensation entry's CompensationEntry.compensation
974	// times
975	// CompensationEntry.expected_units_per_year.
976	//
977	// See CompensationEntry for explanation on compensation annualization.
978	AnnualizedBaseCompensationRange *CompensationRange `json:"annualizedBaseCompensationRange,omitempty"`
979
980	// AnnualizedTotalCompensationRange: Output only. Annualized total
981	// compensation range. Computed as
982	// all compensation entries' CompensationEntry.compensation
983	// times
984	// CompensationEntry.expected_units_per_year.
985	//
986	// See CompensationEntry for explanation on compensation annualization.
987	AnnualizedTotalCompensationRange *CompensationRange `json:"annualizedTotalCompensationRange,omitempty"`
988
989	// Entries: Optional. Job compensation information.
990	//
991	// At most one entry can be of
992	// type
993	// CompensationInfo.CompensationType.BASE, which is
994	// referred as ** base compensation entry ** for the job.
995	Entries []*CompensationEntry `json:"entries,omitempty"`
996
997	// Max: Deprecated. Use entries instead.
998	//
999	// Optional.
1000	//
1001	// An upper bound on a range for compensation or pay for the job.
1002	// The currency type is specified in compensation_amount.
1003	Max *Money `json:"max,omitempty"`
1004
1005	// Min: Deprecated. Use entries instead.
1006	//
1007	// Optional.
1008	//
1009	// A lower bound on a range for compensation or pay for the job.
1010	// The currency type is specified in compensation_amount.
1011	Min *Money `json:"min,omitempty"`
1012
1013	// Type: Deprecated. Use entries instead.
1014	//
1015	// Optional.
1016	//
1017	// Type of job compensation.
1018	//
1019	// Possible values:
1020	//   "JOB_COMPENSATION_TYPE_UNSPECIFIED" - The default value if the type
1021	// is not specified.
1022	//   "HOURLY" - The job compensation is quoted by the number of hours
1023	// worked.
1024	//   "SALARY" - The job compensation is quoted on an annual basis.
1025	//   "PER_PROJECT" - The job compensation is quoted by project
1026	// completion.
1027	//   "COMMISSION" - The job compensation is quoted based solely on
1028	// commission.
1029	//   "OTHER_TYPE" - The job compensation is not quoted according to the
1030	// listed compensation
1031	// options.
1032	Type string `json:"type,omitempty"`
1033
1034	// ForceSendFields is a list of field names (e.g. "Amount") to
1035	// unconditionally include in API requests. By default, fields with
1036	// empty values are omitted from API requests. However, any non-pointer,
1037	// non-interface field appearing in ForceSendFields will be sent to the
1038	// server regardless of whether the field is empty or not. This may be
1039	// used to include empty fields in Patch requests.
1040	ForceSendFields []string `json:"-"`
1041
1042	// NullFields is a list of field names (e.g. "Amount") to include in API
1043	// requests with the JSON null value. By default, fields with empty
1044	// values are omitted from API requests. However, any field with an
1045	// empty value appearing in NullFields will be sent to the server as
1046	// null. It is an error if a field in this list has a non-empty value.
1047	// This may be used to include null fields in Patch requests.
1048	NullFields []string `json:"-"`
1049}
1050
1051func (s *CompensationInfo) MarshalJSON() ([]byte, error) {
1052	type NoMethod CompensationInfo
1053	raw := NoMethod(*s)
1054	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1055}
1056
1057// CompensationRange: Compensation range.
1058type CompensationRange struct {
1059	// Max: Optional. The maximum amount of compensation. If left empty, the
1060	// value is set
1061	// to a maximal compensation value and the currency code is set to
1062	// match the currency code of
1063	// min_compensation.
1064	Max *Money `json:"max,omitempty"`
1065
1066	// Min: Optional. The minimum amount of compensation. If left empty, the
1067	// value is set
1068	// to zero and the currency code is set to match the
1069	// currency code of max_compensation.
1070	Min *Money `json:"min,omitempty"`
1071
1072	// ForceSendFields is a list of field names (e.g. "Max") to
1073	// unconditionally include in API requests. By default, fields with
1074	// empty values are omitted from API requests. However, any non-pointer,
1075	// non-interface field appearing in ForceSendFields will be sent to the
1076	// server regardless of whether the field is empty or not. This may be
1077	// used to include empty fields in Patch requests.
1078	ForceSendFields []string `json:"-"`
1079
1080	// NullFields is a list of field names (e.g. "Max") to include in API
1081	// requests with the JSON null value. By default, fields with empty
1082	// values are omitted from API requests. However, any field with an
1083	// empty value appearing in NullFields will be sent to the server as
1084	// null. It is an error if a field in this list has a non-empty value.
1085	// This may be used to include null fields in Patch requests.
1086	NullFields []string `json:"-"`
1087}
1088
1089func (s *CompensationRange) MarshalJSON() ([]byte, error) {
1090	type NoMethod CompensationRange
1091	raw := NoMethod(*s)
1092	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1093}
1094
1095// CompleteQueryResponse: Output only.
1096//
1097// Response of auto-complete query.
1098type CompleteQueryResponse struct {
1099	// CompletionResults: Results of the matching job/company candidates.
1100	CompletionResults []*CompletionResult `json:"completionResults,omitempty"`
1101
1102	// Metadata: Additional information for the API invocation, such as the
1103	// request
1104	// tracking id.
1105	Metadata *ResponseMetadata `json:"metadata,omitempty"`
1106
1107	// ServerResponse contains the HTTP response code and headers from the
1108	// server.
1109	googleapi.ServerResponse `json:"-"`
1110
1111	// ForceSendFields is a list of field names (e.g. "CompletionResults")
1112	// to unconditionally include in API requests. By default, fields with
1113	// empty values are omitted from API requests. However, any non-pointer,
1114	// non-interface field appearing in ForceSendFields will be sent to the
1115	// server regardless of whether the field is empty or not. This may be
1116	// used to include empty fields in Patch requests.
1117	ForceSendFields []string `json:"-"`
1118
1119	// NullFields is a list of field names (e.g. "CompletionResults") to
1120	// include in API requests with the JSON null value. By default, fields
1121	// with empty values are omitted from API requests. However, any field
1122	// with an empty value appearing in NullFields will be sent to the
1123	// server as null. It is an error if a field in this list has a
1124	// non-empty value. This may be used to include null fields in Patch
1125	// requests.
1126	NullFields []string `json:"-"`
1127}
1128
1129func (s *CompleteQueryResponse) MarshalJSON() ([]byte, error) {
1130	type NoMethod CompleteQueryResponse
1131	raw := NoMethod(*s)
1132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1133}
1134
1135// CompletionResult: Output only.
1136//
1137// Resource that represents completion results.
1138type CompletionResult struct {
1139	// ImageUrl: The URL for the company logo if `type=COMPANY_NAME`.
1140	ImageUrl string `json:"imageUrl,omitempty"`
1141
1142	// Suggestion: The suggestion for the query.
1143	Suggestion string `json:"suggestion,omitempty"`
1144
1145	// Type: The completion topic.
1146	//
1147	// Possible values:
1148	//   "COMPLETION_TYPE_UNSPECIFIED" - Default value.
1149	//   "JOB_TITLE" - Only suggest job titles.
1150	//   "COMPANY_NAME" - Only suggest company names.
1151	//   "COMBINED" - Suggest both job titles and company names.
1152	Type string `json:"type,omitempty"`
1153
1154	// ForceSendFields is a list of field names (e.g. "ImageUrl") to
1155	// unconditionally include in API requests. By default, fields with
1156	// empty values are omitted from API requests. However, any non-pointer,
1157	// non-interface field appearing in ForceSendFields will be sent to the
1158	// server regardless of whether the field is empty or not. This may be
1159	// used to include empty fields in Patch requests.
1160	ForceSendFields []string `json:"-"`
1161
1162	// NullFields is a list of field names (e.g. "ImageUrl") to include in
1163	// API requests with the JSON null value. By default, fields with empty
1164	// values are omitted from API requests. However, any field with an
1165	// empty value appearing in NullFields will be sent to the server as
1166	// null. It is an error if a field in this list has a non-empty value.
1167	// This may be used to include null fields in Patch requests.
1168	NullFields []string `json:"-"`
1169}
1170
1171func (s *CompletionResult) MarshalJSON() ([]byte, error) {
1172	type NoMethod CompletionResult
1173	raw := NoMethod(*s)
1174	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1175}
1176
1177// CreateJobRequest: Input only.
1178//
1179// Create job request.
1180type CreateJobRequest struct {
1181	// DisableStreetAddressResolution: Deprecated. Please use
1182	// processing_options. This flag is ignored if
1183	// processing_options is set.
1184	//
1185	// Optional.
1186	//
1187	// If set to `true`, the service does not attempt to resolve a
1188	// more precise address for the job.
1189	DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"`
1190
1191	// Job: Required. The Job to be created.
1192	Job *Job `json:"job,omitempty"`
1193
1194	// ProcessingOptions: Optional. Options for job processing.
1195	ProcessingOptions *JobProcessingOptions `json:"processingOptions,omitempty"`
1196
1197	// ForceSendFields is a list of field names (e.g.
1198	// "DisableStreetAddressResolution") to unconditionally include in API
1199	// requests. By default, fields with empty values are omitted from API
1200	// requests. However, any non-pointer, non-interface field appearing in
1201	// ForceSendFields will be sent to the server regardless of whether the
1202	// field is empty or not. This may be used to include empty fields in
1203	// Patch requests.
1204	ForceSendFields []string `json:"-"`
1205
1206	// NullFields is a list of field names (e.g.
1207	// "DisableStreetAddressResolution") to include in API requests with the
1208	// JSON null value. By default, fields with empty values are omitted
1209	// from API requests. However, any field with an empty value appearing
1210	// in NullFields will be sent to the server as null. It is an error if a
1211	// field in this list has a non-empty value. This may be used to include
1212	// null fields in Patch requests.
1213	NullFields []string `json:"-"`
1214}
1215
1216func (s *CreateJobRequest) MarshalJSON() ([]byte, error) {
1217	type NoMethod CreateJobRequest
1218	raw := NoMethod(*s)
1219	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1220}
1221
1222// CustomAttribute: Custom attribute values that are either filterable
1223// or non-filterable.
1224type CustomAttribute struct {
1225	// Filterable: Optional. If the `filterable` flag is true, custom field
1226	// values are searchable.
1227	// If false, values are not searchable.
1228	//
1229	// Default is false.
1230	Filterable bool `json:"filterable,omitempty"`
1231
1232	// LongValue: Optional but at least one of string_values or long_value
1233	// must
1234	// be specified.
1235	//
1236	// This field is used to perform number range search.
1237	// (`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`.
1238	// For
1239	// `long_value`, a value between Long.MIN and Long.MAX is allowed.
1240	LongValue int64 `json:"longValue,omitempty,string"`
1241
1242	// StringValues: Optional but at least one of string_values or
1243	// long_value must
1244	// be specified.
1245	//
1246	// This field is used to perform a string match (`CASE_SENSITIVE_MATCH`
1247	// or
1248	// `CASE_INSENSITIVE_MATCH`) search.
1249	// For filterable `string_values`, a maximum total number of 200
1250	// values
1251	// is allowed, with each `string_value` has a byte size of no more
1252	// than
1253	// 255B. For unfilterable `string_values`, the maximum total byte size
1254	// of
1255	// unfilterable `string_values` is 50KB.
1256	//
1257	// Empty strings are not allowed.
1258	StringValues *StringValues `json:"stringValues,omitempty"`
1259
1260	// ForceSendFields is a list of field names (e.g. "Filterable") to
1261	// unconditionally include in API requests. By default, fields with
1262	// empty values are omitted from API requests. However, any non-pointer,
1263	// non-interface field appearing in ForceSendFields will be sent to the
1264	// server regardless of whether the field is empty or not. This may be
1265	// used to include empty fields in Patch requests.
1266	ForceSendFields []string `json:"-"`
1267
1268	// NullFields is a list of field names (e.g. "Filterable") to include in
1269	// API requests with the JSON null value. By default, fields with empty
1270	// values are omitted from API requests. However, any field with an
1271	// empty value appearing in NullFields will be sent to the server as
1272	// null. It is an error if a field in this list has a non-empty value.
1273	// This may be used to include null fields in Patch requests.
1274	NullFields []string `json:"-"`
1275}
1276
1277func (s *CustomAttribute) MarshalJSON() ([]byte, error) {
1278	type NoMethod CustomAttribute
1279	raw := NoMethod(*s)
1280	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1281}
1282
1283// CustomAttributeHistogramRequest: Custom attributes histogram request.
1284// An error will be thrown if neither
1285// string_value_histogram or long_value_histogram_bucketing_option
1286// has
1287// been defined.
1288type CustomAttributeHistogramRequest struct {
1289	// Key: Required. Specifies the custom field key to perform a histogram
1290	// on. If specified
1291	// without `long_value_histogram_bucketing_option`, histogram on string
1292	// values
1293	// of the given `key` is triggered, otherwise histogram is performed on
1294	// long
1295	// values.
1296	Key string `json:"key,omitempty"`
1297
1298	// LongValueHistogramBucketingOption: Optional. Specifies buckets used
1299	// to perform a range histogram on Job's
1300	// filterable long custom field values, or min/max value requirements.
1301	LongValueHistogramBucketingOption *NumericBucketingOption `json:"longValueHistogramBucketingOption,omitempty"`
1302
1303	// StringValueHistogram: Optional. If set to true, the response will
1304	// include the histogram value for
1305	// each key as a string.
1306	StringValueHistogram bool `json:"stringValueHistogram,omitempty"`
1307
1308	// ForceSendFields is a list of field names (e.g. "Key") to
1309	// unconditionally include in API requests. By default, fields with
1310	// empty values are omitted from API requests. However, any non-pointer,
1311	// non-interface field appearing in ForceSendFields will be sent to the
1312	// server regardless of whether the field is empty or not. This may be
1313	// used to include empty fields in Patch requests.
1314	ForceSendFields []string `json:"-"`
1315
1316	// NullFields is a list of field names (e.g. "Key") to include in API
1317	// requests with the JSON null value. By default, fields with empty
1318	// values are omitted from API requests. However, any field with an
1319	// empty value appearing in NullFields will be sent to the server as
1320	// null. It is an error if a field in this list has a non-empty value.
1321	// This may be used to include null fields in Patch requests.
1322	NullFields []string `json:"-"`
1323}
1324
1325func (s *CustomAttributeHistogramRequest) MarshalJSON() ([]byte, error) {
1326	type NoMethod CustomAttributeHistogramRequest
1327	raw := NoMethod(*s)
1328	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1329}
1330
1331// CustomAttributeHistogramResult: Output only.
1332//
1333// Custom attribute histogram result.
1334type CustomAttributeHistogramResult struct {
1335	// Key: Stores the key of custom attribute the histogram is performed
1336	// on.
1337	Key string `json:"key,omitempty"`
1338
1339	// LongValueHistogramResult: Stores bucketed histogram counting result
1340	// or min/max values for
1341	// custom attribute long values associated with `key`.
1342	LongValueHistogramResult *NumericBucketingResult `json:"longValueHistogramResult,omitempty"`
1343
1344	// StringValueHistogramResult: Stores a map from the values of string
1345	// custom field associated
1346	// with `key` to the number of jobs with that value in this histogram
1347	// result.
1348	StringValueHistogramResult map[string]int64 `json:"stringValueHistogramResult,omitempty"`
1349
1350	// ForceSendFields is a list of field names (e.g. "Key") to
1351	// unconditionally include in API requests. By default, fields with
1352	// empty values are omitted from API requests. However, any non-pointer,
1353	// non-interface field appearing in ForceSendFields will be sent to the
1354	// server regardless of whether the field is empty or not. This may be
1355	// used to include empty fields in Patch requests.
1356	ForceSendFields []string `json:"-"`
1357
1358	// NullFields is a list of field names (e.g. "Key") to include in API
1359	// requests with the JSON null value. By default, fields with empty
1360	// values are omitted from API requests. However, any field with an
1361	// empty value appearing in NullFields will be sent to the server as
1362	// null. It is an error if a field in this list has a non-empty value.
1363	// This may be used to include null fields in Patch requests.
1364	NullFields []string `json:"-"`
1365}
1366
1367func (s *CustomAttributeHistogramResult) MarshalJSON() ([]byte, error) {
1368	type NoMethod CustomAttributeHistogramResult
1369	raw := NoMethod(*s)
1370	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1371}
1372
1373// CustomField: Resource that represents the custom data not captured by
1374// the standard fields.
1375type CustomField struct {
1376	// Values: Optional. The values of the custom data.
1377	Values []string `json:"values,omitempty"`
1378
1379	// ForceSendFields is a list of field names (e.g. "Values") to
1380	// unconditionally include in API requests. By default, fields with
1381	// empty values are omitted from API requests. However, any non-pointer,
1382	// non-interface field appearing in ForceSendFields will be sent to the
1383	// server regardless of whether the field is empty or not. This may be
1384	// used to include empty fields in Patch requests.
1385	ForceSendFields []string `json:"-"`
1386
1387	// NullFields is a list of field names (e.g. "Values") to include in API
1388	// requests with the JSON null value. By default, fields with empty
1389	// values are omitted from API requests. However, any field with an
1390	// empty value appearing in NullFields will be sent to the server as
1391	// null. It is an error if a field in this list has a non-empty value.
1392	// This may be used to include null fields in Patch requests.
1393	NullFields []string `json:"-"`
1394}
1395
1396func (s *CustomField) MarshalJSON() ([]byte, error) {
1397	type NoMethod CustomField
1398	raw := NoMethod(*s)
1399	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1400}
1401
1402// CustomFieldFilter: Input only.
1403//
1404// Custom field filter of the search.
1405type CustomFieldFilter struct {
1406	// Queries: Required. The query strings for the filter.
1407	Queries []string `json:"queries,omitempty"`
1408
1409	// Type: Optional. The type of filter.
1410	// Defaults to FilterType.OR.
1411	//
1412	// Possible values:
1413	//   "FILTER_TYPE_UNSPECIFIED" - Default value.
1414	//   "OR" - Search for a match with any query.
1415	//   "AND" - Search for a match with all queries.
1416	//   "NOT" - Negate the set of filter values for the search.
1417	Type string `json:"type,omitempty"`
1418
1419	// ForceSendFields is a list of field names (e.g. "Queries") to
1420	// unconditionally include in API requests. By default, fields with
1421	// empty values are omitted from API requests. However, any non-pointer,
1422	// non-interface field appearing in ForceSendFields will be sent to the
1423	// server regardless of whether the field is empty or not. This may be
1424	// used to include empty fields in Patch requests.
1425	ForceSendFields []string `json:"-"`
1426
1427	// NullFields is a list of field names (e.g. "Queries") to include in
1428	// API requests with the JSON null value. By default, fields with empty
1429	// values are omitted from API requests. However, any field with an
1430	// empty value appearing in NullFields will be sent to the server as
1431	// null. It is an error if a field in this list has a non-empty value.
1432	// This may be used to include null fields in Patch requests.
1433	NullFields []string `json:"-"`
1434}
1435
1436func (s *CustomFieldFilter) MarshalJSON() ([]byte, error) {
1437	type NoMethod CustomFieldFilter
1438	raw := NoMethod(*s)
1439	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1440}
1441
1442// Date: Represents a whole or partial calendar date, e.g. a birthday.
1443// The time of day
1444// and time zone are either specified elsewhere or are not significant.
1445// The date
1446// is relative to the Proleptic Gregorian Calendar. This can
1447// represent:
1448//
1449// * A full date, with non-zero year, month and day values
1450// * A month and day value, with a zero year, e.g. an anniversary
1451// * A year on its own, with zero month and day values
1452// * A year and month value, with a zero day, e.g. a credit card
1453// expiration date
1454//
1455// Related types are google.type.TimeOfDay and
1456// `google.protobuf.Timestamp`.
1457type Date struct {
1458	// Day: Day of month. Must be from 1 to 31 and valid for the year and
1459	// month, or 0
1460	// if specifying a year by itself or a year and month where the day is
1461	// not
1462	// significant.
1463	Day int64 `json:"day,omitempty"`
1464
1465	// Month: Month of year. Must be from 1 to 12, or 0 if specifying a year
1466	// without a
1467	// month and day.
1468	Month int64 `json:"month,omitempty"`
1469
1470	// Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date
1471	// without
1472	// a year.
1473	Year int64 `json:"year,omitempty"`
1474
1475	// ForceSendFields is a list of field names (e.g. "Day") to
1476	// unconditionally include in API requests. By default, fields with
1477	// empty values are omitted from API requests. However, any non-pointer,
1478	// non-interface field appearing in ForceSendFields will be sent to the
1479	// server regardless of whether the field is empty or not. This may be
1480	// used to include empty fields in Patch requests.
1481	ForceSendFields []string `json:"-"`
1482
1483	// NullFields is a list of field names (e.g. "Day") to include in API
1484	// requests with the JSON null value. By default, fields with empty
1485	// values are omitted from API requests. However, any field with an
1486	// empty value appearing in NullFields will be sent to the server as
1487	// null. It is an error if a field in this list has a non-empty value.
1488	// This may be used to include null fields in Patch requests.
1489	NullFields []string `json:"-"`
1490}
1491
1492func (s *Date) MarshalJSON() ([]byte, error) {
1493	type NoMethod Date
1494	raw := NoMethod(*s)
1495	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1496}
1497
1498// DeleteJobsByFilterRequest: Deprecated. Use BatchDeleteJobsRequest
1499// instead.
1500//
1501// Input only.
1502//
1503// Delete job by filter request.
1504//
1505// The job typically becomes unsearchable within 10 seconds, but it may
1506// take
1507// up to 5 minutes.
1508type DeleteJobsByFilterRequest struct {
1509	// DisableFastProcess: Optional. If set to true, this call waits for all
1510	// processing steps to complete
1511	// before the job is cleaned up. Otherwise, the call returns while
1512	// some
1513	// steps are still taking place asynchronously, hence faster.
1514	DisableFastProcess bool `json:"disableFastProcess,omitempty"`
1515
1516	// Filter: Required. Restrictions on the scope of the delete request.
1517	Filter *Filter `json:"filter,omitempty"`
1518
1519	// ForceSendFields is a list of field names (e.g. "DisableFastProcess")
1520	// to unconditionally include in API requests. By default, fields with
1521	// empty values are omitted from API requests. However, any non-pointer,
1522	// non-interface field appearing in ForceSendFields will be sent to the
1523	// server regardless of whether the field is empty or not. This may be
1524	// used to include empty fields in Patch requests.
1525	ForceSendFields []string `json:"-"`
1526
1527	// NullFields is a list of field names (e.g. "DisableFastProcess") to
1528	// include in API requests with the JSON null value. By default, fields
1529	// with empty values are omitted from API requests. However, any field
1530	// with an empty value appearing in NullFields will be sent to the
1531	// server as null. It is an error if a field in this list has a
1532	// non-empty value. This may be used to include null fields in Patch
1533	// requests.
1534	NullFields []string `json:"-"`
1535}
1536
1537func (s *DeleteJobsByFilterRequest) MarshalJSON() ([]byte, error) {
1538	type NoMethod DeleteJobsByFilterRequest
1539	raw := NoMethod(*s)
1540	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1541}
1542
1543// DeviceInfo: Input only.
1544//
1545// Device information collected from the job seeker, candidate, or
1546// other entity conducting the job search. Providing this information
1547// improves
1548// the quality of the search results across devices.
1549type DeviceInfo struct {
1550	// DeviceType: Optional. Type of the device.
1551	//
1552	// Possible values:
1553	//   "DEVICE_TYPE_UNSPECIFIED" - The device type isn't specified.
1554	//   "WEB" - A desktop web browser, such as, Chrome, Firefox, Safari, or
1555	// Internet
1556	// Explorer)
1557	//   "MOBILE_WEB" - A mobile device web browser, such as a phone or
1558	// tablet with a Chrome
1559	// browser.
1560	//   "ANDROID" - An Android device native application.
1561	//   "IOS" - An iOS device native application.
1562	//   "BOT" - A bot, as opposed to a device operated by human beings,
1563	// such as a web
1564	// crawler.
1565	//   "OTHER" - Other devices types.
1566	DeviceType string `json:"deviceType,omitempty"`
1567
1568	// Id: Optional. A device-specific ID. The ID must be a unique
1569	// identifier that distinguishes
1570	// the device from other devices.
1571	Id string `json:"id,omitempty"`
1572
1573	// ForceSendFields is a list of field names (e.g. "DeviceType") to
1574	// unconditionally include in API requests. By default, fields with
1575	// empty values are omitted from API requests. However, any non-pointer,
1576	// non-interface field appearing in ForceSendFields will be sent to the
1577	// server regardless of whether the field is empty or not. This may be
1578	// used to include empty fields in Patch requests.
1579	ForceSendFields []string `json:"-"`
1580
1581	// NullFields is a list of field names (e.g. "DeviceType") to include in
1582	// API requests with the JSON null value. By default, fields with empty
1583	// values are omitted from API requests. However, any field with an
1584	// empty value appearing in NullFields will be sent to the server as
1585	// null. It is an error if a field in this list has a non-empty value.
1586	// This may be used to include null fields in Patch requests.
1587	NullFields []string `json:"-"`
1588}
1589
1590func (s *DeviceInfo) MarshalJSON() ([]byte, error) {
1591	type NoMethod DeviceInfo
1592	raw := NoMethod(*s)
1593	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1594}
1595
1596// Empty: A generic empty message that you can re-use to avoid defining
1597// duplicated
1598// empty messages in your APIs. A typical example is to use it as the
1599// request
1600// or the response type of an API method. For instance:
1601//
1602//     service Foo {
1603//       rpc Bar(google.protobuf.Empty) returns
1604// (google.protobuf.Empty);
1605//     }
1606//
1607// The JSON representation for `Empty` is empty JSON object `{}`.
1608type Empty struct {
1609	// ServerResponse contains the HTTP response code and headers from the
1610	// server.
1611	googleapi.ServerResponse `json:"-"`
1612}
1613
1614// ExtendedCompensationFilter: Deprecated. Always use
1615// CompensationFilter.
1616//
1617// Input only.
1618//
1619// Filter on job compensation type and amount.
1620type ExtendedCompensationFilter struct {
1621	// CompensationRange: Optional. Compensation range.
1622	CompensationRange *ExtendedCompensationInfoCompensationRange `json:"compensationRange,omitempty"`
1623
1624	// CompensationUnits: Required. Specify desired `base compensation
1625	// entry's`
1626	// ExtendedCompensationInfo.CompensationUnit.
1627	//
1628	// Possible values:
1629	//   "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value.
1630	// Equivalent to OTHER_COMPENSATION_UNIT.
1631	//   "HOURLY" - Hourly.
1632	//   "DAILY" - Daily.
1633	//   "WEEKLY" - Weekly
1634	//   "MONTHLY" - Monthly.
1635	//   "YEARLY" - Yearly.
1636	//   "ONE_TIME" - One time.
1637	//   "OTHER_COMPENSATION_UNIT" - Other compensation units.
1638	CompensationUnits []string `json:"compensationUnits,omitempty"`
1639
1640	// Currency: Optional. Specify currency in 3-letter
1641	// [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) format.
1642	// If
1643	// unspecified, jobs are returned regardless of currency.
1644	Currency string `json:"currency,omitempty"`
1645
1646	// IncludeJobWithUnspecifiedCompensationRange: Optional. Whether to
1647	// include jobs whose compensation range is unspecified.
1648	IncludeJobWithUnspecifiedCompensationRange bool `json:"includeJobWithUnspecifiedCompensationRange,omitempty"`
1649
1650	// Type: Required. Type of filter.
1651	//
1652	// Possible values:
1653	//   "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position
1654	// holder, INVALID, should never be used.
1655	//   "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is
1656	// a match if and
1657	// only if the job contains a base CompensationEntry and the
1658	// base
1659	// CompensationEntry's unit matches provided
1660	// compensation_units.
1661	// Populate one or more compensation_units.
1662	//
1663	// See ExtendedCompensationInfo.CompensationEntry for definition of
1664	// base compensation entry.
1665	//   "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and
1666	// amount / range. A job
1667	// is a match if and only if the job contains a base CompensationEntry,
1668	// and
1669	// the base entry's unit matches provided compensation_units and
1670	// amount
1671	// or range overlaps with provided compensation_range.
1672	//
1673	// See ExtendedCompensationInfo.CompensationEntry for definition of
1674	// base compensation entry.
1675	//
1676	// Set exactly one
1677	// compensation_units and populate
1678	// compensation_range.
1679	//   "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation
1680	// amount and `base compensation
1681	// entry's` unit. Populate compensation_range and zero or
1682	// more
1683	// compensation_units.
1684	//   "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation
1685	// amount and `base compensation
1686	// entry's` unit . Populate compensation_range and zero or
1687	// more
1688	// compensation_units.
1689	Type string `json:"type,omitempty"`
1690
1691	// ForceSendFields is a list of field names (e.g. "CompensationRange")
1692	// to unconditionally include in API requests. By default, fields with
1693	// empty values are omitted from API requests. However, any non-pointer,
1694	// non-interface field appearing in ForceSendFields will be sent to the
1695	// server regardless of whether the field is empty or not. This may be
1696	// used to include empty fields in Patch requests.
1697	ForceSendFields []string `json:"-"`
1698
1699	// NullFields is a list of field names (e.g. "CompensationRange") to
1700	// include in API requests with the JSON null value. By default, fields
1701	// with empty values are omitted from API requests. However, any field
1702	// with an empty value appearing in NullFields will be sent to the
1703	// server as null. It is an error if a field in this list has a
1704	// non-empty value. This may be used to include null fields in Patch
1705	// requests.
1706	NullFields []string `json:"-"`
1707}
1708
1709func (s *ExtendedCompensationFilter) MarshalJSON() ([]byte, error) {
1710	type NoMethod ExtendedCompensationFilter
1711	raw := NoMethod(*s)
1712	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1713}
1714
1715// ExtendedCompensationInfo: Deprecated. Use
1716// CompensationInfo.
1717//
1718// Describes job compensation.
1719type ExtendedCompensationInfo struct {
1720	// AnnualizedBaseCompensationRange: Output only. Annualized base
1721	// compensation range.
1722	AnnualizedBaseCompensationRange *ExtendedCompensationInfoCompensationRange `json:"annualizedBaseCompensationRange,omitempty"`
1723
1724	// AnnualizedBaseCompensationUnspecified: Output only. Indicates
1725	// annualized base compensation range cannot be derived, due to
1726	// the job's base compensation entry cannot be annualized.
1727	// See CompensationEntry for explanation on annualization and
1728	// base
1729	// compensation entry.
1730	AnnualizedBaseCompensationUnspecified bool `json:"annualizedBaseCompensationUnspecified,omitempty"`
1731
1732	// AnnualizedTotalCompensationRange: Output only. Annualized total
1733	// compensation range.
1734	AnnualizedTotalCompensationRange *ExtendedCompensationInfoCompensationRange `json:"annualizedTotalCompensationRange,omitempty"`
1735
1736	// AnnualizedTotalCompensationUnspecified: Output only. Indicates
1737	// annualized total compensation range cannot be derived, due to
1738	// the job's all CompensationEntry cannot be annualized.
1739	// See CompensationEntry for explanation on annualization and
1740	// base
1741	// compensation entry.
1742	AnnualizedTotalCompensationUnspecified bool `json:"annualizedTotalCompensationUnspecified,omitempty"`
1743
1744	// Currency: Optional. A 3-letter [ISO
1745	// 4217](https://www.iso.org/iso-4217-currency-codes.html)
1746	// currency code.
1747	Currency string `json:"currency,omitempty"`
1748
1749	// Entries: Optional. Job compensation information.
1750	//
1751	// At most one entry can be of
1752	// type
1753	// ExtendedCompensationInfo.CompensationType.BASE, which is
1754	// referred as ** base compensation entry ** for the job.
1755	Entries []*ExtendedCompensationInfoCompensationEntry `json:"entries,omitempty"`
1756
1757	// ForceSendFields is a list of field names (e.g.
1758	// "AnnualizedBaseCompensationRange") to unconditionally include in API
1759	// requests. By default, fields with empty values are omitted from API
1760	// requests. However, any non-pointer, non-interface field appearing in
1761	// ForceSendFields will be sent to the server regardless of whether the
1762	// field is empty or not. This may be used to include empty fields in
1763	// Patch requests.
1764	ForceSendFields []string `json:"-"`
1765
1766	// NullFields is a list of field names (e.g.
1767	// "AnnualizedBaseCompensationRange") to include in API requests with
1768	// the JSON null value. By default, fields with empty values are omitted
1769	// from API requests. However, any field with an empty value appearing
1770	// in NullFields will be sent to the server as null. It is an error if a
1771	// field in this list has a non-empty value. This may be used to include
1772	// null fields in Patch requests.
1773	NullFields []string `json:"-"`
1774}
1775
1776func (s *ExtendedCompensationInfo) MarshalJSON() ([]byte, error) {
1777	type NoMethod ExtendedCompensationInfo
1778	raw := NoMethod(*s)
1779	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1780}
1781
1782// ExtendedCompensationInfoCompensationEntry: Deprecated. See
1783// CompensationInfo.
1784//
1785// A compensation entry that represents one component of compensation,
1786// such
1787// as base pay, bonus, or other compensation type.
1788//
1789// Annualization: One compensation entry can be annualized if
1790// - it contains valid amount or range.
1791// - and its expected_units_per_year is set or can be derived.
1792// Its annualized range is determined as (amount or range)
1793// times
1794// expected_units_per_year.
1795type ExtendedCompensationInfoCompensationEntry struct {
1796	// Amount: Optional. Monetary amount.
1797	Amount *ExtendedCompensationInfoDecimal `json:"amount,omitempty"`
1798
1799	// Description: Optional. Compensation description.
1800	Description string `json:"description,omitempty"`
1801
1802	// ExpectedUnitsPerYear: Optional. Expected number of units paid each
1803	// year. If not specified, when
1804	// Job.employment_types is FULLTIME, a default value is inferred
1805	// based on unit. Default values:
1806	// - HOURLY: 2080
1807	// - DAILY: 260
1808	// - WEEKLY: 52
1809	// - MONTHLY: 12
1810	// - ANNUAL: 1
1811	ExpectedUnitsPerYear *ExtendedCompensationInfoDecimal `json:"expectedUnitsPerYear,omitempty"`
1812
1813	// Range: Optional. Compensation range.
1814	Range *ExtendedCompensationInfoCompensationRange `json:"range,omitempty"`
1815
1816	// Type: Required. Compensation type.
1817	//
1818	// Possible values:
1819	//   "EXTENDED_COMPENSATION_TYPE_UNSPECIFIED" - Default value.
1820	// Equivalent to OTHER_COMPENSATION_TYPE.
1821	//   "BASE" - Base compensation: Refers to the fixed amount of money
1822	// paid to an
1823	// employee by an employer in return for work performed. Base
1824	// compensation
1825	// does not include benefits, bonuses or any other potential
1826	// compensation
1827	// from an employer.
1828	//   "BONUS" - Bonus.
1829	//   "SIGNING_BONUS" - Signing bonus.
1830	//   "EQUITY" - Equity.
1831	//   "PROFIT_SHARING" - Profit sharing.
1832	//   "COMMISSIONS" - Commission.
1833	//   "TIPS" - Tips.
1834	//   "OTHER_COMPENSATION_TYPE" - Other compensation type.
1835	Type string `json:"type,omitempty"`
1836
1837	// Unit: Optional. Frequency of the specified amount.
1838	//
1839	// Default is CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED.
1840	//
1841	// Possible values:
1842	//   "EXTENDED_COMPENSATION_UNIT_UNSPECIFIED" - Default value.
1843	// Equivalent to OTHER_COMPENSATION_UNIT.
1844	//   "HOURLY" - Hourly.
1845	//   "DAILY" - Daily.
1846	//   "WEEKLY" - Weekly
1847	//   "MONTHLY" - Monthly.
1848	//   "YEARLY" - Yearly.
1849	//   "ONE_TIME" - One time.
1850	//   "OTHER_COMPENSATION_UNIT" - Other compensation units.
1851	Unit string `json:"unit,omitempty"`
1852
1853	// Unspecified: Optional. Indicates compensation amount and range are
1854	// unset.
1855	Unspecified bool `json:"unspecified,omitempty"`
1856
1857	// ForceSendFields is a list of field names (e.g. "Amount") to
1858	// unconditionally include in API requests. By default, fields with
1859	// empty values are omitted from API requests. However, any non-pointer,
1860	// non-interface field appearing in ForceSendFields will be sent to the
1861	// server regardless of whether the field is empty or not. This may be
1862	// used to include empty fields in Patch requests.
1863	ForceSendFields []string `json:"-"`
1864
1865	// NullFields is a list of field names (e.g. "Amount") to include in API
1866	// requests with the JSON null value. By default, fields with empty
1867	// values are omitted from API requests. However, any field with an
1868	// empty value appearing in NullFields will be sent to the server as
1869	// null. It is an error if a field in this list has a non-empty value.
1870	// This may be used to include null fields in Patch requests.
1871	NullFields []string `json:"-"`
1872}
1873
1874func (s *ExtendedCompensationInfoCompensationEntry) MarshalJSON() ([]byte, error) {
1875	type NoMethod ExtendedCompensationInfoCompensationEntry
1876	raw := NoMethod(*s)
1877	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1878}
1879
1880// ExtendedCompensationInfoCompensationRange: Deprecated. See
1881// CompensationInfo.
1882//
1883// Compensation range.
1884type ExtendedCompensationInfoCompensationRange struct {
1885	// Max: Required. Maximum value.
1886	Max *ExtendedCompensationInfoDecimal `json:"max,omitempty"`
1887
1888	// Min: Required. Minimum value.
1889	Min *ExtendedCompensationInfoDecimal `json:"min,omitempty"`
1890
1891	// ForceSendFields is a list of field names (e.g. "Max") to
1892	// unconditionally include in API requests. By default, fields with
1893	// empty values are omitted from API requests. However, any non-pointer,
1894	// non-interface field appearing in ForceSendFields will be sent to the
1895	// server regardless of whether the field is empty or not. This may be
1896	// used to include empty fields in Patch requests.
1897	ForceSendFields []string `json:"-"`
1898
1899	// NullFields is a list of field names (e.g. "Max") to include in API
1900	// requests with the JSON null value. By default, fields with empty
1901	// values are omitted from API requests. However, any field with an
1902	// empty value appearing in NullFields will be sent to the server as
1903	// null. It is an error if a field in this list has a non-empty value.
1904	// This may be used to include null fields in Patch requests.
1905	NullFields []string `json:"-"`
1906}
1907
1908func (s *ExtendedCompensationInfoCompensationRange) MarshalJSON() ([]byte, error) {
1909	type NoMethod ExtendedCompensationInfoCompensationRange
1910	raw := NoMethod(*s)
1911	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1912}
1913
1914// ExtendedCompensationInfoDecimal: Deprecated. See
1915// CompensationInfo.
1916//
1917// Decimal number.
1918type ExtendedCompensationInfoDecimal struct {
1919	// Micros: Micro (10^-6) units.
1920	// The value must be between -999,999 and +999,999 inclusive.
1921	// If `units` is positive, `micros` must be positive or zero.
1922	// If `units` is zero, `micros` can be positive, zero, or negative.
1923	// If `units` is negative, `micros` must be negative or zero.
1924	// For example -1.75 is represented as `units`=-1 and `micros`=-750,000.
1925	Micros int64 `json:"micros,omitempty"`
1926
1927	// Units: Whole units.
1928	Units int64 `json:"units,omitempty,string"`
1929
1930	// ForceSendFields is a list of field names (e.g. "Micros") to
1931	// unconditionally include in API requests. By default, fields with
1932	// empty values are omitted from API requests. However, any non-pointer,
1933	// non-interface field appearing in ForceSendFields will be sent to the
1934	// server regardless of whether the field is empty or not. This may be
1935	// used to include empty fields in Patch requests.
1936	ForceSendFields []string `json:"-"`
1937
1938	// NullFields is a list of field names (e.g. "Micros") to include in API
1939	// requests with the JSON null value. By default, fields with empty
1940	// values are omitted from API requests. However, any field with an
1941	// empty value appearing in NullFields will be sent to the server as
1942	// null. It is an error if a field in this list has a non-empty value.
1943	// This may be used to include null fields in Patch requests.
1944	NullFields []string `json:"-"`
1945}
1946
1947func (s *ExtendedCompensationInfoDecimal) MarshalJSON() ([]byte, error) {
1948	type NoMethod ExtendedCompensationInfoDecimal
1949	raw := NoMethod(*s)
1950	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1951}
1952
1953// Filter: Deprecated. Use BatchDeleteJobsRequest instead.
1954//
1955// Input only.
1956//
1957// Filter for jobs to be deleted.
1958type Filter struct {
1959	// RequisitionId: Required. The requisition ID (or posting ID) assigned
1960	// by the client to identify a
1961	// job. This is intended for client identification and tracking
1962	// of
1963	// listings.
1964	// name takes precedence over this field
1965	// The maximum number of allowed characters is 225.
1966	RequisitionId string `json:"requisitionId,omitempty"`
1967
1968	// ForceSendFields is a list of field names (e.g. "RequisitionId") to
1969	// unconditionally include in API requests. By default, fields with
1970	// empty values are omitted from API requests. However, any non-pointer,
1971	// non-interface field appearing in ForceSendFields will be sent to the
1972	// server regardless of whether the field is empty or not. This may be
1973	// used to include empty fields in Patch requests.
1974	ForceSendFields []string `json:"-"`
1975
1976	// NullFields is a list of field names (e.g. "RequisitionId") to include
1977	// in API requests with the JSON null value. By default, fields with
1978	// empty values are omitted from API requests. However, any field with
1979	// an empty value appearing in NullFields will be sent to the server as
1980	// null. It is an error if a field in this list has a non-empty value.
1981	// This may be used to include null fields in Patch requests.
1982	NullFields []string `json:"-"`
1983}
1984
1985func (s *Filter) MarshalJSON() ([]byte, error) {
1986	type NoMethod Filter
1987	raw := NoMethod(*s)
1988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1989}
1990
1991// GetHistogramRequest: Deprecated. Use
1992// SearchJobsRequest.histogram_facets instead to make
1993// a single call with both search and histogram.
1994//
1995// Input only.
1996//
1997// A request for the `GetHistogram` method.
1998type GetHistogramRequest struct {
1999	// AllowBroadening: Optional. Controls whether to broaden the search to
2000	// avoid too few results for a
2001	// given query in instances where a search has sparse results. Results
2002	// from a
2003	// broadened query is a superset of the results from the original
2004	// query.
2005	//
2006	// Defaults to false.
2007	AllowBroadening bool `json:"allowBroadening,omitempty"`
2008
2009	// Filters: Deprecated. Use query instead.
2010	//
2011	// Optional.
2012	//
2013	// Restrictions on the scope of the histogram.
2014	Filters *JobFilters `json:"filters,omitempty"`
2015
2016	// Query: Optional. Query used to search against jobs, such as keyword,
2017	// location filters, etc.
2018	Query *JobQuery `json:"query,omitempty"`
2019
2020	// RequestMetadata: Meta information, such as `user_id`, collected from
2021	// the job searcher or
2022	// other entity conducting a job search, is used to improve the
2023	// service's
2024	// search quality. Users determine identifier values, which must
2025	// be
2026	// unique and consist.
2027	RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`
2028
2029	// SearchTypes: Required. A list of facets that specify the histogram
2030	// data to be calculated
2031	// against and returned.
2032	//
2033	// Histogram response times can be slow, and counts
2034	// can be approximations. This call may be temporarily or permanently
2035	// removed
2036	// prior to the production release of Cloud Talent Solution.
2037	//
2038	// Possible values:
2039	//   "JOB_FIELD_UNSPECIFIED" - The default value if search type is not
2040	// specified.
2041	//   "COMPANY_ID" - Filter by the company id field.
2042	//   "EMPLOYMENT_TYPE" - Filter by the employment type field, such as
2043	// `FULL_TIME` or `PART_TIME`.
2044	//   "COMPANY_SIZE" - Filter by the company size type field, such as
2045	// `BIG`, `SMALL` or `BIGGER`.
2046	//   "DATE_PUBLISHED" - Filter by the date published field. Values are
2047	// stringified
2048	// with TimeRange, for example, TimeRange.PAST_MONTH.
2049	//   "CUSTOM_FIELD_1" - Filter by custom field 1.
2050	//   "CUSTOM_FIELD_2" - Filter by custom field 2.
2051	//   "CUSTOM_FIELD_3" - Filter by custom field 3.
2052	//   "CUSTOM_FIELD_4" - Filter by custom field 4.
2053	//   "CUSTOM_FIELD_5" - Filter by custom field 5.
2054	//   "CUSTOM_FIELD_6" - Filter by custom field 6.
2055	//   "CUSTOM_FIELD_7" - Filter by custom field 7.
2056	//   "CUSTOM_FIELD_8" - Filter by custom field 8.
2057	//   "CUSTOM_FIELD_9" - Filter by custom field 9.
2058	//   "CUSTOM_FIELD_10" - Filter by custom field 10.
2059	//   "CUSTOM_FIELD_11" - Filter by custom field 11.
2060	//   "CUSTOM_FIELD_12" - Filter by custom field 12.
2061	//   "CUSTOM_FIELD_13" - Filter by custom field 13.
2062	//   "CUSTOM_FIELD_14" - Filter by custom field 14.
2063	//   "CUSTOM_FIELD_15" - Filter by custom field 15.
2064	//   "CUSTOM_FIELD_16" - Filter by custom field 16.
2065	//   "CUSTOM_FIELD_17" - Filter by custom field 17.
2066	//   "CUSTOM_FIELD_18" - Filter by custom field 18.
2067	//   "CUSTOM_FIELD_19" - Filter by custom field 19.
2068	//   "CUSTOM_FIELD_20" - Filter by custom field 20.
2069	//   "EDUCATION_LEVEL" - Filter by the required education level of the
2070	// job.
2071	//   "EXPERIENCE_LEVEL" - Filter by the required experience level of the
2072	// job.
2073	//   "ADMIN1" - Filter by Admin1, which is a global placeholder
2074	// for
2075	// referring to state, province, or the particular term a country uses
2076	// to
2077	// define the geographic structure below the country level.
2078	// Examples include states codes such as "CA", "IL", "NY",
2079	// and
2080	// provinces, such as "BC".
2081	//   "COUNTRY" - Filter by the country code of job, such as US, JP, FR.
2082	//   "CITY" - Filter by the "city name", "Admin1 code", for
2083	// example,
2084	// "Mountain View, CA" or "New York, NY".
2085	//   "LOCALE" - Filter by the locale field of a job, such as "en-US",
2086	// "fr-FR".
2087	//
2088	// This is the BCP-47 language code, such as "en-US" or "sr-Latn".
2089	// For more information, see
2090	// [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
2091	//   "LANGUAGE" - Filter by the language code portion of the locale
2092	// field, such as "en" or
2093	// "fr".
2094	//   "CATEGORY" - Filter by the Category.
2095	//   "CITY_COORDINATE" - Filter by the city center GPS coordinate
2096	// (latitude and longitude), for
2097	// example, 37.4038522,-122.0987765. Since the coordinates of a city
2098	// center
2099	// can change, clients may need to refresh them periodically.
2100	//   "ADMIN1_COUNTRY" - A combination of state or province code with a
2101	// country code. This field
2102	// differs from `JOB_ADMIN1`, which can be used in multiple countries.
2103	//   "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME
2104	// instead.
2105	//
2106	// Company display name.
2107	//   "COMPANY_DISPLAY_NAME" - Company display name.
2108	//   "BASE_COMPENSATION_UNIT" - Base compensation unit.
2109	SearchTypes []string `json:"searchTypes,omitempty"`
2110
2111	// ForceSendFields is a list of field names (e.g. "AllowBroadening") to
2112	// unconditionally include in API requests. By default, fields with
2113	// empty values are omitted from API requests. However, any non-pointer,
2114	// non-interface field appearing in ForceSendFields will be sent to the
2115	// server regardless of whether the field is empty or not. This may be
2116	// used to include empty fields in Patch requests.
2117	ForceSendFields []string `json:"-"`
2118
2119	// NullFields is a list of field names (e.g. "AllowBroadening") to
2120	// include in API requests with the JSON null value. By default, fields
2121	// with empty values are omitted from API requests. However, any field
2122	// with an empty value appearing in NullFields will be sent to the
2123	// server as null. It is an error if a field in this list has a
2124	// non-empty value. This may be used to include null fields in Patch
2125	// requests.
2126	NullFields []string `json:"-"`
2127}
2128
2129func (s *GetHistogramRequest) MarshalJSON() ([]byte, error) {
2130	type NoMethod GetHistogramRequest
2131	raw := NoMethod(*s)
2132	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2133}
2134
2135// GetHistogramResponse: Deprecated. Use
2136// SearchJobsRequest.histogram_facets instead to make
2137// a single call with both search and histogram.
2138//
2139// Output only.
2140//
2141// The response of the GetHistogram method.
2142type GetHistogramResponse struct {
2143	// Metadata: Additional information for the API invocation, such as the
2144	// request
2145	// tracking id.
2146	Metadata *ResponseMetadata `json:"metadata,omitempty"`
2147
2148	// Results: The Histogram results.
2149	Results []*HistogramResult `json:"results,omitempty"`
2150
2151	// ServerResponse contains the HTTP response code and headers from the
2152	// server.
2153	googleapi.ServerResponse `json:"-"`
2154
2155	// ForceSendFields is a list of field names (e.g. "Metadata") to
2156	// unconditionally include in API requests. By default, fields with
2157	// empty values are omitted from API requests. However, any non-pointer,
2158	// non-interface field appearing in ForceSendFields will be sent to the
2159	// server regardless of whether the field is empty or not. This may be
2160	// used to include empty fields in Patch requests.
2161	ForceSendFields []string `json:"-"`
2162
2163	// NullFields is a list of field names (e.g. "Metadata") to include in
2164	// API requests with the JSON null value. By default, fields with empty
2165	// values are omitted from API requests. However, any field with an
2166	// empty value appearing in NullFields will be sent to the server as
2167	// null. It is an error if a field in this list has a non-empty value.
2168	// This may be used to include null fields in Patch requests.
2169	NullFields []string `json:"-"`
2170}
2171
2172func (s *GetHistogramResponse) MarshalJSON() ([]byte, error) {
2173	type NoMethod GetHistogramResponse
2174	raw := NoMethod(*s)
2175	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2176}
2177
2178// HistogramFacets: Input only.
2179//
2180// Histogram facets to be specified in SearchJobsRequest.
2181type HistogramFacets struct {
2182	// CompensationHistogramFacets: Optional. Specifies compensation
2183	// field-based histogram requests.
2184	// Duplicate values of CompensationHistogramRequest.type are not
2185	// allowed.
2186	CompensationHistogramFacets []*CompensationHistogramRequest `json:"compensationHistogramFacets,omitempty"`
2187
2188	// CustomAttributeHistogramFacets: Optional. Specifies the custom
2189	// attributes histogram requests.
2190	// Duplicate values of CustomAttributeHistogramRequest.key are
2191	// not
2192	// allowed.
2193	CustomAttributeHistogramFacets []*CustomAttributeHistogramRequest `json:"customAttributeHistogramFacets,omitempty"`
2194
2195	// SimpleHistogramFacets: Optional. Specifies the simple type of
2196	// histogram facets, for example,
2197	// `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc. This field is equivalent
2198	// to
2199	// GetHistogramRequest.
2200	//
2201	// Possible values:
2202	//   "JOB_FIELD_UNSPECIFIED" - The default value if search type is not
2203	// specified.
2204	//   "COMPANY_ID" - Filter by the company id field.
2205	//   "EMPLOYMENT_TYPE" - Filter by the employment type field, such as
2206	// `FULL_TIME` or `PART_TIME`.
2207	//   "COMPANY_SIZE" - Filter by the company size type field, such as
2208	// `BIG`, `SMALL` or `BIGGER`.
2209	//   "DATE_PUBLISHED" - Filter by the date published field. Values are
2210	// stringified
2211	// with TimeRange, for example, TimeRange.PAST_MONTH.
2212	//   "CUSTOM_FIELD_1" - Filter by custom field 1.
2213	//   "CUSTOM_FIELD_2" - Filter by custom field 2.
2214	//   "CUSTOM_FIELD_3" - Filter by custom field 3.
2215	//   "CUSTOM_FIELD_4" - Filter by custom field 4.
2216	//   "CUSTOM_FIELD_5" - Filter by custom field 5.
2217	//   "CUSTOM_FIELD_6" - Filter by custom field 6.
2218	//   "CUSTOM_FIELD_7" - Filter by custom field 7.
2219	//   "CUSTOM_FIELD_8" - Filter by custom field 8.
2220	//   "CUSTOM_FIELD_9" - Filter by custom field 9.
2221	//   "CUSTOM_FIELD_10" - Filter by custom field 10.
2222	//   "CUSTOM_FIELD_11" - Filter by custom field 11.
2223	//   "CUSTOM_FIELD_12" - Filter by custom field 12.
2224	//   "CUSTOM_FIELD_13" - Filter by custom field 13.
2225	//   "CUSTOM_FIELD_14" - Filter by custom field 14.
2226	//   "CUSTOM_FIELD_15" - Filter by custom field 15.
2227	//   "CUSTOM_FIELD_16" - Filter by custom field 16.
2228	//   "CUSTOM_FIELD_17" - Filter by custom field 17.
2229	//   "CUSTOM_FIELD_18" - Filter by custom field 18.
2230	//   "CUSTOM_FIELD_19" - Filter by custom field 19.
2231	//   "CUSTOM_FIELD_20" - Filter by custom field 20.
2232	//   "EDUCATION_LEVEL" - Filter by the required education level of the
2233	// job.
2234	//   "EXPERIENCE_LEVEL" - Filter by the required experience level of the
2235	// job.
2236	//   "ADMIN1" - Filter by Admin1, which is a global placeholder
2237	// for
2238	// referring to state, province, or the particular term a country uses
2239	// to
2240	// define the geographic structure below the country level.
2241	// Examples include states codes such as "CA", "IL", "NY",
2242	// and
2243	// provinces, such as "BC".
2244	//   "COUNTRY" - Filter by the country code of job, such as US, JP, FR.
2245	//   "CITY" - Filter by the "city name", "Admin1 code", for
2246	// example,
2247	// "Mountain View, CA" or "New York, NY".
2248	//   "LOCALE" - Filter by the locale field of a job, such as "en-US",
2249	// "fr-FR".
2250	//
2251	// This is the BCP-47 language code, such as "en-US" or "sr-Latn".
2252	// For more information, see
2253	// [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
2254	//   "LANGUAGE" - Filter by the language code portion of the locale
2255	// field, such as "en" or
2256	// "fr".
2257	//   "CATEGORY" - Filter by the Category.
2258	//   "CITY_COORDINATE" - Filter by the city center GPS coordinate
2259	// (latitude and longitude), for
2260	// example, 37.4038522,-122.0987765. Since the coordinates of a city
2261	// center
2262	// can change, clients may need to refresh them periodically.
2263	//   "ADMIN1_COUNTRY" - A combination of state or province code with a
2264	// country code. This field
2265	// differs from `JOB_ADMIN1`, which can be used in multiple countries.
2266	//   "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME
2267	// instead.
2268	//
2269	// Company display name.
2270	//   "COMPANY_DISPLAY_NAME" - Company display name.
2271	//   "BASE_COMPENSATION_UNIT" - Base compensation unit.
2272	SimpleHistogramFacets []string `json:"simpleHistogramFacets,omitempty"`
2273
2274	// ForceSendFields is a list of field names (e.g.
2275	// "CompensationHistogramFacets") to unconditionally include in API
2276	// requests. By default, fields with empty values are omitted from API
2277	// requests. However, any non-pointer, non-interface field appearing in
2278	// ForceSendFields will be sent to the server regardless of whether the
2279	// field is empty or not. This may be used to include empty fields in
2280	// Patch requests.
2281	ForceSendFields []string `json:"-"`
2282
2283	// NullFields is a list of field names (e.g.
2284	// "CompensationHistogramFacets") to include in API requests with the
2285	// JSON null value. By default, fields with empty values are omitted
2286	// from API requests. However, any field with an empty value appearing
2287	// in NullFields will be sent to the server as null. It is an error if a
2288	// field in this list has a non-empty value. This may be used to include
2289	// null fields in Patch requests.
2290	NullFields []string `json:"-"`
2291}
2292
2293func (s *HistogramFacets) MarshalJSON() ([]byte, error) {
2294	type NoMethod HistogramFacets
2295	raw := NoMethod(*s)
2296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2297}
2298
2299// HistogramResult: Output only.
2300//
2301// Result of a histogram call. The response contains the histogram map
2302// for the
2303// search type specified by HistogramResult.field.
2304// The response is a map of each filter value to the corresponding count
2305// of
2306// jobs for that filter.
2307type HistogramResult struct {
2308	// SearchType: The Histogram search filters.
2309	//
2310	// Possible values:
2311	//   "JOB_FIELD_UNSPECIFIED" - The default value if search type is not
2312	// specified.
2313	//   "COMPANY_ID" - Filter by the company id field.
2314	//   "EMPLOYMENT_TYPE" - Filter by the employment type field, such as
2315	// `FULL_TIME` or `PART_TIME`.
2316	//   "COMPANY_SIZE" - Filter by the company size type field, such as
2317	// `BIG`, `SMALL` or `BIGGER`.
2318	//   "DATE_PUBLISHED" - Filter by the date published field. Values are
2319	// stringified
2320	// with TimeRange, for example, TimeRange.PAST_MONTH.
2321	//   "CUSTOM_FIELD_1" - Filter by custom field 1.
2322	//   "CUSTOM_FIELD_2" - Filter by custom field 2.
2323	//   "CUSTOM_FIELD_3" - Filter by custom field 3.
2324	//   "CUSTOM_FIELD_4" - Filter by custom field 4.
2325	//   "CUSTOM_FIELD_5" - Filter by custom field 5.
2326	//   "CUSTOM_FIELD_6" - Filter by custom field 6.
2327	//   "CUSTOM_FIELD_7" - Filter by custom field 7.
2328	//   "CUSTOM_FIELD_8" - Filter by custom field 8.
2329	//   "CUSTOM_FIELD_9" - Filter by custom field 9.
2330	//   "CUSTOM_FIELD_10" - Filter by custom field 10.
2331	//   "CUSTOM_FIELD_11" - Filter by custom field 11.
2332	//   "CUSTOM_FIELD_12" - Filter by custom field 12.
2333	//   "CUSTOM_FIELD_13" - Filter by custom field 13.
2334	//   "CUSTOM_FIELD_14" - Filter by custom field 14.
2335	//   "CUSTOM_FIELD_15" - Filter by custom field 15.
2336	//   "CUSTOM_FIELD_16" - Filter by custom field 16.
2337	//   "CUSTOM_FIELD_17" - Filter by custom field 17.
2338	//   "CUSTOM_FIELD_18" - Filter by custom field 18.
2339	//   "CUSTOM_FIELD_19" - Filter by custom field 19.
2340	//   "CUSTOM_FIELD_20" - Filter by custom field 20.
2341	//   "EDUCATION_LEVEL" - Filter by the required education level of the
2342	// job.
2343	//   "EXPERIENCE_LEVEL" - Filter by the required experience level of the
2344	// job.
2345	//   "ADMIN1" - Filter by Admin1, which is a global placeholder
2346	// for
2347	// referring to state, province, or the particular term a country uses
2348	// to
2349	// define the geographic structure below the country level.
2350	// Examples include states codes such as "CA", "IL", "NY",
2351	// and
2352	// provinces, such as "BC".
2353	//   "COUNTRY" - Filter by the country code of job, such as US, JP, FR.
2354	//   "CITY" - Filter by the "city name", "Admin1 code", for
2355	// example,
2356	// "Mountain View, CA" or "New York, NY".
2357	//   "LOCALE" - Filter by the locale field of a job, such as "en-US",
2358	// "fr-FR".
2359	//
2360	// This is the BCP-47 language code, such as "en-US" or "sr-Latn".
2361	// For more information, see
2362	// [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).
2363	//   "LANGUAGE" - Filter by the language code portion of the locale
2364	// field, such as "en" or
2365	// "fr".
2366	//   "CATEGORY" - Filter by the Category.
2367	//   "CITY_COORDINATE" - Filter by the city center GPS coordinate
2368	// (latitude and longitude), for
2369	// example, 37.4038522,-122.0987765. Since the coordinates of a city
2370	// center
2371	// can change, clients may need to refresh them periodically.
2372	//   "ADMIN1_COUNTRY" - A combination of state or province code with a
2373	// country code. This field
2374	// differs from `JOB_ADMIN1`, which can be used in multiple countries.
2375	//   "COMPANY_TITLE" - Deprecated. Use COMPANY_DISPLAY_NAME
2376	// instead.
2377	//
2378	// Company display name.
2379	//   "COMPANY_DISPLAY_NAME" - Company display name.
2380	//   "BASE_COMPENSATION_UNIT" - Base compensation unit.
2381	SearchType string `json:"searchType,omitempty"`
2382
2383	// Values: A map from the values of field to the number of jobs with
2384	// that value
2385	// in this search result.
2386	//
2387	// Key: search type (filter names, such as the companyName).
2388	//
2389	// Values: the count of jobs that match the filter for this search.
2390	Values map[string]int64 `json:"values,omitempty"`
2391
2392	// ForceSendFields is a list of field names (e.g. "SearchType") to
2393	// unconditionally include in API requests. By default, fields with
2394	// empty values are omitted from API requests. However, any non-pointer,
2395	// non-interface field appearing in ForceSendFields will be sent to the
2396	// server regardless of whether the field is empty or not. This may be
2397	// used to include empty fields in Patch requests.
2398	ForceSendFields []string `json:"-"`
2399
2400	// NullFields is a list of field names (e.g. "SearchType") to include in
2401	// API requests with the JSON null value. By default, fields with empty
2402	// values are omitted from API requests. However, any field with an
2403	// empty value appearing in NullFields will be sent to the server as
2404	// null. It is an error if a field in this list has a non-empty value.
2405	// This may be used to include null fields in Patch requests.
2406	NullFields []string `json:"-"`
2407}
2408
2409func (s *HistogramResult) MarshalJSON() ([]byte, error) {
2410	type NoMethod HistogramResult
2411	raw := NoMethod(*s)
2412	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2413}
2414
2415// HistogramResults: Output only.
2416//
2417// Histogram results that matches HistogramFacets specified
2418// in
2419// SearchJobsRequest.
2420type HistogramResults struct {
2421	// CompensationHistogramResults: Specifies compensation field-based
2422	// histogram results that
2423	// matches
2424	// HistogramFacets.compensation_histogram_requests.
2425	CompensationHistogramResults []*CompensationHistogramResult `json:"compensationHistogramResults,omitempty"`
2426
2427	// CustomAttributeHistogramResults: Specifies histogram results for
2428	// custom attributes that
2429	// matches HistogramFacets.custom_attribute_histogram_facets.
2430	CustomAttributeHistogramResults []*CustomAttributeHistogramResult `json:"customAttributeHistogramResults,omitempty"`
2431
2432	// SimpleHistogramResults: Specifies histogram results that
2433	// matches
2434	// HistogramFacets.simple_histogram_facets.
2435	SimpleHistogramResults []*HistogramResult `json:"simpleHistogramResults,omitempty"`
2436
2437	// ForceSendFields is a list of field names (e.g.
2438	// "CompensationHistogramResults") to unconditionally include in API
2439	// requests. By default, fields with empty values are omitted from API
2440	// requests. However, any non-pointer, non-interface field appearing in
2441	// ForceSendFields will be sent to the server regardless of whether the
2442	// field is empty or not. This may be used to include empty fields in
2443	// Patch requests.
2444	ForceSendFields []string `json:"-"`
2445
2446	// NullFields is a list of field names (e.g.
2447	// "CompensationHistogramResults") to include in API requests with the
2448	// JSON null value. By default, fields with empty values are omitted
2449	// from API requests. However, any field with an empty value appearing
2450	// in NullFields will be sent to the server as null. It is an error if a
2451	// field in this list has a non-empty value. This may be used to include
2452	// null fields in Patch requests.
2453	NullFields []string `json:"-"`
2454}
2455
2456func (s *HistogramResults) MarshalJSON() ([]byte, error) {
2457	type NoMethod HistogramResults
2458	raw := NoMethod(*s)
2459	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2460}
2461
2462// Job: A Job resource represents a job posting (also referred to as a
2463// "job listing"
2464// or "job requisition"). A job belongs to a Company, which is the
2465// hiring
2466// entity responsible for the job.
2467type Job struct {
2468	// ApplicationEmailList: Optional but at least one of
2469	// application_urls,
2470	// application_email_list or application_instruction must
2471	// be
2472	// specified.
2473	//
2474	// Use this field to specify email address(es) to which resumes
2475	// or
2476	// applications can be sent.
2477	//
2478	// The maximum number of allowed characters is 255.
2479	ApplicationEmailList []string `json:"applicationEmailList,omitempty"`
2480
2481	// ApplicationInstruction: Optional but at least one of
2482	// application_urls,
2483	// application_email_list or application_instruction must
2484	// be
2485	// specified.
2486	//
2487	// Use this field to provide instructions, such as "Mail your
2488	// application
2489	// to ...", that a candidate can follow to apply for the job.
2490	//
2491	// This field accepts and sanitizes HTML input, and also accepts
2492	// bold, italic, ordered list, and unordered list markup tags.
2493	//
2494	// The maximum number of allowed characters is 3,000.
2495	ApplicationInstruction string `json:"applicationInstruction,omitempty"`
2496
2497	// ApplicationUrls: Optional but at least one of
2498	// application_urls,
2499	// application_email_list or application_instruction must
2500	// be
2501	// specified.
2502	//
2503	// Use this URL field to direct an applicant to a website, for example
2504	// to
2505	// link to an online application form.
2506	//
2507	// The maximum number of allowed characters is 2,000.
2508	ApplicationUrls []string `json:"applicationUrls,omitempty"`
2509
2510	// Benefits: Optional. The benefits included with the job.
2511	//
2512	// Possible values:
2513	//   "JOB_BENEFIT_TYPE_UNSPECIFIED" - Default value if the type is not
2514	// specified.
2515	//   "CHILD_CARE" - The job includes access to programs that support
2516	// child care, such
2517	// as daycare.
2518	//   "DENTAL" - The job includes dental services that are covered by a
2519	// dental
2520	// insurance plan.
2521	//   "DOMESTIC_PARTNER" - The job offers specific benefits to domestic
2522	// partners.
2523	//   "FLEXIBLE_HOURS" - The job allows for a flexible work schedule.
2524	//   "MEDICAL" - The job includes health services that are covered by a
2525	// medical
2526	// insurance plan.
2527	//   "LIFE_INSURANCE" - The job includes a life insurance plan provided
2528	// by the employer or
2529	// available for purchase by the employee.
2530	//   "PARENTAL_LEAVE" - The job allows for a leave of absence to a
2531	// parent to care for a newborn
2532	// child.
2533	//   "RETIREMENT_PLAN" - The job includes a workplace retirement plan
2534	// provided by the
2535	// employer or available for purchase by the employee.
2536	//   "SICK_DAYS" - The job allows for paid time off due to illness.
2537	//   "TELECOMMUTE" - Deprecated. Set Region.TELECOMMUTE instead.
2538	//
2539	// The job allows telecommuting (working remotely).
2540	//   "VACATION" - The job includes paid time off for vacation.
2541	//   "VISION" - The job includes vision services that are covered by a
2542	// vision
2543	// insurance plan.
2544	Benefits []string `json:"benefits,omitempty"`
2545
2546	// CompanyDisplayName: Output only. The name of the company listing the
2547	// job.
2548	CompanyDisplayName string `json:"companyDisplayName,omitempty"`
2549
2550	// CompanyName: Optional but one of company_name or
2551	// distributor_company_id must be
2552	// provided.
2553	//
2554	// The resource name of the company listing the job, such
2555	// as
2556	// /companies/foo. This field takes precedence over
2557	// the
2558	// distributor-assigned company identifier, distributor_company_id.
2559	CompanyName string `json:"companyName,omitempty"`
2560
2561	// CompanyTitle: Deprecated. Use company_display_name instead.
2562	//
2563	// Output only.
2564	//
2565	// The name of the company listing the job.
2566	CompanyTitle string `json:"companyTitle,omitempty"`
2567
2568	// CompensationInfo: Optional. Job compensation information.
2569	CompensationInfo *CompensationInfo `json:"compensationInfo,omitempty"`
2570
2571	// CreateTime: Output only. The timestamp when this job was created.
2572	CreateTime string `json:"createTime,omitempty"`
2573
2574	// CustomAttributes: Optional. A map of fields to hold both filterable
2575	// and non-filterable custom job
2576	// attributes that are not covered by the provided structured
2577	// fields.
2578	//
2579	// This field is a more general combination of the deprecated
2580	// id-based
2581	// filterable_custom_fields and
2582	// string-based
2583	// non_filterable_custom_fields.
2584	//
2585	// The keys of the map are strings up to 64 bytes and must match
2586	// the
2587	// pattern: a-zA-Z*.
2588	//
2589	// At most 100 filterable and at most 100 unfilterable keys are
2590	// supported.
2591	// For filterable `string_values`, across all keys at most 200 values
2592	// are
2593	// allowed, with each string no more than 255 characters. For
2594	// unfilterable
2595	// `string_values`, the maximum total size of `string_values` across all
2596	// keys
2597	// is 50KB.
2598	CustomAttributes map[string]CustomAttribute `json:"customAttributes,omitempty"`
2599
2600	// Department: Optional. The department or functional area within the
2601	// company with the open
2602	// position.
2603	//
2604	// The maximum number of allowed characters is 255.
2605	Department string `json:"department,omitempty"`
2606
2607	// Description: Required. The description of the job, which typically
2608	// includes a multi-paragraph
2609	// description of the company and related information. Separate fields
2610	// are
2611	// provided on the job object for responsibilities,
2612	// qualifications, and other job characteristics. Use of
2613	// these separate job fields is recommended.
2614	//
2615	// This field accepts and sanitizes HTML input, and also accepts
2616	// bold, italic, ordered list, and unordered list markup tags.
2617	//
2618	// The maximum number of allowed characters is 100,000.
2619	Description string `json:"description,omitempty"`
2620
2621	// DistributorCompanyId: Optional but one of company_name or
2622	// distributor_company_id must be
2623	// provided.
2624	//
2625	// A unique company identifier used by job distributors to identify
2626	// an
2627	// employer's company entity. company_name takes precedence over
2628	// this field, and is the recommended field to use to identify
2629	// companies.
2630	//
2631	// The maximum number of allowed characters is 255.
2632	DistributorCompanyId string `json:"distributorCompanyId,omitempty"`
2633
2634	// EducationLevels: Optional. The desired education level for the job,
2635	// such as
2636	// "Bachelors", "Masters", "Doctorate".
2637	//
2638	// Possible values:
2639	//   "EDUCATION_LEVEL_UNSPECIFIED" - The default value if the level is
2640	// not specified.
2641	//   "HIGH_SCHOOL" - A High School diploma is required for the position.
2642	//   "ASSOCIATE" - An Associate degree is required for the position.
2643	//   "BACHELORS" - A Bachelors degree is required for the position.
2644	//   "MASTERS" - A Masters degree is required for the position.
2645	//   "DOCTORATE" - A Doctorate degree is required for the position.
2646	//   "NO_DEGREE_REQUIRED" - No formal education is required for the
2647	// position.
2648	EducationLevels []string `json:"educationLevels,omitempty"`
2649
2650	// EmploymentTypes: Optional. The employment type(s) of a job, for
2651	// example,
2652	// full time or
2653	// part time.
2654	//
2655	// Possible values:
2656	//   "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment
2657	// type is not specified.
2658	//   "FULL_TIME" - The job requires working a number of hours that
2659	// constitute full
2660	// time employment, typically 40 or more hours per week.
2661	//   "PART_TIME" - The job entails working fewer hours than a full time
2662	// job,
2663	// typically less than 40 hours a week.
2664	//   "CONTRACTOR" - The job is offered as a contracted, as opposed to a
2665	// salaried employee,
2666	// position.
2667	//   "TEMPORARY" - The job is offered as a temporary employment
2668	// opportunity, usually
2669	// a short-term engagement.
2670	//   "INTERN" - The job is a fixed-term opportunity for students or
2671	// entry-level job seekers
2672	// to obtain on-the-job training, typically offered as a summer
2673	// position.
2674	//   "VOLUNTEER" - The is an opportunity for an individual to volunteer,
2675	// where there is no
2676	// expectation of compensation for the provided services.
2677	//   "PER_DIEM" - The job requires an employee to work on an as-needed
2678	// basis with a
2679	// flexible schedule.
2680	//   "CONTRACT_TO_HIRE" - The job is offered as a contracted position
2681	// with the understanding
2682	// that it is converted into a full-time position at the end of
2683	// the
2684	// contract. Jobs of this type are also returned by a search
2685	// for
2686	// EmploymentType.CONTRACTOR jobs.
2687	//   "FLY_IN_FLY_OUT" - The job involves employing people in remote
2688	// areas and flying them
2689	// temporarily to the work site instead of relocating employees and
2690	// their
2691	// families permanently.
2692	//   "OTHER" - The job does not fit any of the other listed types.
2693	EmploymentTypes []string `json:"employmentTypes,omitempty"`
2694
2695	// EndDate: Optional. The end date of the job in UTC time zone.
2696	// Typically this field
2697	// is used for contracting engagements.
2698	// Dates prior to 1970/1/1 and invalid date formats are ignored.
2699	EndDate *Date `json:"endDate,omitempty"`
2700
2701	// ExpireTime: Optional but strongly recommended for the best
2702	// service
2703	// experience.
2704	//
2705	// The expiration timestamp of the job. After this timestamp, the
2706	// job is marked as expired, and it no longer appears in search results.
2707	// The
2708	// expired job can't be deleted or listed by the DeleteJob and
2709	// ListJobs APIs, but it can be retrieved with the GetJob API or
2710	// updated with the UpdateJob API. An expired job can be updated
2711	// and
2712	// opened again by using a future expiration timestamp. Updating an
2713	// expired
2714	// job fails if there is another existing open job with
2715	// same
2716	// requisition_id, company_name and language_code.
2717	//
2718	// The expired jobs are retained in our system for 90 days. However,
2719	// the
2720	// overall expired job count cannot exceed 3 times the maximum of open
2721	// jobs
2722	// count over the past week, otherwise jobs with earlier expire time
2723	// are
2724	// cleaned first. Expired jobs are no longer accessible after they are
2725	// cleaned
2726	// out.
2727	// The format of this field is RFC 3339 date strings.
2728	// Example:
2729	// 2000-01-01T00:00:00.999999999Z
2730	// See
2731	// [https://www.ietf.org/rfc/
2732	// rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).
2733	//
2734	// A valid date range is between 1970-01-01T00:00:00.0Z
2735	// and
2736	// 2100-12-31T23:59:59.999Z. Invalid dates are ignored and treated as
2737	// expire
2738	// time not provided.
2739	//
2740	// If this value is not provided at the time of job creation or is
2741	// invalid,
2742	// the job posting expires after 30 days from the job's creation time.
2743	// For
2744	// example, if the job was created on 2017/01/01 13:00AM UTC with
2745	// an
2746	// unspecified expiration date, the job expires after 2017/01/31 13:00AM
2747	// UTC.
2748	//
2749	// If this value is not provided but expiry_date is, expiry_date
2750	// is
2751	// used.
2752	//
2753	// If this value is not provided on job update, it depends on the field
2754	// masks
2755	// set by UpdateJobRequest.update_job_fields. If the field masks
2756	// include
2757	// expiry_time, or the masks are empty meaning that every field
2758	// is
2759	// updated, the job posting expires after 30 days from the job's
2760	// last
2761	// update time. Otherwise the expiration date isn't updated.
2762	ExpireTime string `json:"expireTime,omitempty"`
2763
2764	// ExpiryDate: Deprecated. Use expire_time instead.
2765	//
2766	// Optional but strongly recommended to be provided for the best
2767	// service
2768	// experience.
2769	//
2770	// The expiration date of the job in UTC time. After 12 am on this date,
2771	// the
2772	// job is marked as expired, and it no longer appears in search
2773	// results.
2774	// The expired job can't be deleted or listed by the DeleteJob
2775	// and
2776	// ListJobs APIs, but it can be retrieved with the GetJob API or
2777	// updated with the UpdateJob API. An expired job can be updated
2778	// and
2779	// opened again by using a future expiration date. It can also remain
2780	// expired.
2781	// Updating an expired job to be open fails if there is another existing
2782	// open
2783	// job with same requisition_id, company_name and language_code.
2784	//
2785	// The expired jobs are retained in our system for 90 days. However,
2786	// the
2787	// overall expired job count cannot exceed 3 times the maximum of open
2788	// jobs
2789	// count over the past week, otherwise jobs with earlier expire time
2790	// are
2791	// removed first. Expired jobs are no longer accessible after they are
2792	// cleaned
2793	// out.
2794	//
2795	// A valid date range is between 1970/1/1 and 2100/12/31. Invalid dates
2796	// are
2797	// ignored and treated as expiry date not provided.
2798	//
2799	// If this value is not provided on job creation or is invalid, the
2800	// job
2801	// posting expires after 30 days from the job's creation time. For
2802	// example, if
2803	// the job was created on 2017/01/01 13:00AM UTC with an
2804	// unspecified
2805	// expiration date, the job expires after 2017/01/31 13:00AM UTC.
2806	//
2807	// If this value is not provided on job update, it depends on the field
2808	// masks
2809	// set by UpdateJobRequest.update_job_fields. If the field masks
2810	// include
2811	// expiry_date, or the masks are empty meaning that every field
2812	// is
2813	// updated, the job expires after 30 days from the job's last update
2814	// time.
2815	// Otherwise the expiration date isn't updated.
2816	ExpiryDate *Date `json:"expiryDate,omitempty"`
2817
2818	// ExtendedCompensationInfo: Deprecated. Always use
2819	// compensation_info.
2820	//
2821	// Optional.
2822	//
2823	// Job compensation information.
2824	//
2825	// This field replaces compensation_info. Only
2826	// CompensationInfo.entries or extended_compensation_info can be
2827	// set,
2828	// otherwise an exception is thrown.
2829	ExtendedCompensationInfo *ExtendedCompensationInfo `json:"extendedCompensationInfo,omitempty"`
2830
2831	// FilterableCustomFields: Deprecated. Use custom_attributes
2832	// instead.
2833	//
2834	// Optional.
2835	//
2836	// A map of fields to hold filterable custom job attributes not captured
2837	// by
2838	// the standard fields such as job_title, company_name, or
2839	// level. These custom fields store arbitrary
2840	// string values, and can be used for purposes not covered by
2841	// the structured fields. For the best search experience, use of
2842	// the
2843	// structured rather than custom fields is recommended.
2844	//
2845	// Data stored in these custom fields fields are indexed and
2846	// searched against by keyword searches
2847	// (see
2848	// SearchJobsRequest.custom_field_filters][]).
2849	//
2850	// The map key must be a number between 1-20. If an invalid key
2851	// is
2852	// provided on job create or update, an error is returned.
2853	FilterableCustomFields map[string]CustomField `json:"filterableCustomFields,omitempty"`
2854
2855	// Incentives: Optional. A description of bonus, commission, and other
2856	// compensation
2857	// incentives associated with the job not including salary or pay.
2858	//
2859	// The maximum number of allowed characters is 10,000.
2860	Incentives string `json:"incentives,omitempty"`
2861
2862	// JobLocations: Output only. Structured locations of the job, resolved
2863	// from locations.
2864	JobLocations []*JobLocation `json:"jobLocations,omitempty"`
2865
2866	// JobTitle: Required. The title of the job, such as "Software
2867	// Engineer"
2868	//
2869	// The maximum number of allowed characters is 500.
2870	JobTitle string `json:"jobTitle,omitempty"`
2871
2872	// LanguageCode: Optional. The language of the posting. This field is
2873	// distinct from
2874	// any requirements for fluency that are associated with the
2875	// job.
2876	//
2877	// Language codes must be in BCP-47 format, such as "en-US" or
2878	// "sr-Latn".
2879	// For more information, see
2880	// [Tags for Identifying
2881	// Languages](https://tools.ietf.org/html/bcp47){:
2882	// class="external" target="_blank" }.
2883	//
2884	// If this field is unspecified and Job.description is present,
2885	// detected
2886	// language code based on Job.description is assigned,
2887	// otherwise
2888	// defaults to 'en_US'.
2889	LanguageCode string `json:"languageCode,omitempty"`
2890
2891	// Level: Optional. The experience level associated with the job, such
2892	// as "Entry Level".
2893	//
2894	// Possible values:
2895	//   "JOB_LEVEL_UNSPECIFIED" - The default value if the level is not
2896	// specified.
2897	//   "ENTRY_LEVEL" - Entry-level individual contributors, typically with
2898	// less than 2 years of
2899	// experience in a similar role. Includes interns.
2900	//   "EXPERIENCED" - Experienced individual contributors, typically with
2901	// 2+ years of
2902	// experience in a similar role.
2903	//   "MANAGER" - Entry- to mid-level managers responsible for managing a
2904	// team of people.
2905	//   "DIRECTOR" - Senior-level managers responsible for managing teams
2906	// of managers.
2907	//   "EXECUTIVE" - Executive-level managers and above, including C-level
2908	// positions.
2909	Level string `json:"level,omitempty"`
2910
2911	// Locations: Optional but strongly recommended for the best service
2912	// experience.
2913	//
2914	// Location(s) where the emploeyer is looking to hire for this job
2915	// posting.
2916	//
2917	// Specifying the full street address(es) of the hiring location
2918	// enables
2919	// better API results, especially job searches by commute time.
2920	//
2921	// At most 50 locations are allowed for best search performance. If a
2922	// job has
2923	// more locations, it is suggested to split it into multiple jobs with
2924	// unique
2925	// requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.)
2926	// as
2927	// multiple jobs with the same requisition_id, company_name
2928	// and
2929	// language_code are not allowed. If the original requisition_id must
2930	// be preserved, a custom field should be used for storage. It is
2931	// also
2932	// suggested to group the locations that close to each other in the same
2933	// job
2934	// for better search experience.
2935	//
2936	// The maximum number of allowed characters is 500.
2937	Locations []string `json:"locations,omitempty"`
2938
2939	// Name: Required during job update.
2940	//
2941	// Resource name assigned to a job by the API, for example, "/jobs/foo".
2942	// Use
2943	// of this field in job queries and API calls is preferred over the use
2944	// of
2945	// requisition_id since this value is unique.
2946	Name string `json:"name,omitempty"`
2947
2948	// PromotionValue: Optional. A promotion value of the job, as determined
2949	// by the client.
2950	// The value determines the sort order of the jobs returned when
2951	// searching for
2952	// jobs using the featured jobs search call, with higher promotional
2953	// values
2954	// being returned first and ties being resolved by relevance sort. Only
2955	// the
2956	// jobs with a promotionValue >0 are returned in a
2957	// FEATURED_JOB_SEARCH.
2958	//
2959	// Default value is 0, and negative values are treated as 0.
2960	PromotionValue int64 `json:"promotionValue,omitempty"`
2961
2962	// PublishDate: Optional. The date this job was most recently published
2963	// in UTC format. The default
2964	// value is the time the request arrives at the server.
2965	PublishDate *Date `json:"publishDate,omitempty"`
2966
2967	// Qualifications: Optional. A description of the qualifications
2968	// required to perform the
2969	// job. The use of this field is recommended
2970	// as an alternative to using the more general description field.
2971	//
2972	// This field accepts and sanitizes HTML input, and also accepts
2973	// bold, italic, ordered list, and unordered list markup tags.
2974	//
2975	// The maximum number of allowed characters is 10,000.
2976	Qualifications string `json:"qualifications,omitempty"`
2977
2978	// ReferenceUrl: Output only. The URL of a web page that displays job
2979	// details.
2980	ReferenceUrl string `json:"referenceUrl,omitempty"`
2981
2982	// Region: Optional. The job Region (for example, state, country)
2983	// throughout which the job
2984	// is available. If this field is set, a
2985	// LocationFilter in a search query within the job region
2986	// finds this job if an exact location match is not specified.
2987	// If this field is set, setting job locations
2988	// to the same location level as this field is strongly recommended.
2989	//
2990	// Possible values:
2991	//   "REGION_UNSPECIFIED" - If the region is unspecified, the job is
2992	// only returned if it
2993	// matches the LocationFilter.
2994	//   "STATE_WIDE" - In additiona to exact location matching, job is
2995	// returned when the
2996	// LocationFilter in search query is in the same state as this job.
2997	// For example, if a `STATE_WIDE` job is posted in "CA, USA", it
2998	// is
2999	// returned if LocationFilter has "Mountain View".
3000	//   "NATION_WIDE" - In addition to exact location matching, job is
3001	// returned when
3002	// LocationFilter in search query is in the same country as this
3003	// job.
3004	// For example, if a `NATION_WIDE` job is posted in "USA", it
3005	// is
3006	// returned if LocationFilter has 'Mountain View'.
3007	//   "TELECOMMUTE" - Job allows employees to work remotely
3008	// (telecommute).
3009	// If locations are provided with this value, the job is
3010	// considered as having a location, but telecommuting is allowed.
3011	Region string `json:"region,omitempty"`
3012
3013	// RequisitionId: Required. The requisition ID, also referred to as the
3014	// posting ID, assigned by the
3015	// client to identify a job. This field is intended to be used by
3016	// clients
3017	// for client identification and tracking of listings. A job is not
3018	// allowed
3019	// to be created if there is another job with the same
3020	// requisition_id,
3021	// company_name and language_code.
3022	//
3023	// The maximum number of allowed characters is 255.
3024	RequisitionId string `json:"requisitionId,omitempty"`
3025
3026	// Responsibilities: Optional. A description of job responsibilities.
3027	// The use of this field is
3028	// recommended as an alternative to using the more general
3029	// description
3030	// field.
3031	//
3032	// This field accepts and sanitizes HTML input, and also accepts
3033	// bold, italic, ordered list, and unordered list markup tags.
3034	//
3035	// The maximum number of allowed characters is 10,000.
3036	Responsibilities string `json:"responsibilities,omitempty"`
3037
3038	// StartDate: Optional. The start date of the job in UTC time zone.
3039	// Typically this field
3040	// is used for contracting engagements.
3041	// Dates prior to 1970/1/1 and invalid date formats are ignored.
3042	StartDate *Date `json:"startDate,omitempty"`
3043
3044	// UnindexedCustomFields: Deprecated. Use custom_attributes
3045	// instead.
3046	//
3047	// Optional.
3048	//
3049	// A map of fields to hold non-filterable custom job attributes, similar
3050	// to
3051	// filterable_custom_fields. These fields are distinct in that the
3052	// data
3053	// in these fields are not indexed. Therefore, the client cannot
3054	// search
3055	// against them, nor can the client use them to list jobs.
3056	//
3057	// The key of the map can be any valid string.
3058	UnindexedCustomFields map[string]CustomField `json:"unindexedCustomFields,omitempty"`
3059
3060	// UpdateTime: Output only. The timestamp when this job was last
3061	// updated.
3062	UpdateTime string `json:"updateTime,omitempty"`
3063
3064	// Visibility: Optional. The visibility of the job.
3065	// Defaults to JobVisibility.PRIVATE if not specified.
3066	// Currently only JobVisibility.PRIVATE is supported.
3067	//
3068	// Possible values:
3069	//   "JOB_VISIBILITY_UNSPECIFIED" - Default value.
3070	//   "PRIVATE" - The Job is only visible to the owner.
3071	//   "GOOGLE" - The Job is visible to the owner and may be visible to
3072	// other applications
3073	// and processes at Google.
3074	//
3075	// Not yet supported. Use PRIVATE.
3076	//   "PUBLIC" - The Job is visible to the owner and may be visible to
3077	// all other API
3078	// clients.
3079	//
3080	// Not yet supported. Use PRIVATE.
3081	Visibility string `json:"visibility,omitempty"`
3082
3083	// ServerResponse contains the HTTP response code and headers from the
3084	// server.
3085	googleapi.ServerResponse `json:"-"`
3086
3087	// ForceSendFields is a list of field names (e.g.
3088	// "ApplicationEmailList") to unconditionally include in API requests.
3089	// By default, fields with empty values are omitted from API requests.
3090	// However, any non-pointer, non-interface field appearing in
3091	// ForceSendFields will be sent to the server regardless of whether the
3092	// field is empty or not. This may be used to include empty fields in
3093	// Patch requests.
3094	ForceSendFields []string `json:"-"`
3095
3096	// NullFields is a list of field names (e.g. "ApplicationEmailList") to
3097	// include in API requests with the JSON null value. By default, fields
3098	// with empty values are omitted from API requests. However, any field
3099	// with an empty value appearing in NullFields will be sent to the
3100	// server as null. It is an error if a field in this list has a
3101	// non-empty value. This may be used to include null fields in Patch
3102	// requests.
3103	NullFields []string `json:"-"`
3104}
3105
3106func (s *Job) MarshalJSON() ([]byte, error) {
3107	type NoMethod Job
3108	raw := NoMethod(*s)
3109	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3110}
3111
3112// JobFilters: Input only.
3113//
3114// Deprecated. Use JobQuery instead.
3115//
3116// The filters required to perform a search query or histogram.
3117type JobFilters struct {
3118	// Categories: Optional. The category filter specifies the categories of
3119	// jobs to search against.
3120	// See Category for more information.
3121	//
3122	// If a value is not specified, jobs from any category are searched
3123	// against.
3124	//
3125	// If multiple values are specified, jobs from any of the
3126	// specified
3127	// categories are searched against.
3128	//
3129	// Possible values:
3130	//   "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is
3131	// not specified.
3132	//   "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as
3133	// an Accountant.
3134	//   "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job,
3135	// such as an Administrative Assistant.
3136	//   "ADVERTISING_AND_MARKETING" - An advertising and marketing job,
3137	// such as Marketing Manager.
3138	//   "ANIMAL_CARE" - An animal care job, such as Veterinarian.
3139	//   "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as
3140	// Designer.
3141	//   "BUSINESS_OPERATIONS" - A business operations job, such as Business
3142	// Operations Manager.
3143	//   "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as
3144	// Custodial Staff.
3145	//   "COMPUTER_AND_IT" - A computer and IT job, such as Systems
3146	// Administrator.
3147	//   "CONSTRUCTION" - A construction job, such as General Laborer.
3148	//   "CUSTOMER_SERVICE" - A customer service job, such s Cashier.
3149	//   "EDUCATION" - An education job, such as School Teacher.
3150	//   "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such
3151	// as Flight Attendant.
3152	//   "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park
3153	// Ranger.
3154	//   "HEALTHCARE" - A healthcare job, such as Registered Nurse.
3155	//   "HUMAN_RESOURCES" - A human resources job, such as Human Resources
3156	// Director.
3157	//   "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation,
3158	// maintenance, or repair job, such as Electrician.
3159	//   "LEGAL" - A legal job, such as Law Clerk.
3160	//   "MANAGEMENT" - A management job, often used in conjunction with
3161	// another category,
3162	// such as Store Manager.
3163	//   "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job,
3164	// such as Assembly Technician.
3165	//   "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or
3166	// writing job, such as Media Relations.
3167	//   "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore
3168	// Driller.
3169	//   "PERSONAL_CARE_AND_SERVICES" - A personal care and services job,
3170	// such as Hair Stylist.
3171	//   "PROTECTIVE_SERVICES" - A protective services job, such as Security
3172	// Guard.
3173	//   "REAL_ESTATE" - A real estate job, such as Buyer's Agent.
3174	//   "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job,
3175	// such as Restaurant Server.
3176	//   "SALES_AND_RETAIL" - A sales and/or retail job, such Sales
3177	// Associate.
3178	//   "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as
3179	// Lab Technician.
3180	//   "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit
3181	// job, such as Case Worker.
3182	//   "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation
3183	// job, such as Personal Trainer.
3184	//   "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job,
3185	// such as Truck Driver.
3186	Categories []string `json:"categories,omitempty"`
3187
3188	// CommuteFilter: Optional. Allows filtering jobs by commute time with
3189	// different travel methods (e.g.
3190	//  driving or public transit). Note: this only works with COMMUTE
3191	//  MODE. When specified, [JobFilters.location_filters] will be
3192	//  ignored.
3193	//
3194	//  Currently we do not support sorting by commute time.
3195	CommuteFilter *CommutePreference `json:"commuteFilter,omitempty"`
3196
3197	// CompanyNames: Optional. The company names filter specifies the
3198	// company entities to search
3199	// against.
3200	//
3201	// If a value is not specified, jobs are searched for against all
3202	// companies.
3203	//
3204	// If multiple values are specified, jobs are searched against
3205	// the
3206	// specified companies.
3207	//
3208	// At most 20 company filters are allowed.
3209	CompanyNames []string `json:"companyNames,omitempty"`
3210
3211	// CompanyTitles: Optional. This filter specifies the exact company
3212	// titles
3213	// of jobs to search against.
3214	//
3215	// If a value is not specified, jobs within the search results can
3216	// be
3217	// associated with any company.
3218	//
3219	// If multiple values are specified, jobs within the search results may
3220	// be
3221	// associated with any of the specified companies.
3222	//
3223	// At most 20 company title filters are allowed.
3224	CompanyTitles []string `json:"companyTitles,omitempty"`
3225
3226	// CompensationFilter: Optional. This search filter is applied only
3227	// to
3228	// Job.compensation_info. For example, if the filter is specified
3229	// as "Hourly job with per-hour compensation > $15", only jobs that
3230	// meet
3231	// this criteria are searched. If a filter is not defined, all open
3232	// jobs
3233	// are searched.
3234	CompensationFilter *CompensationFilter `json:"compensationFilter,omitempty"`
3235
3236	// CustomAttributeFilter: Optional. This filter specifies a structured
3237	// syntax to match against the
3238	// Job.custom_attributes that are marked as `filterable`.
3239	//
3240	// The syntax for this expression is a subset of Google SQL
3241	// syntax.
3242	//
3243	// Supported operators are: =, !=, <, <=, >, >= where the left of the
3244	// operator
3245	// is a custom field key and the right of the operator is a number or
3246	// string
3247	// (surrounded by quotes) value.
3248	//
3249	// Supported functions are LOWER(<field_name>) to
3250	// perform case insensitive match and EMPTY(<field_name>) to filter on
3251	// the
3252	// existence of a key.
3253	//
3254	// Boolean expressions (AND/OR/NOT) are supported up to 3 levels
3255	// of
3256	// nesting (For example, "((A AND B AND C) OR NOT D) AND E"), and there
3257	// can
3258	// be a maximum of 100 comparisons/functions in the expression. The
3259	// expression
3260	// must be < 3000 bytes in length.
3261	//
3262	// Sample Query:
3263	// (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 >
3264	// 100
3265	CustomAttributeFilter string `json:"customAttributeFilter,omitempty"`
3266
3267	// CustomFieldFilters: Deprecated. Use custom_attribute_filter
3268	// instead.
3269	//
3270	// Optional.
3271	//
3272	// This filter specifies searching against
3273	// custom field values. See Job.filterable_custom_fields for
3274	// information.
3275	// The key value specifies a number between 1-20 (the service
3276	// supports 20 custom fields) corresponding to the desired custom field
3277	// map
3278	// value. If an invalid key is provided or specified together
3279	// with
3280	// custom_attribute_filter, an error is thrown.
3281	CustomFieldFilters map[string]CustomFieldFilter `json:"customFieldFilters,omitempty"`
3282
3283	// DisableSpellCheck: Optional. This flag controls the spell-check
3284	// feature. If false, the
3285	// service attempts to correct a misspelled query,
3286	// for example, "enginee" is corrected to "engineer".
3287	//
3288	// Defaults to false: a spell check is performed.
3289	DisableSpellCheck bool `json:"disableSpellCheck,omitempty"`
3290
3291	// EmploymentTypes: Optional. The employment type filter specifies the
3292	// employment type of jobs to
3293	// search against, such as EmploymentType.FULL_TIME.
3294	//
3295	// If a value is not specified, jobs in the search results include
3296	// any
3297	// employment type.
3298	//
3299	// If multiple values are specified, jobs in the search results include
3300	// any
3301	// of the specified employment types.
3302	//
3303	// Possible values:
3304	//   "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment
3305	// type is not specified.
3306	//   "FULL_TIME" - The job requires working a number of hours that
3307	// constitute full
3308	// time employment, typically 40 or more hours per week.
3309	//   "PART_TIME" - The job entails working fewer hours than a full time
3310	// job,
3311	// typically less than 40 hours a week.
3312	//   "CONTRACTOR" - The job is offered as a contracted, as opposed to a
3313	// salaried employee,
3314	// position.
3315	//   "TEMPORARY" - The job is offered as a temporary employment
3316	// opportunity, usually
3317	// a short-term engagement.
3318	//   "INTERN" - The job is a fixed-term opportunity for students or
3319	// entry-level job seekers
3320	// to obtain on-the-job training, typically offered as a summer
3321	// position.
3322	//   "VOLUNTEER" - The is an opportunity for an individual to volunteer,
3323	// where there is no
3324	// expectation of compensation for the provided services.
3325	//   "PER_DIEM" - The job requires an employee to work on an as-needed
3326	// basis with a
3327	// flexible schedule.
3328	//   "CONTRACT_TO_HIRE" - The job is offered as a contracted position
3329	// with the understanding
3330	// that it is converted into a full-time position at the end of
3331	// the
3332	// contract. Jobs of this type are also returned by a search
3333	// for
3334	// EmploymentType.CONTRACTOR jobs.
3335	//   "FLY_IN_FLY_OUT" - The job involves employing people in remote
3336	// areas and flying them
3337	// temporarily to the work site instead of relocating employees and
3338	// their
3339	// families permanently.
3340	//   "OTHER" - The job does not fit any of the other listed types.
3341	EmploymentTypes []string `json:"employmentTypes,omitempty"`
3342
3343	// ExtendedCompensationFilter: Deprecated. Always use
3344	// compensation_filter.
3345	//
3346	// Optional.
3347	//
3348	// This search filter is applied only to
3349	// Job.extended_compensation_info. For example, if the filter is
3350	// specified
3351	// as "Hourly job with per-hour compensation > $15", only jobs that
3352	// meet
3353	// these criteria are searched. If a filter is not defined, all open
3354	// jobs
3355	// are searched.
3356	ExtendedCompensationFilter *ExtendedCompensationFilter `json:"extendedCompensationFilter,omitempty"`
3357
3358	// LanguageCodes: Optional. This filter specifies the locale of jobs to
3359	// search against,
3360	// for example, "en-US".
3361	//
3362	// If a value is not specified, the search results may contain jobs in
3363	// any
3364	// locale.
3365	//
3366	//
3367	// Language codes should be in BCP-47 format, for example, "en-US"
3368	// or
3369	// "sr-Latn". For more information, see [Tags for
3370	// Identifying
3371	// Languages](https://tools.ietf.org/html/bcp47).
3372	//
3373	// At most 10 language code filters are allowed.
3374	LanguageCodes []string `json:"languageCodes,omitempty"`
3375
3376	// LocationFilters: Optional. The location filter specifies geo-regions
3377	// containing the jobs to
3378	// search against. See LocationFilter for more information.
3379	//
3380	// If a location value is not specified, jobs are retrieved
3381	// from all locations.
3382	//
3383	// If multiple values are specified, jobs are retrieved from any of
3384	// the
3385	// specified locations. If different values are specified for
3386	// the
3387	// LocationFilter.distance_in_miles parameter, the maximum
3388	// provided
3389	// distance is used for all locations.
3390	//
3391	// At most 5 location filters are allowed.
3392	LocationFilters []*LocationFilter `json:"locationFilters,omitempty"`
3393
3394	// PublishDateRange: Optional. Jobs published within a range specified
3395	// by this filter are searched
3396	// against, for example, DateRange.PAST_MONTH. If a value is
3397	// not
3398	// specified, all open jobs are searched against regardless of the
3399	// date they were published.
3400	//
3401	// Possible values:
3402	//   "DATE_RANGE_UNSPECIFIED" - Default value: Filtering on time is not
3403	// performed.
3404	//   "PAST_24_HOURS" - The past 24 hours
3405	//   "PAST_WEEK" - The past week (7 days)
3406	//   "PAST_MONTH" - The past month (30 days)
3407	//   "PAST_YEAR" - The past year (365 days)
3408	//   "PAST_3_DAYS" - The past 3 days
3409	PublishDateRange string `json:"publishDateRange,omitempty"`
3410
3411	// Query: Optional. The query filter contains the keywords that match
3412	// against the job
3413	// title, description, and location fields.
3414	//
3415	// The maximum query size is 255 bytes/characters.
3416	Query string `json:"query,omitempty"`
3417
3418	// TenantJobOnly: Deprecated. Do not use this field.
3419	//
3420	// This flag controls whether the job search should be restricted to
3421	// jobs
3422	// owned by the current user.
3423	//
3424	// Defaults to false where all jobs accessible to the
3425	// user are searched against.
3426	TenantJobOnly bool `json:"tenantJobOnly,omitempty"`
3427
3428	// ForceSendFields is a list of field names (e.g. "Categories") to
3429	// unconditionally include in API requests. By default, fields with
3430	// empty values are omitted from API requests. However, any non-pointer,
3431	// non-interface field appearing in ForceSendFields will be sent to the
3432	// server regardless of whether the field is empty or not. This may be
3433	// used to include empty fields in Patch requests.
3434	ForceSendFields []string `json:"-"`
3435
3436	// NullFields is a list of field names (e.g. "Categories") to include in
3437	// API requests with the JSON null value. By default, fields with empty
3438	// values are omitted from API requests. However, any field with an
3439	// empty value appearing in NullFields will be sent to the server as
3440	// null. It is an error if a field in this list has a non-empty value.
3441	// This may be used to include null fields in Patch requests.
3442	NullFields []string `json:"-"`
3443}
3444
3445func (s *JobFilters) MarshalJSON() ([]byte, error) {
3446	type NoMethod JobFilters
3447	raw := NoMethod(*s)
3448	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3449}
3450
3451// JobLocation: Output only.
3452//
3453// A resource that represents a location with full
3454// geographic
3455// information.
3456type JobLocation struct {
3457	// LatLng: An object representing a latitude/longitude pair.
3458	LatLng *LatLng `json:"latLng,omitempty"`
3459
3460	// LocationType: The type of a location, which corresponds to the
3461	// address lines field of
3462	// PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type
3463	// of
3464	// LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type
3465	// of
3466	// LocationType#LOCALITY.
3467	//
3468	// Possible values:
3469	//   "LOCATION_TYPE_UNSPECIFIED" - Default value if the type is not
3470	// specified.
3471	//   "COUNTRY" - A country level location.
3472	//   "ADMINISTRATIVE_AREA" - A state or equivalent level location.
3473	//   "SUB_ADMINISTRATIVE_AREA" - A county or equivalent level location.
3474	//   "LOCALITY" - A city or equivalent level location.
3475	//   "POSTAL_CODE" - A postal code level location.
3476	//   "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for
3477	// example a city borough,
3478	// ward, or arrondissement. Sublocalities are usually recognized by a
3479	// local
3480	// political authority. For example, Manhattan and Brooklyn are
3481	// recognized
3482	// as boroughs by the City of New York, and are therefore modeled
3483	// as
3484	// sublocalities.
3485	//   "SUB_LOCALITY_1" - A district or equivalent level location.
3486	//   "SUB_LOCALITY_2" - A smaller district or equivalent level display.
3487	//   "NEIGHBORHOOD" - A neighborhood level location.
3488	//   "STREET_ADDRESS" - A street address level location.
3489	LocationType string `json:"locationType,omitempty"`
3490
3491	// PostalAddress: Postal address of the location that includes human
3492	// readable information,
3493	// such as postal delivery and payments addresses. Given a postal
3494	// address,
3495	// a postal service can deliver items to a premises, P.O. Box, or
3496	// other
3497	// delivery location.
3498	PostalAddress *PostalAddress `json:"postalAddress,omitempty"`
3499
3500	// RadiusMeters: Radius in meters of the job location. This value is
3501	// derived from the
3502	// location bounding box in which a circle with the specified
3503	// radius
3504	// centered from LatLng coves the area associated with the job
3505	// location.
3506	// For example, currently, "Mountain View, CA, USA" has a radius
3507	// of
3508	// 7885.79 meters.
3509	RadiusMeters float64 `json:"radiusMeters,omitempty"`
3510
3511	// ForceSendFields is a list of field names (e.g. "LatLng") to
3512	// unconditionally include in API requests. By default, fields with
3513	// empty values are omitted from API requests. However, any non-pointer,
3514	// non-interface field appearing in ForceSendFields will be sent to the
3515	// server regardless of whether the field is empty or not. This may be
3516	// used to include empty fields in Patch requests.
3517	ForceSendFields []string `json:"-"`
3518
3519	// NullFields is a list of field names (e.g. "LatLng") to include in API
3520	// requests with the JSON null value. By default, fields with empty
3521	// values are omitted from API requests. However, any field with an
3522	// empty value appearing in NullFields will be sent to the server as
3523	// null. It is an error if a field in this list has a non-empty value.
3524	// This may be used to include null fields in Patch requests.
3525	NullFields []string `json:"-"`
3526}
3527
3528func (s *JobLocation) MarshalJSON() ([]byte, error) {
3529	type NoMethod JobLocation
3530	raw := NoMethod(*s)
3531	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3532}
3533
3534func (s *JobLocation) UnmarshalJSON(data []byte) error {
3535	type NoMethod JobLocation
3536	var s1 struct {
3537		RadiusMeters gensupport.JSONFloat64 `json:"radiusMeters"`
3538		*NoMethod
3539	}
3540	s1.NoMethod = (*NoMethod)(s)
3541	if err := json.Unmarshal(data, &s1); err != nil {
3542		return err
3543	}
3544	s.RadiusMeters = float64(s1.RadiusMeters)
3545	return nil
3546}
3547
3548// JobProcessingOptions: Input only.
3549//
3550// Options for job processing.
3551type JobProcessingOptions struct {
3552	// DisableStreetAddressResolution: Optional. If set to `true`, the
3553	// service does not attempt to resolve a
3554	// more precise address for the job.
3555	DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"`
3556
3557	// HtmlSanitization: Optional. Option for job HTML content sanitization.
3558	// Applied fields are:
3559	//
3560	// * description
3561	// * applicationInstruction
3562	// * incentives
3563	// * qualifications
3564	// * responsibilities
3565	//
3566	// HTML tags in these fields may be stripped if sanitiazation is not
3567	// disabled.
3568	//
3569	// Defaults to HtmlSanitization.SIMPLE_FORMATTING_ONLY.
3570	//
3571	// Possible values:
3572	//   "HTML_SANITIZATION_UNSPECIFIED" - Default value.
3573	//   "HTML_SANITIZATION_DISABLED" - Disables sanitization on HTML input.
3574	//   "SIMPLE_FORMATTING_ONLY" - Sanitizes HTML input, only accepts bold,
3575	// italic, ordered list, and
3576	// unordered list markup tags.
3577	HtmlSanitization string `json:"htmlSanitization,omitempty"`
3578
3579	// ForceSendFields is a list of field names (e.g.
3580	// "DisableStreetAddressResolution") to unconditionally include in API
3581	// requests. By default, fields with empty values are omitted from API
3582	// requests. However, any non-pointer, non-interface field appearing in
3583	// ForceSendFields will be sent to the server regardless of whether the
3584	// field is empty or not. This may be used to include empty fields in
3585	// Patch requests.
3586	ForceSendFields []string `json:"-"`
3587
3588	// NullFields is a list of field names (e.g.
3589	// "DisableStreetAddressResolution") to include in API requests with the
3590	// JSON null value. By default, fields with empty values are omitted
3591	// from API requests. However, any field with an empty value appearing
3592	// in NullFields will be sent to the server as null. It is an error if a
3593	// field in this list has a non-empty value. This may be used to include
3594	// null fields in Patch requests.
3595	NullFields []string `json:"-"`
3596}
3597
3598func (s *JobProcessingOptions) MarshalJSON() ([]byte, error) {
3599	type NoMethod JobProcessingOptions
3600	raw := NoMethod(*s)
3601	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3602}
3603
3604// JobQuery: Input only.
3605//
3606// The query required to perform a search query or histogram.
3607type JobQuery struct {
3608	// Categories: Optional. The category filter specifies the categories of
3609	// jobs to search against.
3610	// See Category for more information.
3611	//
3612	// If a value is not specified, jobs from any category are searched
3613	// against.
3614	//
3615	// If multiple values are specified, jobs from any of the
3616	// specified
3617	// categories are searched against.
3618	//
3619	// Possible values:
3620	//   "JOB_CATEGORY_UNSPECIFIED" - The default value if the category is
3621	// not specified.
3622	//   "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as
3623	// an Accountant.
3624	//   "ADMINISTRATIVE_AND_OFFICE" - And administrative and office job,
3625	// such as an Administrative Assistant.
3626	//   "ADVERTISING_AND_MARKETING" - An advertising and marketing job,
3627	// such as Marketing Manager.
3628	//   "ANIMAL_CARE" - An animal care job, such as Veterinarian.
3629	//   "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as
3630	// Designer.
3631	//   "BUSINESS_OPERATIONS" - A business operations job, such as Business
3632	// Operations Manager.
3633	//   "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as
3634	// Custodial Staff.
3635	//   "COMPUTER_AND_IT" - A computer and IT job, such as Systems
3636	// Administrator.
3637	//   "CONSTRUCTION" - A construction job, such as General Laborer.
3638	//   "CUSTOMER_SERVICE" - A customer service job, such s Cashier.
3639	//   "EDUCATION" - An education job, such as School Teacher.
3640	//   "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such
3641	// as Flight Attendant.
3642	//   "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park
3643	// Ranger.
3644	//   "HEALTHCARE" - A healthcare job, such as Registered Nurse.
3645	//   "HUMAN_RESOURCES" - A human resources job, such as Human Resources
3646	// Director.
3647	//   "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation,
3648	// maintenance, or repair job, such as Electrician.
3649	//   "LEGAL" - A legal job, such as Law Clerk.
3650	//   "MANAGEMENT" - A management job, often used in conjunction with
3651	// another category,
3652	// such as Store Manager.
3653	//   "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job,
3654	// such as Assembly Technician.
3655	//   "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or
3656	// writing job, such as Media Relations.
3657	//   "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore
3658	// Driller.
3659	//   "PERSONAL_CARE_AND_SERVICES" - A personal care and services job,
3660	// such as Hair Stylist.
3661	//   "PROTECTIVE_SERVICES" - A protective services job, such as Security
3662	// Guard.
3663	//   "REAL_ESTATE" - A real estate job, such as Buyer's Agent.
3664	//   "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job,
3665	// such as Restaurant Server.
3666	//   "SALES_AND_RETAIL" - A sales and/or retail job, such Sales
3667	// Associate.
3668	//   "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as
3669	// Lab Technician.
3670	//   "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit
3671	// job, such as Case Worker.
3672	//   "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation
3673	// job, such as Personal Trainer.
3674	//   "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job,
3675	// such as Truck Driver.
3676	Categories []string `json:"categories,omitempty"`
3677
3678	// CommuteFilter: Optional. Allows filtering jobs by commute time with
3679	// different travel methods (for
3680	//  example, driving or public transit). Note: This only works with
3681	// COMMUTE
3682	//  MODE. When specified, [JobQuery.location_filters] is
3683	//  ignored.
3684	//
3685	//  Currently we don't support sorting by commute time.
3686	CommuteFilter *CommutePreference `json:"commuteFilter,omitempty"`
3687
3688	// CompanyDisplayNames: Optional. This filter specifies the exact
3689	// company display
3690	// name of the jobs to search against.
3691	//
3692	// If a value isn't specified, jobs within the search results
3693	// are
3694	// associated with any company.
3695	//
3696	// If multiple values are specified, jobs within the search results may
3697	// be
3698	// associated with any of the specified companies.
3699	//
3700	// At most 20 company display name filters are allowed.
3701	CompanyDisplayNames []string `json:"companyDisplayNames,omitempty"`
3702
3703	// CompanyNames: Optional. This filter specifies the company entities to
3704	// search against.
3705	//
3706	// If a value isn't specified, jobs are searched for against
3707	// all
3708	// companies.
3709	//
3710	// If multiple values are specified, jobs are searched against
3711	// the
3712	// companies specified.
3713	//
3714	// At most 20 company filters are allowed.
3715	CompanyNames []string `json:"companyNames,omitempty"`
3716
3717	// CompensationFilter: Optional. This search filter is applied only
3718	// to
3719	// Job.compensation_info. For example, if the filter is specified
3720	// as "Hourly job with per-hour compensation > $15", only jobs
3721	// meeting
3722	// these criteria are searched. If a filter isn't defined, all open
3723	// jobs
3724	// are searched.
3725	CompensationFilter *CompensationFilter `json:"compensationFilter,omitempty"`
3726
3727	// CustomAttributeFilter: Optional. This filter specifies a structured
3728	// syntax to match against the
3729	// Job.custom_attributes marked as `filterable`.
3730	//
3731	// The syntax for this expression is a subset of Google SQL
3732	// syntax.
3733	//
3734	// Supported operators are: =, !=, <, <=, >, >= where the left of the
3735	// operator
3736	// is a custom field key and the right of the operator is a number or
3737	// string
3738	// (surrounded by quotes) value.
3739	//
3740	// Supported functions are LOWER(<field_name>) to
3741	// perform case insensitive match and EMPTY(<field_name>) to filter on
3742	// the
3743	// existence of a key.
3744	//
3745	// Boolean expressions (AND/OR/NOT) are supported up to 3 levels
3746	// of
3747	// nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum
3748	// of 50
3749	// comparisons/functions are allowed in the expression. The
3750	// expression
3751	// must be < 2000 characters in length.
3752	//
3753	// Sample Query:
3754	// (key1 = "TEST" OR LOWER(key1)="test" OR NOT EMPTY(key1)) AND key2 >
3755	// 100
3756	CustomAttributeFilter string `json:"customAttributeFilter,omitempty"`
3757
3758	// DisableSpellCheck: Optional. This flag controls the spell-check
3759	// feature. If false, the
3760	// service attempts to correct a misspelled query,
3761	// for example, "enginee" is corrected to "engineer".
3762	//
3763	// Defaults to false: a spell check is performed.
3764	DisableSpellCheck bool `json:"disableSpellCheck,omitempty"`
3765
3766	// EmploymentTypes: Optional. The employment type filter specifies the
3767	// employment type of jobs to
3768	// search against, such as EmploymentType.FULL_TIME.
3769	//
3770	// If a value is not specified, jobs in the search results include
3771	// any
3772	// employment type.
3773	//
3774	// If multiple values are specified, jobs in the search results
3775	// include
3776	// any of the specified employment types.
3777	//
3778	// Possible values:
3779	//   "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment
3780	// type is not specified.
3781	//   "FULL_TIME" - The job requires working a number of hours that
3782	// constitute full
3783	// time employment, typically 40 or more hours per week.
3784	//   "PART_TIME" - The job entails working fewer hours than a full time
3785	// job,
3786	// typically less than 40 hours a week.
3787	//   "CONTRACTOR" - The job is offered as a contracted, as opposed to a
3788	// salaried employee,
3789	// position.
3790	//   "TEMPORARY" - The job is offered as a temporary employment
3791	// opportunity, usually
3792	// a short-term engagement.
3793	//   "INTERN" - The job is a fixed-term opportunity for students or
3794	// entry-level job seekers
3795	// to obtain on-the-job training, typically offered as a summer
3796	// position.
3797	//   "VOLUNTEER" - The is an opportunity for an individual to volunteer,
3798	// where there is no
3799	// expectation of compensation for the provided services.
3800	//   "PER_DIEM" - The job requires an employee to work on an as-needed
3801	// basis with a
3802	// flexible schedule.
3803	//   "CONTRACT_TO_HIRE" - The job is offered as a contracted position
3804	// with the understanding
3805	// that it is converted into a full-time position at the end of
3806	// the
3807	// contract. Jobs of this type are also returned by a search
3808	// for
3809	// EmploymentType.CONTRACTOR jobs.
3810	//   "FLY_IN_FLY_OUT" - The job involves employing people in remote
3811	// areas and flying them
3812	// temporarily to the work site instead of relocating employees and
3813	// their
3814	// families permanently.
3815	//   "OTHER" - The job does not fit any of the other listed types.
3816	EmploymentTypes []string `json:"employmentTypes,omitempty"`
3817
3818	// LanguageCodes: Optional. This filter specifies the locale of jobs to
3819	// search against,
3820	// for example, "en-US".
3821	//
3822	// If a value isn't specified, the search results can contain jobs in
3823	// any
3824	// locale.
3825	//
3826	//
3827	// Language codes should be in BCP-47 format, such as "en-US" or
3828	// "sr-Latn".
3829	// For more information, see
3830	// [Tags for Identifying
3831	// Languages](https://tools.ietf.org/html/bcp47).
3832	//
3833	// At most 10 language code filters are allowed.
3834	LanguageCodes []string `json:"languageCodes,omitempty"`
3835
3836	// LocationFilters: Optional. The location filter specifies geo-regions
3837	// containing the jobs to
3838	// search against. See LocationFilter for more information.
3839	//
3840	// If a location value isn't specified, jobs fitting the other
3841	// search
3842	// criteria are retrieved regardless of where they're located.
3843	//
3844	// If multiple values are specified, jobs are retrieved from any of
3845	// the
3846	// specified locations. If different values are specified for
3847	// the
3848	// LocationFilter.distance_in_miles parameter, the maximum
3849	// provided
3850	// distance is used for all locations.
3851	//
3852	// At most 5 location filters are allowed.
3853	LocationFilters []*LocationFilter `json:"locationFilters,omitempty"`
3854
3855	// PublishDateRange: Optional. Jobs published within a range specified
3856	// by this filter are searched
3857	// against, for example, DateRange.PAST_MONTH. If a value
3858	// isn't
3859	// specified, all open jobs are searched against regardless of
3860	// their
3861	// published date.
3862	//
3863	// Possible values:
3864	//   "DATE_RANGE_UNSPECIFIED" - Default value: Filtering on time is not
3865	// performed.
3866	//   "PAST_24_HOURS" - The past 24 hours
3867	//   "PAST_WEEK" - The past week (7 days)
3868	//   "PAST_MONTH" - The past month (30 days)
3869	//   "PAST_YEAR" - The past year (365 days)
3870	//   "PAST_3_DAYS" - The past 3 days
3871	PublishDateRange string `json:"publishDateRange,omitempty"`
3872
3873	// Query: Optional. The query string that matches against the job title,
3874	// description, and
3875	// location fields.
3876	//
3877	// The maximum query size is 255 bytes.
3878	Query string `json:"query,omitempty"`
3879
3880	// ForceSendFields is a list of field names (e.g. "Categories") to
3881	// unconditionally include in API requests. By default, fields with
3882	// empty values are omitted from API requests. However, any non-pointer,
3883	// non-interface field appearing in ForceSendFields will be sent to the
3884	// server regardless of whether the field is empty or not. This may be
3885	// used to include empty fields in Patch requests.
3886	ForceSendFields []string `json:"-"`
3887
3888	// NullFields is a list of field names (e.g. "Categories") to include in
3889	// API requests with the JSON null value. By default, fields with empty
3890	// values are omitted from API requests. However, any field with an
3891	// empty value appearing in NullFields will be sent to the server as
3892	// null. It is an error if a field in this list has a non-empty value.
3893	// This may be used to include null fields in Patch requests.
3894	NullFields []string `json:"-"`
3895}
3896
3897func (s *JobQuery) MarshalJSON() ([]byte, error) {
3898	type NoMethod JobQuery
3899	raw := NoMethod(*s)
3900	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3901}
3902
3903// LatLng: An object representing a latitude/longitude pair. This is
3904// expressed as a pair
3905// of doubles representing degrees latitude and degrees longitude.
3906// Unless
3907// specified otherwise, this must conform to the
3908// <a
3909// href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
3910// st
3911// andard</a>. Values must be within normalized ranges.
3912type LatLng struct {
3913	// Latitude: The latitude in degrees. It must be in the range [-90.0,
3914	// +90.0].
3915	Latitude float64 `json:"latitude,omitempty"`
3916
3917	// Longitude: The longitude in degrees. It must be in the range [-180.0,
3918	// +180.0].
3919	Longitude float64 `json:"longitude,omitempty"`
3920
3921	// ForceSendFields is a list of field names (e.g. "Latitude") to
3922	// unconditionally include in API requests. By default, fields with
3923	// empty values are omitted from API requests. However, any non-pointer,
3924	// non-interface field appearing in ForceSendFields will be sent to the
3925	// server regardless of whether the field is empty or not. This may be
3926	// used to include empty fields in Patch requests.
3927	ForceSendFields []string `json:"-"`
3928
3929	// NullFields is a list of field names (e.g. "Latitude") to include in
3930	// API requests with the JSON null value. By default, fields with empty
3931	// values are omitted from API requests. However, any field with an
3932	// empty value appearing in NullFields will be sent to the server as
3933	// null. It is an error if a field in this list has a non-empty value.
3934	// This may be used to include null fields in Patch requests.
3935	NullFields []string `json:"-"`
3936}
3937
3938func (s *LatLng) MarshalJSON() ([]byte, error) {
3939	type NoMethod LatLng
3940	raw := NoMethod(*s)
3941	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3942}
3943
3944func (s *LatLng) UnmarshalJSON(data []byte) error {
3945	type NoMethod LatLng
3946	var s1 struct {
3947		Latitude  gensupport.JSONFloat64 `json:"latitude"`
3948		Longitude gensupport.JSONFloat64 `json:"longitude"`
3949		*NoMethod
3950	}
3951	s1.NoMethod = (*NoMethod)(s)
3952	if err := json.Unmarshal(data, &s1); err != nil {
3953		return err
3954	}
3955	s.Latitude = float64(s1.Latitude)
3956	s.Longitude = float64(s1.Longitude)
3957	return nil
3958}
3959
3960// ListCompaniesResponse: Output only.
3961//
3962// The List companies response object.
3963type ListCompaniesResponse struct {
3964	// Companies: Companies for the current client.
3965	Companies []*Company `json:"companies,omitempty"`
3966
3967	// Metadata: Additional information for the API invocation, such as the
3968	// request
3969	// tracking id.
3970	Metadata *ResponseMetadata `json:"metadata,omitempty"`
3971
3972	// NextPageToken: A token to retrieve the next page of results.
3973	NextPageToken string `json:"nextPageToken,omitempty"`
3974
3975	// ServerResponse contains the HTTP response code and headers from the
3976	// server.
3977	googleapi.ServerResponse `json:"-"`
3978
3979	// ForceSendFields is a list of field names (e.g. "Companies") to
3980	// unconditionally include in API requests. By default, fields with
3981	// empty values are omitted from API requests. However, any non-pointer,
3982	// non-interface field appearing in ForceSendFields will be sent to the
3983	// server regardless of whether the field is empty or not. This may be
3984	// used to include empty fields in Patch requests.
3985	ForceSendFields []string `json:"-"`
3986
3987	// NullFields is a list of field names (e.g. "Companies") to include in
3988	// API requests with the JSON null value. By default, fields with empty
3989	// values are omitted from API requests. However, any field with an
3990	// empty value appearing in NullFields will be sent to the server as
3991	// null. It is an error if a field in this list has a non-empty value.
3992	// This may be used to include null fields in Patch requests.
3993	NullFields []string `json:"-"`
3994}
3995
3996func (s *ListCompaniesResponse) MarshalJSON() ([]byte, error) {
3997	type NoMethod ListCompaniesResponse
3998	raw := NoMethod(*s)
3999	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4000}
4001
4002// ListCompanyJobsResponse: Deprecated. Use ListJobsResponse
4003// instead.
4004//
4005// Output only.
4006//
4007// The List jobs response object.
4008type ListCompanyJobsResponse struct {
4009	// Jobs: The Jobs for a given company.
4010	//
4011	// The maximum number of items returned is based on the limit
4012	// field
4013	// provided in the request.
4014	Jobs []*Job `json:"jobs,omitempty"`
4015
4016	// Metadata: Additional information for the API invocation, such as the
4017	// request
4018	// tracking id.
4019	Metadata *ResponseMetadata `json:"metadata,omitempty"`
4020
4021	// NextPageToken: A token to retrieve the next page of results.
4022	NextPageToken string `json:"nextPageToken,omitempty"`
4023
4024	// TotalSize: The total number of open jobs. The result will be
4025	// empty if ListCompanyJobsRequest.include_jobs_count is not enabled
4026	// or if no open jobs are available.
4027	TotalSize int64 `json:"totalSize,omitempty,string"`
4028
4029	// ServerResponse contains the HTTP response code and headers from the
4030	// server.
4031	googleapi.ServerResponse `json:"-"`
4032
4033	// ForceSendFields is a list of field names (e.g. "Jobs") to
4034	// unconditionally include in API requests. By default, fields with
4035	// empty values are omitted from API requests. However, any non-pointer,
4036	// non-interface field appearing in ForceSendFields will be sent to the
4037	// server regardless of whether the field is empty or not. This may be
4038	// used to include empty fields in Patch requests.
4039	ForceSendFields []string `json:"-"`
4040
4041	// NullFields is a list of field names (e.g. "Jobs") to include in API
4042	// requests with the JSON null value. By default, fields with empty
4043	// values are omitted from API requests. However, any field with an
4044	// empty value appearing in NullFields will be sent to the server as
4045	// null. It is an error if a field in this list has a non-empty value.
4046	// This may be used to include null fields in Patch requests.
4047	NullFields []string `json:"-"`
4048}
4049
4050func (s *ListCompanyJobsResponse) MarshalJSON() ([]byte, error) {
4051	type NoMethod ListCompanyJobsResponse
4052	raw := NoMethod(*s)
4053	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4054}
4055
4056// ListJobsResponse: Output only.
4057//
4058// List jobs response.
4059type ListJobsResponse struct {
4060	// Jobs: The Jobs for a given company.
4061	//
4062	// The maximum number of items returned is based on the limit
4063	// field
4064	// provided in the request.
4065	Jobs []*Job `json:"jobs,omitempty"`
4066
4067	// Metadata: Additional information for the API invocation, such as the
4068	// request
4069	// tracking id.
4070	Metadata *ResponseMetadata `json:"metadata,omitempty"`
4071
4072	// NextPageToken: A token to retrieve the next page of results.
4073	NextPageToken string `json:"nextPageToken,omitempty"`
4074
4075	// ServerResponse contains the HTTP response code and headers from the
4076	// server.
4077	googleapi.ServerResponse `json:"-"`
4078
4079	// ForceSendFields is a list of field names (e.g. "Jobs") to
4080	// unconditionally include in API requests. By default, fields with
4081	// empty values are omitted from API requests. However, any non-pointer,
4082	// non-interface field appearing in ForceSendFields will be sent to the
4083	// server regardless of whether the field is empty or not. This may be
4084	// used to include empty fields in Patch requests.
4085	ForceSendFields []string `json:"-"`
4086
4087	// NullFields is a list of field names (e.g. "Jobs") to include in API
4088	// requests with the JSON null value. By default, fields with empty
4089	// values are omitted from API requests. However, any field with an
4090	// empty value appearing in NullFields will be sent to the server as
4091	// null. It is an error if a field in this list has a non-empty value.
4092	// This may be used to include null fields in Patch requests.
4093	NullFields []string `json:"-"`
4094}
4095
4096func (s *ListJobsResponse) MarshalJSON() ([]byte, error) {
4097	type NoMethod ListJobsResponse
4098	raw := NoMethod(*s)
4099	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4100}
4101
4102// LocationFilter: Input only.
4103//
4104// Geographic region of the search.
4105type LocationFilter struct {
4106	// DistanceInMiles: Optional. The distance_in_miles is applied when the
4107	// location being searched for is
4108	// identified as a city or smaller. When the location being searched for
4109	// is a
4110	// state or larger, this field is ignored.
4111	DistanceInMiles float64 `json:"distanceInMiles,omitempty"`
4112
4113	// IsTelecommute: Optional. Allows the client to return jobs without
4114	// a
4115	// set location, specifically, telecommuting jobs (telecomuting is
4116	// considered
4117	// by the service as a special location.
4118	// Job.allow_telecommute indicates if a job permits telecommuting.
4119	// If this field is true, telecommuting jobs are searched, and
4120	// name and lat_lng are
4121	// ignored.
4122	// This filter can be used by itself to search exclusively for
4123	// telecommuting
4124	// jobs, or it can be combined with another location
4125	// filter to search for a combination of job locations,
4126	// such as "Mountain View" or "telecommuting" jobs. However, when used
4127	// in
4128	// combination with other location filters, telecommuting jobs can
4129	// be
4130	// treated as less relevant than other jobs in the search response.
4131	IsTelecommute bool `json:"isTelecommute,omitempty"`
4132
4133	// LatLng: Optional. The latitude and longitude of the geographic center
4134	// from which to
4135	// search. This field is ignored if `location_name` is provided.
4136	LatLng *LatLng `json:"latLng,omitempty"`
4137
4138	// Name: Optional. The address name, such as "Mountain View" or "Bay
4139	// Area".
4140	Name string `json:"name,omitempty"`
4141
4142	// RegionCode: Optional. CLDR region code of the country/region of the
4143	// address. This will be used
4144	// to address ambiguity of the user-input location, e.g.
4145	// "Liverpool"
4146	// against "Liverpool, NY, US" or "Liverpool, UK".
4147	//
4148	// Set this field if all the jobs to search against are from a same
4149	// region,
4150	// or jobs are world-wide but the job seeker is from a specific
4151	// region.
4152	//
4153	// See http://cldr.unicode.org/
4154	// and
4155	// http://www.unicode.org/cldr/charts/30/supplemental/territory_infor
4156	// mation.html
4157	// for details. Example: "CH" for Switzerland.
4158	RegionCode string `json:"regionCode,omitempty"`
4159
4160	// ForceSendFields is a list of field names (e.g. "DistanceInMiles") to
4161	// unconditionally include in API requests. By default, fields with
4162	// empty values are omitted from API requests. However, any non-pointer,
4163	// non-interface field appearing in ForceSendFields will be sent to the
4164	// server regardless of whether the field is empty or not. This may be
4165	// used to include empty fields in Patch requests.
4166	ForceSendFields []string `json:"-"`
4167
4168	// NullFields is a list of field names (e.g. "DistanceInMiles") to
4169	// include in API requests with the JSON null value. By default, fields
4170	// with empty values are omitted from API requests. However, any field
4171	// with an empty value appearing in NullFields will be sent to the
4172	// server as null. It is an error if a field in this list has a
4173	// non-empty value. This may be used to include null fields in Patch
4174	// requests.
4175	NullFields []string `json:"-"`
4176}
4177
4178func (s *LocationFilter) MarshalJSON() ([]byte, error) {
4179	type NoMethod LocationFilter
4180	raw := NoMethod(*s)
4181	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4182}
4183
4184func (s *LocationFilter) UnmarshalJSON(data []byte) error {
4185	type NoMethod LocationFilter
4186	var s1 struct {
4187		DistanceInMiles gensupport.JSONFloat64 `json:"distanceInMiles"`
4188		*NoMethod
4189	}
4190	s1.NoMethod = (*NoMethod)(s)
4191	if err := json.Unmarshal(data, &s1); err != nil {
4192		return err
4193	}
4194	s.DistanceInMiles = float64(s1.DistanceInMiles)
4195	return nil
4196}
4197
4198// MatchingJob: Output only.
4199//
4200// Job entry with metadata inside SearchJobsResponse.
4201type MatchingJob struct {
4202	// CommuteInfo: Commute information which is generated based on
4203	// specified
4204	//  CommutePreference.
4205	CommuteInfo *CommuteInfo `json:"commuteInfo,omitempty"`
4206
4207	// Job: Job resource that matches the specified SearchJobsRequest.
4208	Job *Job `json:"job,omitempty"`
4209
4210	// JobSummary: A summary of the job with core information that's
4211	// displayed on the search
4212	// results listing page.
4213	JobSummary string `json:"jobSummary,omitempty"`
4214
4215	// JobTitleSnippet: Contains snippets of text from the Job.job_title
4216	// field most
4217	// closely matching a search query's keywords, if available. The
4218	// matching
4219	// query keywords are enclosed in HTML bold tags.
4220	JobTitleSnippet string `json:"jobTitleSnippet,omitempty"`
4221
4222	// SearchTextSnippet: Contains snippets of text from the Job.description
4223	// and similar
4224	// fields that most closely match a search query's keywords, if
4225	// available.
4226	// All HTML tags in the original fields are stripped when returned in
4227	// this
4228	// field, and matching query keywords are enclosed in HTML bold tags.
4229	SearchTextSnippet string `json:"searchTextSnippet,omitempty"`
4230
4231	// ForceSendFields is a list of field names (e.g. "CommuteInfo") to
4232	// unconditionally include in API requests. By default, fields with
4233	// empty values are omitted from API requests. However, any non-pointer,
4234	// non-interface field appearing in ForceSendFields will be sent to the
4235	// server regardless of whether the field is empty or not. This may be
4236	// used to include empty fields in Patch requests.
4237	ForceSendFields []string `json:"-"`
4238
4239	// NullFields is a list of field names (e.g. "CommuteInfo") to include
4240	// in API requests with the JSON null value. By default, fields with
4241	// empty values are omitted from API requests. However, any field with
4242	// an empty value appearing in NullFields will be sent to the server as
4243	// null. It is an error if a field in this list has a non-empty value.
4244	// This may be used to include null fields in Patch requests.
4245	NullFields []string `json:"-"`
4246}
4247
4248func (s *MatchingJob) MarshalJSON() ([]byte, error) {
4249	type NoMethod MatchingJob
4250	raw := NoMethod(*s)
4251	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4252}
4253
4254// MendelDebugInput: Message representing input to a Mendel server for
4255// debug forcing.
4256// See go/mendel-debug-forcing for more details.
4257// Next ID: 2
4258type MendelDebugInput struct {
4259	// NamespacedDebugInput: When a request spans multiple servers, a
4260	// MendelDebugInput may travel with
4261	// the request and take effect in all the servers. This field is a map
4262	// of
4263	// namespaces to NamespacedMendelDebugInput protos. In a single server,
4264	// up to
4265	// two NamespacedMendelDebugInput protos are applied:
4266	// 1. NamespacedMendelDebugInput with the global namespace (key ==
4267	// "").
4268	// 2. NamespacedMendelDebugInput with the server's namespace.
4269	// When both NamespacedMendelDebugInput protos are present, they are
4270	// merged.
4271	// See go/mendel-debug-forcing for more details.
4272	NamespacedDebugInput map[string]NamespacedDebugInput `json:"namespacedDebugInput,omitempty"`
4273
4274	// ForceSendFields is a list of field names (e.g.
4275	// "NamespacedDebugInput") to unconditionally include in API requests.
4276	// By default, fields with empty values are omitted from API requests.
4277	// However, any non-pointer, non-interface field appearing in
4278	// ForceSendFields will be sent to the server regardless of whether the
4279	// field is empty or not. This may be used to include empty fields in
4280	// Patch requests.
4281	ForceSendFields []string `json:"-"`
4282
4283	// NullFields is a list of field names (e.g. "NamespacedDebugInput") to
4284	// include in API requests with the JSON null value. By default, fields
4285	// with empty values are omitted from API requests. However, any field
4286	// with an empty value appearing in NullFields will be sent to the
4287	// server as null. It is an error if a field in this list has a
4288	// non-empty value. This may be used to include null fields in Patch
4289	// requests.
4290	NullFields []string `json:"-"`
4291}
4292
4293func (s *MendelDebugInput) MarshalJSON() ([]byte, error) {
4294	type NoMethod MendelDebugInput
4295	raw := NoMethod(*s)
4296	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4297}
4298
4299// Money: Represents an amount of money with its currency type.
4300type Money struct {
4301	// CurrencyCode: The 3-letter currency code defined in ISO 4217.
4302	CurrencyCode string `json:"currencyCode,omitempty"`
4303
4304	// Nanos: Number of nano (10^-9) units of the amount.
4305	// The value must be between -999,999,999 and +999,999,999 inclusive.
4306	// If `units` is positive, `nanos` must be positive or zero.
4307	// If `units` is zero, `nanos` can be positive, zero, or negative.
4308	// If `units` is negative, `nanos` must be negative or zero.
4309	// For example $-1.75 is represented as `units`=-1 and
4310	// `nanos`=-750,000,000.
4311	Nanos int64 `json:"nanos,omitempty"`
4312
4313	// Units: The whole units of the amount.
4314	// For example if `currencyCode` is "USD", then 1 unit is one US
4315	// dollar.
4316	Units int64 `json:"units,omitempty,string"`
4317
4318	// ForceSendFields is a list of field names (e.g. "CurrencyCode") to
4319	// unconditionally include in API requests. By default, fields with
4320	// empty values are omitted from API requests. However, any non-pointer,
4321	// non-interface field appearing in ForceSendFields will be sent to the
4322	// server regardless of whether the field is empty or not. This may be
4323	// used to include empty fields in Patch requests.
4324	ForceSendFields []string `json:"-"`
4325
4326	// NullFields is a list of field names (e.g. "CurrencyCode") to include
4327	// in API requests with the JSON null value. By default, fields with
4328	// empty values are omitted from API requests. However, any field with
4329	// an empty value appearing in NullFields will be sent to the server as
4330	// null. It is an error if a field in this list has a non-empty value.
4331	// This may be used to include null fields in Patch requests.
4332	NullFields []string `json:"-"`
4333}
4334
4335func (s *Money) MarshalJSON() ([]byte, error) {
4336	type NoMethod Money
4337	raw := NoMethod(*s)
4338	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4339}
4340
4341// NamespacedDebugInput: Next ID: 15
4342type NamespacedDebugInput struct {
4343	// AbsolutelyForcedExpNames: Set of experiment names to be absolutely
4344	// forced.
4345	// These experiments will be forced without evaluating the conditions.
4346	AbsolutelyForcedExpNames []string `json:"absolutelyForcedExpNames,omitempty"`
4347
4348	// AbsolutelyForcedExpTags: Set of experiment tags to be absolutely
4349	// forced.
4350	// The experiments with these tags will be forced without evaluating
4351	// the
4352	// conditions.
4353	AbsolutelyForcedExpTags []string `json:"absolutelyForcedExpTags,omitempty"`
4354
4355	// AbsolutelyForcedExps: Set of experiment ids to be absolutely
4356	// forced.
4357	// These ids will be forced without evaluating the conditions.
4358	AbsolutelyForcedExps []int64 `json:"absolutelyForcedExps,omitempty"`
4359
4360	// ConditionallyForcedExpNames: Set of experiment names to be
4361	// conditionally forced.
4362	// These experiments will be forced only if their conditions and
4363	// their
4364	// parent domain's conditions are true.
4365	ConditionallyForcedExpNames []string `json:"conditionallyForcedExpNames,omitempty"`
4366
4367	// ConditionallyForcedExpTags: Set of experiment tags to be
4368	// conditionally forced.
4369	// The experiments with these tags will be forced only if their
4370	// conditions
4371	// and their parent domain's conditions are true.
4372	ConditionallyForcedExpTags []string `json:"conditionallyForcedExpTags,omitempty"`
4373
4374	// ConditionallyForcedExps: Set of experiment ids to be conditionally
4375	// forced.
4376	// These ids will be forced only if their conditions and their
4377	// parent
4378	// domain's conditions are true.
4379	ConditionallyForcedExps []int64 `json:"conditionallyForcedExps,omitempty"`
4380
4381	// DisableAutomaticEnrollmentSelection: If true, disable automatic
4382	// enrollment selection (at all diversion
4383	// points). Automatic enrollment selection means experiment
4384	// selection
4385	// process based on the experiment's automatic enrollment condition.
4386	// This
4387	// does not disable selection of forced experiments.
4388	DisableAutomaticEnrollmentSelection bool `json:"disableAutomaticEnrollmentSelection,omitempty"`
4389
4390	// DisableExpNames: Set of experiment names to be disabled.
4391	// If an experiment is disabled, it is never selected nor forced.
4392	// If an aggregate experiment is disabled, its partitions are
4393	// disabled
4394	// together. If an experiment with an enrollment is disabled, the
4395	// enrollment
4396	// is disabled together. If a name corresponds to a domain, the
4397	// domain
4398	// itself and all descendant experiments and domains are disabled
4399	// together.
4400	DisableExpNames []string `json:"disableExpNames,omitempty"`
4401
4402	// DisableExpTags: Set of experiment tags to be disabled. All
4403	// experiments that are tagged
4404	// with one or more of these tags are disabled.
4405	// If an experiment is disabled, it is never selected nor forced.
4406	// If an aggregate experiment is disabled, its partitions are
4407	// disabled
4408	// together. If an experiment with an enrollment is disabled, the
4409	// enrollment
4410	// is disabled together.
4411	DisableExpTags []string `json:"disableExpTags,omitempty"`
4412
4413	// DisableExps: Set of experiment ids to be disabled.
4414	// If an experiment is disabled, it is never selected nor forced.
4415	// If an aggregate experiment is disabled, its partitions are
4416	// disabled
4417	// together. If an experiment with an enrollment is disabled, the
4418	// enrollment
4419	// is disabled together. If an ID corresponds to a domain, the domain
4420	// itself
4421	// and all descendant experiments and domains are disabled together.
4422	DisableExps []int64 `json:"disableExps,omitempty"`
4423
4424	// DisableManualEnrollmentSelection: If true, disable manual enrollment
4425	// selection (at all diversion points).
4426	// Manual enrollment selection means experiment selection process based
4427	// on
4428	// the request's manual enrollment states (a.k.a. opt-in
4429	// experiments).
4430	// This does not disable selection of forced experiments.
4431	DisableManualEnrollmentSelection bool `json:"disableManualEnrollmentSelection,omitempty"`
4432
4433	// DisableOrganicSelection: If true, disable organic experiment
4434	// selection (at all diversion points).
4435	// Organic selection means experiment selection process based on
4436	// traffic
4437	// allocation and diversion condition evaluation.
4438	// This does not disable selection of forced experiments.
4439	//
4440	// This is useful in cases when it is not known whether experiment
4441	// selection
4442	// behavior is responsible for a error or breakage. Disabling
4443	// organic
4444	// selection may help to isolate the cause of a given problem.
4445	DisableOrganicSelection bool `json:"disableOrganicSelection,omitempty"`
4446
4447	// ForcedFlags: Flags to force in a particular experiment state.
4448	// Map from flag name to flag value.
4449	ForcedFlags map[string]string `json:"forcedFlags,omitempty"`
4450
4451	// ForcedRollouts: Rollouts to force in a particular experiment
4452	// state.
4453	// Map from rollout name to rollout value.
4454	ForcedRollouts map[string]bool `json:"forcedRollouts,omitempty"`
4455
4456	// ForceSendFields is a list of field names (e.g.
4457	// "AbsolutelyForcedExpNames") to unconditionally include in API
4458	// requests. By default, fields with empty values are omitted from API
4459	// requests. However, any non-pointer, non-interface field appearing in
4460	// ForceSendFields will be sent to the server regardless of whether the
4461	// field is empty or not. This may be used to include empty fields in
4462	// Patch requests.
4463	ForceSendFields []string `json:"-"`
4464
4465	// NullFields is a list of field names (e.g. "AbsolutelyForcedExpNames")
4466	// to include in API requests with the JSON null value. By default,
4467	// fields with empty values are omitted from API requests. However, any
4468	// field with an empty value appearing in NullFields will be sent to the
4469	// server as null. It is an error if a field in this list has a
4470	// non-empty value. This may be used to include null fields in Patch
4471	// requests.
4472	NullFields []string `json:"-"`
4473}
4474
4475func (s *NamespacedDebugInput) MarshalJSON() ([]byte, error) {
4476	type NoMethod NamespacedDebugInput
4477	raw := NoMethod(*s)
4478	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4479}
4480
4481// NumericBucketingOption: Input only.
4482//
4483// Use this field to specify bucketing option for the histogram search
4484// response.
4485type NumericBucketingOption struct {
4486	// BucketBounds: Required. Two adjacent values form a histogram bucket.
4487	// Values should be in
4488	// ascending order. For example, if [5, 10, 15] are provided, four
4489	// buckets are
4490	// created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most
4491	// 20
4492	// [buckets_bound is supported.
4493	BucketBounds []float64 `json:"bucketBounds,omitempty"`
4494
4495	// RequiresMinMax: Optional. If set to true, the histogram result
4496	// includes minimum/maximum
4497	// value of the numeric field.
4498	RequiresMinMax bool `json:"requiresMinMax,omitempty"`
4499
4500	// ForceSendFields is a list of field names (e.g. "BucketBounds") to
4501	// unconditionally include in API requests. By default, fields with
4502	// empty values are omitted from API requests. However, any non-pointer,
4503	// non-interface field appearing in ForceSendFields will be sent to the
4504	// server regardless of whether the field is empty or not. This may be
4505	// used to include empty fields in Patch requests.
4506	ForceSendFields []string `json:"-"`
4507
4508	// NullFields is a list of field names (e.g. "BucketBounds") to include
4509	// in API requests with the JSON null value. By default, fields with
4510	// empty values are omitted from API requests. However, any field with
4511	// an empty value appearing in NullFields will be sent to the server as
4512	// null. It is an error if a field in this list has a non-empty value.
4513	// This may be used to include null fields in Patch requests.
4514	NullFields []string `json:"-"`
4515}
4516
4517func (s *NumericBucketingOption) MarshalJSON() ([]byte, error) {
4518	type NoMethod NumericBucketingOption
4519	raw := NoMethod(*s)
4520	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4521}
4522
4523// NumericBucketingResult: Output only.
4524//
4525// Custom numeric bucketing result.
4526type NumericBucketingResult struct {
4527	// Counts: Count within each bucket. Its size is the length
4528	// of
4529	// NumericBucketingOption.bucket_bounds plus 1.
4530	Counts []*BucketizedCount `json:"counts,omitempty"`
4531
4532	// MaxValue: Stores the maximum value of the numeric field. Will be
4533	// populated only if
4534	// [NumericBucketingOption.requires_min_max] is set to true.
4535	MaxValue float64 `json:"maxValue,omitempty"`
4536
4537	// MinValue: Stores the minimum value of the numeric field. Will be
4538	// populated only if
4539	// [NumericBucketingOption.requires_min_max] is set to true.
4540	MinValue float64 `json:"minValue,omitempty"`
4541
4542	// ForceSendFields is a list of field names (e.g. "Counts") to
4543	// unconditionally include in API requests. By default, fields with
4544	// empty values are omitted from API requests. However, any non-pointer,
4545	// non-interface field appearing in ForceSendFields will be sent to the
4546	// server regardless of whether the field is empty or not. This may be
4547	// used to include empty fields in Patch requests.
4548	ForceSendFields []string `json:"-"`
4549
4550	// NullFields is a list of field names (e.g. "Counts") to include in API
4551	// requests with the JSON null value. By default, fields with empty
4552	// values are omitted from API requests. However, any field with an
4553	// empty value appearing in NullFields will be sent to the server as
4554	// null. It is an error if a field in this list has a non-empty value.
4555	// This may be used to include null fields in Patch requests.
4556	NullFields []string `json:"-"`
4557}
4558
4559func (s *NumericBucketingResult) MarshalJSON() ([]byte, error) {
4560	type NoMethod NumericBucketingResult
4561	raw := NoMethod(*s)
4562	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4563}
4564
4565func (s *NumericBucketingResult) UnmarshalJSON(data []byte) error {
4566	type NoMethod NumericBucketingResult
4567	var s1 struct {
4568		MaxValue gensupport.JSONFloat64 `json:"maxValue"`
4569		MinValue gensupport.JSONFloat64 `json:"minValue"`
4570		*NoMethod
4571	}
4572	s1.NoMethod = (*NoMethod)(s)
4573	if err := json.Unmarshal(data, &s1); err != nil {
4574		return err
4575	}
4576	s.MaxValue = float64(s1.MaxValue)
4577	s.MinValue = float64(s1.MinValue)
4578	return nil
4579}
4580
4581// PostalAddress: Represents a postal address, e.g. for postal delivery
4582// or payments addresses.
4583// Given a postal address, a postal service can deliver items to a
4584// premise, P.O.
4585// Box or similar.
4586// It is not intended to model geographical locations (roads,
4587// towns,
4588// mountains).
4589//
4590// In typical usage an address would be created via user input or from
4591// importing
4592// existing data, depending on the type of process.
4593//
4594// Advice on address input / editing:
4595//  - Use an i18n-ready address widget such as
4596//    https://github.com/google/libaddressinput)
4597// - Users should not be presented with UI elements for input or editing
4598// of
4599//   fields outside countries where that field is used.
4600//
4601// For more guidance on how to use this schema, please
4602// see:
4603// https://support.google.com/business/answer/6397478
4604type PostalAddress struct {
4605	// AddressLines: Unstructured address lines describing the lower levels
4606	// of an address.
4607	//
4608	// Because values in address_lines do not have type information and
4609	// may
4610	// sometimes contain multiple values in a single field (e.g.
4611	// "Austin, TX"), it is important that the line order is clear. The
4612	// order of
4613	// address lines should be "envelope order" for the country/region of
4614	// the
4615	// address. In places where this can vary (e.g. Japan), address_language
4616	// is
4617	// used to make it explicit (e.g. "ja" for large-to-small ordering
4618	// and
4619	// "ja-Latn" or "en" for small-to-large). This way, the most specific
4620	// line of
4621	// an address can be selected based on the language.
4622	//
4623	// The minimum permitted structural representation of an address
4624	// consists
4625	// of a region_code with all remaining information placed in
4626	// the
4627	// address_lines. It would be possible to format such an address
4628	// very
4629	// approximately without geocoding, but no semantic reasoning could
4630	// be
4631	// made about any of the address components until it was at
4632	// least
4633	// partially resolved.
4634	//
4635	// Creating an address only containing a region_code and address_lines,
4636	// and
4637	// then geocoding is the recommended way to handle completely
4638	// unstructured
4639	// addresses (as opposed to guessing which parts of the address should
4640	// be
4641	// localities or administrative areas).
4642	AddressLines []string `json:"addressLines,omitempty"`
4643
4644	// AdministrativeArea: Optional. Highest administrative subdivision
4645	// which is used for postal
4646	// addresses of a country or region.
4647	// For example, this can be a state, a province, an oblast, or a
4648	// prefecture.
4649	// Specifically, for Spain this is the province and not the
4650	// autonomous
4651	// community (e.g. "Barcelona" and not "Catalonia").
4652	// Many countries don't use an administrative area in postal addresses.
4653	// E.g.
4654	// in Switzerland this should be left unpopulated.
4655	AdministrativeArea string `json:"administrativeArea,omitempty"`
4656
4657	// LanguageCode: Optional. BCP-47 language code of the contents of this
4658	// address (if
4659	// known). This is often the UI language of the input form or is
4660	// expected
4661	// to match one of the languages used in the address' country/region, or
4662	// their
4663	// transliterated equivalents.
4664	// This can affect formatting in certain countries, but is not
4665	// critical
4666	// to the correctness of the data and will never affect any validation
4667	// or
4668	// other non-formatting related operations.
4669	//
4670	// If this value is not known, it should be omitted (rather than
4671	// specifying a
4672	// possibly incorrect default).
4673	//
4674	// Examples: "zh-Hant", "ja", "ja-Latn", "en".
4675	LanguageCode string `json:"languageCode,omitempty"`
4676
4677	// Locality: Optional. Generally refers to the city/town portion of the
4678	// address.
4679	// Examples: US city, IT comune, UK post town.
4680	// In regions of the world where localities are not well defined or do
4681	// not fit
4682	// into this structure well, leave locality empty and use address_lines.
4683	Locality string `json:"locality,omitempty"`
4684
4685	// Organization: Optional. The name of the organization at the address.
4686	Organization string `json:"organization,omitempty"`
4687
4688	// PostalCode: Optional. Postal code of the address. Not all countries
4689	// use or require
4690	// postal codes to be present, but where they are used, they may
4691	// trigger
4692	// additional validation with other parts of the address (e.g.
4693	// state/zip
4694	// validation in the U.S.A.).
4695	PostalCode string `json:"postalCode,omitempty"`
4696
4697	// Recipients: Optional. The recipient at the address.
4698	// This field may, under certain circumstances, contain multiline
4699	// information.
4700	// For example, it might contain "care of" information.
4701	Recipients []string `json:"recipients,omitempty"`
4702
4703	// RegionCode: Required. CLDR region code of the country/region of the
4704	// address. This
4705	// is never inferred and it is up to the user to ensure the value
4706	// is
4707	// correct. See http://cldr.unicode.org/
4708	// and
4709	// http://www.unicode.org/cldr/charts/30/supplemental/territory_infor
4710	// mation.html
4711	// for details. Example: "CH" for Switzerland.
4712	RegionCode string `json:"regionCode,omitempty"`
4713
4714	// Revision: The schema revision of the `PostalAddress`. This must be
4715	// set to 0, which is
4716	// the latest revision.
4717	//
4718	// All new revisions **must** be backward compatible with old revisions.
4719	Revision int64 `json:"revision,omitempty"`
4720
4721	// SortingCode: Optional. Additional, country-specific, sorting code.
4722	// This is not used
4723	// in most regions. Where it is used, the value is either a string
4724	// like
4725	// "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a
4726	// number
4727	// alone, representing the "sector code" (Jamaica), "delivery area
4728	// indicator"
4729	// (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
4730	SortingCode string `json:"sortingCode,omitempty"`
4731
4732	// Sublocality: Optional. Sublocality of the address.
4733	// For example, this can be neighborhoods, boroughs, districts.
4734	Sublocality string `json:"sublocality,omitempty"`
4735
4736	// ForceSendFields is a list of field names (e.g. "AddressLines") to
4737	// unconditionally include in API requests. By default, fields with
4738	// empty values are omitted from API requests. However, any non-pointer,
4739	// non-interface field appearing in ForceSendFields will be sent to the
4740	// server regardless of whether the field is empty or not. This may be
4741	// used to include empty fields in Patch requests.
4742	ForceSendFields []string `json:"-"`
4743
4744	// NullFields is a list of field names (e.g. "AddressLines") to include
4745	// in API requests with the JSON null value. By default, fields with
4746	// empty values are omitted from API requests. However, any field with
4747	// an empty value appearing in NullFields will be sent to the server as
4748	// null. It is an error if a field in this list has a non-empty value.
4749	// This may be used to include null fields in Patch requests.
4750	NullFields []string `json:"-"`
4751}
4752
4753func (s *PostalAddress) MarshalJSON() ([]byte, error) {
4754	type NoMethod PostalAddress
4755	raw := NoMethod(*s)
4756	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4757}
4758
4759// RequestMetadata: Input only.
4760//
4761// Meta information related to the job searcher or entity
4762// conducting the job search. This information is used to improve
4763// the
4764// performance of the service.
4765type RequestMetadata struct {
4766	// DeviceInfo: Optional. The type of device used by the job seeker at
4767	// the time of the call to the
4768	// service.
4769	DeviceInfo *DeviceInfo `json:"deviceInfo,omitempty"`
4770
4771	// Domain: Required. The client-defined scope or source of the service
4772	// call, which typically
4773	// is the domain on
4774	// which the service has been implemented and is currently being
4775	// run.
4776	//
4777	// For example, if the service is being run by client <em>Foo,
4778	// Inc.</em>, on
4779	// job board www.foo.com and career site www.bar.com, then this field
4780	// is
4781	// set to "foo.com" for use on the job board, and "bar.com" for use on
4782	// the
4783	// career site.
4784	//
4785	// If this field is not available for some reason, send "UNKNOWN". Note
4786	// that
4787	// any improvements to the service model for a particular tenant site
4788	// rely on
4789	// this field being set correctly to some domain.
4790	Domain string `json:"domain,omitempty"`
4791
4792	// SessionId: Required. A unique session identification string. A
4793	// session is defined as the
4794	// duration of an end user's interaction with the service over a
4795	// period.
4796	// Obfuscate this field for privacy concerns before
4797	// providing it to the API.
4798	//
4799	// If this field is not available for some reason, please send
4800	// "UNKNOWN". Note
4801	// that any improvements to the service model for a particular tenant
4802	// site,
4803	// rely on this field being set correctly to some unique session_id.
4804	SessionId string `json:"sessionId,omitempty"`
4805
4806	// UserId: Required. A unique user identification string, as determined
4807	// by the client. The
4808	// client is responsible for ensuring client-level uniqueness of this
4809	// value
4810	// in order to have the strongest positive impact on search
4811	// quality.
4812	// Obfuscate this field for privacy concerns before
4813	// providing it to the service.
4814	//
4815	// If this field is not available for some reason, please send
4816	// "UNKNOWN". Note
4817	// that any improvements to the service model for a particular tenant
4818	// site,
4819	// rely on this field being set correctly to some unique user_id.
4820	UserId string `json:"userId,omitempty"`
4821
4822	// ForceSendFields is a list of field names (e.g. "DeviceInfo") to
4823	// unconditionally include in API requests. By default, fields with
4824	// empty values are omitted from API requests. However, any non-pointer,
4825	// non-interface field appearing in ForceSendFields will be sent to the
4826	// server regardless of whether the field is empty or not. This may be
4827	// used to include empty fields in Patch requests.
4828	ForceSendFields []string `json:"-"`
4829
4830	// NullFields is a list of field names (e.g. "DeviceInfo") to include in
4831	// API requests with the JSON null value. By default, fields with empty
4832	// values are omitted from API requests. However, any field with an
4833	// empty value appearing in NullFields will be sent to the server as
4834	// null. It is an error if a field in this list has a non-empty value.
4835	// This may be used to include null fields in Patch requests.
4836	NullFields []string `json:"-"`
4837}
4838
4839func (s *RequestMetadata) MarshalJSON() ([]byte, error) {
4840	type NoMethod RequestMetadata
4841	raw := NoMethod(*s)
4842	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4843}
4844
4845// ResponseMetadata: Output only.
4846//
4847// Additional information returned to client, such as
4848// debugging
4849// information.
4850type ResponseMetadata struct {
4851	// ExperimentIdList: Identifiers for the versions of the search
4852	// algorithm used during
4853	// this API invocation if multiple algorithms are used.
4854	// The default value is empty.
4855	// For search response only.
4856	ExperimentIdList []int64 `json:"experimentIdList,omitempty"`
4857
4858	// Mode: For search response only. Indicates the mode of a performed
4859	// search.
4860	//
4861	// Possible values:
4862	//   "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't
4863	// specified.
4864	//   "JOB_SEARCH" - The job search doesn't include support for featured
4865	// jobs.
4866	//   "FEATURED_JOB_SEARCH" - The job search matches only against
4867	// featured jobs (jobs with a
4868	// promotionValue > 0). This method doesn't return any jobs having
4869	// a
4870	// promotionValue <= 0. The search results order is determined by
4871	// the
4872	// promotionValue (jobs with a higher promotionValue are returned higher
4873	// up in
4874	// the search results), with relevance being used as a tiebreaker.
4875	//   "EMAIL_ALERT_SEARCH" - Deprecated. Please use the
4876	// SearchJobsForAlert API.
4877	//
4878	// The job search matches against jobs suited to email notifications.
4879	Mode string `json:"mode,omitempty"`
4880
4881	// RequestId: A unique id associated with this call.
4882	// This id is logged for tracking purposes.
4883	RequestId string `json:"requestId,omitempty"`
4884
4885	// ForceSendFields is a list of field names (e.g. "ExperimentIdList") to
4886	// unconditionally include in API requests. By default, fields with
4887	// empty values are omitted from API requests. However, any non-pointer,
4888	// non-interface field appearing in ForceSendFields will be sent to the
4889	// server regardless of whether the field is empty or not. This may be
4890	// used to include empty fields in Patch requests.
4891	ForceSendFields []string `json:"-"`
4892
4893	// NullFields is a list of field names (e.g. "ExperimentIdList") to
4894	// include in API requests with the JSON null value. By default, fields
4895	// with empty values are omitted from API requests. However, any field
4896	// with an empty value appearing in NullFields will be sent to the
4897	// server as null. It is an error if a field in this list has a
4898	// non-empty value. This may be used to include null fields in Patch
4899	// requests.
4900	NullFields []string `json:"-"`
4901}
4902
4903func (s *ResponseMetadata) MarshalJSON() ([]byte, error) {
4904	type NoMethod ResponseMetadata
4905	raw := NoMethod(*s)
4906	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4907}
4908
4909// SearchJobsRequest: Input only.
4910//
4911// The Request body of the `SearchJobs` call.
4912type SearchJobsRequest struct {
4913	// DisableRelevanceThresholding: Optional. Controls whether to disable
4914	// relevance thresholding. Relevance
4915	// thresholding removes jobs that have low relevance in search
4916	// results,
4917	// for example, removing "Assistant to the CEO" positions from the
4918	// search
4919	// results of a search for "CEO".
4920	//
4921	// Disabling relevance thresholding improves the accuracy of
4922	// subsequent
4923	// search requests.
4924	//
4925	// Defaults to false.
4926	DisableRelevanceThresholding bool `json:"disableRelevanceThresholding,omitempty"`
4927
4928	// EnableBroadening: Optional. Controls whether to broaden the search
4929	// when it produces sparse results.
4930	// Broadened queries append results to the end of the matching
4931	// results
4932	// list.
4933	//
4934	// Defaults to false.
4935	EnableBroadening bool `json:"enableBroadening,omitempty"`
4936
4937	// EnablePreciseResultSize: Optional. Controls if the search job request
4938	// requires the return of a precise
4939	// count of the first 300 results. Setting this to `true`
4940	// ensures
4941	// consistency in the number of results per page. Best practice is to
4942	// set this
4943	// value to true if a client allows users to jump directly to
4944	// a
4945	// non-sequential search results page.
4946	//
4947	// Enabling this flag may adversely impact performance.
4948	//
4949	// Defaults to false.
4950	EnablePreciseResultSize bool `json:"enablePreciseResultSize,omitempty"`
4951
4952	// Filters: Deprecated. Use query instead.
4953	//
4954	// Optional.
4955	//
4956	// Restrictions on the scope of the search request, such as filtering
4957	// by location.
4958	Filters *JobFilters `json:"filters,omitempty"`
4959
4960	// HistogramFacets: Optional. Restrictions on what fields to perform
4961	// histogram on, such as
4962	// `COMPANY_SIZE` etc.
4963	HistogramFacets *HistogramFacets `json:"histogramFacets,omitempty"`
4964
4965	// JobView: Optional. The number of job attributes returned for jobs in
4966	// the
4967	// search response. Defaults to JobView.SMALL if no value is specified.
4968	//
4969	// Possible values:
4970	//   "JOB_VIEW_UNSPECIFIED" - Default value.
4971	//   "SMALL" - A small view of the job, with the following attributes in
4972	// the search
4973	// results: Job.name, Job.requisition_id,
4974	// Job.job_title,
4975	// Job.company_name, Job.job_locations,
4976	// Job.description,
4977	// Job.visibility.
4978	// Note: Job.description is deprecated. It is scheduled to be
4979	// removed
4980	// from MatchingJob.Job objects in the SearchJobsResponse results
4981	// on 12/31/2018.
4982	//   "MINIMAL" - A minimal view of the job, with the following
4983	// attributes in the search
4984	// results: Job.name, Job.requisition_id,
4985	// Job.job_title,
4986	// Job.company_name, Job.job_locations.
4987	//   "FULL" - All available attributes are included in the search
4988	// results.
4989	// Note: [Job.description, Job.responsibilities,
4990	// Job.qualifications and Job.incentives are deprecated.
4991	// These fields are scheduled to be removed from MatchingJob.Job
4992	// objects
4993	// in the SearchJobsResponse results on 12/31/2018.
4994	// See the alternative MatchingJob.search_text_snippet
4995	// and
4996	// MatchingJob.job_summary fields.
4997	JobView string `json:"jobView,omitempty"`
4998
4999	// Mode: Required. Mode of a search.
5000	//
5001	// Possible values:
5002	//   "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't
5003	// specified.
5004	//   "JOB_SEARCH" - The job search doesn't include support for featured
5005	// jobs.
5006	//   "FEATURED_JOB_SEARCH" - The job search matches only against
5007	// featured jobs (jobs with a
5008	// promotionValue > 0). This method doesn't return any jobs having
5009	// a
5010	// promotionValue <= 0. The search results order is determined by
5011	// the
5012	// promotionValue (jobs with a higher promotionValue are returned higher
5013	// up in
5014	// the search results), with relevance being used as a tiebreaker.
5015	//   "EMAIL_ALERT_SEARCH" - Deprecated. Please use the
5016	// SearchJobsForAlert API.
5017	//
5018	// The job search matches against jobs suited to email notifications.
5019	Mode string `json:"mode,omitempty"`
5020
5021	// Offset: Optional. An integer that specifies the current offset (that
5022	// is, starting result
5023	// location, amongst the jobs deemed by the API as relevant) in
5024	// search
5025	// results. This field is only considered if page_token is unset.
5026	//
5027	// For example, 0 means to  return results starting from the first
5028	// matching
5029	// job, and 10 means to return from the 11th job. This can be used
5030	// for
5031	// pagination, (for example, pageSize = 10 and offset = 10 means to
5032	// return
5033	// from the second page).
5034	Offset int64 `json:"offset,omitempty"`
5035
5036	// OrderBy: Deprecated. Use sort_by instead.
5037	//
5038	// Optional.
5039	//
5040	// The criteria determining how search results are sorted.
5041	// Defaults to SortBy.RELEVANCE_DESC if no value is specified.
5042	//
5043	// Possible values:
5044	//   "SORT_BY_UNSPECIFIED" - Default value.
5045	//   "RELEVANCE_DESC" - By descending relevance, as determined by the
5046	// API algorithms.
5047	//
5048	// Relevance thresholding of query results is only available for queries
5049	// if
5050	// RELEVANCE_DESC sort ordering is specified.
5051	//   "PUBLISHED_DATE_DESC" - Sort by published date descending.
5052	//   "UPDATED_DATE_DESC" - Sort by updated date descending.
5053	//   "TITLE" - Sort by job title ascending.
5054	//   "TITLE_DESC" - Sort by job title descending.
5055	//   "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base
5056	// compensation in ascending order.
5057	// If job's annualized base compensation is unspecified, they are put
5058	// at
5059	// the end of search result.
5060	//   "ANNUALIZED_TOTAL_COMPENSATION" - Sort by job annualized total
5061	// compensation in ascending order.
5062	// If job's annualized total compensation is unspecified, they are put
5063	// at
5064	// the end of search result.
5065	//   "ANNUALIZED_BASE_COMPENSATION_DESC" - Sort by job annualized base
5066	// compensation in descending order.
5067	// If job's annualized base compensation is unspecified, they are put
5068	// at
5069	// the end of search result.
5070	//   "ANNUALIZED_TOTAL_COMPENSATION_DESC" - Sort by job annualized total
5071	// compensation in descending order.
5072	// If job's annualized total compensation is unspecified, they are put
5073	// at
5074	// the end of search result.
5075	OrderBy string `json:"orderBy,omitempty"`
5076
5077	// PageSize: Optional. A limit on the number of jobs returned in the
5078	// search results.
5079	// Increasing this value above the default value of 10 can increase
5080	// search
5081	// response time. The value can be between 1 and 100.
5082	PageSize int64 `json:"pageSize,omitempty"`
5083
5084	// PageToken: Optional. The token specifying the current offset
5085	// within
5086	// search results. See SearchJobsResponse.next_page_token for
5087	// an explanation of how to obtain the next set of query results.
5088	PageToken string `json:"pageToken,omitempty"`
5089
5090	// Query: Optional. Query used to search against jobs, such as keyword,
5091	// location filters, etc.
5092	Query *JobQuery `json:"query,omitempty"`
5093
5094	// RequestMetadata: Required. The meta information collected about the
5095	// job searcher, used to improve the
5096	// search quality of the service. The identifiers, (such as `user_id`)
5097	// are
5098	// provided by users, and must be unique and consistent.
5099	RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`
5100
5101	// SortBy: Optional. The criteria determining how search results are
5102	// sorted.
5103	// Defaults to SortBy.RELEVANCE_DESC if no value is specified.
5104	//
5105	// Possible values:
5106	//   "SORT_BY_UNSPECIFIED" - Default value.
5107	//   "RELEVANCE_DESC" - By descending relevance, as determined by the
5108	// API algorithms.
5109	//
5110	// Relevance thresholding of query results is only available for queries
5111	// if
5112	// RELEVANCE_DESC sort ordering is specified.
5113	//   "PUBLISHED_DATE_DESC" - Sort by published date descending.
5114	//   "UPDATED_DATE_DESC" - Sort by updated date descending.
5115	//   "TITLE" - Sort by job title ascending.
5116	//   "TITLE_DESC" - Sort by job title descending.
5117	//   "ANNUALIZED_BASE_COMPENSATION" - Sort by job annualized base
5118	// compensation in ascending order.
5119	// If job's annualized base compensation is unspecified, they are put
5120	// at
5121	// the end of search result.
5122	//   "ANNUALIZED_TOTAL_COMPENSATION" - Sort by job annualized total
5123	// compensation in ascending order.
5124	// If job's annualized total compensation is unspecified, they are put
5125	// at
5126	// the end of search result.
5127	//   "ANNUALIZED_BASE_COMPENSATION_DESC" - Sort by job annualized base
5128	// compensation in descending order.
5129	// If job's annualized base compensation is unspecified, they are put
5130	// at
5131	// the end of search result.
5132	//   "ANNUALIZED_TOTAL_COMPENSATION_DESC" - Sort by job annualized total
5133	// compensation in descending order.
5134	// If job's annualized total compensation is unspecified, they are put
5135	// at
5136	// the end of search result.
5137	SortBy string `json:"sortBy,omitempty"`
5138
5139	// ForceSendFields is a list of field names (e.g.
5140	// "DisableRelevanceThresholding") to unconditionally include in API
5141	// requests. By default, fields with empty values are omitted from API
5142	// requests. However, any non-pointer, non-interface field appearing in
5143	// ForceSendFields will be sent to the server regardless of whether the
5144	// field is empty or not. This may be used to include empty fields in
5145	// Patch requests.
5146	ForceSendFields []string `json:"-"`
5147
5148	// NullFields is a list of field names (e.g.
5149	// "DisableRelevanceThresholding") to include in API requests with the
5150	// JSON null value. By default, fields with empty values are omitted
5151	// from API requests. However, any field with an empty value appearing
5152	// in NullFields will be sent to the server as null. It is an error if a
5153	// field in this list has a non-empty value. This may be used to include
5154	// null fields in Patch requests.
5155	NullFields []string `json:"-"`
5156}
5157
5158func (s *SearchJobsRequest) MarshalJSON() ([]byte, error) {
5159	type NoMethod SearchJobsRequest
5160	raw := NoMethod(*s)
5161	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5162}
5163
5164// SearchJobsResponse: Output only.
5165//
5166// Response for SearchJob method.
5167type SearchJobsResponse struct {
5168	// AppliedCommuteFilter: The commute filter the service applied to the
5169	// specified query. This
5170	// information is only available when query has a valid
5171	// CommutePreference.
5172	AppliedCommuteFilter *CommutePreference `json:"appliedCommuteFilter,omitempty"`
5173
5174	// AppliedJobLocationFilters: The location filters that the service
5175	// applied to the specified query. If
5176	// any filters are lat-lng based, the JobLocation.location_type
5177	// is
5178	// JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED.
5179	AppliedJobLocationFilters []*JobLocation `json:"appliedJobLocationFilters,omitempty"`
5180
5181	// EstimatedTotalSize: An estimation of the number of jobs that match
5182	// the specified query.
5183	//
5184	// This number is not guaranteed to be accurate. For accurate
5185	// results,
5186	// seenenable_precise_result_size.
5187	EstimatedTotalSize int64 `json:"estimatedTotalSize,omitempty,string"`
5188
5189	// HistogramResults: The histogram results that match
5190	// specified
5191	// SearchJobsRequest.HistogramFacets.
5192	HistogramResults *HistogramResults `json:"histogramResults,omitempty"`
5193
5194	// JobView: Corresponds to SearchJobsRequest.job_view.
5195	//
5196	// Possible values:
5197	//   "JOB_VIEW_UNSPECIFIED" - Default value.
5198	//   "SMALL" - A small view of the job, with the following attributes in
5199	// the search
5200	// results: Job.name, Job.requisition_id,
5201	// Job.job_title,
5202	// Job.company_name, Job.job_locations,
5203	// Job.description,
5204	// Job.visibility.
5205	// Note: Job.description is deprecated. It is scheduled to be
5206	// removed
5207	// from MatchingJob.Job objects in the SearchJobsResponse results
5208	// on 12/31/2018.
5209	//   "MINIMAL" - A minimal view of the job, with the following
5210	// attributes in the search
5211	// results: Job.name, Job.requisition_id,
5212	// Job.job_title,
5213	// Job.company_name, Job.job_locations.
5214	//   "FULL" - All available attributes are included in the search
5215	// results.
5216	// Note: [Job.description, Job.responsibilities,
5217	// Job.qualifications and Job.incentives are deprecated.
5218	// These fields are scheduled to be removed from MatchingJob.Job
5219	// objects
5220	// in the SearchJobsResponse results on 12/31/2018.
5221	// See the alternative MatchingJob.search_text_snippet
5222	// and
5223	// MatchingJob.job_summary fields.
5224	JobView string `json:"jobView,omitempty"`
5225
5226	// MatchingJobs: The Job entities that match the specified
5227	// SearchJobsRequest.
5228	MatchingJobs []*MatchingJob `json:"matchingJobs,omitempty"`
5229
5230	// Metadata: Additional information for the API invocation, such as the
5231	// request
5232	// tracking id.
5233	Metadata *ResponseMetadata `json:"metadata,omitempty"`
5234
5235	// NextPageToken: The token that specifies the starting position of the
5236	// next page of results.
5237	// This field is empty if there are no more results.
5238	NextPageToken string `json:"nextPageToken,omitempty"`
5239
5240	// NumJobsFromBroadenedQuery: If query broadening is enabled, we may
5241	// append additional results from the
5242	// broadened query. This number indicates how many of the jobs returned
5243	// in the
5244	// jobs field are from the broadened query. These results are always at
5245	// the
5246	// end of the jobs list. In particular, a value of 0 means all the jobs
5247	// in the
5248	// jobs list are from the original (without broadening) query. If
5249	// this
5250	// field is non-zero, subsequent requests with offset after this result
5251	// set
5252	// should contain all broadened results.
5253	NumJobsFromBroadenedQuery int64 `json:"numJobsFromBroadenedQuery,omitempty"`
5254
5255	// SpellResult: The spell checking result, and correction.
5256	SpellResult *SpellingCorrection `json:"spellResult,omitempty"`
5257
5258	// TotalSize: The precise result count, which is available only if the
5259	// client set
5260	// enable_precise_result_size to `true` or if the response
5261	// is the last page of results. Otherwise, the value will be `-1`.
5262	TotalSize int64 `json:"totalSize,omitempty,string"`
5263
5264	// ServerResponse contains the HTTP response code and headers from the
5265	// server.
5266	googleapi.ServerResponse `json:"-"`
5267
5268	// ForceSendFields is a list of field names (e.g.
5269	// "AppliedCommuteFilter") to unconditionally include in API requests.
5270	// By default, fields with empty values are omitted from API requests.
5271	// However, any non-pointer, non-interface field appearing in
5272	// ForceSendFields will be sent to the server regardless of whether the
5273	// field is empty or not. This may be used to include empty fields in
5274	// Patch requests.
5275	ForceSendFields []string `json:"-"`
5276
5277	// NullFields is a list of field names (e.g. "AppliedCommuteFilter") to
5278	// include in API requests with the JSON null value. By default, fields
5279	// with empty values are omitted from API requests. However, any field
5280	// with an empty value appearing in NullFields will be sent to the
5281	// server as null. It is an error if a field in this list has a
5282	// non-empty value. This may be used to include null fields in Patch
5283	// requests.
5284	NullFields []string `json:"-"`
5285}
5286
5287func (s *SearchJobsResponse) MarshalJSON() ([]byte, error) {
5288	type NoMethod SearchJobsResponse
5289	raw := NoMethod(*s)
5290	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5291}
5292
5293// SpellingCorrection: Output only.
5294//
5295// Spell check result.
5296type SpellingCorrection struct {
5297	// Corrected: Indicates if the query was corrected by the spell checker.
5298	Corrected bool `json:"corrected,omitempty"`
5299
5300	// CorrectedText: Correction output consisting of the corrected keyword
5301	// string.
5302	CorrectedText string `json:"correctedText,omitempty"`
5303
5304	// ForceSendFields is a list of field names (e.g. "Corrected") to
5305	// unconditionally include in API requests. By default, fields with
5306	// empty values are omitted from API requests. However, any non-pointer,
5307	// non-interface field appearing in ForceSendFields will be sent to the
5308	// server regardless of whether the field is empty or not. This may be
5309	// used to include empty fields in Patch requests.
5310	ForceSendFields []string `json:"-"`
5311
5312	// NullFields is a list of field names (e.g. "Corrected") to include in
5313	// API requests with the JSON null value. By default, fields with empty
5314	// values are omitted from API requests. However, any field with an
5315	// empty value appearing in NullFields will be sent to the server as
5316	// null. It is an error if a field in this list has a non-empty value.
5317	// This may be used to include null fields in Patch requests.
5318	NullFields []string `json:"-"`
5319}
5320
5321func (s *SpellingCorrection) MarshalJSON() ([]byte, error) {
5322	type NoMethod SpellingCorrection
5323	raw := NoMethod(*s)
5324	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5325}
5326
5327// StringValues: Represents array of string values.
5328type StringValues struct {
5329	// Values: Required. String values.
5330	Values []string `json:"values,omitempty"`
5331
5332	// ForceSendFields is a list of field names (e.g. "Values") to
5333	// unconditionally include in API requests. By default, fields with
5334	// empty values are omitted from API requests. However, any non-pointer,
5335	// non-interface field appearing in ForceSendFields will be sent to the
5336	// server regardless of whether the field is empty or not. This may be
5337	// used to include empty fields in Patch requests.
5338	ForceSendFields []string `json:"-"`
5339
5340	// NullFields is a list of field names (e.g. "Values") to include in API
5341	// requests with the JSON null value. By default, fields with empty
5342	// values are omitted from API requests. However, any field with an
5343	// empty value appearing in NullFields will be sent to the server as
5344	// null. It is an error if a field in this list has a non-empty value.
5345	// This may be used to include null fields in Patch requests.
5346	NullFields []string `json:"-"`
5347}
5348
5349func (s *StringValues) MarshalJSON() ([]byte, error) {
5350	type NoMethod StringValues
5351	raw := NoMethod(*s)
5352	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5353}
5354
5355// UpdateJobRequest: Input only.
5356//
5357// Update job request.
5358type UpdateJobRequest struct {
5359	// DisableStreetAddressResolution: Deprecated. Please use
5360	// processing_options. This flag is ignored if
5361	// processing_options is set.
5362	//
5363	// Optional.
5364	//
5365	// If set to `true`, the service does not attempt resolve a more
5366	// precise
5367	// address for the job.
5368	DisableStreetAddressResolution bool `json:"disableStreetAddressResolution,omitempty"`
5369
5370	// Job: Required. The Job to be updated.
5371	Job *Job `json:"job,omitempty"`
5372
5373	// ProcessingOptions: Optional. Options for job
5374	// processing.
5375	//
5376	// UpdateJobRequest.disable_street_address_resolution is ignored if
5377	// this
5378	// flag is set.
5379	ProcessingOptions *JobProcessingOptions `json:"processingOptions,omitempty"`
5380
5381	// UpdateJobFields: Optional but strongly recommended to be provided for
5382	// the best service
5383	// experience.
5384	//
5385	// If update_job_fields is provided, only the specified fields in
5386	// job are updated. Otherwise all the fields are updated.
5387	//
5388	// A field mask to restrict the fields that are updated. Valid values
5389	// are:
5390	//
5391	// * jobTitle
5392	// * employmentTypes
5393	// * description
5394	// * applicationUrls
5395	// * applicationEmailList
5396	// * applicationInstruction
5397	// * responsibilities
5398	// * qualifications
5399	// * educationLevels
5400	// * level
5401	// * department
5402	// * startDate
5403	// * endDate
5404	// * compensationInfo
5405	// * incentives
5406	// * languageCode
5407	// * benefits
5408	// * expireTime
5409	// * customAttributes
5410	// * visibility
5411	// * publishDate
5412	// * promotionValue
5413	// * locations
5414	// * region
5415	// * expiryDate (deprecated)
5416	// * filterableCustomFields (deprecated)
5417	// * unindexedCustomFields (deprecated)
5418	UpdateJobFields string `json:"updateJobFields,omitempty"`
5419
5420	// ForceSendFields is a list of field names (e.g.
5421	// "DisableStreetAddressResolution") to unconditionally include in API
5422	// requests. By default, fields with empty values are omitted from API
5423	// requests. However, any non-pointer, non-interface field appearing in
5424	// ForceSendFields will be sent to the server regardless of whether the
5425	// field is empty or not. This may be used to include empty fields in
5426	// Patch requests.
5427	ForceSendFields []string `json:"-"`
5428
5429	// NullFields is a list of field names (e.g.
5430	// "DisableStreetAddressResolution") to include in API requests with the
5431	// JSON null value. By default, fields with empty values are omitted
5432	// from API requests. However, any field with an empty value appearing
5433	// in NullFields will be sent to the server as null. It is an error if a
5434	// field in this list has a non-empty value. This may be used to include
5435	// null fields in Patch requests.
5436	NullFields []string `json:"-"`
5437}
5438
5439func (s *UpdateJobRequest) MarshalJSON() ([]byte, error) {
5440	type NoMethod UpdateJobRequest
5441	raw := NoMethod(*s)
5442	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
5443}
5444
5445// method id "jobs.companies.create":
5446
5447type CompaniesCreateCall struct {
5448	s          *Service
5449	company    *Company
5450	urlParams_ gensupport.URLParams
5451	ctx_       context.Context
5452	header_    http.Header
5453}
5454
5455// Create: Creates a new company entity.
5456func (r *CompaniesService) Create(company *Company) *CompaniesCreateCall {
5457	c := &CompaniesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5458	c.company = company
5459	return c
5460}
5461
5462// Fields allows partial responses to be retrieved. See
5463// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5464// for more information.
5465func (c *CompaniesCreateCall) Fields(s ...googleapi.Field) *CompaniesCreateCall {
5466	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5467	return c
5468}
5469
5470// Context sets the context to be used in this call's Do method. Any
5471// pending HTTP request will be aborted if the provided context is
5472// canceled.
5473func (c *CompaniesCreateCall) Context(ctx context.Context) *CompaniesCreateCall {
5474	c.ctx_ = ctx
5475	return c
5476}
5477
5478// Header returns an http.Header that can be modified by the caller to
5479// add HTTP headers to the request.
5480func (c *CompaniesCreateCall) Header() http.Header {
5481	if c.header_ == nil {
5482		c.header_ = make(http.Header)
5483	}
5484	return c.header_
5485}
5486
5487func (c *CompaniesCreateCall) doRequest(alt string) (*http.Response, error) {
5488	reqHeaders := make(http.Header)
5489	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
5490	for k, v := range c.header_ {
5491		reqHeaders[k] = v
5492	}
5493	reqHeaders.Set("User-Agent", c.s.userAgent())
5494	var body io.Reader = nil
5495	body, err := googleapi.WithoutDataWrapper.JSONReader(c.company)
5496	if err != nil {
5497		return nil, err
5498	}
5499	reqHeaders.Set("Content-Type", "application/json")
5500	c.urlParams_.Set("alt", alt)
5501	c.urlParams_.Set("prettyPrint", "false")
5502	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies")
5503	urls += "?" + c.urlParams_.Encode()
5504	req, err := http.NewRequest("POST", urls, body)
5505	if err != nil {
5506		return nil, err
5507	}
5508	req.Header = reqHeaders
5509	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5510}
5511
5512// Do executes the "jobs.companies.create" call.
5513// Exactly one of *Company or error will be non-nil. Any non-2xx status
5514// code is an error. Response headers are in either
5515// *Company.ServerResponse.Header or (if a response was returned at all)
5516// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5517// check whether the returned error was because http.StatusNotModified
5518// was returned.
5519func (c *CompaniesCreateCall) Do(opts ...googleapi.CallOption) (*Company, error) {
5520	gensupport.SetOptions(c.urlParams_, opts...)
5521	res, err := c.doRequest("json")
5522	if res != nil && res.StatusCode == http.StatusNotModified {
5523		if res.Body != nil {
5524			res.Body.Close()
5525		}
5526		return nil, &googleapi.Error{
5527			Code:   res.StatusCode,
5528			Header: res.Header,
5529		}
5530	}
5531	if err != nil {
5532		return nil, err
5533	}
5534	defer googleapi.CloseBody(res)
5535	if err := googleapi.CheckResponse(res); err != nil {
5536		return nil, err
5537	}
5538	ret := &Company{
5539		ServerResponse: googleapi.ServerResponse{
5540			Header:         res.Header,
5541			HTTPStatusCode: res.StatusCode,
5542		},
5543	}
5544	target := &ret
5545	if err := gensupport.DecodeResponse(target, res); err != nil {
5546		return nil, err
5547	}
5548	return ret, nil
5549	// {
5550	//   "description": "Creates a new company entity.",
5551	//   "flatPath": "v2/companies",
5552	//   "httpMethod": "POST",
5553	//   "id": "jobs.companies.create",
5554	//   "parameterOrder": [],
5555	//   "parameters": {},
5556	//   "path": "v2/companies",
5557	//   "request": {
5558	//     "$ref": "Company"
5559	//   },
5560	//   "response": {
5561	//     "$ref": "Company"
5562	//   },
5563	//   "scopes": [
5564	//     "https://www.googleapis.com/auth/cloud-platform",
5565	//     "https://www.googleapis.com/auth/jobs"
5566	//   ]
5567	// }
5568
5569}
5570
5571// method id "jobs.companies.delete":
5572
5573type CompaniesDeleteCall struct {
5574	s          *Service
5575	name       string
5576	urlParams_ gensupport.URLParams
5577	ctx_       context.Context
5578	header_    http.Header
5579}
5580
5581// Delete: Deletes the specified company.
5582func (r *CompaniesService) Delete(name string) *CompaniesDeleteCall {
5583	c := &CompaniesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5584	c.name = name
5585	return c
5586}
5587
5588// Fields allows partial responses to be retrieved. See
5589// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5590// for more information.
5591func (c *CompaniesDeleteCall) Fields(s ...googleapi.Field) *CompaniesDeleteCall {
5592	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5593	return c
5594}
5595
5596// Context sets the context to be used in this call's Do method. Any
5597// pending HTTP request will be aborted if the provided context is
5598// canceled.
5599func (c *CompaniesDeleteCall) Context(ctx context.Context) *CompaniesDeleteCall {
5600	c.ctx_ = ctx
5601	return c
5602}
5603
5604// Header returns an http.Header that can be modified by the caller to
5605// add HTTP headers to the request.
5606func (c *CompaniesDeleteCall) Header() http.Header {
5607	if c.header_ == nil {
5608		c.header_ = make(http.Header)
5609	}
5610	return c.header_
5611}
5612
5613func (c *CompaniesDeleteCall) doRequest(alt string) (*http.Response, error) {
5614	reqHeaders := make(http.Header)
5615	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
5616	for k, v := range c.header_ {
5617		reqHeaders[k] = v
5618	}
5619	reqHeaders.Set("User-Agent", c.s.userAgent())
5620	var body io.Reader = nil
5621	c.urlParams_.Set("alt", alt)
5622	c.urlParams_.Set("prettyPrint", "false")
5623	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5624	urls += "?" + c.urlParams_.Encode()
5625	req, err := http.NewRequest("DELETE", urls, body)
5626	if err != nil {
5627		return nil, err
5628	}
5629	req.Header = reqHeaders
5630	googleapi.Expand(req.URL, map[string]string{
5631		"name": c.name,
5632	})
5633	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5634}
5635
5636// Do executes the "jobs.companies.delete" call.
5637// Exactly one of *Empty or error will be non-nil. Any non-2xx status
5638// code is an error. Response headers are in either
5639// *Empty.ServerResponse.Header or (if a response was returned at all)
5640// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5641// check whether the returned error was because http.StatusNotModified
5642// was returned.
5643func (c *CompaniesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
5644	gensupport.SetOptions(c.urlParams_, opts...)
5645	res, err := c.doRequest("json")
5646	if res != nil && res.StatusCode == http.StatusNotModified {
5647		if res.Body != nil {
5648			res.Body.Close()
5649		}
5650		return nil, &googleapi.Error{
5651			Code:   res.StatusCode,
5652			Header: res.Header,
5653		}
5654	}
5655	if err != nil {
5656		return nil, err
5657	}
5658	defer googleapi.CloseBody(res)
5659	if err := googleapi.CheckResponse(res); err != nil {
5660		return nil, err
5661	}
5662	ret := &Empty{
5663		ServerResponse: googleapi.ServerResponse{
5664			Header:         res.Header,
5665			HTTPStatusCode: res.StatusCode,
5666		},
5667	}
5668	target := &ret
5669	if err := gensupport.DecodeResponse(target, res); err != nil {
5670		return nil, err
5671	}
5672	return ret, nil
5673	// {
5674	//   "description": "Deletes the specified company.",
5675	//   "flatPath": "v2/companies/{companiesId}",
5676	//   "httpMethod": "DELETE",
5677	//   "id": "jobs.companies.delete",
5678	//   "parameterOrder": [
5679	//     "name"
5680	//   ],
5681	//   "parameters": {
5682	//     "name": {
5683	//       "description": "Required. The resource name of the company to be deleted,\nsuch as, \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".",
5684	//       "location": "path",
5685	//       "pattern": "^companies/[^/]+$",
5686	//       "required": true,
5687	//       "type": "string"
5688	//     }
5689	//   },
5690	//   "path": "v2/{+name}",
5691	//   "response": {
5692	//     "$ref": "Empty"
5693	//   },
5694	//   "scopes": [
5695	//     "https://www.googleapis.com/auth/cloud-platform",
5696	//     "https://www.googleapis.com/auth/jobs"
5697	//   ]
5698	// }
5699
5700}
5701
5702// method id "jobs.companies.get":
5703
5704type CompaniesGetCall struct {
5705	s            *Service
5706	name         string
5707	urlParams_   gensupport.URLParams
5708	ifNoneMatch_ string
5709	ctx_         context.Context
5710	header_      http.Header
5711}
5712
5713// Get: Retrieves the specified company.
5714func (r *CompaniesService) Get(name string) *CompaniesGetCall {
5715	c := &CompaniesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5716	c.name = name
5717	return c
5718}
5719
5720// Fields allows partial responses to be retrieved. See
5721// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5722// for more information.
5723func (c *CompaniesGetCall) Fields(s ...googleapi.Field) *CompaniesGetCall {
5724	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5725	return c
5726}
5727
5728// IfNoneMatch sets the optional parameter which makes the operation
5729// fail if the object's ETag matches the given value. This is useful for
5730// getting updates only after the object has changed since the last
5731// request. Use googleapi.IsNotModified to check whether the response
5732// error from Do is the result of In-None-Match.
5733func (c *CompaniesGetCall) IfNoneMatch(entityTag string) *CompaniesGetCall {
5734	c.ifNoneMatch_ = entityTag
5735	return c
5736}
5737
5738// Context sets the context to be used in this call's Do method. Any
5739// pending HTTP request will be aborted if the provided context is
5740// canceled.
5741func (c *CompaniesGetCall) Context(ctx context.Context) *CompaniesGetCall {
5742	c.ctx_ = ctx
5743	return c
5744}
5745
5746// Header returns an http.Header that can be modified by the caller to
5747// add HTTP headers to the request.
5748func (c *CompaniesGetCall) Header() http.Header {
5749	if c.header_ == nil {
5750		c.header_ = make(http.Header)
5751	}
5752	return c.header_
5753}
5754
5755func (c *CompaniesGetCall) doRequest(alt string) (*http.Response, error) {
5756	reqHeaders := make(http.Header)
5757	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
5758	for k, v := range c.header_ {
5759		reqHeaders[k] = v
5760	}
5761	reqHeaders.Set("User-Agent", c.s.userAgent())
5762	if c.ifNoneMatch_ != "" {
5763		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5764	}
5765	var body io.Reader = nil
5766	c.urlParams_.Set("alt", alt)
5767	c.urlParams_.Set("prettyPrint", "false")
5768	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
5769	urls += "?" + c.urlParams_.Encode()
5770	req, err := http.NewRequest("GET", urls, body)
5771	if err != nil {
5772		return nil, err
5773	}
5774	req.Header = reqHeaders
5775	googleapi.Expand(req.URL, map[string]string{
5776		"name": c.name,
5777	})
5778	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5779}
5780
5781// Do executes the "jobs.companies.get" call.
5782// Exactly one of *Company or error will be non-nil. Any non-2xx status
5783// code is an error. Response headers are in either
5784// *Company.ServerResponse.Header or (if a response was returned at all)
5785// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
5786// check whether the returned error was because http.StatusNotModified
5787// was returned.
5788func (c *CompaniesGetCall) Do(opts ...googleapi.CallOption) (*Company, error) {
5789	gensupport.SetOptions(c.urlParams_, opts...)
5790	res, err := c.doRequest("json")
5791	if res != nil && res.StatusCode == http.StatusNotModified {
5792		if res.Body != nil {
5793			res.Body.Close()
5794		}
5795		return nil, &googleapi.Error{
5796			Code:   res.StatusCode,
5797			Header: res.Header,
5798		}
5799	}
5800	if err != nil {
5801		return nil, err
5802	}
5803	defer googleapi.CloseBody(res)
5804	if err := googleapi.CheckResponse(res); err != nil {
5805		return nil, err
5806	}
5807	ret := &Company{
5808		ServerResponse: googleapi.ServerResponse{
5809			Header:         res.Header,
5810			HTTPStatusCode: res.StatusCode,
5811		},
5812	}
5813	target := &ret
5814	if err := gensupport.DecodeResponse(target, res); err != nil {
5815		return nil, err
5816	}
5817	return ret, nil
5818	// {
5819	//   "description": "Retrieves the specified company.",
5820	//   "flatPath": "v2/companies/{companiesId}",
5821	//   "httpMethod": "GET",
5822	//   "id": "jobs.companies.get",
5823	//   "parameterOrder": [
5824	//     "name"
5825	//   ],
5826	//   "parameters": {
5827	//     "name": {
5828	//       "description": "Required. Resource name of the company to retrieve,\nsuch as \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".",
5829	//       "location": "path",
5830	//       "pattern": "^companies/[^/]+$",
5831	//       "required": true,
5832	//       "type": "string"
5833	//     }
5834	//   },
5835	//   "path": "v2/{+name}",
5836	//   "response": {
5837	//     "$ref": "Company"
5838	//   },
5839	//   "scopes": [
5840	//     "https://www.googleapis.com/auth/cloud-platform",
5841	//     "https://www.googleapis.com/auth/jobs"
5842	//   ]
5843	// }
5844
5845}
5846
5847// method id "jobs.companies.list":
5848
5849type CompaniesListCall struct {
5850	s            *Service
5851	urlParams_   gensupport.URLParams
5852	ifNoneMatch_ string
5853	ctx_         context.Context
5854	header_      http.Header
5855}
5856
5857// List: Lists all companies associated with a Cloud Talent Solution
5858// account.
5859func (r *CompaniesService) List() *CompaniesListCall {
5860	c := &CompaniesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5861	return c
5862}
5863
5864// MustHaveOpenJobs sets the optional parameter "mustHaveOpenJobs": Set
5865// to true if the companies request must have open jobs.
5866//
5867// Defaults to false.
5868//
5869// If true, at most page_size of companies are fetched, among which
5870// only those with open jobs are returned.
5871func (c *CompaniesListCall) MustHaveOpenJobs(mustHaveOpenJobs bool) *CompaniesListCall {
5872	c.urlParams_.Set("mustHaveOpenJobs", fmt.Sprint(mustHaveOpenJobs))
5873	return c
5874}
5875
5876// PageSize sets the optional parameter "pageSize": The maximum number
5877// of companies to be returned, at most 100.
5878// Default is 100 if a non-positive number is provided.
5879func (c *CompaniesListCall) PageSize(pageSize int64) *CompaniesListCall {
5880	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
5881	return c
5882}
5883
5884// PageToken sets the optional parameter "pageToken": The starting
5885// indicator from which to return results.
5886func (c *CompaniesListCall) PageToken(pageToken string) *CompaniesListCall {
5887	c.urlParams_.Set("pageToken", pageToken)
5888	return c
5889}
5890
5891// Fields allows partial responses to be retrieved. See
5892// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5893// for more information.
5894func (c *CompaniesListCall) Fields(s ...googleapi.Field) *CompaniesListCall {
5895	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5896	return c
5897}
5898
5899// IfNoneMatch sets the optional parameter which makes the operation
5900// fail if the object's ETag matches the given value. This is useful for
5901// getting updates only after the object has changed since the last
5902// request. Use googleapi.IsNotModified to check whether the response
5903// error from Do is the result of In-None-Match.
5904func (c *CompaniesListCall) IfNoneMatch(entityTag string) *CompaniesListCall {
5905	c.ifNoneMatch_ = entityTag
5906	return c
5907}
5908
5909// Context sets the context to be used in this call's Do method. Any
5910// pending HTTP request will be aborted if the provided context is
5911// canceled.
5912func (c *CompaniesListCall) Context(ctx context.Context) *CompaniesListCall {
5913	c.ctx_ = ctx
5914	return c
5915}
5916
5917// Header returns an http.Header that can be modified by the caller to
5918// add HTTP headers to the request.
5919func (c *CompaniesListCall) Header() http.Header {
5920	if c.header_ == nil {
5921		c.header_ = make(http.Header)
5922	}
5923	return c.header_
5924}
5925
5926func (c *CompaniesListCall) doRequest(alt string) (*http.Response, error) {
5927	reqHeaders := make(http.Header)
5928	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
5929	for k, v := range c.header_ {
5930		reqHeaders[k] = v
5931	}
5932	reqHeaders.Set("User-Agent", c.s.userAgent())
5933	if c.ifNoneMatch_ != "" {
5934		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5935	}
5936	var body io.Reader = nil
5937	c.urlParams_.Set("alt", alt)
5938	c.urlParams_.Set("prettyPrint", "false")
5939	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/companies")
5940	urls += "?" + c.urlParams_.Encode()
5941	req, err := http.NewRequest("GET", urls, body)
5942	if err != nil {
5943		return nil, err
5944	}
5945	req.Header = reqHeaders
5946	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5947}
5948
5949// Do executes the "jobs.companies.list" call.
5950// Exactly one of *ListCompaniesResponse or error will be non-nil. Any
5951// non-2xx status code is an error. Response headers are in either
5952// *ListCompaniesResponse.ServerResponse.Header or (if a response was
5953// returned at all) in error.(*googleapi.Error).Header. Use
5954// googleapi.IsNotModified to check whether the returned error was
5955// because http.StatusNotModified was returned.
5956func (c *CompaniesListCall) Do(opts ...googleapi.CallOption) (*ListCompaniesResponse, error) {
5957	gensupport.SetOptions(c.urlParams_, opts...)
5958	res, err := c.doRequest("json")
5959	if res != nil && res.StatusCode == http.StatusNotModified {
5960		if res.Body != nil {
5961			res.Body.Close()
5962		}
5963		return nil, &googleapi.Error{
5964			Code:   res.StatusCode,
5965			Header: res.Header,
5966		}
5967	}
5968	if err != nil {
5969		return nil, err
5970	}
5971	defer googleapi.CloseBody(res)
5972	if err := googleapi.CheckResponse(res); err != nil {
5973		return nil, err
5974	}
5975	ret := &ListCompaniesResponse{
5976		ServerResponse: googleapi.ServerResponse{
5977			Header:         res.Header,
5978			HTTPStatusCode: res.StatusCode,
5979		},
5980	}
5981	target := &ret
5982	if err := gensupport.DecodeResponse(target, res); err != nil {
5983		return nil, err
5984	}
5985	return ret, nil
5986	// {
5987	//   "description": "Lists all companies associated with a Cloud Talent Solution account.",
5988	//   "flatPath": "v2/companies",
5989	//   "httpMethod": "GET",
5990	//   "id": "jobs.companies.list",
5991	//   "parameterOrder": [],
5992	//   "parameters": {
5993	//     "mustHaveOpenJobs": {
5994	//       "description": "Optional. Set to true if the companies request must have open jobs.\n\nDefaults to false.\n\nIf true, at most page_size of companies are fetched, among which\nonly those with open jobs are returned.",
5995	//       "location": "query",
5996	//       "type": "boolean"
5997	//     },
5998	//     "pageSize": {
5999	//       "description": "Optional. The maximum number of companies to be returned, at most 100.\nDefault is 100 if a non-positive number is provided.",
6000	//       "format": "int32",
6001	//       "location": "query",
6002	//       "type": "integer"
6003	//     },
6004	//     "pageToken": {
6005	//       "description": "Optional. The starting indicator from which to return results.",
6006	//       "location": "query",
6007	//       "type": "string"
6008	//     }
6009	//   },
6010	//   "path": "v2/companies",
6011	//   "response": {
6012	//     "$ref": "ListCompaniesResponse"
6013	//   },
6014	//   "scopes": [
6015	//     "https://www.googleapis.com/auth/cloud-platform",
6016	//     "https://www.googleapis.com/auth/jobs"
6017	//   ]
6018	// }
6019
6020}
6021
6022// Pages invokes f for each page of results.
6023// A non-nil error returned from f will halt the iteration.
6024// The provided context supersedes any context provided to the Context method.
6025func (c *CompaniesListCall) Pages(ctx context.Context, f func(*ListCompaniesResponse) error) error {
6026	c.ctx_ = ctx
6027	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
6028	for {
6029		x, err := c.Do()
6030		if err != nil {
6031			return err
6032		}
6033		if err := f(x); err != nil {
6034			return err
6035		}
6036		if x.NextPageToken == "" {
6037			return nil
6038		}
6039		c.PageToken(x.NextPageToken)
6040	}
6041}
6042
6043// method id "jobs.companies.patch":
6044
6045type CompaniesPatchCall struct {
6046	s          *Service
6047	name       string
6048	company    *Company
6049	urlParams_ gensupport.URLParams
6050	ctx_       context.Context
6051	header_    http.Header
6052}
6053
6054// Patch: Updates the specified company. Company names can't be updated.
6055// To update a
6056// company name, delete the company and all jobs associated with it, and
6057// only
6058// then re-create them.
6059func (r *CompaniesService) Patch(name string, company *Company) *CompaniesPatchCall {
6060	c := &CompaniesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6061	c.name = name
6062	c.company = company
6063	return c
6064}
6065
6066// UpdateCompanyFields sets the optional parameter
6067// "updateCompanyFields": Optional but strongly recommended to be
6068// provided for the best service
6069// experience.
6070//
6071// If update_company_fields is provided, only the specified fields
6072// in
6073// company are updated. Otherwise all the fields are updated.
6074//
6075// A field mask to specify the company fields to update. Valid values
6076// are:
6077//
6078// * displayName
6079// * website
6080// * imageUrl
6081// * companySize
6082// * distributorBillingCompanyId
6083// * companyInfoSources
6084// * careerPageLink
6085// * hiringAgency
6086// * hqLocation
6087// * eeoText
6088// * keywordSearchableCustomAttributes
6089// * title (deprecated)
6090// * keywordSearchableCustomFields (deprecated)
6091func (c *CompaniesPatchCall) UpdateCompanyFields(updateCompanyFields string) *CompaniesPatchCall {
6092	c.urlParams_.Set("updateCompanyFields", updateCompanyFields)
6093	return c
6094}
6095
6096// Fields allows partial responses to be retrieved. See
6097// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6098// for more information.
6099func (c *CompaniesPatchCall) Fields(s ...googleapi.Field) *CompaniesPatchCall {
6100	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6101	return c
6102}
6103
6104// Context sets the context to be used in this call's Do method. Any
6105// pending HTTP request will be aborted if the provided context is
6106// canceled.
6107func (c *CompaniesPatchCall) Context(ctx context.Context) *CompaniesPatchCall {
6108	c.ctx_ = ctx
6109	return c
6110}
6111
6112// Header returns an http.Header that can be modified by the caller to
6113// add HTTP headers to the request.
6114func (c *CompaniesPatchCall) Header() http.Header {
6115	if c.header_ == nil {
6116		c.header_ = make(http.Header)
6117	}
6118	return c.header_
6119}
6120
6121func (c *CompaniesPatchCall) doRequest(alt string) (*http.Response, error) {
6122	reqHeaders := make(http.Header)
6123	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6124	for k, v := range c.header_ {
6125		reqHeaders[k] = v
6126	}
6127	reqHeaders.Set("User-Agent", c.s.userAgent())
6128	var body io.Reader = nil
6129	body, err := googleapi.WithoutDataWrapper.JSONReader(c.company)
6130	if err != nil {
6131		return nil, err
6132	}
6133	reqHeaders.Set("Content-Type", "application/json")
6134	c.urlParams_.Set("alt", alt)
6135	c.urlParams_.Set("prettyPrint", "false")
6136	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6137	urls += "?" + c.urlParams_.Encode()
6138	req, err := http.NewRequest("PATCH", urls, body)
6139	if err != nil {
6140		return nil, err
6141	}
6142	req.Header = reqHeaders
6143	googleapi.Expand(req.URL, map[string]string{
6144		"name": c.name,
6145	})
6146	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6147}
6148
6149// Do executes the "jobs.companies.patch" call.
6150// Exactly one of *Company or error will be non-nil. Any non-2xx status
6151// code is an error. Response headers are in either
6152// *Company.ServerResponse.Header or (if a response was returned at all)
6153// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6154// check whether the returned error was because http.StatusNotModified
6155// was returned.
6156func (c *CompaniesPatchCall) Do(opts ...googleapi.CallOption) (*Company, error) {
6157	gensupport.SetOptions(c.urlParams_, opts...)
6158	res, err := c.doRequest("json")
6159	if res != nil && res.StatusCode == http.StatusNotModified {
6160		if res.Body != nil {
6161			res.Body.Close()
6162		}
6163		return nil, &googleapi.Error{
6164			Code:   res.StatusCode,
6165			Header: res.Header,
6166		}
6167	}
6168	if err != nil {
6169		return nil, err
6170	}
6171	defer googleapi.CloseBody(res)
6172	if err := googleapi.CheckResponse(res); err != nil {
6173		return nil, err
6174	}
6175	ret := &Company{
6176		ServerResponse: googleapi.ServerResponse{
6177			Header:         res.Header,
6178			HTTPStatusCode: res.StatusCode,
6179		},
6180	}
6181	target := &ret
6182	if err := gensupport.DecodeResponse(target, res); err != nil {
6183		return nil, err
6184	}
6185	return ret, nil
6186	// {
6187	//   "description": "Updates the specified company. Company names can't be updated. To update a\ncompany name, delete the company and all jobs associated with it, and only\nthen re-create them.",
6188	//   "flatPath": "v2/companies/{companiesId}",
6189	//   "httpMethod": "PATCH",
6190	//   "id": "jobs.companies.patch",
6191	//   "parameterOrder": [
6192	//     "name"
6193	//   ],
6194	//   "parameters": {
6195	//     "name": {
6196	//       "description": "Required during company update.\n\nThe resource name for a company. This is generated by the service when a\ncompany is created, for example,\n\"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".",
6197	//       "location": "path",
6198	//       "pattern": "^companies/[^/]+$",
6199	//       "required": true,
6200	//       "type": "string"
6201	//     },
6202	//     "updateCompanyFields": {
6203	//       "description": "Optional but strongly recommended to be provided for the best service\nexperience.\n\nIf update_company_fields is provided, only the specified fields in\ncompany are updated. Otherwise all the fields are updated.\n\nA field mask to specify the company fields to update. Valid values are:\n\n* displayName\n* website\n* imageUrl\n* companySize\n* distributorBillingCompanyId\n* companyInfoSources\n* careerPageLink\n* hiringAgency\n* hqLocation\n* eeoText\n* keywordSearchableCustomAttributes\n* title (deprecated)\n* keywordSearchableCustomFields (deprecated)",
6204	//       "format": "google-fieldmask",
6205	//       "location": "query",
6206	//       "type": "string"
6207	//     }
6208	//   },
6209	//   "path": "v2/{+name}",
6210	//   "request": {
6211	//     "$ref": "Company"
6212	//   },
6213	//   "response": {
6214	//     "$ref": "Company"
6215	//   },
6216	//   "scopes": [
6217	//     "https://www.googleapis.com/auth/cloud-platform",
6218	//     "https://www.googleapis.com/auth/jobs"
6219	//   ]
6220	// }
6221
6222}
6223
6224// method id "jobs.companies.jobs.list":
6225
6226type CompaniesJobsListCall struct {
6227	s            *Service
6228	companyName  string
6229	urlParams_   gensupport.URLParams
6230	ifNoneMatch_ string
6231	ctx_         context.Context
6232	header_      http.Header
6233}
6234
6235// List: Deprecated. Use ListJobs instead.
6236//
6237// Lists all jobs associated with a company.
6238func (r *CompaniesJobsService) List(companyName string) *CompaniesJobsListCall {
6239	c := &CompaniesJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6240	c.companyName = companyName
6241	return c
6242}
6243
6244// IdsOnly sets the optional parameter "idsOnly": If set to `true`, only
6245// job ID, job requisition ID and language code will be
6246// returned.
6247//
6248// A typical use is to synchronize job repositories.
6249//
6250// Defaults to false.
6251func (c *CompaniesJobsListCall) IdsOnly(idsOnly bool) *CompaniesJobsListCall {
6252	c.urlParams_.Set("idsOnly", fmt.Sprint(idsOnly))
6253	return c
6254}
6255
6256// IncludeJobsCount sets the optional parameter "includeJobsCount":
6257// Deprecated. Please DO NOT use this field except for small
6258// companies.
6259// Suggest counting jobs page by page instead.
6260//
6261//
6262//
6263// Set to true if the total number of open jobs is to be
6264// returned.
6265//
6266// Defaults to false.
6267func (c *CompaniesJobsListCall) IncludeJobsCount(includeJobsCount bool) *CompaniesJobsListCall {
6268	c.urlParams_.Set("includeJobsCount", fmt.Sprint(includeJobsCount))
6269	return c
6270}
6271
6272// JobRequisitionId sets the optional parameter "jobRequisitionId": The
6273// requisition ID, also known as posting ID, assigned by the company
6274// to the job.
6275//
6276// The maximum number of allowable characters is 225.
6277func (c *CompaniesJobsListCall) JobRequisitionId(jobRequisitionId string) *CompaniesJobsListCall {
6278	c.urlParams_.Set("jobRequisitionId", jobRequisitionId)
6279	return c
6280}
6281
6282// PageSize sets the optional parameter "pageSize": The maximum number
6283// of jobs to be returned per page of results.
6284//
6285// If ids_only is set to true, the maximum allowed page size
6286// is 1000. Otherwise, the maximum allowed page size is 100.
6287//
6288// Default is 100 if empty or a number < 1 is specified.
6289func (c *CompaniesJobsListCall) PageSize(pageSize int64) *CompaniesJobsListCall {
6290	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6291	return c
6292}
6293
6294// PageToken sets the optional parameter "pageToken": The starting point
6295// of a query result.
6296func (c *CompaniesJobsListCall) PageToken(pageToken string) *CompaniesJobsListCall {
6297	c.urlParams_.Set("pageToken", pageToken)
6298	return c
6299}
6300
6301// Fields allows partial responses to be retrieved. See
6302// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6303// for more information.
6304func (c *CompaniesJobsListCall) Fields(s ...googleapi.Field) *CompaniesJobsListCall {
6305	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6306	return c
6307}
6308
6309// IfNoneMatch sets the optional parameter which makes the operation
6310// fail if the object's ETag matches the given value. This is useful for
6311// getting updates only after the object has changed since the last
6312// request. Use googleapi.IsNotModified to check whether the response
6313// error from Do is the result of In-None-Match.
6314func (c *CompaniesJobsListCall) IfNoneMatch(entityTag string) *CompaniesJobsListCall {
6315	c.ifNoneMatch_ = entityTag
6316	return c
6317}
6318
6319// Context sets the context to be used in this call's Do method. Any
6320// pending HTTP request will be aborted if the provided context is
6321// canceled.
6322func (c *CompaniesJobsListCall) Context(ctx context.Context) *CompaniesJobsListCall {
6323	c.ctx_ = ctx
6324	return c
6325}
6326
6327// Header returns an http.Header that can be modified by the caller to
6328// add HTTP headers to the request.
6329func (c *CompaniesJobsListCall) Header() http.Header {
6330	if c.header_ == nil {
6331		c.header_ = make(http.Header)
6332	}
6333	return c.header_
6334}
6335
6336func (c *CompaniesJobsListCall) doRequest(alt string) (*http.Response, error) {
6337	reqHeaders := make(http.Header)
6338	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6339	for k, v := range c.header_ {
6340		reqHeaders[k] = v
6341	}
6342	reqHeaders.Set("User-Agent", c.s.userAgent())
6343	if c.ifNoneMatch_ != "" {
6344		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6345	}
6346	var body io.Reader = nil
6347	c.urlParams_.Set("alt", alt)
6348	c.urlParams_.Set("prettyPrint", "false")
6349	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+companyName}/jobs")
6350	urls += "?" + c.urlParams_.Encode()
6351	req, err := http.NewRequest("GET", urls, body)
6352	if err != nil {
6353		return nil, err
6354	}
6355	req.Header = reqHeaders
6356	googleapi.Expand(req.URL, map[string]string{
6357		"companyName": c.companyName,
6358	})
6359	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6360}
6361
6362// Do executes the "jobs.companies.jobs.list" call.
6363// Exactly one of *ListCompanyJobsResponse or error will be non-nil. Any
6364// non-2xx status code is an error. Response headers are in either
6365// *ListCompanyJobsResponse.ServerResponse.Header or (if a response was
6366// returned at all) in error.(*googleapi.Error).Header. Use
6367// googleapi.IsNotModified to check whether the returned error was
6368// because http.StatusNotModified was returned.
6369func (c *CompaniesJobsListCall) Do(opts ...googleapi.CallOption) (*ListCompanyJobsResponse, error) {
6370	gensupport.SetOptions(c.urlParams_, opts...)
6371	res, err := c.doRequest("json")
6372	if res != nil && res.StatusCode == http.StatusNotModified {
6373		if res.Body != nil {
6374			res.Body.Close()
6375		}
6376		return nil, &googleapi.Error{
6377			Code:   res.StatusCode,
6378			Header: res.Header,
6379		}
6380	}
6381	if err != nil {
6382		return nil, err
6383	}
6384	defer googleapi.CloseBody(res)
6385	if err := googleapi.CheckResponse(res); err != nil {
6386		return nil, err
6387	}
6388	ret := &ListCompanyJobsResponse{
6389		ServerResponse: googleapi.ServerResponse{
6390			Header:         res.Header,
6391			HTTPStatusCode: res.StatusCode,
6392		},
6393	}
6394	target := &ret
6395	if err := gensupport.DecodeResponse(target, res); err != nil {
6396		return nil, err
6397	}
6398	return ret, nil
6399	// {
6400	//   "description": "Deprecated. Use ListJobs instead.\n\nLists all jobs associated with a company.",
6401	//   "flatPath": "v2/companies/{companiesId}/jobs",
6402	//   "httpMethod": "GET",
6403	//   "id": "jobs.companies.jobs.list",
6404	//   "parameterOrder": [
6405	//     "companyName"
6406	//   ],
6407	//   "parameters": {
6408	//     "companyName": {
6409	//       "description": "Required. The resource name of the company that owns the jobs to be listed,\nsuch as, \"companies/0000aaaa-1111-bbbb-2222-cccc3333dddd\".",
6410	//       "location": "path",
6411	//       "pattern": "^companies/[^/]+$",
6412	//       "required": true,
6413	//       "type": "string"
6414	//     },
6415	//     "idsOnly": {
6416	//       "description": "Optional. If set to `true`, only job ID, job requisition ID and language code will be\nreturned.\n\nA typical use is to synchronize job repositories.\n\nDefaults to false.",
6417	//       "location": "query",
6418	//       "type": "boolean"
6419	//     },
6420	//     "includeJobsCount": {
6421	//       "description": "Deprecated. Please DO NOT use this field except for small companies.\nSuggest counting jobs page by page instead.\n\nOptional.\n\nSet to true if the total number of open jobs is to be returned.\n\nDefaults to false.",
6422	//       "location": "query",
6423	//       "type": "boolean"
6424	//     },
6425	//     "jobRequisitionId": {
6426	//       "description": "Optional. The requisition ID, also known as posting ID, assigned by the company\nto the job.\n\nThe maximum number of allowable characters is 225.",
6427	//       "location": "query",
6428	//       "type": "string"
6429	//     },
6430	//     "pageSize": {
6431	//       "description": "Optional. The maximum number of jobs to be returned per page of results.\n\nIf ids_only is set to true, the maximum allowed page size\nis 1000. Otherwise, the maximum allowed page size is 100.\n\nDefault is 100 if empty or a number \u003c 1 is specified.",
6432	//       "format": "int32",
6433	//       "location": "query",
6434	//       "type": "integer"
6435	//     },
6436	//     "pageToken": {
6437	//       "description": "Optional. The starting point of a query result.",
6438	//       "location": "query",
6439	//       "type": "string"
6440	//     }
6441	//   },
6442	//   "path": "v2/{+companyName}/jobs",
6443	//   "response": {
6444	//     "$ref": "ListCompanyJobsResponse"
6445	//   },
6446	//   "scopes": [
6447	//     "https://www.googleapis.com/auth/cloud-platform",
6448	//     "https://www.googleapis.com/auth/jobs"
6449	//   ]
6450	// }
6451
6452}
6453
6454// Pages invokes f for each page of results.
6455// A non-nil error returned from f will halt the iteration.
6456// The provided context supersedes any context provided to the Context method.
6457func (c *CompaniesJobsListCall) Pages(ctx context.Context, f func(*ListCompanyJobsResponse) error) error {
6458	c.ctx_ = ctx
6459	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
6460	for {
6461		x, err := c.Do()
6462		if err != nil {
6463			return err
6464		}
6465		if err := f(x); err != nil {
6466			return err
6467		}
6468		if x.NextPageToken == "" {
6469			return nil
6470		}
6471		c.PageToken(x.NextPageToken)
6472	}
6473}
6474
6475// method id "jobs.jobs.batchDelete":
6476
6477type JobsBatchDeleteCall struct {
6478	s                      *Service
6479	batchdeletejobsrequest *BatchDeleteJobsRequest
6480	urlParams_             gensupport.URLParams
6481	ctx_                   context.Context
6482	header_                http.Header
6483}
6484
6485// BatchDelete: Deletes a list of Job postings by filter.
6486func (r *JobsService) BatchDelete(batchdeletejobsrequest *BatchDeleteJobsRequest) *JobsBatchDeleteCall {
6487	c := &JobsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6488	c.batchdeletejobsrequest = batchdeletejobsrequest
6489	return c
6490}
6491
6492// Fields allows partial responses to be retrieved. See
6493// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6494// for more information.
6495func (c *JobsBatchDeleteCall) Fields(s ...googleapi.Field) *JobsBatchDeleteCall {
6496	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6497	return c
6498}
6499
6500// Context sets the context to be used in this call's Do method. Any
6501// pending HTTP request will be aborted if the provided context is
6502// canceled.
6503func (c *JobsBatchDeleteCall) Context(ctx context.Context) *JobsBatchDeleteCall {
6504	c.ctx_ = ctx
6505	return c
6506}
6507
6508// Header returns an http.Header that can be modified by the caller to
6509// add HTTP headers to the request.
6510func (c *JobsBatchDeleteCall) Header() http.Header {
6511	if c.header_ == nil {
6512		c.header_ = make(http.Header)
6513	}
6514	return c.header_
6515}
6516
6517func (c *JobsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
6518	reqHeaders := make(http.Header)
6519	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6520	for k, v := range c.header_ {
6521		reqHeaders[k] = v
6522	}
6523	reqHeaders.Set("User-Agent", c.s.userAgent())
6524	var body io.Reader = nil
6525	body, err := googleapi.WithoutDataWrapper.JSONReader(c.batchdeletejobsrequest)
6526	if err != nil {
6527		return nil, err
6528	}
6529	reqHeaders.Set("Content-Type", "application/json")
6530	c.urlParams_.Set("alt", alt)
6531	c.urlParams_.Set("prettyPrint", "false")
6532	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:batchDelete")
6533	urls += "?" + c.urlParams_.Encode()
6534	req, err := http.NewRequest("POST", urls, body)
6535	if err != nil {
6536		return nil, err
6537	}
6538	req.Header = reqHeaders
6539	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6540}
6541
6542// Do executes the "jobs.jobs.batchDelete" call.
6543// Exactly one of *Empty or error will be non-nil. Any non-2xx status
6544// code is an error. Response headers are in either
6545// *Empty.ServerResponse.Header or (if a response was returned at all)
6546// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6547// check whether the returned error was because http.StatusNotModified
6548// was returned.
6549func (c *JobsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6550	gensupport.SetOptions(c.urlParams_, opts...)
6551	res, err := c.doRequest("json")
6552	if res != nil && res.StatusCode == http.StatusNotModified {
6553		if res.Body != nil {
6554			res.Body.Close()
6555		}
6556		return nil, &googleapi.Error{
6557			Code:   res.StatusCode,
6558			Header: res.Header,
6559		}
6560	}
6561	if err != nil {
6562		return nil, err
6563	}
6564	defer googleapi.CloseBody(res)
6565	if err := googleapi.CheckResponse(res); err != nil {
6566		return nil, err
6567	}
6568	ret := &Empty{
6569		ServerResponse: googleapi.ServerResponse{
6570			Header:         res.Header,
6571			HTTPStatusCode: res.StatusCode,
6572		},
6573	}
6574	target := &ret
6575	if err := gensupport.DecodeResponse(target, res); err != nil {
6576		return nil, err
6577	}
6578	return ret, nil
6579	// {
6580	//   "description": "Deletes a list of Job postings by filter.",
6581	//   "flatPath": "v2/jobs:batchDelete",
6582	//   "httpMethod": "POST",
6583	//   "id": "jobs.jobs.batchDelete",
6584	//   "parameterOrder": [],
6585	//   "parameters": {},
6586	//   "path": "v2/jobs:batchDelete",
6587	//   "request": {
6588	//     "$ref": "BatchDeleteJobsRequest"
6589	//   },
6590	//   "response": {
6591	//     "$ref": "Empty"
6592	//   },
6593	//   "scopes": [
6594	//     "https://www.googleapis.com/auth/cloud-platform",
6595	//     "https://www.googleapis.com/auth/jobs"
6596	//   ]
6597	// }
6598
6599}
6600
6601// method id "jobs.jobs.create":
6602
6603type JobsCreateCall struct {
6604	s                *Service
6605	createjobrequest *CreateJobRequest
6606	urlParams_       gensupport.URLParams
6607	ctx_             context.Context
6608	header_          http.Header
6609}
6610
6611// Create: Creates a new job.
6612//
6613// Typically, the job becomes searchable within 10 seconds, but it may
6614// take
6615// up to 5 minutes.
6616func (r *JobsService) Create(createjobrequest *CreateJobRequest) *JobsCreateCall {
6617	c := &JobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6618	c.createjobrequest = createjobrequest
6619	return c
6620}
6621
6622// Fields allows partial responses to be retrieved. See
6623// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6624// for more information.
6625func (c *JobsCreateCall) Fields(s ...googleapi.Field) *JobsCreateCall {
6626	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6627	return c
6628}
6629
6630// Context sets the context to be used in this call's Do method. Any
6631// pending HTTP request will be aborted if the provided context is
6632// canceled.
6633func (c *JobsCreateCall) Context(ctx context.Context) *JobsCreateCall {
6634	c.ctx_ = ctx
6635	return c
6636}
6637
6638// Header returns an http.Header that can be modified by the caller to
6639// add HTTP headers to the request.
6640func (c *JobsCreateCall) Header() http.Header {
6641	if c.header_ == nil {
6642		c.header_ = make(http.Header)
6643	}
6644	return c.header_
6645}
6646
6647func (c *JobsCreateCall) doRequest(alt string) (*http.Response, error) {
6648	reqHeaders := make(http.Header)
6649	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6650	for k, v := range c.header_ {
6651		reqHeaders[k] = v
6652	}
6653	reqHeaders.Set("User-Agent", c.s.userAgent())
6654	var body io.Reader = nil
6655	body, err := googleapi.WithoutDataWrapper.JSONReader(c.createjobrequest)
6656	if err != nil {
6657		return nil, err
6658	}
6659	reqHeaders.Set("Content-Type", "application/json")
6660	c.urlParams_.Set("alt", alt)
6661	c.urlParams_.Set("prettyPrint", "false")
6662	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs")
6663	urls += "?" + c.urlParams_.Encode()
6664	req, err := http.NewRequest("POST", urls, body)
6665	if err != nil {
6666		return nil, err
6667	}
6668	req.Header = reqHeaders
6669	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6670}
6671
6672// Do executes the "jobs.jobs.create" call.
6673// Exactly one of *Job or error will be non-nil. Any non-2xx status code
6674// is an error. Response headers are in either
6675// *Job.ServerResponse.Header or (if a response was returned at all) in
6676// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
6677// whether the returned error was because http.StatusNotModified was
6678// returned.
6679func (c *JobsCreateCall) Do(opts ...googleapi.CallOption) (*Job, error) {
6680	gensupport.SetOptions(c.urlParams_, opts...)
6681	res, err := c.doRequest("json")
6682	if res != nil && res.StatusCode == http.StatusNotModified {
6683		if res.Body != nil {
6684			res.Body.Close()
6685		}
6686		return nil, &googleapi.Error{
6687			Code:   res.StatusCode,
6688			Header: res.Header,
6689		}
6690	}
6691	if err != nil {
6692		return nil, err
6693	}
6694	defer googleapi.CloseBody(res)
6695	if err := googleapi.CheckResponse(res); err != nil {
6696		return nil, err
6697	}
6698	ret := &Job{
6699		ServerResponse: googleapi.ServerResponse{
6700			Header:         res.Header,
6701			HTTPStatusCode: res.StatusCode,
6702		},
6703	}
6704	target := &ret
6705	if err := gensupport.DecodeResponse(target, res); err != nil {
6706		return nil, err
6707	}
6708	return ret, nil
6709	// {
6710	//   "description": "Creates a new job.\n\nTypically, the job becomes searchable within 10 seconds, but it may take\nup to 5 minutes.",
6711	//   "flatPath": "v2/jobs",
6712	//   "httpMethod": "POST",
6713	//   "id": "jobs.jobs.create",
6714	//   "parameterOrder": [],
6715	//   "parameters": {},
6716	//   "path": "v2/jobs",
6717	//   "request": {
6718	//     "$ref": "CreateJobRequest"
6719	//   },
6720	//   "response": {
6721	//     "$ref": "Job"
6722	//   },
6723	//   "scopes": [
6724	//     "https://www.googleapis.com/auth/cloud-platform",
6725	//     "https://www.googleapis.com/auth/jobs"
6726	//   ]
6727	// }
6728
6729}
6730
6731// method id "jobs.jobs.delete":
6732
6733type JobsDeleteCall struct {
6734	s          *Service
6735	name       string
6736	urlParams_ gensupport.URLParams
6737	ctx_       context.Context
6738	header_    http.Header
6739}
6740
6741// Delete: Deletes the specified job.
6742//
6743// Typically, the job becomes unsearchable within 10 seconds, but it may
6744// take
6745// up to 5 minutes.
6746func (r *JobsService) Delete(name string) *JobsDeleteCall {
6747	c := &JobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6748	c.name = name
6749	return c
6750}
6751
6752// DisableFastProcess sets the optional parameter "disableFastProcess":
6753// Deprecated. This field is not working anymore.
6754//
6755//
6756//
6757// If set to true, this call waits for all processing steps to
6758// complete
6759// before the job is cleaned up. Otherwise, the call returns while
6760// some
6761// steps are still taking place asynchronously, hence faster.
6762func (c *JobsDeleteCall) DisableFastProcess(disableFastProcess bool) *JobsDeleteCall {
6763	c.urlParams_.Set("disableFastProcess", fmt.Sprint(disableFastProcess))
6764	return c
6765}
6766
6767// Fields allows partial responses to be retrieved. See
6768// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6769// for more information.
6770func (c *JobsDeleteCall) Fields(s ...googleapi.Field) *JobsDeleteCall {
6771	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6772	return c
6773}
6774
6775// Context sets the context to be used in this call's Do method. Any
6776// pending HTTP request will be aborted if the provided context is
6777// canceled.
6778func (c *JobsDeleteCall) Context(ctx context.Context) *JobsDeleteCall {
6779	c.ctx_ = ctx
6780	return c
6781}
6782
6783// Header returns an http.Header that can be modified by the caller to
6784// add HTTP headers to the request.
6785func (c *JobsDeleteCall) Header() http.Header {
6786	if c.header_ == nil {
6787		c.header_ = make(http.Header)
6788	}
6789	return c.header_
6790}
6791
6792func (c *JobsDeleteCall) doRequest(alt string) (*http.Response, error) {
6793	reqHeaders := make(http.Header)
6794	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6795	for k, v := range c.header_ {
6796		reqHeaders[k] = v
6797	}
6798	reqHeaders.Set("User-Agent", c.s.userAgent())
6799	var body io.Reader = nil
6800	c.urlParams_.Set("alt", alt)
6801	c.urlParams_.Set("prettyPrint", "false")
6802	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
6803	urls += "?" + c.urlParams_.Encode()
6804	req, err := http.NewRequest("DELETE", urls, body)
6805	if err != nil {
6806		return nil, err
6807	}
6808	req.Header = reqHeaders
6809	googleapi.Expand(req.URL, map[string]string{
6810		"name": c.name,
6811	})
6812	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6813}
6814
6815// Do executes the "jobs.jobs.delete" call.
6816// Exactly one of *Empty or error will be non-nil. Any non-2xx status
6817// code is an error. Response headers are in either
6818// *Empty.ServerResponse.Header or (if a response was returned at all)
6819// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6820// check whether the returned error was because http.StatusNotModified
6821// was returned.
6822func (c *JobsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6823	gensupport.SetOptions(c.urlParams_, opts...)
6824	res, err := c.doRequest("json")
6825	if res != nil && res.StatusCode == http.StatusNotModified {
6826		if res.Body != nil {
6827			res.Body.Close()
6828		}
6829		return nil, &googleapi.Error{
6830			Code:   res.StatusCode,
6831			Header: res.Header,
6832		}
6833	}
6834	if err != nil {
6835		return nil, err
6836	}
6837	defer googleapi.CloseBody(res)
6838	if err := googleapi.CheckResponse(res); err != nil {
6839		return nil, err
6840	}
6841	ret := &Empty{
6842		ServerResponse: googleapi.ServerResponse{
6843			Header:         res.Header,
6844			HTTPStatusCode: res.StatusCode,
6845		},
6846	}
6847	target := &ret
6848	if err := gensupport.DecodeResponse(target, res); err != nil {
6849		return nil, err
6850	}
6851	return ret, nil
6852	// {
6853	//   "description": "Deletes the specified job.\n\nTypically, the job becomes unsearchable within 10 seconds, but it may take\nup to 5 minutes.",
6854	//   "flatPath": "v2/jobs/{jobsId}",
6855	//   "httpMethod": "DELETE",
6856	//   "id": "jobs.jobs.delete",
6857	//   "parameterOrder": [
6858	//     "name"
6859	//   ],
6860	//   "parameters": {
6861	//     "disableFastProcess": {
6862	//       "description": "Deprecated. This field is not working anymore.\n\nOptional.\n\nIf set to true, this call waits for all processing steps to complete\nbefore the job is cleaned up. Otherwise, the call returns while some\nsteps are still taking place asynchronously, hence faster.",
6863	//       "location": "query",
6864	//       "type": "boolean"
6865	//     },
6866	//     "name": {
6867	//       "description": "Required. The resource name of the job to be deleted, such as \"jobs/11111111\".",
6868	//       "location": "path",
6869	//       "pattern": "^jobs/[^/]+$",
6870	//       "required": true,
6871	//       "type": "string"
6872	//     }
6873	//   },
6874	//   "path": "v2/{+name}",
6875	//   "response": {
6876	//     "$ref": "Empty"
6877	//   },
6878	//   "scopes": [
6879	//     "https://www.googleapis.com/auth/cloud-platform",
6880	//     "https://www.googleapis.com/auth/jobs"
6881	//   ]
6882	// }
6883
6884}
6885
6886// method id "jobs.jobs.deleteByFilter":
6887
6888type JobsDeleteByFilterCall struct {
6889	s                         *Service
6890	deletejobsbyfilterrequest *DeleteJobsByFilterRequest
6891	urlParams_                gensupport.URLParams
6892	ctx_                      context.Context
6893	header_                   http.Header
6894}
6895
6896// DeleteByFilter: Deprecated. Use BatchDeleteJobs instead.
6897//
6898// Deletes the specified job by filter. You can specify whether
6899// to
6900// synchronously wait for validation, indexing, and general processing
6901// to be
6902// completed before the response is returned.
6903func (r *JobsService) DeleteByFilter(deletejobsbyfilterrequest *DeleteJobsByFilterRequest) *JobsDeleteByFilterCall {
6904	c := &JobsDeleteByFilterCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6905	c.deletejobsbyfilterrequest = deletejobsbyfilterrequest
6906	return c
6907}
6908
6909// Fields allows partial responses to be retrieved. See
6910// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6911// for more information.
6912func (c *JobsDeleteByFilterCall) Fields(s ...googleapi.Field) *JobsDeleteByFilterCall {
6913	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6914	return c
6915}
6916
6917// Context sets the context to be used in this call's Do method. Any
6918// pending HTTP request will be aborted if the provided context is
6919// canceled.
6920func (c *JobsDeleteByFilterCall) Context(ctx context.Context) *JobsDeleteByFilterCall {
6921	c.ctx_ = ctx
6922	return c
6923}
6924
6925// Header returns an http.Header that can be modified by the caller to
6926// add HTTP headers to the request.
6927func (c *JobsDeleteByFilterCall) Header() http.Header {
6928	if c.header_ == nil {
6929		c.header_ = make(http.Header)
6930	}
6931	return c.header_
6932}
6933
6934func (c *JobsDeleteByFilterCall) doRequest(alt string) (*http.Response, error) {
6935	reqHeaders := make(http.Header)
6936	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
6937	for k, v := range c.header_ {
6938		reqHeaders[k] = v
6939	}
6940	reqHeaders.Set("User-Agent", c.s.userAgent())
6941	var body io.Reader = nil
6942	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deletejobsbyfilterrequest)
6943	if err != nil {
6944		return nil, err
6945	}
6946	reqHeaders.Set("Content-Type", "application/json")
6947	c.urlParams_.Set("alt", alt)
6948	c.urlParams_.Set("prettyPrint", "false")
6949	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:deleteByFilter")
6950	urls += "?" + c.urlParams_.Encode()
6951	req, err := http.NewRequest("POST", urls, body)
6952	if err != nil {
6953		return nil, err
6954	}
6955	req.Header = reqHeaders
6956	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6957}
6958
6959// Do executes the "jobs.jobs.deleteByFilter" call.
6960// Exactly one of *Empty or error will be non-nil. Any non-2xx status
6961// code is an error. Response headers are in either
6962// *Empty.ServerResponse.Header or (if a response was returned at all)
6963// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
6964// check whether the returned error was because http.StatusNotModified
6965// was returned.
6966func (c *JobsDeleteByFilterCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
6967	gensupport.SetOptions(c.urlParams_, opts...)
6968	res, err := c.doRequest("json")
6969	if res != nil && res.StatusCode == http.StatusNotModified {
6970		if res.Body != nil {
6971			res.Body.Close()
6972		}
6973		return nil, &googleapi.Error{
6974			Code:   res.StatusCode,
6975			Header: res.Header,
6976		}
6977	}
6978	if err != nil {
6979		return nil, err
6980	}
6981	defer googleapi.CloseBody(res)
6982	if err := googleapi.CheckResponse(res); err != nil {
6983		return nil, err
6984	}
6985	ret := &Empty{
6986		ServerResponse: googleapi.ServerResponse{
6987			Header:         res.Header,
6988			HTTPStatusCode: res.StatusCode,
6989		},
6990	}
6991	target := &ret
6992	if err := gensupport.DecodeResponse(target, res); err != nil {
6993		return nil, err
6994	}
6995	return ret, nil
6996	// {
6997	//   "description": "Deprecated. Use BatchDeleteJobs instead.\n\nDeletes the specified job by filter. You can specify whether to\nsynchronously wait for validation, indexing, and general processing to be\ncompleted before the response is returned.",
6998	//   "flatPath": "v2/jobs:deleteByFilter",
6999	//   "httpMethod": "POST",
7000	//   "id": "jobs.jobs.deleteByFilter",
7001	//   "parameterOrder": [],
7002	//   "parameters": {},
7003	//   "path": "v2/jobs:deleteByFilter",
7004	//   "request": {
7005	//     "$ref": "DeleteJobsByFilterRequest"
7006	//   },
7007	//   "response": {
7008	//     "$ref": "Empty"
7009	//   },
7010	//   "scopes": [
7011	//     "https://www.googleapis.com/auth/cloud-platform",
7012	//     "https://www.googleapis.com/auth/jobs"
7013	//   ]
7014	// }
7015
7016}
7017
7018// method id "jobs.jobs.get":
7019
7020type JobsGetCall struct {
7021	s            *Service
7022	name         string
7023	urlParams_   gensupport.URLParams
7024	ifNoneMatch_ string
7025	ctx_         context.Context
7026	header_      http.Header
7027}
7028
7029// Get: Retrieves the specified job, whose status is OPEN or recently
7030// EXPIRED
7031// within the last 90 days.
7032func (r *JobsService) Get(name string) *JobsGetCall {
7033	c := &JobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7034	c.name = name
7035	return c
7036}
7037
7038// Fields allows partial responses to be retrieved. See
7039// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7040// for more information.
7041func (c *JobsGetCall) Fields(s ...googleapi.Field) *JobsGetCall {
7042	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7043	return c
7044}
7045
7046// IfNoneMatch sets the optional parameter which makes the operation
7047// fail if the object's ETag matches the given value. This is useful for
7048// getting updates only after the object has changed since the last
7049// request. Use googleapi.IsNotModified to check whether the response
7050// error from Do is the result of In-None-Match.
7051func (c *JobsGetCall) IfNoneMatch(entityTag string) *JobsGetCall {
7052	c.ifNoneMatch_ = entityTag
7053	return c
7054}
7055
7056// Context sets the context to be used in this call's Do method. Any
7057// pending HTTP request will be aborted if the provided context is
7058// canceled.
7059func (c *JobsGetCall) Context(ctx context.Context) *JobsGetCall {
7060	c.ctx_ = ctx
7061	return c
7062}
7063
7064// Header returns an http.Header that can be modified by the caller to
7065// add HTTP headers to the request.
7066func (c *JobsGetCall) Header() http.Header {
7067	if c.header_ == nil {
7068		c.header_ = make(http.Header)
7069	}
7070	return c.header_
7071}
7072
7073func (c *JobsGetCall) doRequest(alt string) (*http.Response, error) {
7074	reqHeaders := make(http.Header)
7075	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7076	for k, v := range c.header_ {
7077		reqHeaders[k] = v
7078	}
7079	reqHeaders.Set("User-Agent", c.s.userAgent())
7080	if c.ifNoneMatch_ != "" {
7081		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7082	}
7083	var body io.Reader = nil
7084	c.urlParams_.Set("alt", alt)
7085	c.urlParams_.Set("prettyPrint", "false")
7086	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7087	urls += "?" + c.urlParams_.Encode()
7088	req, err := http.NewRequest("GET", urls, body)
7089	if err != nil {
7090		return nil, err
7091	}
7092	req.Header = reqHeaders
7093	googleapi.Expand(req.URL, map[string]string{
7094		"name": c.name,
7095	})
7096	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7097}
7098
7099// Do executes the "jobs.jobs.get" call.
7100// Exactly one of *Job or error will be non-nil. Any non-2xx status code
7101// is an error. Response headers are in either
7102// *Job.ServerResponse.Header or (if a response was returned at all) in
7103// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7104// whether the returned error was because http.StatusNotModified was
7105// returned.
7106func (c *JobsGetCall) Do(opts ...googleapi.CallOption) (*Job, error) {
7107	gensupport.SetOptions(c.urlParams_, opts...)
7108	res, err := c.doRequest("json")
7109	if res != nil && res.StatusCode == http.StatusNotModified {
7110		if res.Body != nil {
7111			res.Body.Close()
7112		}
7113		return nil, &googleapi.Error{
7114			Code:   res.StatusCode,
7115			Header: res.Header,
7116		}
7117	}
7118	if err != nil {
7119		return nil, err
7120	}
7121	defer googleapi.CloseBody(res)
7122	if err := googleapi.CheckResponse(res); err != nil {
7123		return nil, err
7124	}
7125	ret := &Job{
7126		ServerResponse: googleapi.ServerResponse{
7127			Header:         res.Header,
7128			HTTPStatusCode: res.StatusCode,
7129		},
7130	}
7131	target := &ret
7132	if err := gensupport.DecodeResponse(target, res); err != nil {
7133		return nil, err
7134	}
7135	return ret, nil
7136	// {
7137	//   "description": "Retrieves the specified job, whose status is OPEN or recently EXPIRED\nwithin the last 90 days.",
7138	//   "flatPath": "v2/jobs/{jobsId}",
7139	//   "httpMethod": "GET",
7140	//   "id": "jobs.jobs.get",
7141	//   "parameterOrder": [
7142	//     "name"
7143	//   ],
7144	//   "parameters": {
7145	//     "name": {
7146	//       "description": "Required. The resource name of the job to retrieve, such as \"jobs/11111111\".",
7147	//       "location": "path",
7148	//       "pattern": "^jobs/[^/]+$",
7149	//       "required": true,
7150	//       "type": "string"
7151	//     }
7152	//   },
7153	//   "path": "v2/{+name}",
7154	//   "response": {
7155	//     "$ref": "Job"
7156	//   },
7157	//   "scopes": [
7158	//     "https://www.googleapis.com/auth/cloud-platform",
7159	//     "https://www.googleapis.com/auth/jobs"
7160	//   ]
7161	// }
7162
7163}
7164
7165// method id "jobs.jobs.histogram":
7166
7167type JobsHistogramCall struct {
7168	s                   *Service
7169	gethistogramrequest *GetHistogramRequest
7170	urlParams_          gensupport.URLParams
7171	ctx_                context.Context
7172	header_             http.Header
7173}
7174
7175// Histogram: Deprecated. Use SearchJobsRequest.histogram_facets instead
7176// to make
7177// a single call with both search and histogram.
7178//
7179// Retrieves a histogram for the given
7180// GetHistogramRequest. This call provides a structured
7181// count of jobs that match against the search query, grouped by
7182// specified
7183// facets.
7184//
7185// This call constrains the visibility of jobs
7186// present in the database, and only counts jobs the caller
7187// has
7188// permission to search against.
7189//
7190// For example, use this call to generate the
7191// number of jobs in the U.S. by state.
7192func (r *JobsService) Histogram(gethistogramrequest *GetHistogramRequest) *JobsHistogramCall {
7193	c := &JobsHistogramCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7194	c.gethistogramrequest = gethistogramrequest
7195	return c
7196}
7197
7198// Fields allows partial responses to be retrieved. See
7199// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7200// for more information.
7201func (c *JobsHistogramCall) Fields(s ...googleapi.Field) *JobsHistogramCall {
7202	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7203	return c
7204}
7205
7206// Context sets the context to be used in this call's Do method. Any
7207// pending HTTP request will be aborted if the provided context is
7208// canceled.
7209func (c *JobsHistogramCall) Context(ctx context.Context) *JobsHistogramCall {
7210	c.ctx_ = ctx
7211	return c
7212}
7213
7214// Header returns an http.Header that can be modified by the caller to
7215// add HTTP headers to the request.
7216func (c *JobsHistogramCall) Header() http.Header {
7217	if c.header_ == nil {
7218		c.header_ = make(http.Header)
7219	}
7220	return c.header_
7221}
7222
7223func (c *JobsHistogramCall) doRequest(alt string) (*http.Response, error) {
7224	reqHeaders := make(http.Header)
7225	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7226	for k, v := range c.header_ {
7227		reqHeaders[k] = v
7228	}
7229	reqHeaders.Set("User-Agent", c.s.userAgent())
7230	var body io.Reader = nil
7231	body, err := googleapi.WithoutDataWrapper.JSONReader(c.gethistogramrequest)
7232	if err != nil {
7233		return nil, err
7234	}
7235	reqHeaders.Set("Content-Type", "application/json")
7236	c.urlParams_.Set("alt", alt)
7237	c.urlParams_.Set("prettyPrint", "false")
7238	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:histogram")
7239	urls += "?" + c.urlParams_.Encode()
7240	req, err := http.NewRequest("POST", urls, body)
7241	if err != nil {
7242		return nil, err
7243	}
7244	req.Header = reqHeaders
7245	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7246}
7247
7248// Do executes the "jobs.jobs.histogram" call.
7249// Exactly one of *GetHistogramResponse or error will be non-nil. Any
7250// non-2xx status code is an error. Response headers are in either
7251// *GetHistogramResponse.ServerResponse.Header or (if a response was
7252// returned at all) in error.(*googleapi.Error).Header. Use
7253// googleapi.IsNotModified to check whether the returned error was
7254// because http.StatusNotModified was returned.
7255func (c *JobsHistogramCall) Do(opts ...googleapi.CallOption) (*GetHistogramResponse, error) {
7256	gensupport.SetOptions(c.urlParams_, opts...)
7257	res, err := c.doRequest("json")
7258	if res != nil && res.StatusCode == http.StatusNotModified {
7259		if res.Body != nil {
7260			res.Body.Close()
7261		}
7262		return nil, &googleapi.Error{
7263			Code:   res.StatusCode,
7264			Header: res.Header,
7265		}
7266	}
7267	if err != nil {
7268		return nil, err
7269	}
7270	defer googleapi.CloseBody(res)
7271	if err := googleapi.CheckResponse(res); err != nil {
7272		return nil, err
7273	}
7274	ret := &GetHistogramResponse{
7275		ServerResponse: googleapi.ServerResponse{
7276			Header:         res.Header,
7277			HTTPStatusCode: res.StatusCode,
7278		},
7279	}
7280	target := &ret
7281	if err := gensupport.DecodeResponse(target, res); err != nil {
7282		return nil, err
7283	}
7284	return ret, nil
7285	// {
7286	//   "description": "Deprecated. Use SearchJobsRequest.histogram_facets instead to make\na single call with both search and histogram.\n\nRetrieves a histogram for the given\nGetHistogramRequest. This call provides a structured\ncount of jobs that match against the search query, grouped by specified\nfacets.\n\nThis call constrains the visibility of jobs\npresent in the database, and only counts jobs the caller has\npermission to search against.\n\nFor example, use this call to generate the\nnumber of jobs in the U.S. by state.",
7287	//   "flatPath": "v2/jobs:histogram",
7288	//   "httpMethod": "POST",
7289	//   "id": "jobs.jobs.histogram",
7290	//   "parameterOrder": [],
7291	//   "parameters": {},
7292	//   "path": "v2/jobs:histogram",
7293	//   "request": {
7294	//     "$ref": "GetHistogramRequest"
7295	//   },
7296	//   "response": {
7297	//     "$ref": "GetHistogramResponse"
7298	//   },
7299	//   "scopes": [
7300	//     "https://www.googleapis.com/auth/cloud-platform",
7301	//     "https://www.googleapis.com/auth/jobs"
7302	//   ]
7303	// }
7304
7305}
7306
7307// method id "jobs.jobs.list":
7308
7309type JobsListCall struct {
7310	s            *Service
7311	urlParams_   gensupport.URLParams
7312	ifNoneMatch_ string
7313	ctx_         context.Context
7314	header_      http.Header
7315}
7316
7317// List: Lists jobs by filter.
7318func (r *JobsService) List() *JobsListCall {
7319	c := &JobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7320	return c
7321}
7322
7323// Filter sets the optional parameter "filter": Required. The filter
7324// string specifies the jobs to be enumerated.
7325//
7326// Supported operator: =, AND
7327//
7328// The fields eligible for filtering are:
7329//
7330// * `companyName` (Required)
7331// * `requisitionId` (Optional)
7332//
7333// Sample Query:
7334//
7335// * companyName = "companies/123"
7336// * companyName = "companies/123" AND requisitionId = "req-1"
7337func (c *JobsListCall) Filter(filter string) *JobsListCall {
7338	c.urlParams_.Set("filter", filter)
7339	return c
7340}
7341
7342// IdsOnly sets the optional parameter "idsOnly": If set to `true`, only
7343// Job.name, Job.requisition_id and
7344// Job.language_code will be returned.
7345//
7346// A typical use case is to synchronize job repositories.
7347//
7348// Defaults to false.
7349func (c *JobsListCall) IdsOnly(idsOnly bool) *JobsListCall {
7350	c.urlParams_.Set("idsOnly", fmt.Sprint(idsOnly))
7351	return c
7352}
7353
7354// PageSize sets the optional parameter "pageSize": The maximum number
7355// of jobs to be returned per page of results.
7356//
7357// If ids_only is set to true, the maximum allowed page size
7358// is 1000. Otherwise, the maximum allowed page size is 100.
7359//
7360// Default is 100 if empty or a number < 1 is specified.
7361func (c *JobsListCall) PageSize(pageSize int64) *JobsListCall {
7362	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7363	return c
7364}
7365
7366// PageToken sets the optional parameter "pageToken": The starting point
7367// of a query result.
7368func (c *JobsListCall) PageToken(pageToken string) *JobsListCall {
7369	c.urlParams_.Set("pageToken", pageToken)
7370	return c
7371}
7372
7373// Fields allows partial responses to be retrieved. See
7374// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7375// for more information.
7376func (c *JobsListCall) Fields(s ...googleapi.Field) *JobsListCall {
7377	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7378	return c
7379}
7380
7381// IfNoneMatch sets the optional parameter which makes the operation
7382// fail if the object's ETag matches the given value. This is useful for
7383// getting updates only after the object has changed since the last
7384// request. Use googleapi.IsNotModified to check whether the response
7385// error from Do is the result of In-None-Match.
7386func (c *JobsListCall) IfNoneMatch(entityTag string) *JobsListCall {
7387	c.ifNoneMatch_ = entityTag
7388	return c
7389}
7390
7391// Context sets the context to be used in this call's Do method. Any
7392// pending HTTP request will be aborted if the provided context is
7393// canceled.
7394func (c *JobsListCall) Context(ctx context.Context) *JobsListCall {
7395	c.ctx_ = ctx
7396	return c
7397}
7398
7399// Header returns an http.Header that can be modified by the caller to
7400// add HTTP headers to the request.
7401func (c *JobsListCall) Header() http.Header {
7402	if c.header_ == nil {
7403		c.header_ = make(http.Header)
7404	}
7405	return c.header_
7406}
7407
7408func (c *JobsListCall) doRequest(alt string) (*http.Response, error) {
7409	reqHeaders := make(http.Header)
7410	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7411	for k, v := range c.header_ {
7412		reqHeaders[k] = v
7413	}
7414	reqHeaders.Set("User-Agent", c.s.userAgent())
7415	if c.ifNoneMatch_ != "" {
7416		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7417	}
7418	var body io.Reader = nil
7419	c.urlParams_.Set("alt", alt)
7420	c.urlParams_.Set("prettyPrint", "false")
7421	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs")
7422	urls += "?" + c.urlParams_.Encode()
7423	req, err := http.NewRequest("GET", urls, body)
7424	if err != nil {
7425		return nil, err
7426	}
7427	req.Header = reqHeaders
7428	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7429}
7430
7431// Do executes the "jobs.jobs.list" call.
7432// Exactly one of *ListJobsResponse or error will be non-nil. Any
7433// non-2xx status code is an error. Response headers are in either
7434// *ListJobsResponse.ServerResponse.Header or (if a response was
7435// returned at all) in error.(*googleapi.Error).Header. Use
7436// googleapi.IsNotModified to check whether the returned error was
7437// because http.StatusNotModified was returned.
7438func (c *JobsListCall) Do(opts ...googleapi.CallOption) (*ListJobsResponse, error) {
7439	gensupport.SetOptions(c.urlParams_, opts...)
7440	res, err := c.doRequest("json")
7441	if res != nil && res.StatusCode == http.StatusNotModified {
7442		if res.Body != nil {
7443			res.Body.Close()
7444		}
7445		return nil, &googleapi.Error{
7446			Code:   res.StatusCode,
7447			Header: res.Header,
7448		}
7449	}
7450	if err != nil {
7451		return nil, err
7452	}
7453	defer googleapi.CloseBody(res)
7454	if err := googleapi.CheckResponse(res); err != nil {
7455		return nil, err
7456	}
7457	ret := &ListJobsResponse{
7458		ServerResponse: googleapi.ServerResponse{
7459			Header:         res.Header,
7460			HTTPStatusCode: res.StatusCode,
7461		},
7462	}
7463	target := &ret
7464	if err := gensupport.DecodeResponse(target, res); err != nil {
7465		return nil, err
7466	}
7467	return ret, nil
7468	// {
7469	//   "description": "Lists jobs by filter.",
7470	//   "flatPath": "v2/jobs",
7471	//   "httpMethod": "GET",
7472	//   "id": "jobs.jobs.list",
7473	//   "parameterOrder": [],
7474	//   "parameters": {
7475	//     "filter": {
7476	//       "description": "Required. The filter string specifies the jobs to be enumerated.\n\nSupported operator: =, AND\n\nThe fields eligible for filtering are:\n\n* `companyName` (Required)\n* `requisitionId` (Optional)\n\nSample Query:\n\n* companyName = \"companies/123\"\n* companyName = \"companies/123\" AND requisitionId = \"req-1\"",
7477	//       "location": "query",
7478	//       "type": "string"
7479	//     },
7480	//     "idsOnly": {
7481	//       "description": "Optional. If set to `true`, only Job.name, Job.requisition_id and\nJob.language_code will be returned.\n\nA typical use case is to synchronize job repositories.\n\nDefaults to false.",
7482	//       "location": "query",
7483	//       "type": "boolean"
7484	//     },
7485	//     "pageSize": {
7486	//       "description": "Optional. The maximum number of jobs to be returned per page of results.\n\nIf ids_only is set to true, the maximum allowed page size\nis 1000. Otherwise, the maximum allowed page size is 100.\n\nDefault is 100 if empty or a number \u003c 1 is specified.",
7487	//       "format": "int32",
7488	//       "location": "query",
7489	//       "type": "integer"
7490	//     },
7491	//     "pageToken": {
7492	//       "description": "Optional. The starting point of a query result.",
7493	//       "location": "query",
7494	//       "type": "string"
7495	//     }
7496	//   },
7497	//   "path": "v2/jobs",
7498	//   "response": {
7499	//     "$ref": "ListJobsResponse"
7500	//   },
7501	//   "scopes": [
7502	//     "https://www.googleapis.com/auth/cloud-platform",
7503	//     "https://www.googleapis.com/auth/jobs"
7504	//   ]
7505	// }
7506
7507}
7508
7509// Pages invokes f for each page of results.
7510// A non-nil error returned from f will halt the iteration.
7511// The provided context supersedes any context provided to the Context method.
7512func (c *JobsListCall) Pages(ctx context.Context, f func(*ListJobsResponse) error) error {
7513	c.ctx_ = ctx
7514	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
7515	for {
7516		x, err := c.Do()
7517		if err != nil {
7518			return err
7519		}
7520		if err := f(x); err != nil {
7521			return err
7522		}
7523		if x.NextPageToken == "" {
7524			return nil
7525		}
7526		c.PageToken(x.NextPageToken)
7527	}
7528}
7529
7530// method id "jobs.jobs.patch":
7531
7532type JobsPatchCall struct {
7533	s                *Service
7534	name             string
7535	updatejobrequest *UpdateJobRequest
7536	urlParams_       gensupport.URLParams
7537	ctx_             context.Context
7538	header_          http.Header
7539}
7540
7541// Patch: Updates specified job.
7542//
7543// Typically, updated contents become visible in search results within
7544// 10
7545// seconds, but it may take up to 5 minutes.
7546func (r *JobsService) Patch(name string, updatejobrequest *UpdateJobRequest) *JobsPatchCall {
7547	c := &JobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7548	c.name = name
7549	c.updatejobrequest = updatejobrequest
7550	return c
7551}
7552
7553// Fields allows partial responses to be retrieved. See
7554// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7555// for more information.
7556func (c *JobsPatchCall) Fields(s ...googleapi.Field) *JobsPatchCall {
7557	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7558	return c
7559}
7560
7561// Context sets the context to be used in this call's Do method. Any
7562// pending HTTP request will be aborted if the provided context is
7563// canceled.
7564func (c *JobsPatchCall) Context(ctx context.Context) *JobsPatchCall {
7565	c.ctx_ = ctx
7566	return c
7567}
7568
7569// Header returns an http.Header that can be modified by the caller to
7570// add HTTP headers to the request.
7571func (c *JobsPatchCall) Header() http.Header {
7572	if c.header_ == nil {
7573		c.header_ = make(http.Header)
7574	}
7575	return c.header_
7576}
7577
7578func (c *JobsPatchCall) doRequest(alt string) (*http.Response, error) {
7579	reqHeaders := make(http.Header)
7580	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7581	for k, v := range c.header_ {
7582		reqHeaders[k] = v
7583	}
7584	reqHeaders.Set("User-Agent", c.s.userAgent())
7585	var body io.Reader = nil
7586	body, err := googleapi.WithoutDataWrapper.JSONReader(c.updatejobrequest)
7587	if err != nil {
7588		return nil, err
7589	}
7590	reqHeaders.Set("Content-Type", "application/json")
7591	c.urlParams_.Set("alt", alt)
7592	c.urlParams_.Set("prettyPrint", "false")
7593	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
7594	urls += "?" + c.urlParams_.Encode()
7595	req, err := http.NewRequest("PATCH", urls, body)
7596	if err != nil {
7597		return nil, err
7598	}
7599	req.Header = reqHeaders
7600	googleapi.Expand(req.URL, map[string]string{
7601		"name": c.name,
7602	})
7603	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7604}
7605
7606// Do executes the "jobs.jobs.patch" call.
7607// Exactly one of *Job or error will be non-nil. Any non-2xx status code
7608// is an error. Response headers are in either
7609// *Job.ServerResponse.Header or (if a response was returned at all) in
7610// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7611// whether the returned error was because http.StatusNotModified was
7612// returned.
7613func (c *JobsPatchCall) Do(opts ...googleapi.CallOption) (*Job, error) {
7614	gensupport.SetOptions(c.urlParams_, opts...)
7615	res, err := c.doRequest("json")
7616	if res != nil && res.StatusCode == http.StatusNotModified {
7617		if res.Body != nil {
7618			res.Body.Close()
7619		}
7620		return nil, &googleapi.Error{
7621			Code:   res.StatusCode,
7622			Header: res.Header,
7623		}
7624	}
7625	if err != nil {
7626		return nil, err
7627	}
7628	defer googleapi.CloseBody(res)
7629	if err := googleapi.CheckResponse(res); err != nil {
7630		return nil, err
7631	}
7632	ret := &Job{
7633		ServerResponse: googleapi.ServerResponse{
7634			Header:         res.Header,
7635			HTTPStatusCode: res.StatusCode,
7636		},
7637	}
7638	target := &ret
7639	if err := gensupport.DecodeResponse(target, res); err != nil {
7640		return nil, err
7641	}
7642	return ret, nil
7643	// {
7644	//   "description": "Updates specified job.\n\nTypically, updated contents become visible in search results within 10\nseconds, but it may take up to 5 minutes.",
7645	//   "flatPath": "v2/jobs/{jobsId}",
7646	//   "httpMethod": "PATCH",
7647	//   "id": "jobs.jobs.patch",
7648	//   "parameterOrder": [
7649	//     "name"
7650	//   ],
7651	//   "parameters": {
7652	//     "name": {
7653	//       "description": "Required during job update.\n\nResource name assigned to a job by the API, for example, \"/jobs/foo\". Use\nof this field in job queries and API calls is preferred over the use of\nrequisition_id since this value is unique.",
7654	//       "location": "path",
7655	//       "pattern": "^jobs/[^/]+$",
7656	//       "required": true,
7657	//       "type": "string"
7658	//     }
7659	//   },
7660	//   "path": "v2/{+name}",
7661	//   "request": {
7662	//     "$ref": "UpdateJobRequest"
7663	//   },
7664	//   "response": {
7665	//     "$ref": "Job"
7666	//   },
7667	//   "scopes": [
7668	//     "https://www.googleapis.com/auth/cloud-platform",
7669	//     "https://www.googleapis.com/auth/jobs"
7670	//   ]
7671	// }
7672
7673}
7674
7675// method id "jobs.jobs.search":
7676
7677type JobsSearchCall struct {
7678	s                 *Service
7679	searchjobsrequest *SearchJobsRequest
7680	urlParams_        gensupport.URLParams
7681	ctx_              context.Context
7682	header_           http.Header
7683}
7684
7685// Search: Searches for jobs using the provided SearchJobsRequest.
7686//
7687// This call constrains the visibility of jobs
7688// present in the database, and only returns jobs that the caller
7689// has
7690// permission to search against.
7691func (r *JobsService) Search(searchjobsrequest *SearchJobsRequest) *JobsSearchCall {
7692	c := &JobsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7693	c.searchjobsrequest = searchjobsrequest
7694	return c
7695}
7696
7697// Fields allows partial responses to be retrieved. See
7698// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7699// for more information.
7700func (c *JobsSearchCall) Fields(s ...googleapi.Field) *JobsSearchCall {
7701	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7702	return c
7703}
7704
7705// Context sets the context to be used in this call's Do method. Any
7706// pending HTTP request will be aborted if the provided context is
7707// canceled.
7708func (c *JobsSearchCall) Context(ctx context.Context) *JobsSearchCall {
7709	c.ctx_ = ctx
7710	return c
7711}
7712
7713// Header returns an http.Header that can be modified by the caller to
7714// add HTTP headers to the request.
7715func (c *JobsSearchCall) Header() http.Header {
7716	if c.header_ == nil {
7717		c.header_ = make(http.Header)
7718	}
7719	return c.header_
7720}
7721
7722func (c *JobsSearchCall) doRequest(alt string) (*http.Response, error) {
7723	reqHeaders := make(http.Header)
7724	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7725	for k, v := range c.header_ {
7726		reqHeaders[k] = v
7727	}
7728	reqHeaders.Set("User-Agent", c.s.userAgent())
7729	var body io.Reader = nil
7730	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchjobsrequest)
7731	if err != nil {
7732		return nil, err
7733	}
7734	reqHeaders.Set("Content-Type", "application/json")
7735	c.urlParams_.Set("alt", alt)
7736	c.urlParams_.Set("prettyPrint", "false")
7737	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:search")
7738	urls += "?" + c.urlParams_.Encode()
7739	req, err := http.NewRequest("POST", urls, body)
7740	if err != nil {
7741		return nil, err
7742	}
7743	req.Header = reqHeaders
7744	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7745}
7746
7747// Do executes the "jobs.jobs.search" call.
7748// Exactly one of *SearchJobsResponse or error will be non-nil. Any
7749// non-2xx status code is an error. Response headers are in either
7750// *SearchJobsResponse.ServerResponse.Header or (if a response was
7751// returned at all) in error.(*googleapi.Error).Header. Use
7752// googleapi.IsNotModified to check whether the returned error was
7753// because http.StatusNotModified was returned.
7754func (c *JobsSearchCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, error) {
7755	gensupport.SetOptions(c.urlParams_, opts...)
7756	res, err := c.doRequest("json")
7757	if res != nil && res.StatusCode == http.StatusNotModified {
7758		if res.Body != nil {
7759			res.Body.Close()
7760		}
7761		return nil, &googleapi.Error{
7762			Code:   res.StatusCode,
7763			Header: res.Header,
7764		}
7765	}
7766	if err != nil {
7767		return nil, err
7768	}
7769	defer googleapi.CloseBody(res)
7770	if err := googleapi.CheckResponse(res); err != nil {
7771		return nil, err
7772	}
7773	ret := &SearchJobsResponse{
7774		ServerResponse: googleapi.ServerResponse{
7775			Header:         res.Header,
7776			HTTPStatusCode: res.StatusCode,
7777		},
7778	}
7779	target := &ret
7780	if err := gensupport.DecodeResponse(target, res); err != nil {
7781		return nil, err
7782	}
7783	return ret, nil
7784	// {
7785	//   "description": "Searches for jobs using the provided SearchJobsRequest.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs that the caller has\npermission to search against.",
7786	//   "flatPath": "v2/jobs:search",
7787	//   "httpMethod": "POST",
7788	//   "id": "jobs.jobs.search",
7789	//   "parameterOrder": [],
7790	//   "parameters": {},
7791	//   "path": "v2/jobs:search",
7792	//   "request": {
7793	//     "$ref": "SearchJobsRequest"
7794	//   },
7795	//   "response": {
7796	//     "$ref": "SearchJobsResponse"
7797	//   },
7798	//   "scopes": [
7799	//     "https://www.googleapis.com/auth/cloud-platform",
7800	//     "https://www.googleapis.com/auth/jobs"
7801	//   ]
7802	// }
7803
7804}
7805
7806// Pages invokes f for each page of results.
7807// A non-nil error returned from f will halt the iteration.
7808// The provided context supersedes any context provided to the Context method.
7809func (c *JobsSearchCall) Pages(ctx context.Context, f func(*SearchJobsResponse) error) error {
7810	c.ctx_ = ctx
7811	defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) // reset paging to original point
7812	for {
7813		x, err := c.Do()
7814		if err != nil {
7815			return err
7816		}
7817		if err := f(x); err != nil {
7818			return err
7819		}
7820		if x.NextPageToken == "" {
7821			return nil
7822		}
7823		c.searchjobsrequest.PageToken = x.NextPageToken
7824	}
7825}
7826
7827// method id "jobs.jobs.searchForAlert":
7828
7829type JobsSearchForAlertCall struct {
7830	s                 *Service
7831	searchjobsrequest *SearchJobsRequest
7832	urlParams_        gensupport.URLParams
7833	ctx_              context.Context
7834	header_           http.Header
7835}
7836
7837// SearchForAlert: Searches for jobs using the provided
7838// SearchJobsRequest.
7839//
7840// This API call is intended for the use case of targeting passive
7841// job
7842// seekers (for example, job seekers who have signed up to receive
7843// email
7844// alerts about potential job opportunities), and has different
7845// algorithmic
7846// adjustments that are targeted to passive job seekers.
7847//
7848// This call constrains the visibility of jobs
7849// present in the database, and only returns jobs the caller
7850// has
7851// permission to search against.
7852func (r *JobsService) SearchForAlert(searchjobsrequest *SearchJobsRequest) *JobsSearchForAlertCall {
7853	c := &JobsSearchForAlertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7854	c.searchjobsrequest = searchjobsrequest
7855	return c
7856}
7857
7858// Fields allows partial responses to be retrieved. See
7859// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7860// for more information.
7861func (c *JobsSearchForAlertCall) Fields(s ...googleapi.Field) *JobsSearchForAlertCall {
7862	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7863	return c
7864}
7865
7866// Context sets the context to be used in this call's Do method. Any
7867// pending HTTP request will be aborted if the provided context is
7868// canceled.
7869func (c *JobsSearchForAlertCall) Context(ctx context.Context) *JobsSearchForAlertCall {
7870	c.ctx_ = ctx
7871	return c
7872}
7873
7874// Header returns an http.Header that can be modified by the caller to
7875// add HTTP headers to the request.
7876func (c *JobsSearchForAlertCall) Header() http.Header {
7877	if c.header_ == nil {
7878		c.header_ = make(http.Header)
7879	}
7880	return c.header_
7881}
7882
7883func (c *JobsSearchForAlertCall) doRequest(alt string) (*http.Response, error) {
7884	reqHeaders := make(http.Header)
7885	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
7886	for k, v := range c.header_ {
7887		reqHeaders[k] = v
7888	}
7889	reqHeaders.Set("User-Agent", c.s.userAgent())
7890	var body io.Reader = nil
7891	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchjobsrequest)
7892	if err != nil {
7893		return nil, err
7894	}
7895	reqHeaders.Set("Content-Type", "application/json")
7896	c.urlParams_.Set("alt", alt)
7897	c.urlParams_.Set("prettyPrint", "false")
7898	urls := googleapi.ResolveRelative(c.s.BasePath, "v2/jobs:searchForAlert")
7899	urls += "?" + c.urlParams_.Encode()
7900	req, err := http.NewRequest("POST", urls, body)
7901	if err != nil {
7902		return nil, err
7903	}
7904	req.Header = reqHeaders
7905	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7906}
7907
7908// Do executes the "jobs.jobs.searchForAlert" call.
7909// Exactly one of *SearchJobsResponse or error will be non-nil. Any
7910// non-2xx status code is an error. Response headers are in either
7911// *SearchJobsResponse.ServerResponse.Header or (if a response was
7912// returned at all) in error.(*googleapi.Error).Header. Use
7913// googleapi.IsNotModified to check whether the returned error was
7914// because http.StatusNotModified was returned.
7915func (c *JobsSearchForAlertCall) Do(opts ...googleapi.CallOption) (*SearchJobsResponse, error) {
7916	gensupport.SetOptions(c.urlParams_, opts...)
7917	res, err := c.doRequest("json")
7918	if res != nil && res.StatusCode == http.StatusNotModified {
7919		if res.Body != nil {
7920			res.Body.Close()
7921		}
7922		return nil, &googleapi.Error{
7923			Code:   res.StatusCode,
7924			Header: res.Header,
7925		}
7926	}
7927	if err != nil {
7928		return nil, err
7929	}
7930	defer googleapi.CloseBody(res)
7931	if err := googleapi.CheckResponse(res); err != nil {
7932		return nil, err
7933	}
7934	ret := &SearchJobsResponse{
7935		ServerResponse: googleapi.ServerResponse{
7936			Header:         res.Header,
7937			HTTPStatusCode: res.StatusCode,
7938		},
7939	}
7940	target := &ret
7941	if err := gensupport.DecodeResponse(target, res); err != nil {
7942		return nil, err
7943	}
7944	return ret, nil
7945	// {
7946	//   "description": "Searches for jobs using the provided SearchJobsRequest.\n\nThis API call is intended for the use case of targeting passive job\nseekers (for example, job seekers who have signed up to receive email\nalerts about potential job opportunities), and has different algorithmic\nadjustments that are targeted to passive job seekers.\n\nThis call constrains the visibility of jobs\npresent in the database, and only returns jobs the caller has\npermission to search against.",
7947	//   "flatPath": "v2/jobs:searchForAlert",
7948	//   "httpMethod": "POST",
7949	//   "id": "jobs.jobs.searchForAlert",
7950	//   "parameterOrder": [],
7951	//   "parameters": {},
7952	//   "path": "v2/jobs:searchForAlert",
7953	//   "request": {
7954	//     "$ref": "SearchJobsRequest"
7955	//   },
7956	//   "response": {
7957	//     "$ref": "SearchJobsResponse"
7958	//   },
7959	//   "scopes": [
7960	//     "https://www.googleapis.com/auth/cloud-platform",
7961	//     "https://www.googleapis.com/auth/jobs"
7962	//   ]
7963	// }
7964
7965}
7966
7967// Pages invokes f for each page of results.
7968// A non-nil error returned from f will halt the iteration.
7969// The provided context supersedes any context provided to the Context method.
7970func (c *JobsSearchForAlertCall) Pages(ctx context.Context, f func(*SearchJobsResponse) error) error {
7971	c.ctx_ = ctx
7972	defer func(pt string) { c.searchjobsrequest.PageToken = pt }(c.searchjobsrequest.PageToken) // reset paging to original point
7973	for {
7974		x, err := c.Do()
7975		if err != nil {
7976			return err
7977		}
7978		if err := f(x); err != nil {
7979			return err
7980		}
7981		if x.NextPageToken == "" {
7982			return nil
7983		}
7984		c.searchjobsrequest.PageToken = x.NextPageToken
7985	}
7986}
7987
7988// method id "jobs.complete":
7989
7990type V2CompleteCall struct {
7991	s            *Service
7992	urlParams_   gensupport.URLParams
7993	ifNoneMatch_ string
7994	ctx_         context.Context
7995	header_      http.Header
7996}
7997
7998// Complete: Completes the specified prefix with job keyword
7999// suggestions.
8000// Intended for use by a job search auto-complete search box.
8001func (r *V2Service) Complete() *V2CompleteCall {
8002	c := &V2CompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8003	return c
8004}
8005
8006// CompanyName sets the optional parameter "companyName": If provided,
8007// restricts completion to the specified company.
8008func (c *V2CompleteCall) CompanyName(companyName string) *V2CompleteCall {
8009	c.urlParams_.Set("companyName", companyName)
8010	return c
8011}
8012
8013// LanguageCode sets the optional parameter "languageCode": Required.
8014// The language of the query. This is
8015// the BCP-47 language code, such as "en-US" or "sr-Latn".
8016// For more information, see
8017// [Tags for Identifying
8018// Languages](https://tools.ietf.org/html/bcp47).
8019//
8020// For CompletionType.JOB_TITLE type, only open jobs with
8021// same
8022// language_code are returned.
8023//
8024// For CompletionType.COMPANY_NAME type,
8025// only companies having open jobs with same language_code
8026// are
8027// returned.
8028//
8029// For CompletionType.COMBINED type, only open jobs with
8030// same
8031// language_code or companies having open jobs with same
8032// language_code are returned.
8033func (c *V2CompleteCall) LanguageCode(languageCode string) *V2CompleteCall {
8034	c.urlParams_.Set("languageCode", languageCode)
8035	return c
8036}
8037
8038// PageSize sets the optional parameter "pageSize": Required. Completion
8039// result count.
8040// The maximum allowed page size is 10.
8041func (c *V2CompleteCall) PageSize(pageSize int64) *V2CompleteCall {
8042	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8043	return c
8044}
8045
8046// Query sets the optional parameter "query": Required. The query used
8047// to generate suggestions.
8048func (c *V2CompleteCall) Query(query string) *V2CompleteCall {
8049	c.urlParams_.Set("query", query)
8050	return c
8051}
8052
8053// Scope sets the optional parameter "scope": The scope of the
8054// completion. The defaults is CompletionScope.PUBLIC.
8055//
8056// Possible values:
8057//   "COMPLETION_SCOPE_UNSPECIFIED"
8058//   "TENANT"
8059//   "PUBLIC"
8060func (c *V2CompleteCall) Scope(scope string) *V2CompleteCall {
8061	c.urlParams_.Set("scope", scope)
8062	return c
8063}
8064
8065// Type sets the optional parameter "type": The completion topic. The
8066// default is CompletionType.COMBINED.
8067//
8068// Possible values:
8069//   "COMPLETION_TYPE_UNSPECIFIED"
8070//   "JOB_TITLE"
8071//   "COMPANY_NAME"
8072//   "COMBINED"
8073func (c *V2CompleteCall) Type(type_ string) *V2CompleteCall {
8074	c.urlParams_.Set("type", type_)
8075	return c
8076}
8077
8078// Fields allows partial responses to be retrieved. See
8079// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8080// for more information.
8081func (c *V2CompleteCall) Fields(s ...googleapi.Field) *V2CompleteCall {
8082	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8083	return c
8084}
8085
8086// IfNoneMatch sets the optional parameter which makes the operation
8087// fail if the object's ETag matches the given value. This is useful for
8088// getting updates only after the object has changed since the last
8089// request. Use googleapi.IsNotModified to check whether the response
8090// error from Do is the result of In-None-Match.
8091func (c *V2CompleteCall) IfNoneMatch(entityTag string) *V2CompleteCall {
8092	c.ifNoneMatch_ = entityTag
8093	return c
8094}
8095
8096// Context sets the context to be used in this call's Do method. Any
8097// pending HTTP request will be aborted if the provided context is
8098// canceled.
8099func (c *V2CompleteCall) Context(ctx context.Context) *V2CompleteCall {
8100	c.ctx_ = ctx
8101	return c
8102}
8103
8104// Header returns an http.Header that can be modified by the caller to
8105// add HTTP headers to the request.
8106func (c *V2CompleteCall) Header() http.Header {
8107	if c.header_ == nil {
8108		c.header_ = make(http.Header)
8109	}
8110	return c.header_
8111}
8112
8113func (c *V2CompleteCall) doRequest(alt string) (*http.Response, error) {
8114	reqHeaders := make(http.Header)
8115	reqHeaders.Set("x-goog-api-client", "gl-go/1.13.4 gdcl/20191114")
8116	for k, v := range c.header_ {
8117		reqHeaders[k] = v
8118	}
8119	reqHeaders.Set("User-Agent", c.s.userAgent())
8120	if c.ifNoneMatch_ != "" {
8121		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8122	}
8123	var body io.Reader = nil
8124	c.urlParams_.Set("alt", alt)
8125	c.urlParams_.Set("prettyPrint", "false")
8126	urls := googleapi.ResolveRelative(c.s.BasePath, "v2:complete")
8127	urls += "?" + c.urlParams_.Encode()
8128	req, err := http.NewRequest("GET", urls, body)
8129	if err != nil {
8130		return nil, err
8131	}
8132	req.Header = reqHeaders
8133	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8134}
8135
8136// Do executes the "jobs.complete" call.
8137// Exactly one of *CompleteQueryResponse or error will be non-nil. Any
8138// non-2xx status code is an error. Response headers are in either
8139// *CompleteQueryResponse.ServerResponse.Header or (if a response was
8140// returned at all) in error.(*googleapi.Error).Header. Use
8141// googleapi.IsNotModified to check whether the returned error was
8142// because http.StatusNotModified was returned.
8143func (c *V2CompleteCall) Do(opts ...googleapi.CallOption) (*CompleteQueryResponse, error) {
8144	gensupport.SetOptions(c.urlParams_, opts...)
8145	res, err := c.doRequest("json")
8146	if res != nil && res.StatusCode == http.StatusNotModified {
8147		if res.Body != nil {
8148			res.Body.Close()
8149		}
8150		return nil, &googleapi.Error{
8151			Code:   res.StatusCode,
8152			Header: res.Header,
8153		}
8154	}
8155	if err != nil {
8156		return nil, err
8157	}
8158	defer googleapi.CloseBody(res)
8159	if err := googleapi.CheckResponse(res); err != nil {
8160		return nil, err
8161	}
8162	ret := &CompleteQueryResponse{
8163		ServerResponse: googleapi.ServerResponse{
8164			Header:         res.Header,
8165			HTTPStatusCode: res.StatusCode,
8166		},
8167	}
8168	target := &ret
8169	if err := gensupport.DecodeResponse(target, res); err != nil {
8170		return nil, err
8171	}
8172	return ret, nil
8173	// {
8174	//   "description": "Completes the specified prefix with job keyword suggestions.\nIntended for use by a job search auto-complete search box.",
8175	//   "flatPath": "v2:complete",
8176	//   "httpMethod": "GET",
8177	//   "id": "jobs.complete",
8178	//   "parameterOrder": [],
8179	//   "parameters": {
8180	//     "companyName": {
8181	//       "description": "Optional. If provided, restricts completion to the specified company.",
8182	//       "location": "query",
8183	//       "type": "string"
8184	//     },
8185	//     "languageCode": {
8186	//       "description": "Required. The language of the query. This is\nthe BCP-47 language code, such as \"en-US\" or \"sr-Latn\".\nFor more information, see\n[Tags for Identifying Languages](https://tools.ietf.org/html/bcp47).\n\nFor CompletionType.JOB_TITLE type, only open jobs with same\nlanguage_code are returned.\n\nFor CompletionType.COMPANY_NAME type,\nonly companies having open jobs with same language_code are\nreturned.\n\nFor CompletionType.COMBINED type, only open jobs with same\nlanguage_code or companies having open jobs with same\nlanguage_code are returned.",
8187	//       "location": "query",
8188	//       "type": "string"
8189	//     },
8190	//     "pageSize": {
8191	//       "description": "Required. Completion result count.\nThe maximum allowed page size is 10.",
8192	//       "format": "int32",
8193	//       "location": "query",
8194	//       "type": "integer"
8195	//     },
8196	//     "query": {
8197	//       "description": "Required. The query used to generate suggestions.",
8198	//       "location": "query",
8199	//       "type": "string"
8200	//     },
8201	//     "scope": {
8202	//       "description": "Optional. The scope of the completion. The defaults is CompletionScope.PUBLIC.",
8203	//       "enum": [
8204	//         "COMPLETION_SCOPE_UNSPECIFIED",
8205	//         "TENANT",
8206	//         "PUBLIC"
8207	//       ],
8208	//       "location": "query",
8209	//       "type": "string"
8210	//     },
8211	//     "type": {
8212	//       "description": "Optional. The completion topic. The default is CompletionType.COMBINED.",
8213	//       "enum": [
8214	//         "COMPLETION_TYPE_UNSPECIFIED",
8215	//         "JOB_TITLE",
8216	//         "COMPANY_NAME",
8217	//         "COMBINED"
8218	//       ],
8219	//       "location": "query",
8220	//       "type": "string"
8221	//     }
8222	//   },
8223	//   "path": "v2:complete",
8224	//   "response": {
8225	//     "$ref": "CompleteQueryResponse"
8226	//   },
8227	//   "scopes": [
8228	//     "https://www.googleapis.com/auth/cloud-platform",
8229	//     "https://www.googleapis.com/auth/jobs"
8230	//   ]
8231	// }
8232
8233}
8234