You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

8296 line
287 KiB

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