Movatterモバイル変換


[0]ホーム

URL:


jobs

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package jobs provides access to the Cloud Talent Solution API.

For product documentation, see:https://cloud.google.com/talent-solution/job-search/docs/

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/jobs/v3p1beta1"...ctx := context.Background()jobsService, err := jobs.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:

jobsService, err := jobs.NewService(ctx, option.WithScopes(jobs.JobsScope))

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

jobsService, err := jobs.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)jobsService, err := jobs.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// See, edit, configure, and delete your Google Cloud data and see the email// address for your Google Account.CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"// Manage job postingsJobsScope = "https://www.googleapis.com/auth/jobs")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeApplicationInfo

type ApplicationInfo struct {// Emails: Optional but at least one of uris, emails or instruction must be// specified. Use this field to specify email address(es) to which resumes or// applications can be sent. The maximum number of allowed characters for each// entry is 255.Emails []string `json:"emails,omitempty"`// Instruction: Optional but at least one of uris, emails or instruction must// be specified. Use this field to provide instructions, such as "Mail your// application to ...", that a candidate can follow to apply for the job. This// field accepts and sanitizes HTML input, and also accepts bold, italic,// ordered list, and unordered list markup tags. The maximum number of allowed// characters is 3,000.Instructionstring `json:"instruction,omitempty"`// Uris: Optional but at least one of uris, emails or instruction must be// specified. Use this URI field to direct an applicant to a website, for// example to link to an online application form. The maximum number of allowed// characters for each entry is 2,000.Uris []string `json:"uris,omitempty"`// ForceSendFields is a list of field names (e.g. "Emails") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Emails") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApplicationInfo: Application related details of a job posting.

func (ApplicationInfo)MarshalJSON

func (sApplicationInfo) MarshalJSON() ([]byte,error)

typeBatchDeleteJobsRequest

type BatchDeleteJobsRequest struct {// Filter: Required. The filter string specifies the jobs to be deleted.// Supported operator: =, AND The fields eligible for filtering are: *// `companyName` (Required) * `requisitionId` (Required) Sample Query:// companyName = "projects/api-test-project/companies/123" AND requisitionId =// "req-1"Filterstring `json:"filter,omitempty"`// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Filter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BatchDeleteJobsRequest: Input only. Batch delete jobs request.

func (BatchDeleteJobsRequest)MarshalJSON

func (sBatchDeleteJobsRequest) MarshalJSON() ([]byte,error)

typeBucketRange

type BucketRange struct {// From: Starting value of the bucket range.Fromfloat64 `json:"from,omitempty"`// To: Ending value of the bucket range.Tofloat64 `json:"to,omitempty"`// ForceSendFields is a list of field names (e.g. "From") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "From") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BucketRange: Represents starting and ending value of a range in double.

func (BucketRange)MarshalJSON

func (sBucketRange) MarshalJSON() ([]byte,error)

func (*BucketRange)UnmarshalJSON

func (s *BucketRange) UnmarshalJSON(data []byte)error

typeBucketizedCount

type BucketizedCount struct {// Count: Number of jobs whose numeric field value fall into `range`.Countint64 `json:"count,omitempty"`// Range: Bucket range on which histogram was performed for the numeric field,// that is, the count represents number of jobs in this range.Range *BucketRange `json:"range,omitempty"`// ForceSendFields is a list of field names (e.g. "Count") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Count") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BucketizedCount: Represents count of jobs within one bucket.

func (BucketizedCount)MarshalJSON

func (sBucketizedCount) MarshalJSON() ([]byte,error)

typeClientEvent

type ClientEvent struct {// CreateTime: Required. The timestamp of the event.CreateTimestring `json:"createTime,omitempty"`// EventId: Required. A unique identifier, generated by the client application.// This `event_id` is used to establish the relationship between different// events (see parent_event_id).EventIdstring `json:"eventId,omitempty"`// ExtraInfo: Optional. Extra information about this event. Used for storing// information with no matching field in event payload, for example, user// application specific context or details. At most 20 keys are supported. The// maximum total size of all keys and values is 2 KB.ExtraInfo map[string]string `json:"extraInfo,omitempty"`// JobEvent: A event issued when a job seeker interacts with the application// that implements Cloud Talent Solution.JobEvent *JobEvent `json:"jobEvent,omitempty"`// ParentEventId: Optional. The event_id of an event that resulted in the// current event. For example, a Job view event usually follows a parent// impression event: A job seeker first does a search where a list of jobs// appears (impression). The job seeker then selects a result and views the// description of a particular job (Job view).ParentEventIdstring `json:"parentEventId,omitempty"`// RequestId: Required. A unique ID generated in the API responses. It can be// found in ResponseMetadata.request_id.RequestIdstring `json:"requestId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreateTime") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClientEvent: An event issued when an end user interacts with the applicationthat implements Cloud Talent Solution. Providing this information improvesthe quality of search and recommendation for the API clients, enabling theservice to perform optimally. The number of events sent must be consistentwith other calls, such as job searches, issued to the service by the client.

func (ClientEvent)MarshalJSON

func (sClientEvent) MarshalJSON() ([]byte,error)

typeCommuteFilter

type CommuteFilter struct {// AllowImpreciseAddresses: Optional. If true, jobs without "precise" addresses// (street level addresses or GPS coordinates) might also be returned. For city// and coarser level addresses, text matching is used. If this field is set to// false or is not specified, only jobs that include precise addresses are// returned by Commute Search. Note: If `allow_imprecise_addresses` is set to// true, Commute Search is not able to calculate accurate commute times to jobs// with city level and coarser address information. Jobs with imprecise// addresses will return a `travel_duration` time of 0 regardless of distance// from the job seeker.AllowImpreciseAddressesbool `json:"allowImpreciseAddresses,omitempty"`// CommuteMethod: Required. The method of transportation for which to calculate// the commute time.//// Possible values://   "COMMUTE_METHOD_UNSPECIFIED" - Commute method is not specified.//   "DRIVING" - Commute time is calculated based on driving time.//   "TRANSIT" - Commute time is calculated based on public transit including// bus, metro, subway, etc.//   "WALKING" - Commute time is calculated based on walking time.//   "CYCLING" - Commute time is calculated based on biking time.CommuteMethodstring `json:"commuteMethod,omitempty"`// DepartureTime: Optional. The departure time used to calculate traffic// impact, represented as google.type.TimeOfDay in local time zone. Currently// traffic model is restricted to hour level resolution.DepartureTime *TimeOfDay `json:"departureTime,omitempty"`// RoadTraffic: Optional. Specifies the traffic density to use when calculating// commute time.//// Possible values://   "ROAD_TRAFFIC_UNSPECIFIED" - Road traffic situation is not specified.//   "TRAFFIC_FREE" - Optimal commute time without considering any traffic// impact.//   "BUSY_HOUR" - Commute time calculation takes in account the peak traffic// impact.RoadTrafficstring `json:"roadTraffic,omitempty"`// StartCoordinates: Required. The latitude and longitude of the location from// which to calculate the commute time.StartCoordinates *LatLng `json:"startCoordinates,omitempty"`// TravelDuration: Required. The maximum travel time in seconds. The maximum// allowed value is `3600s` (one hour). Format is `123s`.TravelDurationstring `json:"travelDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "AllowImpreciseAddresses") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AllowImpreciseAddresses") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CommuteFilter: Input only. Parameters needed for commute search.

func (CommuteFilter)MarshalJSON

func (sCommuteFilter) MarshalJSON() ([]byte,error)

typeCommuteInfo

type CommuteInfo struct {// JobLocation: Location used as the destination in the commute calculation.JobLocation *Location `json:"jobLocation,omitempty"`// TravelDuration: The number of seconds required to travel to the job location// from the query location. A duration of 0 seconds indicates that the job is// not reachable within the requested duration, but was returned as part of an// expanded query.TravelDurationstring `json:"travelDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "JobLocation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "JobLocation") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CommuteInfo: Output only. Commute details related to this job.

func (CommuteInfo)MarshalJSON

func (sCommuteInfo) MarshalJSON() ([]byte,error)

typeCompany

type Company struct {// CareerSiteUri: Optional. The URI to employer's career site or careers page// on the employer's web site, for example, "https://careers.google.com".CareerSiteUristring `json:"careerSiteUri,omitempty"`// DerivedInfo: Output only. Derived details about the company.DerivedInfo *CompanyDerivedInfo `json:"derivedInfo,omitempty"`// DisplayName: Required. The display name of the company, for example, "Google// LLC".DisplayNamestring `json:"displayName,omitempty"`// EeoText: Optional. Equal Employment Opportunity legal disclaimer text to be// associated with all jobs, and typically to be displayed in all roles. The// maximum number of allowed characters is 500.EeoTextstring `json:"eeoText,omitempty"`// ExternalId: Required. Client side company identifier, used to uniquely// identify the company. The maximum number of allowed characters is 255.ExternalIdstring `json:"externalId,omitempty"`// HeadquartersAddress: Optional. The street address of the company's main// headquarters, which may be different from the job location. The service// attempts to geolocate the provided address, and populates a more specific// location wherever possible in DerivedInfo.headquarters_location.HeadquartersAddressstring `json:"headquartersAddress,omitempty"`// HiringAgency: Optional. Set to true if it is the hiring agency that post// jobs for other employers. Defaults to false if not provided.HiringAgencybool `json:"hiringAgency,omitempty"`// ImageUri: Optional. A URI that hosts the employer's company logo.ImageUristring `json:"imageUri,omitempty"`// KeywordSearchableJobCustomAttributes: Optional. This field is deprecated.// Please set the searchability of the custom attribute in the// Job.custom_attributes going forward. A list of keys of filterable// Job.custom_attributes, whose corresponding `string_values` are used in// keyword search. Jobs with `string_values` under these specified field keys// are returned if any of the values matches the search keyword. Custom field// values with parenthesis, brackets and special symbols won't be properly// searchable, and those keyword queries need to be surrounded by quotes.KeywordSearchableJobCustomAttributes []string `json:"keywordSearchableJobCustomAttributes,omitempty"`// Name: Required during company update. The resource name for a company. This// is generated by the service when a company is created. The format is// "projects/{project_id}/companies/{company_id}", for example,// "projects/api-test-project/companies/foo".Namestring `json:"name,omitempty"`// Size: Optional. The employer's company size.//// Possible values://   "COMPANY_SIZE_UNSPECIFIED" - Default value if the size is not specified.//   "MINI" - The company has less than 50 employees.//   "SMALL" - The company has between 50 and 99 employees.//   "SMEDIUM" - The company has between 100 and 499 employees.//   "MEDIUM" - The company has between 500 and 999 employees.//   "BIG" - The company has between 1,000 and 4,999 employees.//   "BIGGER" - The company has between 5,000 and 9,999 employees.//   "GIANT" - The company has 10,000 or more employees.Sizestring `json:"size,omitempty"`// Suspended: Output only. Indicates whether a company is flagged to be// suspended from public availability by the service when job content appears// suspicious, abusive, or spammy.Suspendedbool `json:"suspended,omitempty"`// WebsiteUri: Optional. The URI representing the company's primary web site or// home page, for example, "https://www.google.com". The maximum number of// allowed characters is 255.WebsiteUristring `json:"websiteUri,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CareerSiteUri") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CareerSiteUri") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Company: A Company resource represents a company in the service. A companyis the entity that owns job postings, that is, the hiring entity responsiblefor employing applicants for the job position.

func (Company)MarshalJSON

func (sCompany) MarshalJSON() ([]byte,error)

typeCompanyDerivedInfo

type CompanyDerivedInfo struct {// HeadquartersLocation: A structured headquarters location of the company,// resolved from Company.hq_location if provided.HeadquartersLocation *Location `json:"headquartersLocation,omitempty"`// ForceSendFields is a list of field names (e.g. "HeadquartersLocation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HeadquartersLocation") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompanyDerivedInfo: Derived details about the company.

func (CompanyDerivedInfo)MarshalJSON

func (sCompanyDerivedInfo) MarshalJSON() ([]byte,error)

typeCompensationEntry

type CompensationEntry struct {// Amount: Optional. Compensation amount.Amount *Money `json:"amount,omitempty"`// Description: Optional. Compensation description. For example, could indicate// equity terms or provide additional context to an estimated bonus.Descriptionstring `json:"description,omitempty"`// ExpectedUnitsPerYear: Optional. Expected number of units paid each year. If// not specified, when Job.employment_types is FULLTIME, a default value is// inferred based on unit. Default values: - HOURLY: 2080 - DAILY: 260 -// WEEKLY: 52 - MONTHLY: 12 - ANNUAL: 1ExpectedUnitsPerYearfloat64 `json:"expectedUnitsPerYear,omitempty"`// Range: Optional. Compensation range.Range *CompensationRange `json:"range,omitempty"`// Type: Optional. Compensation type. Default is// CompensationUnit.COMPENSATION_TYPE_UNSPECIFIED.//// Possible values://   "COMPENSATION_TYPE_UNSPECIFIED" - Default value.//   "BASE" - Base compensation: Refers to the fixed amount of money paid to an// employee by an employer in return for work performed. Base compensation does// not include benefits, bonuses or any other potential compensation from an// employer.//   "BONUS" - Bonus.//   "SIGNING_BONUS" - Signing bonus.//   "EQUITY" - Equity.//   "PROFIT_SHARING" - Profit sharing.//   "COMMISSIONS" - Commission.//   "TIPS" - Tips.//   "OTHER_COMPENSATION_TYPE" - Other compensation type.Typestring `json:"type,omitempty"`// Unit: Optional. Frequency of the specified amount. Default is// CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED.//// Possible values://   "COMPENSATION_UNIT_UNSPECIFIED" - Default value.//   "HOURLY" - Hourly.//   "DAILY" - Daily.//   "WEEKLY" - Weekly//   "MONTHLY" - Monthly.//   "YEARLY" - Yearly.//   "ONE_TIME" - One time.//   "OTHER_COMPENSATION_UNIT" - Other compensation units.Unitstring `json:"unit,omitempty"`// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Amount") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationEntry: A compensation entry that represents one component ofcompensation, such as base pay, bonus, or other compensation type.Annualization: One compensation entry can be annualized if - it containsvalid amount or range. - and its expected_units_per_year is set or can bederived. Its annualized range is determined as (amount or range) timesexpected_units_per_year.

func (CompensationEntry)MarshalJSON

func (sCompensationEntry) MarshalJSON() ([]byte,error)

func (*CompensationEntry)UnmarshalJSON

func (s *CompensationEntry) UnmarshalJSON(data []byte)error

typeCompensationFilter

type CompensationFilter struct {// IncludeJobsWithUnspecifiedCompensationRange: Optional. If set to true, jobs// with unspecified compensation range fields are included.IncludeJobsWithUnspecifiedCompensationRangebool `json:"includeJobsWithUnspecifiedCompensationRange,omitempty"`// Range: Optional. Compensation range.Range *CompensationRange `json:"range,omitempty"`// Type: Required. Type of filter.//// Possible values://   "FILTER_TYPE_UNSPECIFIED" - Filter type unspecified. Position holder,// INVALID, should never be used.//   "UNIT_ONLY" - Filter by `base compensation entry's` unit. A job is a match// if and only if the job contains a base CompensationEntry and the base// CompensationEntry's unit matches provided units. Populate one or more units.// See CompensationInfo.CompensationEntry for definition of base compensation// entry.//   "UNIT_AND_AMOUNT" - Filter by `base compensation entry's` unit and amount// / range. A job is a match if and only if the job contains a base// CompensationEntry, and the base entry's unit matches provided// compensation_units and amount or range overlaps with provided// compensation_range. See CompensationInfo.CompensationEntry for definition of// base compensation entry. Set exactly one units and populate range.//   "ANNUALIZED_BASE_AMOUNT" - Filter by annualized base compensation amount// and `base compensation entry's` unit. Populate range and zero or more units.//   "ANNUALIZED_TOTAL_AMOUNT" - Filter by annualized total compensation amount// and `base compensation entry's` unit . Populate range and zero or more// units.Typestring `json:"type,omitempty"`// Units: Required. Specify desired `base compensation entry's`// CompensationInfo.CompensationUnit.//// Possible values://   "COMPENSATION_UNIT_UNSPECIFIED" - Default value.//   "HOURLY" - Hourly.//   "DAILY" - Daily.//   "WEEKLY" - Weekly//   "MONTHLY" - Monthly.//   "YEARLY" - Yearly.//   "ONE_TIME" - One time.//   "OTHER_COMPENSATION_UNIT" - Other compensation units.Units []string `json:"units,omitempty"`// ForceSendFields is a list of field names (e.g.// "IncludeJobsWithUnspecifiedCompensationRange") to unconditionally include in// API requests. By default, fields with empty or default values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "IncludeJobsWithUnspecifiedCompensationRange") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationFilter: Input only. Filter on job compensation type and amount.

func (CompensationFilter)MarshalJSON

func (sCompensationFilter) MarshalJSON() ([]byte,error)

typeCompensationHistogramRequest

type CompensationHistogramRequest struct {// BucketingOption: Required. Numeric histogram options, like buckets, whether// include min or max value.BucketingOption *NumericBucketingOption `json:"bucketingOption,omitempty"`// Type: Required. Type of the request, representing which field the// histogramming should be performed over. A single request can only specify// one histogram of each `CompensationHistogramRequestType`.//// Possible values://   "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value.// Invalid.//   "BASE" - Histogram by job's base compensation. See CompensationEntry for// definition of base compensation.//   "ANNUALIZED_BASE" - Histogram by job's annualized base compensation. See// CompensationEntry for definition of annualized base compensation.//   "ANNUALIZED_TOTAL" - Histogram by job's annualized total compensation. See// CompensationEntry for definition of annualized total compensation.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "BucketingOption") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BucketingOption") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationHistogramRequest: Input only. Compensation based histogramrequest.

func (CompensationHistogramRequest)MarshalJSON

func (sCompensationHistogramRequest) MarshalJSON() ([]byte,error)

typeCompensationHistogramResult

type CompensationHistogramResult struct {// Result: Histogram result.Result *NumericBucketingResult `json:"result,omitempty"`// Type: Type of the request, corresponding to// CompensationHistogramRequest.type.//// Possible values://   "COMPENSATION_HISTOGRAM_REQUEST_TYPE_UNSPECIFIED" - Default value.// Invalid.//   "BASE" - Histogram by job's base compensation. See CompensationEntry for// definition of base compensation.//   "ANNUALIZED_BASE" - Histogram by job's annualized base compensation. See// CompensationEntry for definition of annualized base compensation.//   "ANNUALIZED_TOTAL" - Histogram by job's annualized total compensation. See// CompensationEntry for definition of annualized total compensation.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Result") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Result") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationHistogramResult: Output only. Compensation based histogramresult.

func (CompensationHistogramResult)MarshalJSON

func (sCompensationHistogramResult) MarshalJSON() ([]byte,error)

typeCompensationInfo

type CompensationInfo struct {// AnnualizedBaseCompensationRange: Output only. Annualized base compensation// range. Computed as base compensation entry's CompensationEntry.compensation// times CompensationEntry.expected_units_per_year. See CompensationEntry for// explanation on compensation annualization.AnnualizedBaseCompensationRange *CompensationRange `json:"annualizedBaseCompensationRange,omitempty"`// AnnualizedTotalCompensationRange: Output only. Annualized total compensation// range. Computed as all compensation entries' CompensationEntry.compensation// times CompensationEntry.expected_units_per_year. See CompensationEntry for// explanation on compensation annualization.AnnualizedTotalCompensationRange *CompensationRange `json:"annualizedTotalCompensationRange,omitempty"`// Entries: Optional. Job compensation information. At most one entry can be of// type CompensationInfo.CompensationType.BASE, which is referred as ** base// compensation entry ** for the job.Entries []*CompensationEntry `json:"entries,omitempty"`// ForceSendFields is a list of field names (e.g.// "AnnualizedBaseCompensationRange") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AnnualizedBaseCompensationRange")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationInfo: Job compensation details.

func (CompensationInfo)MarshalJSON

func (sCompensationInfo) MarshalJSON() ([]byte,error)

typeCompensationRange

type CompensationRange struct {// MaxCompensation: Optional. The maximum amount of compensation. If left// empty, the value is set to a maximal compensation value and the currency// code is set to match the currency code of min_compensation.MaxCompensation *Money `json:"maxCompensation,omitempty"`// MinCompensation: Optional. The minimum amount of compensation. If left// empty, the value is set to zero and the currency code is set to match the// currency code of max_compensation.MinCompensation *Money `json:"minCompensation,omitempty"`// ForceSendFields is a list of field names (e.g. "MaxCompensation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MaxCompensation") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompensationRange: Compensation range.

func (CompensationRange)MarshalJSON

func (sCompensationRange) MarshalJSON() ([]byte,error)

typeCompleteQueryResponse

type CompleteQueryResponse struct {// CompletionResults: Results of the matching job/company candidates.CompletionResults []*CompletionResult `json:"completionResults,omitempty"`// Metadata: Additional information for the API invocation, such as the request// tracking id.Metadata *ResponseMetadata `json:"metadata,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CompletionResults") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompletionResults") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompleteQueryResponse: Output only. Response of auto-complete query.

func (CompleteQueryResponse)MarshalJSON

func (sCompleteQueryResponse) MarshalJSON() ([]byte,error)

typeCompletionResult

type CompletionResult struct {// ImageUri: The URI of the company image for CompletionType.COMPANY_NAME.ImageUristring `json:"imageUri,omitempty"`// Suggestion: The suggestion for the query.Suggestionstring `json:"suggestion,omitempty"`// Type: The completion topic.//// Possible values://   "COMPLETION_TYPE_UNSPECIFIED" - Default value.//   "JOB_TITLE" - Only suggest job titles.//   "COMPANY_NAME" - Only suggest company names.//   "COMBINED" - Suggest both job titles and company names.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "ImageUri") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ImageUri") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompletionResult: Output only. Resource that represents completion results.

func (CompletionResult)MarshalJSON

func (sCompletionResult) MarshalJSON() ([]byte,error)

typeCreateClientEventRequest

type CreateClientEventRequest struct {// ClientEvent: Required. Events issued when end user interacts with customer's// application that uses Cloud Talent Solution.ClientEvent *ClientEvent `json:"clientEvent,omitempty"`// ForceSendFields is a list of field names (e.g. "ClientEvent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClientEvent") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreateClientEventRequest: The report event request.

func (CreateClientEventRequest)MarshalJSON

func (sCreateClientEventRequest) MarshalJSON() ([]byte,error)

typeCreateCompanyRequest

type CreateCompanyRequest struct {// Company: Required. The company to be created.Company *Company `json:"company,omitempty"`// ForceSendFields is a list of field names (e.g. "Company") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Company") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreateCompanyRequest: Input only. The Request of the CreateCompany method.

func (CreateCompanyRequest)MarshalJSON

func (sCreateCompanyRequest) MarshalJSON() ([]byte,error)

typeCreateJobRequest

type CreateJobRequest struct {// Job: Required. The Job to be created.Job *Job `json:"job,omitempty"`// ForceSendFields is a list of field names (e.g. "Job") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Job") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreateJobRequest: Input only. Create job request.

func (CreateJobRequest)MarshalJSON

func (sCreateJobRequest) MarshalJSON() ([]byte,error)

typeCustomAttribute

type CustomAttribute struct {// Filterable: Optional. If the `filterable` flag is true, the custom field// values may be used for custom attribute filters// JobQuery.custom_attribute_filter. If false, these values may not be used for// custom attribute filters. Default is false.Filterablebool `json:"filterable,omitempty"`// LongValues: Optional but exactly one of string_values or long_values must be// specified. This field is used to perform number range search. (`EQ`, `GT`,// `GE`, `LE`, `LT`) over filterable `long_value`. Currently at most 1// long_values is supported.LongValuesgoogleapi.Int64s `json:"longValues,omitempty"`// StringValues: Optional but exactly one of string_values or long_values must// be specified. This field is used to perform a string match// (`CASE_SENSITIVE_MATCH` or `CASE_INSENSITIVE_MATCH`) search. For filterable// `string_value`s, a maximum total number of 200 values is allowed, with each// `string_value` has a byte size of no more than 500B. For unfilterable// `string_values`, the maximum total byte size of unfilterable `string_values`// is 50KB. Empty string is not allowed.StringValues []string `json:"stringValues,omitempty"`// ForceSendFields is a list of field names (e.g. "Filterable") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Filterable") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomAttribute: Custom attribute values that are either filterable ornon-filterable.

func (CustomAttribute)MarshalJSON

func (sCustomAttribute) MarshalJSON() ([]byte,error)

typeCustomAttributeHistogramRequest

type CustomAttributeHistogramRequest struct {// Key: Required. Specifies the custom field key to perform a histogram on. If// specified without `long_value_histogram_bucketing_option`, histogram on// string values of the given `key` is triggered, otherwise histogram is// performed on long values.Keystring `json:"key,omitempty"`// LongValueHistogramBucketingOption: Optional. Specifies buckets used to// perform a range histogram on Job's filterable long custom field values, or// min/max value requirements.LongValueHistogramBucketingOption *NumericBucketingOption `json:"longValueHistogramBucketingOption,omitempty"`// StringValueHistogram: Optional. If set to true, the response includes the// histogram value for each key as a string.StringValueHistogrambool `json:"stringValueHistogram,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomAttributeHistogramRequest: Custom attributes histogram request. Anerror is thrown if neither string_value_histogram orlong_value_histogram_bucketing_option has been defined.

func (CustomAttributeHistogramRequest)MarshalJSON

func (sCustomAttributeHistogramRequest) MarshalJSON() ([]byte,error)

typeCustomAttributeHistogramResult

type CustomAttributeHistogramResult struct {// Key: Stores the key of custom attribute the histogram is performed on.Keystring `json:"key,omitempty"`// LongValueHistogramResult: Stores bucketed histogram counting result or// min/max values for custom attribute long values associated with `key`.LongValueHistogramResult *NumericBucketingResult `json:"longValueHistogramResult,omitempty"`// StringValueHistogramResult: Stores a map from the values of string custom// field associated with `key` to the number of jobs with that value in this// histogram result.StringValueHistogramResult map[string]int64 `json:"stringValueHistogramResult,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomAttributeHistogramResult: Output only. Custom attribute histogramresult.

func (CustomAttributeHistogramResult)MarshalJSON

func (sCustomAttributeHistogramResult) MarshalJSON() ([]byte,error)

typeCustomRankingInfo

type CustomRankingInfo struct {// ImportanceLevel: Required. Controls over how important the score of// CustomRankingInfo.ranking_expression gets applied to job's final ranking// position. An error is thrown if not specified.//// Possible values://   "IMPORTANCE_LEVEL_UNSPECIFIED" - Default value if the importance level is// not specified.//   "NONE" - The given ranking expression is of None importance, existing// relevance score (determined by API algorithm) dominates job's final ranking// position.//   "LOW" - The given ranking expression is of Low importance in terms of// job's final ranking position compared to existing relevance score// (determined by API algorithm).//   "MILD" - The given ranking expression is of Mild importance in terms of// job's final ranking position compared to existing relevance score// (determined by API algorithm).//   "MEDIUM" - The given ranking expression is of Medium importance in terms// of job's final ranking position compared to existing relevance score// (determined by API algorithm).//   "HIGH" - The given ranking expression is of High importance in terms of// job's final ranking position compared to existing relevance score// (determined by API algorithm).//   "EXTREME" - The given ranking expression is of Extreme importance, and// dominates job's final ranking position with existing relevance score// (determined by API algorithm) ignored.ImportanceLevelstring `json:"importanceLevel,omitempty"`// RankingExpression: Required. Controls over how job documents get ranked on// top of existing relevance score (determined by API algorithm). A combination// of the ranking expression and relevance score is used to determine job's// final ranking position. The syntax for this expression is a subset of Google// SQL syntax. Supported operators are: +, -, *, /, where the left and right// side of the operator is either a numeric Job.custom_attributes key,// integer/double value or an expression that can be evaluated to a number.// Parenthesis are supported to adjust calculation precedence. The expression// must be < 200 characters in length. The expression is considered invalid for// a job if the expression references custom attributes that are not populated// on the job or if the expression results in a divide by zero. If an// expression is invalid for a job, that job is demoted to the end of the// results. Sample ranking expression (year + 25) * 0.25 - (freshness / 0.5)RankingExpressionstring `json:"rankingExpression,omitempty"`// ForceSendFields is a list of field names (e.g. "ImportanceLevel") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ImportanceLevel") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomRankingInfo: Input only. Custom ranking information forSearchJobsRequest.

func (CustomRankingInfo)MarshalJSON

func (sCustomRankingInfo) MarshalJSON() ([]byte,error)

typeDeviceInfo

type DeviceInfo struct {// DeviceType: Optional. Type of the device.//// Possible values://   "DEVICE_TYPE_UNSPECIFIED" - The device type isn't specified.//   "WEB" - A desktop web browser, such as, Chrome, Firefox, Safari, or// Internet Explorer)//   "MOBILE_WEB" - A mobile device web browser, such as a phone or tablet with// a Chrome browser.//   "ANDROID" - An Android device native application.//   "IOS" - An iOS device native application.//   "BOT" - A bot, as opposed to a device operated by human beings, such as a// web crawler.//   "OTHER" - Other devices types.DeviceTypestring `json:"deviceType,omitempty"`// Id: Optional. A device-specific ID. The ID must be a unique identifier that// distinguishes the device from other devices.Idstring `json:"id,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeviceInfo: Device information collected from the job seeker, candidate, orother entity conducting the job search. Providing this information improvesthe quality of the search results across devices.

func (DeviceInfo)MarshalJSON

func (sDeviceInfo) MarshalJSON() ([]byte,error)

typeEmpty

type Empty struct {// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`}

Empty: A generic empty message that you can re-use to avoid definingduplicated empty messages in your APIs. A typical example is to use it asthe request or the response type of an API method. For instance: service Foo{ rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

typeHistogramFacets

type HistogramFacets struct {// CompensationHistogramFacets: Optional. Specifies compensation field-based// histogram requests. Duplicate values of CompensationHistogramRequest.type// are not allowed.CompensationHistogramFacets []*CompensationHistogramRequest `json:"compensationHistogramFacets,omitempty"`// CustomAttributeHistogramFacets: Optional. Specifies the custom attributes// histogram requests. Duplicate values of CustomAttributeHistogramRequest.key// are not allowed.CustomAttributeHistogramFacets []*CustomAttributeHistogramRequest `json:"customAttributeHistogramFacets,omitempty"`// SimpleHistogramFacets: Optional. Specifies the simple type of histogram// facets, for example, `COMPANY_SIZE`, `EMPLOYMENT_TYPE` etc.//// Possible values://   "SEARCH_TYPE_UNSPECIFIED" - The default value if search type is not// specified.//   "COMPANY_ID" - Filter by the company id field.//   "EMPLOYMENT_TYPE" - Filter by the employment type field, such as// `FULL_TIME` or `PART_TIME`.//   "COMPANY_SIZE" - Filter by the company size type field, such as `BIG`,// `SMALL` or `BIGGER`.//   "DATE_PUBLISHED" - Filter by the date published field. Possible return// values are: * PAST_24_HOURS (The past 24 hours) * PAST_3_DAYS (The past 3// days) * PAST_WEEK (The past 7 days) * PAST_MONTH (The past 30 days) *// PAST_YEAR (The past 365 days)//   "EDUCATION_LEVEL" - Filter by the required education level of the job.//   "EXPERIENCE_LEVEL" - Filter by the required experience level of the job.//   "ADMIN_1" - Filter by Admin1, which is a global placeholder for referring// to state, province, or the particular term a country uses to define the// geographic structure below the country level. Examples include states codes// such as "CA", "IL", "NY", and provinces, such as "BC".//   "COUNTRY" - Filter by the country code of job, such as US, JP, FR.//   "CITY" - Filter by the "city name", "Admin1 code", for example, "Mountain// View, CA" or "New York, NY".//   "LOCALE" - Filter by the locale field of a job, such as "en-US", "fr-FR".// This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more// information, see [Tags for Identifying// Languages](https://tools.ietf.org/html/bcp47).//   "LANGUAGE" - Filter by the language code portion of the locale field, such// as "en" or "fr".//   "CATEGORY" - Filter by the Category.//   "CITY_COORDINATE" - Filter by the city center GPS coordinate (latitude and// longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a// city center can change, clients may need to refresh them periodically.//   "ADMIN_1_COUNTRY" - A combination of state or province code with a country// code. This field differs from `JOB_ADMIN1`, which can be used in multiple// countries.//   "COMPANY_DISPLAY_NAME" - Company display name.//   "BASE_COMPENSATION_UNIT" - Base compensation unit.SimpleHistogramFacets []string `json:"simpleHistogramFacets,omitempty"`// ForceSendFields is a list of field names (e.g.// "CompensationHistogramFacets") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompensationHistogramFacets") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HistogramFacets: Input only. Histogram facets to be specified inSearchJobsRequest.

func (HistogramFacets)MarshalJSON

func (sHistogramFacets) MarshalJSON() ([]byte,error)

typeHistogramQuery

type HistogramQuery struct {// HistogramQuery: An expression specifies a histogram request against matching// resources (for example, jobs) for searches. Expression syntax is a// aggregation function call with histogram facets and other options. Available// aggregation function calls are: * `count(string_histogram_facet)`: Count the// number of matching entity, for each distinct attribute value. *// `count(numeric_histogram_facet, list of buckets)`: Count the number of// matching entity within each bucket. A maximum of 200 histogram buckets are// supported. Data types: * Histogram facet: facet names with format a-zA-Z+. *// String: string like "any string with backslash escape for quote(\")." *// Number: whole number and floating point number like 10, -1 and -0.01. *// List: list of elements with comma(,) separator surrounded by square// brackets. For example, [1, 2, 3] and ["one", "two", "three"]. Built-in// constants: * MIN (minimum number similar to java Double.MIN_VALUE) * MAX// (maximum number similar to java Double.MAX_VALUE) Built-in functions: *// bucket(start, end[, label]): bucket built-in function creates a bucket with// range of start, end). Note that the end is exclusive. For example, bucket(1,// MAX, "positive number") or bucket(1, 10). Job histogram facets: *// company_id: histogram by [Job.distributor_company_id. *// company_display_name: histogram by Job.company_display_name. *// employment_type: histogram by Job.employment_types. For example,// "FULL_TIME", "PART_TIME". * company_size (DEPRECATED): histogram by// CompanySize, for example, "SMALL", "MEDIUM", "BIG". * publish_time_in_day:// histogram by the Job.publish_time in days. Must specify list of numeric// buckets in spec. * publish_time_in_month: histogram by the Job.publish_time// in months. Must specify list of numeric buckets in spec. *// publish_time_in_year: histogram by the Job.publish_time in years. Must// specify list of numeric buckets in spec. * degree_type: histogram by the// Job.degree_type. For example, "Bachelors", "Masters". * job_level: histogram// by the Job.job_level. For example, "Entry Level". * country: histogram by// the country code of jobs. For example, "US", "FR". * admin1: histogram by// the admin1 code of jobs, which is a global placeholder referring to the// state, province, or the particular term a country uses to define the// geographic structure below the country level. For example, "CA", "IL". *// city: histogram by a combination of the "city name, admin1 code". For// example, "Mountain View, CA", "New York, NY". * admin1_country: histogram by// a combination of the "admin1 code, country". For example, "CA, US", "IL,// US". * city_coordinate: histogram by the city center's GPS coordinates// (latitude and longitude). For example, 37.4038522,-122.0987765. Since the// coordinates of a city center can change, customers may need to refresh them// periodically. * locale: histogram by the Job.language_code. For example,// "en-US", "fr-FR". * language: histogram by the language subtag of the// Job.language_code. For example, "en", "fr". * category: histogram by the// JobCategory. For example, "COMPUTER_AND_IT", "HEALTHCARE". *// base_compensation_unit: histogram by the CompensationUnit of base salary.// For example, "WEEKLY", "MONTHLY". * base_compensation: histogram by the base// salary. Must specify list of numeric buckets to group results by. *// annualized_base_compensation: histogram by the base annualized salary. Must// specify list of numeric buckets to group results by. *// annualized_total_compensation: histogram by the total annualized salary.// Must specify list of numeric buckets to group results by. *// string_custom_attribute: histogram by string Job.custom_attributes. Values// can be accessed via square bracket notations like// string_custom_attribute["key1"]. * numeric_custom_attribute: histogram by// numeric Job.custom_attributes. Values can be accessed via square bracket// notations like numeric_custom_attribute["key1"]. Must specify list of// numeric buckets to group results by. Example expressions: * count(admin1) *// count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000),// bucket(100000, MAX)]) *// count(string_custom_attribute["some-string-custom-attribute"]) *// count(numeric_custom_attribute["some-numeric-custom-attribute"],// [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])HistogramQuerystring `json:"histogramQuery,omitempty"`// ForceSendFields is a list of field names (e.g. "HistogramQuery") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HistogramQuery") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HistogramQuery: Input Only. The histogram request.

func (HistogramQuery)MarshalJSON

func (sHistogramQuery) MarshalJSON() ([]byte,error)

typeHistogramQueryResult

type HistogramQueryResult struct {// Histogram: A map from the values of the facet associated with distinct// values to the number of matching entries with corresponding value. The key// format is: * (for string histogram) string values stored in the field. *// (for named numeric bucket) name specified in `bucket()` function, like for// `bucket(0, MAX, "non-negative")`, the key will be `non-negative`. * (for// anonymous numeric bucket) range formatted as `-`, for example, `0-1000`,// `MIN-0`, and `0-MAX`.Histogram map[string]string `json:"histogram,omitempty"`// HistogramQuery: Requested histogram expression.HistogramQuerystring `json:"histogramQuery,omitempty"`// ForceSendFields is a list of field names (e.g. "Histogram") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Histogram") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HistogramQueryResult: Output only. Histogram result that matchesHistogramSpec specified in searches.

func (HistogramQueryResult)MarshalJSON

func (sHistogramQueryResult) MarshalJSON() ([]byte,error)

typeHistogramResult

type HistogramResult struct {// SearchType: The Histogram search filters.//// Possible values://   "SEARCH_TYPE_UNSPECIFIED" - The default value if search type is not// specified.//   "COMPANY_ID" - Filter by the company id field.//   "EMPLOYMENT_TYPE" - Filter by the employment type field, such as// `FULL_TIME` or `PART_TIME`.//   "COMPANY_SIZE" - Filter by the company size type field, such as `BIG`,// `SMALL` or `BIGGER`.//   "DATE_PUBLISHED" - Filter by the date published field. Possible return// values are: * PAST_24_HOURS (The past 24 hours) * PAST_3_DAYS (The past 3// days) * PAST_WEEK (The past 7 days) * PAST_MONTH (The past 30 days) *// PAST_YEAR (The past 365 days)//   "EDUCATION_LEVEL" - Filter by the required education level of the job.//   "EXPERIENCE_LEVEL" - Filter by the required experience level of the job.//   "ADMIN_1" - Filter by Admin1, which is a global placeholder for referring// to state, province, or the particular term a country uses to define the// geographic structure below the country level. Examples include states codes// such as "CA", "IL", "NY", and provinces, such as "BC".//   "COUNTRY" - Filter by the country code of job, such as US, JP, FR.//   "CITY" - Filter by the "city name", "Admin1 code", for example, "Mountain// View, CA" or "New York, NY".//   "LOCALE" - Filter by the locale field of a job, such as "en-US", "fr-FR".// This is the BCP-47 language code, such as "en-US" or "sr-Latn". For more// information, see [Tags for Identifying// Languages](https://tools.ietf.org/html/bcp47).//   "LANGUAGE" - Filter by the language code portion of the locale field, such// as "en" or "fr".//   "CATEGORY" - Filter by the Category.//   "CITY_COORDINATE" - Filter by the city center GPS coordinate (latitude and// longitude), for example, 37.4038522,-122.0987765. Since the coordinates of a// city center can change, clients may need to refresh them periodically.//   "ADMIN_1_COUNTRY" - A combination of state or province code with a country// code. This field differs from `JOB_ADMIN1`, which can be used in multiple// countries.//   "COMPANY_DISPLAY_NAME" - Company display name.//   "BASE_COMPENSATION_UNIT" - Base compensation unit.SearchTypestring `json:"searchType,omitempty"`// Values: A map from the values of field to the number of jobs with that value// in this search result. Key: search type (filter names, such as the// companyName). Values: the count of jobs that match the filter for this// search.Values map[string]int64 `json:"values,omitempty"`// ForceSendFields is a list of field names (e.g. "SearchType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "SearchType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HistogramResult: Output only. Result of a histogram call. The responsecontains the histogram map for the search type specified byHistogramResult.field. The response is a map of each filter value to thecorresponding count of jobs for that filter.

func (HistogramResult)MarshalJSON

func (sHistogramResult) MarshalJSON() ([]byte,error)

typeHistogramResults

type HistogramResults struct {// CompensationHistogramResults: Specifies compensation field-based histogram// results that match HistogramFacets.compensation_histogram_requests.CompensationHistogramResults []*CompensationHistogramResult `json:"compensationHistogramResults,omitempty"`// CustomAttributeHistogramResults: Specifies histogram results for custom// attributes that match HistogramFacets.custom_attribute_histogram_facets.CustomAttributeHistogramResults []*CustomAttributeHistogramResult `json:"customAttributeHistogramResults,omitempty"`// SimpleHistogramResults: Specifies histogram results that matches// HistogramFacets.simple_histogram_facets.SimpleHistogramResults []*HistogramResult `json:"simpleHistogramResults,omitempty"`// ForceSendFields is a list of field names (e.g.// "CompensationHistogramResults") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompensationHistogramResults") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

HistogramResults: Output only. Histogram results that match HistogramFacetsspecified in SearchJobsRequest.

func (HistogramResults)MarshalJSON

func (sHistogramResults) MarshalJSON() ([]byte,error)

typeJob

type Job struct {// Addresses: Optional but strongly recommended for the best service// experience. Location(s) where the employer is looking to hire for this job// posting. Specifying the full street address(es) of the hiring location// enables better API results, especially job searches by commute time. At most// 50 locations are allowed for best search performance. If a job has more// locations, it is suggested to split it into multiple jobs with unique// requisition_ids (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', etc.) as multiple// jobs with the same company_name, language_code and requisition_id are not// allowed. If the original requisition_id must be preserved, a custom field// should be used for storage. It is also suggested to group the locations that// close to each other in the same job for better search experience. Jobs with// multiple addresses must have their addresses with the same LocationType to// allow location filtering to work properly. (For example, a Job with// addresses "1600 Amphitheatre Parkway, Mountain View, CA, USA" and "London,// UK" may not have location filters applied correctly at search time since the// first is a LocationType.STREET_ADDRESS and the second is a// LocationType.LOCALITY.) If a job needs to have multiple addresses, it is// suggested to split it into multiple jobs with same LocationTypes. The// maximum number of allowed characters is 500.Addresses []string `json:"addresses,omitempty"`// ApplicationInfo: Required. At least one field within ApplicationInfo must be// specified. Job application information.ApplicationInfo *ApplicationInfo `json:"applicationInfo,omitempty"`// CompanyDisplayName: Output only. Display name of the company listing the// job.CompanyDisplayNamestring `json:"companyDisplayName,omitempty"`// CompanyName: Required. The resource name of the company listing the job,// such as "projects/api-test-project/companies/foo".CompanyNamestring `json:"companyName,omitempty"`// CompensationInfo: Optional. Job compensation information.CompensationInfo *CompensationInfo `json:"compensationInfo,omitempty"`// CustomAttributes: Optional. A map of fields to hold both filterable and// non-filterable custom job attributes that are not covered by the provided// structured fields. The keys of the map are strings up to 64 bytes and must// match the pattern: a-zA-Z*. For example, key0LikeThis or KEY_1_LIKE_THIS. At// most 100 filterable and at most 100 unfilterable keys are supported. For// filterable `string_values`, across all keys at most 200 values are allowed,// with each string no more than 255 characters. For unfilterable// `string_values`, the maximum total size of `string_values` across all keys// is 50KB.CustomAttributes map[string]CustomAttribute `json:"customAttributes,omitempty"`// DegreeTypes: Optional. The desired education degrees for the job, such as// Bachelors, Masters.//// Possible values://   "DEGREE_TYPE_UNSPECIFIED" - Default value. Represents no degree, or early// childhood education. Maps to ISCED code 0. Ex) Kindergarten//   "PRIMARY_EDUCATION" - Primary education which is typically the first stage// of compulsory education. ISCED code 1. Ex) Elementary school//   "LOWER_SECONDARY_EDUCATION" - Lower secondary education; First stage of// secondary education building on primary education, typically with a more// subject-oriented curriculum. ISCED code 2. Ex) Middle school//   "UPPER_SECONDARY_EDUCATION" - Middle education; Second/final stage of// secondary education preparing for tertiary education and/or providing skills// relevant to employment. Usually with an increased range of subject options// and streams. ISCED code 3. Ex) High school//   "ADULT_REMEDIAL_EDUCATION" - Adult Remedial Education; Programmes// providing learning experiences that build on secondary education and prepare// for labour market entry and/or tertiary education. The content is broader// than secondary but not as complex as tertiary education. ISCED code 4.//   "ASSOCIATES_OR_EQUIVALENT" - Associate's or equivalent; Short first// tertiary programmes that are typically practically-based,// occupationally-specific and prepare for labour market entry. These// programmes may also provide a pathway to other tertiary programmes. ISCED// code 5.//   "BACHELORS_OR_EQUIVALENT" - Bachelor's or equivalent; Programmes designed// to provide intermediate academic and/or professional knowledge, skills and// competencies leading to a first tertiary degree or equivalent qualification.// ISCED code 6.//   "MASTERS_OR_EQUIVALENT" - Master's or equivalent; Programmes designed to// provide advanced academic and/or professional knowledge, skills and// competencies leading to a second tertiary degree or equivalent// qualification. ISCED code 7.//   "DOCTORAL_OR_EQUIVALENT" - Doctoral or equivalent; Programmes designed// primarily to lead to an advanced research qualification, usually concluding// with the submission and defense of a substantive dissertation of publishable// quality based on original research. ISCED code 8.DegreeTypes []string `json:"degreeTypes,omitempty"`// Department: Optional. The department or functional area within the company// with the open position. The maximum number of allowed characters is 255.Departmentstring `json:"department,omitempty"`// DerivedInfo: Output only. Derived details about the job posting.DerivedInfo *JobDerivedInfo `json:"derivedInfo,omitempty"`// Description: Required. The description of the job, which typically includes// a multi-paragraph description of the company and related information.// Separate fields are provided on the job object for responsibilities,// qualifications, and other job characteristics. Use of these separate job// fields is recommended. This field accepts and sanitizes HTML input, and also// accepts bold, italic, ordered list, and unordered list markup tags. The// maximum number of allowed characters is 100,000.Descriptionstring `json:"description,omitempty"`// EmploymentTypes: Optional. The employment type(s) of a job, for example,// full time or part time.//// Possible values://   "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type// is not specified.//   "FULL_TIME" - The job requires working a number of hours that constitute// full time employment, typically 40 or more hours per week.//   "PART_TIME" - The job entails working fewer hours than a full time job,// typically less than 40 hours a week.//   "CONTRACTOR" - The job is offered as a contracted, as opposed to a// salaried employee, position.//   "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the// understanding that it's converted into a full-time position at the end of// the contract. Jobs of this type are also returned by a search for// EmploymentType.CONTRACTOR jobs.//   "TEMPORARY" - The job is offered as a temporary employment opportunity,// usually a short-term engagement.//   "INTERN" - The job is a fixed-term opportunity for students or entry-level// job seekers to obtain on-the-job training, typically offered as a summer// position.//   "VOLUNTEER" - The is an opportunity for an individual to volunteer, where// there's no expectation of compensation for the provided services.//   "PER_DIEM" - The job requires an employee to work on an as-needed basis// with a flexible schedule.//   "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and// flying them temporarily to the work site instead of relocating employees and// their families permanently.//   "OTHER_EMPLOYMENT_TYPE" - The job does not fit any of the other listed// types.EmploymentTypes []string `json:"employmentTypes,omitempty"`// Incentives: Optional. A description of bonus, commission, and other// compensation incentives associated with the job not including salary or pay.// The maximum number of allowed characters is 10,000.Incentivesstring `json:"incentives,omitempty"`// JobBenefits: Optional. The benefits included with the job.//// Possible values://   "JOB_BENEFIT_UNSPECIFIED" - Default value if the type is not specified.//   "CHILD_CARE" - The job includes access to programs that support child// care, such as daycare.//   "DENTAL" - The job includes dental services covered by a dental insurance// plan.//   "DOMESTIC_PARTNER" - The job offers specific benefits to domestic// partners.//   "FLEXIBLE_HOURS" - The job allows for a flexible work schedule.//   "MEDICAL" - The job includes health services covered by a medical// insurance plan.//   "LIFE_INSURANCE" - The job includes a life insurance plan provided by the// employer or available for purchase by the employee.//   "PARENTAL_LEAVE" - The job allows for a leave of absence to a parent to// care for a newborn child.//   "RETIREMENT_PLAN" - The job includes a workplace retirement plan provided// by the employer or available for purchase by the employee.//   "SICK_DAYS" - The job allows for paid time off due to illness.//   "VACATION" - The job includes paid time off for vacation.//   "VISION" - The job includes vision services covered by a vision insurance// plan.JobBenefits []string `json:"jobBenefits,omitempty"`// JobEndTime: Optional. The end timestamp of the job. Typically this field is// used for contracting engagements. Invalid timestamps are ignored.JobEndTimestring `json:"jobEndTime,omitempty"`// JobLevel: Optional. The experience level associated with the job, such as// "Entry Level".//// Possible values://   "JOB_LEVEL_UNSPECIFIED" - The default value if the level is not specified.//   "ENTRY_LEVEL" - Entry-level individual contributors, typically with less// than 2 years of experience in a similar role. Includes interns.//   "EXPERIENCED" - Experienced individual contributors, typically with 2+// years of experience in a similar role.//   "MANAGER" - Entry- to mid-level managers responsible for managing a team// of people.//   "DIRECTOR" - Senior-level managers responsible for managing teams of// managers.//   "EXECUTIVE" - Executive-level managers and above, including C-level// positions.JobLevelstring `json:"jobLevel,omitempty"`// JobStartTime: Optional. The start timestamp of the job in UTC time zone.// Typically this field is used for contracting engagements. Invalid timestamps// are ignored.JobStartTimestring `json:"jobStartTime,omitempty"`// LanguageCode: Optional. The language of the posting. This field is distinct// from any requirements for fluency that are associated with the job. Language// codes must be in BCP-47 format, such as "en-US" or "sr-Latn". For more// information, see Tags for Identifying Languages// (https://tools.ietf.org/html/bcp47){: class="external" target="_blank" }. If// this field is unspecified and Job.description is present, detected language// code based on Job.description is assigned, otherwise defaults to 'en_US'.LanguageCodestring `json:"languageCode,omitempty"`// Name: Required during job update. The resource name for the job. This is// generated by the service when a job is created. The format is// "projects/{project_id}/jobs/{job_id}", for example,// "projects/api-test-project/jobs/1234". Use of this field in job queries and// API calls is preferred over the use of requisition_id since this value is// unique.Namestring `json:"name,omitempty"`// PostingCreateTime: Output only. The timestamp when this job posting was// created.PostingCreateTimestring `json:"postingCreateTime,omitempty"`// PostingExpireTime: Optional but strongly recommended for the best service// experience. The expiration timestamp of the job. After this timestamp, the// job is marked as expired, and it no longer appears in search results. The// expired job can't be deleted or listed by the DeleteJob and ListJobs APIs,// but it can be retrieved with the GetJob API or updated with the UpdateJob// API. An expired job can be updated and opened again by using a future// expiration timestamp. Updating an expired job fails if there is another// existing open job with same company_name, language_code and requisition_id.// The expired jobs are retained in our system for 90 days. However, the// overall expired job count cannot exceed 3 times the maximum of open jobs// count over the past week, otherwise jobs with earlier expire time are// cleaned first. Expired jobs are no longer accessible after they are cleaned// out. Invalid timestamps are ignored, and treated as expire time not// provided. Timestamp before the instant request is made is considered valid,// the job will be treated as expired immediately. If this value is not// provided at the time of job creation or is invalid, the job posting expires// after 30 days from the job's creation time. For example, if the job was// created on 2017/01/01 13:00AM UTC with an unspecified expiration date, the// job expires after 2017/01/31 13:00AM UTC. If this value is not provided on// job update, it depends on the field masks set by// UpdateJobRequest.update_mask. If the field masks include expiry_time, or the// masks are empty meaning that every field is updated, the job posting expires// after 30 days from the job's last update time. Otherwise the expiration date// isn't updated.PostingExpireTimestring `json:"postingExpireTime,omitempty"`// PostingPublishTime: Optional. The timestamp this job posting was most// recently published. The default value is the time the request arrives at the// server. Invalid timestamps are ignored.PostingPublishTimestring `json:"postingPublishTime,omitempty"`// PostingRegion: Optional. The job PostingRegion (for example, state, country)// throughout which the job is available. If this field is set, a// LocationFilter in a search query within the job region finds this job// posting if an exact location match isn't specified. If this field is set to// PostingRegion.NATION or PostingRegion.ADMINISTRATIVE_AREA, setting job// Job.addresses to the same location level as this field is strongly// recommended.//// Possible values://   "POSTING_REGION_UNSPECIFIED" - If the region is unspecified, the job is// only returned if it matches the LocationFilter.//   "ADMINISTRATIVE_AREA" - In addition to exact location matching, job// posting is returned when the LocationFilter in the search query is in the// same administrative area as the returned job posting. For example, if a// `ADMINISTRATIVE_AREA` job is posted in "CA, USA", it's returned if// LocationFilter has "Mountain View". Administrative area refers to top-level// administrative subdivision of this country. For example, US state, IT// region, UK constituent nation and JP prefecture.//   "NATION" - In addition to exact location matching, job is returned when// LocationFilter in search query is in the same country as this job. For// example, if a `NATION_WIDE` job is posted in "USA", it's returned if// LocationFilter has 'Mountain View'.//   "TELECOMMUTE" - Job allows employees to work remotely (telecommute). If// locations are provided with this value, the job is considered as having a// location, but telecommuting is allowed.PostingRegionstring `json:"postingRegion,omitempty"`// PostingUpdateTime: Output only. The timestamp when this job posting was last// updated.PostingUpdateTimestring `json:"postingUpdateTime,omitempty"`// ProcessingOptions: Optional. Options for job processing.ProcessingOptions *ProcessingOptions `json:"processingOptions,omitempty"`// PromotionValue: Optional. A promotion value of the job, as determined by the// client. The value determines the sort order of the jobs returned when// searching for jobs using the featured jobs search call, with higher// promotional values being returned first and ties being resolved by relevance// sort. Only the jobs with a promotionValue >0 are returned in a// FEATURED_JOB_SEARCH. Default value is 0, and negative values are treated as// 0.PromotionValueint64 `json:"promotionValue,omitempty"`// Qualifications: Optional. A description of the qualifications required to// perform the job. The use of this field is recommended as an alternative to// using the more general description field. This field accepts and sanitizes// HTML input, and also accepts bold, italic, ordered list, and unordered list// markup tags. The maximum number of allowed characters is 10,000.Qualificationsstring `json:"qualifications,omitempty"`// RequisitionId: Required. The requisition ID, also referred to as the posting// ID, assigned by the client to identify a job. This field is intended to be// used by clients for client identification and tracking of postings. A job is// not allowed to be created if there is another job with the same// [company_name], language_code and requisition_id. The maximum number of// allowed characters is 255.RequisitionIdstring `json:"requisitionId,omitempty"`// Responsibilities: Optional. A description of job responsibilities. The use// of this field is recommended as an alternative to using the more general// description field. This field accepts and sanitizes HTML input, and also// accepts bold, italic, ordered list, and unordered list markup tags. The// maximum number of allowed characters is 10,000.Responsibilitiesstring `json:"responsibilities,omitempty"`// Title: Required. The title of the job, such as "Software Engineer" The// maximum number of allowed characters is 500.Titlestring `json:"title,omitempty"`// Visibility: Deprecated. The job is only visible to the owner. The visibility// of the job. Defaults to Visibility.ACCOUNT_ONLY if not specified.//// Possible values://   "VISIBILITY_UNSPECIFIED" - Default value.//   "ACCOUNT_ONLY" - The resource is only visible to the GCP account who owns// it.//   "SHARED_WITH_GOOGLE" - The resource is visible to the owner and may be// visible to other applications and processes at Google.//   "SHARED_WITH_PUBLIC" - The resource is visible to the owner and may be// visible to all other API clients.Visibilitystring `json:"visibility,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Addresses") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Addresses") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Job: A Job resource represents a job posting (also referred to as a "joblisting" or "job requisition"). A job belongs to a Company, which is thehiring entity responsible for the job.

func (Job)MarshalJSON

func (sJob) MarshalJSON() ([]byte,error)

typeJobDerivedInfo

type JobDerivedInfo struct {// JobCategories: Job categories derived from Job.title and Job.description.//// Possible values://   "JOB_CATEGORY_UNSPECIFIED" - The default value if the category isn't// specified.//   "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as an// Accountant.//   "ADMINISTRATIVE_AND_OFFICE" - An administrative and office job, such as an// Administrative Assistant.//   "ADVERTISING_AND_MARKETING" - An advertising and marketing job, such as// Marketing Manager.//   "ANIMAL_CARE" - An animal care job, such as Veterinarian.//   "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as// Designer.//   "BUSINESS_OPERATIONS" - A business operations job, such as Business// Operations Manager.//   "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as// Custodial Staff.//   "COMPUTER_AND_IT" - A computer and IT job, such as Systems Administrator.//   "CONSTRUCTION" - A construction job, such as General Laborer.//   "CUSTOMER_SERVICE" - A customer service job, such s Cashier.//   "EDUCATION" - An education job, such as School Teacher.//   "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such as// Flight Attendant.//   "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park Ranger.//   "HEALTHCARE" - A healthcare job, such as Registered Nurse.//   "HUMAN_RESOURCES" - A human resources job, such as Human Resources// Director.//   "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, maintenance, or// repair job, such as Electrician.//   "LEGAL" - A legal job, such as Law Clerk.//   "MANAGEMENT" - A management job, often used in conjunction with another// category, such as Store Manager.//   "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, such as// Assembly Technician.//   "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or writing// job, such as Media Relations.//   "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore// Driller.//   "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, such as// Hair Stylist.//   "PROTECTIVE_SERVICES" - A protective services job, such as Security Guard.//   "REAL_ESTATE" - A real estate job, such as Buyer's Agent.//   "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, such as// Restaurant Server.//   "SALES_AND_RETAIL" - A sales and/or retail job, such Sales Associate.//   "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as Lab// Technician.//   "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit job,// such as Case Worker.//   "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation job,// such as Personal Trainer.//   "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, such// as Truck Driver.JobCategories []string `json:"jobCategories,omitempty"`// Locations: Structured locations of the job, resolved from Job.addresses.// locations are exactly matched to Job.addresses in the same order.Locations []*Location `json:"locations,omitempty"`// ForceSendFields is a list of field names (e.g. "JobCategories") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "JobCategories") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

JobDerivedInfo: Output only. Derived details about the job posting.

func (JobDerivedInfo)MarshalJSON

func (sJobDerivedInfo) MarshalJSON() ([]byte,error)

typeJobEvent

type JobEvent struct {// Jobs: Required. The job name(s) associated with this event. For example, if// this is an impression event, this field contains the identifiers of all jobs// shown to the job seeker. If this was a view event, this field contains the// identifier of the viewed job.Jobs []string `json:"jobs,omitempty"`// Type: Required. The type of the event (see JobEventType).//// Possible values://   "JOB_EVENT_TYPE_UNSPECIFIED" - The event is unspecified by other provided// values.//   "IMPRESSION" - The job seeker or other entity interacting with the service// has had a job rendered in their view, such as in a list of search results in// a compressed or clipped format. This event is typically associated with the// viewing of a jobs list on a single page by a job seeker.//   "VIEW" - The job seeker, or other entity interacting with the service, has// viewed the details of a job, including the full description. This event// doesn't apply to the viewing a snippet of a job appearing as a part of the// job search results. Viewing a snippet is associated with an impression).//   "VIEW_REDIRECT" - The job seeker or other entity interacting with the// service performed an action to view a job and was redirected to a different// website for job.//   "APPLICATION_START" - The job seeker or other entity interacting with the// service began the process or demonstrated the intention of applying for a// job.//   "APPLICATION_FINISH" - The job seeker or other entity interacting with the// service submitted an application for a job.//   "APPLICATION_QUICK_SUBMISSION" - The job seeker or other entity// interacting with the service submitted an application for a job with a// single click without entering information. If a job seeker performs this// action, send only this event to the service. Do not also send// JobEventType.APPLICATION_START or JobEventType.APPLICATION_FINISH events.//   "APPLICATION_REDIRECT" - The job seeker or other entity interacting with// the service performed an action to apply to a job and was redirected to a// different website to complete the application.//   "APPLICATION_START_FROM_SEARCH" - The job seeker or other entity// interacting with the service began the process or demonstrated the intention// of applying for a job from the search results page without viewing the// details of the job posting. If sending this event, JobEventType.VIEW event// shouldn't be sent.//   "APPLICATION_REDIRECT_FROM_SEARCH" - The job seeker, or other entity// interacting with the service, performs an action with a single click from// the search results page to apply to a job (without viewing the details of// the job posting), and is redirected to a different website to complete the// application. If a candidate performs this action, send only this event to// the service. Do not also send JobEventType.APPLICATION_START,// JobEventType.APPLICATION_FINISH or JobEventType.VIEW events.//   "APPLICATION_COMPANY_SUBMIT" - This event should be used when a company// submits an application on behalf of a job seeker. This event is intended for// use by staffing agencies attempting to place candidates.//   "BOOKMARK" - The job seeker or other entity interacting with the service// demonstrated an interest in a job by bookmarking or saving it.//   "NOTIFICATION" - The job seeker or other entity interacting with the// service was sent a notification, such as an email alert or device// notification, containing one or more jobs listings generated by the service.//   "HIRED" - The job seeker or other entity interacting with the service was// employed by the hiring entity (employer). Send this event only if the job// seeker was hired through an application that was initiated by a search// conducted through the Cloud Talent Solution service.//   "SENT_CV" - A recruiter or staffing agency submitted an application on// behalf of the candidate after interacting with the service to identify a// suitable job posting.//   "INTERVIEW_GRANTED" - The entity interacting with the service (for// example, the job seeker), was granted an initial interview by the hiring// entity (employer). This event should only be sent if the job seeker was// granted an interview as part of an application that was initiated by a// search conducted through / recommendation provided by the Cloud Talent// Solution service.//   "NOT_INTERESTED" - The job seeker or other entity interacting with the// service showed no interest in the job.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Jobs") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

JobEvent: An event issued when a job seeker interacts with the applicationthat implements Cloud Talent Solution.

func (JobEvent)MarshalJSON

func (sJobEvent) MarshalJSON() ([]byte,error)

typeJobQuery

type JobQuery struct {// CommuteFilter: Optional. Allows filtering jobs by commute time with// different travel methods (for example, driving or public transit). Note:// This only works with COMMUTE MODE. When specified,// [JobQuery.location_filters] is ignored. Currently we don't support sorting// by commute time.CommuteFilter *CommuteFilter `json:"commuteFilter,omitempty"`// CompanyDisplayNames: Optional. This filter specifies the company// Company.display_name of the jobs to search against. The company name must// match the value exactly. Alternatively, the value being searched for can be// wrapped in different match operators. `SUBSTRING_MATCH([value])` The company// name must contain a case insensitive substring match of the value. Using// this function may increase latency. Sample Value: `SUBSTRING_MATCH(google)`// `MULTI_WORD_TOKEN_MATCH([value])` The value will be treated as a multi word// token and the company name must contain a case insensitive match of the// value. Using this function may increase latency. Sample Value:// `MULTI_WORD_TOKEN_MATCH(google)` If a value isn't specified, jobs within the// search results are associated with any company. If multiple values are// specified, jobs within the search results may be associated with any of the// specified companies. At most 20 company display name filters are allowed.CompanyDisplayNames []string `json:"companyDisplayNames,omitempty"`// CompanyNames: Optional. This filter specifies the company entities to search// against. If a value isn't specified, jobs are searched for against all// companies. If multiple values are specified, jobs are searched against the// companies specified. The format is// "projects/{project_id}/companies/{company_id}", for example,// "projects/api-test-project/companies/foo". At most 20 company filters are// allowed.CompanyNames []string `json:"companyNames,omitempty"`// CompensationFilter: Optional. This search filter is applied only to// Job.compensation_info. For example, if the filter is specified as "Hourly// job with per-hour compensation > $15", only jobs meeting these criteria are// searched. If a filter isn't defined, all open jobs are searched.CompensationFilter *CompensationFilter `json:"compensationFilter,omitempty"`// CustomAttributeFilter: Optional. This filter specifies a structured syntax// to match against the Job.custom_attributes marked as `filterable`. The// syntax for this expression is a subset of SQL syntax. Supported operators// are: `=`, `!=`, `<`, `<=`, `>`, and `>=` where the left of the operator is a// custom field key and the right of the operator is a number or a quoted// string. You must escape backslash (\\) and quote (\") characters. Supported// functions are `LOWER([field_name])` to perform a case insensitive match and// `EMPTY([field_name])` to filter on the existence of a key. Boolean// expressions (AND/OR/NOT) are supported up to 3 levels of nesting (for// example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100 comparisons// or functions are allowed in the expression. The expression must be < 10000// bytes in length. Sample Query: `(LOWER(driving_license)="class \"a\"" OR// EMPTY(driving_license)) AND driving_years > 10`CustomAttributeFilterstring `json:"customAttributeFilter,omitempty"`// DisableSpellCheck: Optional. This flag controls the spell-check feature. If// false, the service attempts to correct a misspelled query, for example,// "enginee" is corrected to "engineer". Defaults to false: a spell check is// performed.DisableSpellCheckbool `json:"disableSpellCheck,omitempty"`// EmploymentTypes: Optional. The employment type filter specifies the// employment type of jobs to search against, such as EmploymentType.FULL_TIME.// If a value is not specified, jobs in the search results includes any// employment type. If multiple values are specified, jobs in the search// results include any of the specified employment types.//// Possible values://   "EMPLOYMENT_TYPE_UNSPECIFIED" - The default value if the employment type// is not specified.//   "FULL_TIME" - The job requires working a number of hours that constitute// full time employment, typically 40 or more hours per week.//   "PART_TIME" - The job entails working fewer hours than a full time job,// typically less than 40 hours a week.//   "CONTRACTOR" - The job is offered as a contracted, as opposed to a// salaried employee, position.//   "CONTRACT_TO_HIRE" - The job is offered as a contracted position with the// understanding that it's converted into a full-time position at the end of// the contract. Jobs of this type are also returned by a search for// EmploymentType.CONTRACTOR jobs.//   "TEMPORARY" - The job is offered as a temporary employment opportunity,// usually a short-term engagement.//   "INTERN" - The job is a fixed-term opportunity for students or entry-level// job seekers to obtain on-the-job training, typically offered as a summer// position.//   "VOLUNTEER" - The is an opportunity for an individual to volunteer, where// there's no expectation of compensation for the provided services.//   "PER_DIEM" - The job requires an employee to work on an as-needed basis// with a flexible schedule.//   "FLY_IN_FLY_OUT" - The job involves employing people in remote areas and// flying them temporarily to the work site instead of relocating employees and// their families permanently.//   "OTHER_EMPLOYMENT_TYPE" - The job does not fit any of the other listed// types.EmploymentTypes []string `json:"employmentTypes,omitempty"`// ExcludedJobs: Optional. This filter specifies a list of job names to be// excluded during search. At most 400 excluded job names are allowed.ExcludedJobs []string `json:"excludedJobs,omitempty"`// JobCategories: Optional. The category filter specifies the categories of// jobs to search against. See Category for more information. If a value is not// specified, jobs from any category are searched against. If multiple values// are specified, jobs from any of the specified categories are searched// against.//// Possible values://   "JOB_CATEGORY_UNSPECIFIED" - The default value if the category isn't// specified.//   "ACCOUNTING_AND_FINANCE" - An accounting and finance job, such as an// Accountant.//   "ADMINISTRATIVE_AND_OFFICE" - An administrative and office job, such as an// Administrative Assistant.//   "ADVERTISING_AND_MARKETING" - An advertising and marketing job, such as// Marketing Manager.//   "ANIMAL_CARE" - An animal care job, such as Veterinarian.//   "ART_FASHION_AND_DESIGN" - An art, fashion, or design job, such as// Designer.//   "BUSINESS_OPERATIONS" - A business operations job, such as Business// Operations Manager.//   "CLEANING_AND_FACILITIES" - A cleaning and facilities job, such as// Custodial Staff.//   "COMPUTER_AND_IT" - A computer and IT job, such as Systems Administrator.//   "CONSTRUCTION" - A construction job, such as General Laborer.//   "CUSTOMER_SERVICE" - A customer service job, such s Cashier.//   "EDUCATION" - An education job, such as School Teacher.//   "ENTERTAINMENT_AND_TRAVEL" - An entertainment and travel job, such as// Flight Attendant.//   "FARMING_AND_OUTDOORS" - A farming or outdoor job, such as Park Ranger.//   "HEALTHCARE" - A healthcare job, such as Registered Nurse.//   "HUMAN_RESOURCES" - A human resources job, such as Human Resources// Director.//   "INSTALLATION_MAINTENANCE_AND_REPAIR" - An installation, maintenance, or// repair job, such as Electrician.//   "LEGAL" - A legal job, such as Law Clerk.//   "MANAGEMENT" - A management job, often used in conjunction with another// category, such as Store Manager.//   "MANUFACTURING_AND_WAREHOUSE" - A manufacturing or warehouse job, such as// Assembly Technician.//   "MEDIA_COMMUNICATIONS_AND_WRITING" - A media, communications, or writing// job, such as Media Relations.//   "OIL_GAS_AND_MINING" - An oil, gas or mining job, such as Offshore// Driller.//   "PERSONAL_CARE_AND_SERVICES" - A personal care and services job, such as// Hair Stylist.//   "PROTECTIVE_SERVICES" - A protective services job, such as Security Guard.//   "REAL_ESTATE" - A real estate job, such as Buyer's Agent.//   "RESTAURANT_AND_HOSPITALITY" - A restaurant and hospitality job, such as// Restaurant Server.//   "SALES_AND_RETAIL" - A sales and/or retail job, such Sales Associate.//   "SCIENCE_AND_ENGINEERING" - A science and engineering job, such as Lab// Technician.//   "SOCIAL_SERVICES_AND_NON_PROFIT" - A social services or non-profit job,// such as Case Worker.//   "SPORTS_FITNESS_AND_RECREATION" - A sports, fitness, or recreation job,// such as Personal Trainer.//   "TRANSPORTATION_AND_LOGISTICS" - A transportation or logistics job, such// as Truck Driver.JobCategories []string `json:"jobCategories,omitempty"`// LanguageCodes: Optional. This filter specifies the locale of jobs to search// against, for example, "en-US". If a value isn't specified, the search// results can contain jobs in any locale. Language codes should be in BCP-47// format, such as "en-US" or "sr-Latn". For more information, see Tags for// Identifying Languages (https://tools.ietf.org/html/bcp47). At most 10// language code filters are allowed.LanguageCodes []string `json:"languageCodes,omitempty"`// LocationFilters: Optional. The location filter specifies geo-regions// containing the jobs to search against. See LocationFilter for more// information. If a location value isn't specified, jobs fitting the other// search criteria are retrieved regardless of where they're located. If// multiple values are specified, jobs are retrieved from any of the specified// locations. If different values are specified for the// LocationFilter.distance_in_miles parameter, the maximum provided distance is// used for all locations. At most 5 location filters are allowed.LocationFilters []*LocationFilter `json:"locationFilters,omitempty"`// PublishTimeRange: Optional. Jobs published within a range specified by this// filter are searched against.PublishTimeRange *TimestampRange `json:"publishTimeRange,omitempty"`// Query: Optional. The query string that matches against the job title,// description, and location fields. The maximum number of allowed characters// is 255.Querystring `json:"query,omitempty"`// QueryLanguageCode: The language code of query. For example, "en-US". This// field helps to better interpret the query. If a value isn't specified, the// query language code is automatically detected, which may not be accurate.// Language code should be in BCP-47 format, such as "en-US" or "sr-Latn". For// more information, see Tags for Identifying Languages// (https://tools.ietf.org/html/bcp47).QueryLanguageCodestring `json:"queryLanguageCode,omitempty"`// ForceSendFields is a list of field names (e.g. "CommuteFilter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommuteFilter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

JobQuery: Input only. The query required to perform a search query.

func (JobQuery)MarshalJSON

func (sJobQuery) MarshalJSON() ([]byte,error)

typeLatLng

type LatLng struct {// Latitude: The latitude in degrees. It must be in the range [-90.0, +90.0].Latitudefloat64 `json:"latitude,omitempty"`// Longitude: The longitude in degrees. It must be in the range [-180.0,// +180.0].Longitudefloat64 `json:"longitude,omitempty"`// ForceSendFields is a list of field names (e.g. "Latitude") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Latitude") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LatLng: An object that represents a latitude/longitude pair. This isexpressed as a pair of doubles to represent degrees latitude and degreeslongitude. Unless specified otherwise, this object must conform to the WGS84standard. Values must be within normalized ranges.

func (LatLng)MarshalJSON

func (sLatLng) MarshalJSON() ([]byte,error)

func (*LatLng)UnmarshalJSON

func (s *LatLng) UnmarshalJSON(data []byte)error

typeListCompaniesResponse

type ListCompaniesResponse struct {// Companies: Companies for the current client.Companies []*Company `json:"companies,omitempty"`// Metadata: Additional information for the API invocation, such as the request// tracking id.Metadata *ResponseMetadata `json:"metadata,omitempty"`// NextPageToken: A token to retrieve the next page of results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Companies") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Companies") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListCompaniesResponse: Output only. The List companies response object.

func (ListCompaniesResponse)MarshalJSON

func (sListCompaniesResponse) MarshalJSON() ([]byte,error)

typeListJobsResponse

type ListJobsResponse struct {// Jobs: The Jobs for a given company. The maximum number of items returned is// based on the limit field provided in the request.Jobs []*Job `json:"jobs,omitempty"`// Metadata: Additional information for the API invocation, such as the request// tracking id.Metadata *ResponseMetadata `json:"metadata,omitempty"`// NextPageToken: A token to retrieve the next page of results.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Jobs") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Jobs") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListJobsResponse: Output only. List jobs response.

func (ListJobsResponse)MarshalJSON

func (sListJobsResponse) MarshalJSON() ([]byte,error)

typeLocation

type Location struct {// LatLng: An object representing a latitude/longitude pair.LatLng *LatLng `json:"latLng,omitempty"`// LocationType: The type of a location, which corresponds to the address lines// field of PostalAddress. For example, "Downtown, Atlanta, GA, USA" has a type// of LocationType#NEIGHBORHOOD, and "Kansas City, KS, USA" has a type of// LocationType#LOCALITY.//// Possible values://   "LOCATION_TYPE_UNSPECIFIED" - Default value if the type is not specified.//   "COUNTRY" - A country level location.//   "ADMINISTRATIVE_AREA" - A state or equivalent level location.//   "SUB_ADMINISTRATIVE_AREA" - A county or equivalent level location.//   "LOCALITY" - A city or equivalent level location.//   "POSTAL_CODE" - A postal code level location.//   "SUB_LOCALITY" - A sublocality is a subdivision of a locality, for example// a city borough, ward, or arrondissement. Sublocalities are usually// recognized by a local political authority. For example, Manhattan and// Brooklyn are recognized as boroughs by the City of New York, and are// therefore modeled as sublocalities.//   "SUB_LOCALITY_1" - A district or equivalent level location.//   "SUB_LOCALITY_2" - A smaller district or equivalent level display.//   "NEIGHBORHOOD" - A neighborhood level location.//   "STREET_ADDRESS" - A street address level location.LocationTypestring `json:"locationType,omitempty"`// PostalAddress: Postal address of the location that includes human readable// information, such as postal delivery and payments addresses. Given a postal// address, a postal service can deliver items to a premises, P.O. Box, or// other delivery location.PostalAddress *PostalAddress `json:"postalAddress,omitempty"`// RadiusInMiles: Radius in miles of the job location. This value is derived// from the location bounding box in which a circle with the specified radius// centered from LatLng covers the area associated with the job location. For// example, currently, "Mountain View, CA, USA" has a radius of 6.17 miles.RadiusInMilesfloat64 `json:"radiusInMiles,omitempty"`// ForceSendFields is a list of field names (e.g. "LatLng") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LatLng") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Location: Output only. A resource that represents a location with fullgeographic information.

func (Location)MarshalJSON

func (sLocation) MarshalJSON() ([]byte,error)

func (*Location)UnmarshalJSON

func (s *Location) UnmarshalJSON(data []byte)error

typeLocationFilter

type LocationFilter struct {// Address: Optional. The address name, such as "Mountain View" or "Bay Area".Addressstring `json:"address,omitempty"`// DistanceInMiles: Optional. The distance_in_miles is applied when the// location being searched for is identified as a city or smaller. When the// location being searched for is a state or larger, this field is ignored.DistanceInMilesfloat64 `json:"distanceInMiles,omitempty"`// LatLng: Optional. The latitude and longitude of the geographic center from// which to search. This field's ignored if `address` is provided.LatLng *LatLng `json:"latLng,omitempty"`// RegionCode: Optional. CLDR region code of the country/region. This field may// be used in two ways: 1) If telecommute preference is not set, this field is// used address ambiguity of the user-input address. For example, "Liverpool"// may refer to "Liverpool, NY, US" or "Liverpool, UK". This region code biases// the address resolution toward a specific country or territory. If this field// is not set, address resolution is biased toward the United States by// default. 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the// telecommute location filter will be limited to the region specified in this// field. If this field is not set, the telecommute job locations will not be// limited. See//https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html// for details. Example: "CH" for Switzerland.RegionCodestring `json:"regionCode,omitempty"`// TelecommutePreference: Optional. Allows the client to return jobs without a// set location, specifically, telecommuting jobs (telecommuting is considered// by the service as a special location). Job.posting_region indicates if a job// permits telecommuting. If this field is set to// TelecommutePreference.TELECOMMUTE_ALLOWED, telecommuting jobs are searched,// and address and lat_lng are ignored. If not set or set to// TelecommutePreference.TELECOMMUTE_EXCLUDED, the telecommute status of the// jobs is ignored. Jobs that have PostingRegion.TELECOMMUTE and have// additional Job.addresses may still be matched based on other location// filters using address or latlng. This filter can be used by itself to search// exclusively for telecommuting jobs, or it can be combined with another// location filter to search for a combination of job locations, such as// "Mountain View" or "telecommuting" jobs. However, when used in combination// with other location filters, telecommuting jobs can be treated as less// relevant than other jobs in the search response.//// Possible values://   "TELECOMMUTE_PREFERENCE_UNSPECIFIED" - Default value if the telecommute// preference is not specified.//   "TELECOMMUTE_EXCLUDED" - Deprecated: Ignore telecommute status of jobs.// Use TELECOMMUTE_JOBS_EXCLUDED if want to exclude telecommute jobs.//   "TELECOMMUTE_ALLOWED" - Allow telecommute jobs.//   "TELECOMMUTE_JOBS_EXCLUDED" - Exclude telecommute jobs.TelecommutePreferencestring `json:"telecommutePreference,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LocationFilter: Input only. Geographic region of the search.

func (LocationFilter)MarshalJSON

func (sLocationFilter) MarshalJSON() ([]byte,error)

func (*LocationFilter)UnmarshalJSON

func (s *LocationFilter) UnmarshalJSON(data []byte)error

typeMatchingJob

type MatchingJob struct {// CommuteInfo: Commute information which is generated based on specified// CommuteFilter.CommuteInfo *CommuteInfo `json:"commuteInfo,omitempty"`// Job: Job resource that matches the specified SearchJobsRequest.Job *Job `json:"job,omitempty"`// JobSummary: A summary of the job with core information that's displayed on// the search results listing page.JobSummarystring `json:"jobSummary,omitempty"`// JobTitleSnippet: Contains snippets of text from the Job.job_title field most// closely matching a search query's keywords, if available. The matching query// keywords are enclosed in HTML bold tags.JobTitleSnippetstring `json:"jobTitleSnippet,omitempty"`// SearchTextSnippet: Contains snippets of text from the Job.description and// similar fields that most closely match a search query's keywords, if// available. All HTML tags in the original fields are stripped when returned// in this field, and matching query keywords are enclosed in HTML bold tags.SearchTextSnippetstring `json:"searchTextSnippet,omitempty"`// ForceSendFields is a list of field names (e.g. "CommuteInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CommuteInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MatchingJob: Output only. Job entry with metadata inside SearchJobsResponse.

func (MatchingJob)MarshalJSON

func (sMatchingJob) MarshalJSON() ([]byte,error)

typeMoney

type Money struct {// CurrencyCode: The three-letter currency code defined in ISO 4217.CurrencyCodestring `json:"currencyCode,omitempty"`// Nanos: Number of nano (10^-9) units of the amount. The value must be between// -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos`// must be positive or zero. If `units` is zero, `nanos` can be positive, zero,// or negative. If `units` is negative, `nanos` must be negative or zero. For// example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.Nanosint64 `json:"nanos,omitempty"`// Units: The whole units of the amount. For example if `currencyCode` is// "USD", then 1 unit is one US dollar.Unitsint64 `json:"units,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CurrencyCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CurrencyCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Money: Represents an amount of money with its currency type.

func (Money)MarshalJSON

func (sMoney) MarshalJSON() ([]byte,error)

typeNumericBucketingOption

type NumericBucketingOption struct {// BucketBounds: Required. Two adjacent values form a histogram bucket. Values// should be in ascending order. For example, if [5, 10, 15] are provided, four// buckets are created: (-inf, 5), 5, 10), [10, 15), [15, inf). At most 20// [buckets_bound is supported.BucketBounds []float64 `json:"bucketBounds,omitempty"`// RequiresMinMax: Optional. If set to true, the histogram result includes// minimum/maximum value of the numeric field.RequiresMinMaxbool `json:"requiresMinMax,omitempty"`// ForceSendFields is a list of field names (e.g. "BucketBounds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BucketBounds") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

NumericBucketingOption: Input only. Use this field to specify bucketingoption for the histogram search response.

func (NumericBucketingOption)MarshalJSON

func (sNumericBucketingOption) MarshalJSON() ([]byte,error)

func (*NumericBucketingOption)UnmarshalJSONadded inv0.122.0

func (s *NumericBucketingOption) UnmarshalJSON(data []byte)error

typeNumericBucketingResult

type NumericBucketingResult struct {// Counts: Count within each bucket. Its size is the length of// NumericBucketingOption.bucket_bounds plus 1.Counts []*BucketizedCount `json:"counts,omitempty"`// MaxValue: Stores the maximum value of the numeric field. Is populated only// if [NumericBucketingOption.requires_min_max] is set to true.MaxValuefloat64 `json:"maxValue,omitempty"`// MinValue: Stores the minimum value of the numeric field. Will be populated// only if [NumericBucketingOption.requires_min_max] is set to true.MinValuefloat64 `json:"minValue,omitempty"`// ForceSendFields is a list of field names (e.g. "Counts") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Counts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

NumericBucketingResult: Output only. Custom numeric bucketing result.

func (NumericBucketingResult)MarshalJSON

func (sNumericBucketingResult) MarshalJSON() ([]byte,error)

func (*NumericBucketingResult)UnmarshalJSON

func (s *NumericBucketingResult) UnmarshalJSON(data []byte)error

typeOperationadded inv0.2.0

type Operation struct {// Done: If the value is `false`, it means the operation is still in progress.// If `true`, the operation is completed, and either `error` or `response` is// available.Donebool `json:"done,omitempty"`// Error: The error result of the operation in case of failure or cancellation.Error *Status `json:"error,omitempty"`// Metadata: Service-specific metadata associated with the operation. It// typically contains progress information and common metadata such as create// time. Some services might not provide such metadata. Any method that returns// a long-running operation should document the metadata type, if any.Metadatagoogleapi.RawMessage `json:"metadata,omitempty"`// Name: The server-assigned name, which is only unique within the same service// that originally returns it. If you use the default HTTP mapping, the `name`// should be a resource name ending with `operations/{unique_id}`.Namestring `json:"name,omitempty"`// Response: The normal, successful response of the operation. If the original// method returns no data on success, such as `Delete`, the response is// `google.protobuf.Empty`. If the original method is standard// `Get`/`Create`/`Update`, the response should be the resource. For other// methods, the response should have the type `XxxResponse`, where `Xxx` is the// original method name. For example, if the original method name is// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.Responsegoogleapi.RawMessage `json:"response,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Done") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Done") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Operation: This resource represents a long-running operation that is theresult of a network API call.

func (Operation)MarshalJSONadded inv0.2.0

func (sOperation) MarshalJSON() ([]byte,error)

typePostalAddress

type PostalAddress struct {// AddressLines: Unstructured address lines describing the lower levels of an// address. Because values in `address_lines` do not have type information and// may sometimes contain multiple values in a single field (for example,// "Austin, TX"), it is important that the line order is clear. The order of// address lines should be "envelope order" for the country or region of the// address. In places where this can vary (for example, Japan),// `address_language` is used to make it explicit (for example, "ja" for// large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this// way, the most specific line of an address can be selected based on the// language. The minimum permitted structural representation of an address// consists of a `region_code` with all remaining information placed in the// `address_lines`. It would be possible to format such an address very// approximately without geocoding, but no semantic reasoning could be made// about any of the address components until it was at least partially// resolved. Creating an address only containing a `region_code` and// `address_lines` and then geocoding is the recommended way to handle// completely unstructured addresses (as opposed to guessing which parts of the// address should be localities or administrative areas).AddressLines []string `json:"addressLines,omitempty"`// AdministrativeArea: Optional. Highest administrative subdivision which is// used for postal addresses of a country or region. For example, this can be a// state, a province, an oblast, or a prefecture. For Spain, this is the// province and not the autonomous community (for example, "Barcelona" and not// "Catalonia"). Many countries don't use an administrative area in postal// addresses. For example, in Switzerland, this should be left unpopulated.AdministrativeAreastring `json:"administrativeArea,omitempty"`// LanguageCode: Optional. BCP-47 language code of the contents of this address// (if known). This is often the UI language of the input form or is expected// to match one of the languages used in the address' country/region, or their// transliterated equivalents. This can affect formatting in certain countries,// but is not critical to the correctness of the data and will never affect any// validation or other non-formatting related operations. If this value is not// known, it should be omitted (rather than specifying a possibly incorrect// default). Examples: "zh-Hant", "ja", "ja-Latn", "en".LanguageCodestring `json:"languageCode,omitempty"`// Locality: Optional. Generally refers to the city or town portion of the// address. Examples: US city, IT comune, UK post town. In regions of the world// where localities are not well defined or do not fit into this structure// well, leave `locality` empty and use `address_lines`.Localitystring `json:"locality,omitempty"`// Organization: Optional. The name of the organization at the address.Organizationstring `json:"organization,omitempty"`// PostalCode: Optional. Postal code of the address. Not all countries use or// require postal codes to be present, but where they are used, they may// trigger additional validation with other parts of the address (for example,// state or zip code validation in the United States).PostalCodestring `json:"postalCode,omitempty"`// Recipients: Optional. The recipient at the address. This field may, under// certain circumstances, contain multiline information. For example, it might// contain "care of" information.Recipients []string `json:"recipients,omitempty"`// RegionCode: Required. CLDR region code of the country/region of the address.// This is never inferred and it is up to the user to ensure the value is// correct. Seehttps://cldr.unicode.org/ and//https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html// for details. Example: "CH" for Switzerland.RegionCodestring `json:"regionCode,omitempty"`// Revision: The schema revision of the `PostalAddress`. This must be set to 0,// which is the latest revision. All new revisions **must** be backward// compatible with old revisions.Revisionint64 `json:"revision,omitempty"`// SortingCode: Optional. Additional, country-specific, sorting code. This is// not used in most regions. Where it is used, the value is either a string// like "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or// just a number alone, representing the "sector code" (Jamaica), "delivery// area indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).SortingCodestring `json:"sortingCode,omitempty"`// Sublocality: Optional. Sublocality of the address. For example, this can be// a neighborhood, borough, or district.Sublocalitystring `json:"sublocality,omitempty"`// ForceSendFields is a list of field names (e.g. "AddressLines") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AddressLines") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PostalAddress: Represents a postal address, such as for postal delivery orpayments addresses. With a postal address, a postal service can deliveritems to a premise, P.O. box, or similar. A postal address is not intendedto model geographical locations like roads, towns, or mountains. In typicalusage, an address would be created by user input or from importing existingdata, depending on the type of process. Advice on address input or editing:- Use an internationalization-ready address widget such ashttps://github.com/google/libaddressinput. - Users should not be presentedwith UI elements for input or editing of fields outside countries where thatfield is used. For more guidance on how to use this schema, see:https://support.google.com/business/answer/6397478.

func (PostalAddress)MarshalJSON

func (sPostalAddress) MarshalJSON() ([]byte,error)

typeProcessingOptions

type ProcessingOptions struct {// DisableStreetAddressResolution: Optional. If set to `true`, the service does// not attempt to resolve a more precise address for the job.DisableStreetAddressResolutionbool `json:"disableStreetAddressResolution,omitempty"`// HtmlSanitization: Optional. Option for job HTML content sanitization.// Applied fields are: * description * applicationInfo.instruction * incentives// * qualifications * responsibilities HTML tags in these fields may be// stripped if sanitiazation is not disabled. Defaults to// HtmlSanitization.SIMPLE_FORMATTING_ONLY.//// Possible values://   "HTML_SANITIZATION_UNSPECIFIED" - Default value.//   "HTML_SANITIZATION_DISABLED" - Disables sanitization on HTML input.//   "SIMPLE_FORMATTING_ONLY" - Sanitizes HTML input, only accepts bold,// italic, ordered list, and unordered list markup tags.HtmlSanitizationstring `json:"htmlSanitization,omitempty"`// ForceSendFields is a list of field names (e.g.// "DisableStreetAddressResolution") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisableStreetAddressResolution")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProcessingOptions: Input only. Options for job processing.

func (ProcessingOptions)MarshalJSON

func (sProcessingOptions) MarshalJSON() ([]byte,error)

typeProjectsClientEventsCreateCall

type ProjectsClientEventsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsClientEventsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsClientEventsCreateCall)Do

Do executes the "jobs.projects.clientEvents.create" call.Any non-2xx status code is an error. Response headers are in either*ClientEvent.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsClientEventsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsClientEventsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsClientEventsService

type ProjectsClientEventsService struct {// contains filtered or unexported fields}

funcNewProjectsClientEventsService

func NewProjectsClientEventsService(s *Service) *ProjectsClientEventsService

func (*ProjectsClientEventsService)Create

Create: Report events issued when end user interacts with customer'sapplication that uses Cloud Talent Solution. You may inspect the createdevents in self service tools(https://console.cloud.google.com/talent-solution/overview). Learn more(https://cloud.google.com/talent-solution/docs/management-tools) about selfservice tools.

- parent: Parent project name.

typeProjectsCompaniesCreateCall

type ProjectsCompaniesCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsCompaniesCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompaniesCreateCall)Do

Do executes the "jobs.projects.companies.create" call.Any non-2xx status code is an error. Response headers are in either*Company.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsCompaniesCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompaniesCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsCompaniesDeleteCall

type ProjectsCompaniesDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsCompaniesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompaniesDeleteCall)Do

Do executes the "jobs.projects.companies.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsCompaniesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompaniesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsCompaniesGetCall

type ProjectsCompaniesGetCall struct {// contains filtered or unexported fields}

func (*ProjectsCompaniesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompaniesGetCall)Do

Do executes the "jobs.projects.companies.get" call.Any non-2xx status code is an error. Response headers are in either*Company.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsCompaniesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompaniesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsCompaniesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsCompaniesListCall

type ProjectsCompaniesListCall struct {// contains filtered or unexported fields}

func (*ProjectsCompaniesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompaniesListCall)Do

Do executes the "jobs.projects.companies.list" call.Any non-2xx status code is an error. Response headers are in either*ListCompaniesResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsCompaniesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompaniesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsCompaniesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsCompaniesListCall)PageSize

PageSize sets the optional parameter "pageSize": The maximum number ofcompanies to be returned, at most 100. Default is 100 if a non-positivenumber is provided.

func (*ProjectsCompaniesListCall)PageToken

PageToken sets the optional parameter "pageToken": The starting indicatorfrom which to return results.

func (*ProjectsCompaniesListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

func (*ProjectsCompaniesListCall)RequireOpenJobs

func (c *ProjectsCompaniesListCall) RequireOpenJobs(requireOpenJobsbool) *ProjectsCompaniesListCall

RequireOpenJobs sets the optional parameter "requireOpenJobs": Set to trueif the companies requested must have open jobs. Defaults to false. If true,at most page_size of companies are fetched, among which only those with openjobs are returned.

typeProjectsCompaniesPatchCall

type ProjectsCompaniesPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsCompaniesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompaniesPatchCall)Do

Do executes the "jobs.projects.companies.patch" call.Any non-2xx status code is an error. Response headers are in either*Company.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsCompaniesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompaniesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsCompaniesService

type ProjectsCompaniesService struct {// contains filtered or unexported fields}

funcNewProjectsCompaniesService

func NewProjectsCompaniesService(s *Service) *ProjectsCompaniesService

func (*ProjectsCompaniesService)Create

Create: Creates a new company entity.

  • parent: Resource name of the project under which the company is created.The format is "projects/{project_id}", for example,"projects/api-test-project".

func (*ProjectsCompaniesService)Delete

Delete: Deletes specified company. Prerequisite: The company has no jobsassociated with it.

  • name: The resource name of the company to be deleted. The format is"projects/{project_id}/companies/{company_id}", for example,"projects/api-test-project/companies/foo".

func (*ProjectsCompaniesService)Get

Get: Retrieves specified company.

  • name: The resource name of the company to be retrieved. The format is"projects/{project_id}/companies/{company_id}", for example,"projects/api-test-project/companies/foo".

func (*ProjectsCompaniesService)List

List: Lists all companies associated with the service account.

  • parent: Resource name of the project under which the company is created.The format is "projects/{project_id}", for example,"projects/api-test-project".

func (*ProjectsCompaniesService)Patch

Patch: Updates specified company. Company names can't be updated. To updatea company name, delete the company and all jobs associated with it, and onlythen re-create them.

  • name: Required during company update. The resource name for a company.This is generated by the service when a company is created. The format is"projects/{project_id}/companies/{company_id}", for example,"projects/api-test-project/companies/foo".

typeProjectsCompleteCall

type ProjectsCompleteCall struct {// contains filtered or unexported fields}

func (*ProjectsCompleteCall)CompanyName

func (c *ProjectsCompleteCall) CompanyName(companyNamestring) *ProjectsCompleteCall

CompanyName sets the optional parameter "companyName": If provided,restricts completion to specified company. The format is"projects/{project_id}/companies/{company_id}", for example,"projects/api-test-project/companies/foo".

func (*ProjectsCompleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsCompleteCall)Do

Do executes the "jobs.projects.complete" call.Any non-2xx status code is an error. Response headers are in either*CompleteQueryResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsCompleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsCompleteCall)Header

func (c *ProjectsCompleteCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsCompleteCall)IfNoneMatch

func (c *ProjectsCompleteCall) IfNoneMatch(entityTagstring) *ProjectsCompleteCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsCompleteCall)LanguageCode

func (c *ProjectsCompleteCall) LanguageCode(languageCodestring) *ProjectsCompleteCall

LanguageCode sets the optional parameter "languageCode": Deprecated. Uselanguage_codes instead. The language of the query. This is the BCP-47language code, such as "en-US" or "sr-Latn". For more information, see Tagsfor Identifying Languages (https://tools.ietf.org/html/bcp47). ForCompletionType.JOB_TITLE type, only open jobs with the same language_codeare returned. For CompletionType.COMPANY_NAME type, only companies havingopen jobs with the same language_code are returned. ForCompletionType.COMBINED type, only open jobs with the same language_code orcompanies having open jobs with the same language_code are returned. Themaximum number of allowed characters is 255.

func (*ProjectsCompleteCall)LanguageCodes

func (c *ProjectsCompleteCall) LanguageCodes(languageCodes ...string) *ProjectsCompleteCall

LanguageCodes sets the optional parameter "languageCodes": The list oflanguages of the query. This is the BCP-47 language code, such as "en-US" or"sr-Latn". For more information, see Tags for Identifying Languages(https://tools.ietf.org/html/bcp47). For CompletionType.JOB_TITLE type, onlyopen jobs with the same language_codes are returned. ForCompletionType.COMPANY_NAME type, only companies having open jobs with thesame language_codes are returned. For CompletionType.COMBINED type, onlyopen jobs with the same language_codes or companies having open jobs withthe same language_codes are returned. The maximum number of allowedcharacters is 255.

func (*ProjectsCompleteCall)PageSize

func (c *ProjectsCompleteCall) PageSize(pageSizeint64) *ProjectsCompleteCall

PageSize sets the optional parameter "pageSize": Required. Completion resultcount. The maximum allowed page size is 10.

func (*ProjectsCompleteCall)Query

Query sets the optional parameter "query": Required. The query used togenerate suggestions. The maximum number of allowed characters is 255.

func (*ProjectsCompleteCall)Scope

Scope sets the optional parameter "scope": The scope of the completion. Thedefaults is CompletionScope.PUBLIC.

Possible values:

"COMPLETION_SCOPE_UNSPECIFIED" - Default value."TENANT" - Suggestions are based only on the data provided by the client."PUBLIC" - Suggestions are based on all jobs data in the system that's

visible to the client

func (*ProjectsCompleteCall)Type

Type sets the optional parameter "type": The completion topic. The defaultis CompletionType.COMBINED.

Possible values:

"COMPLETION_TYPE_UNSPECIFIED" - Default value."JOB_TITLE" - Only suggest job titles."COMPANY_NAME" - Only suggest company names."COMBINED" - Suggest both job titles and company names.

typeProjectsJobsBatchDeleteCall

type ProjectsJobsBatchDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsBatchDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsBatchDeleteCall)Do

Do executes the "jobs.projects.jobs.batchDelete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsJobsBatchDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsBatchDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsJobsCreateCall

type ProjectsJobsCreateCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsCreateCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsCreateCall)Do

Do executes the "jobs.projects.jobs.create" call.Any non-2xx status code is an error. Response headers are in either*Job.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsJobsCreateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsCreateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsJobsDeleteCall

type ProjectsJobsDeleteCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsDeleteCall)Do

Do executes the "jobs.projects.jobs.delete" call.Any non-2xx status code is an error. Response headers are in either*Empty.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsJobsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsJobsGetCall

type ProjectsJobsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsGetCall)Do

Do executes the "jobs.projects.jobs.get" call.Any non-2xx status code is an error. Response headers are in either*Job.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsJobsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsGetCall)Header

func (c *ProjectsJobsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsJobsGetCall)IfNoneMatch

func (c *ProjectsJobsGetCall) IfNoneMatch(entityTagstring) *ProjectsJobsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsJobsListCall

type ProjectsJobsListCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsListCall)Do

Do executes the "jobs.projects.jobs.list" call.Any non-2xx status code is an error. Response headers are in either*ListJobsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsJobsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsListCall)Filter

Filter sets the optional parameter "filter": Required. The filter stringspecifies the jobs to be enumerated. Supported operator: =, AND The fieldseligible for filtering are: * `companyName` * `requisitionId` * `status`Available values: OPEN, EXPIRED, ALL. Defaults to OPEN if no value isspecified. At least one of `companyName` and `requisitionId` must present oran INVALID_ARGUMENT error is thrown. Sample Query: * companyName ="projects/api-test-project/companies/123" * companyName ="projects/api-test-project/companies/123" AND requisitionId = "req-1" *companyName = "projects/api-test-project/companies/123" AND status ="EXPIRED" * requisitionId = "req-1" * requisitionId = "req-1" AND status ="EXPIRED"

func (*ProjectsJobsListCall)Header

func (c *ProjectsJobsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsJobsListCall)IfNoneMatch

func (c *ProjectsJobsListCall) IfNoneMatch(entityTagstring) *ProjectsJobsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProjectsJobsListCall)JobView

JobView sets the optional parameter "jobView": The desired job attributesreturned for jobs in the search response. Defaults to JobView.JOB_VIEW_FULLif no value is specified.

Possible values:

"JOB_VIEW_UNSPECIFIED" - Default value."JOB_VIEW_ID_ONLY" - A ID only view of job, with following attributes:

Job.name, Job.requisition_id, Job.language_code.

"JOB_VIEW_MINIMAL" - A minimal view of the job, with the following

attributes: Job.name, Job.requisition_id, Job.title, Job.company_name,Job.DerivedInfo.locations, Job.language_code.

"JOB_VIEW_SMALL" - A small view of the job, with the following attributes

in the search results: Job.name, Job.requisition_id, Job.title,Job.company_name, Job.DerivedInfo.locations, Job.visibility,Job.language_code, Job.description.

"JOB_VIEW_FULL" - All available attributes are included in the search

results.

func (*ProjectsJobsListCall)PageSize

func (c *ProjectsJobsListCall) PageSize(pageSizeint64) *ProjectsJobsListCall

PageSize sets the optional parameter "pageSize": The maximum number of jobsto be returned per page of results. If job_view is set toJobView.JOB_VIEW_ID_ONLY, the maximum allowed page size is 1000. Otherwise,the maximum allowed page size is 100. Default is 100 if empty or a number <1 is specified.

func (*ProjectsJobsListCall)PageToken

func (c *ProjectsJobsListCall) PageToken(pageTokenstring) *ProjectsJobsListCall

PageToken sets the optional parameter "pageToken": The starting point of aquery result.

func (*ProjectsJobsListCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsJobsPatchCall

type ProjectsJobsPatchCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsPatchCall)Do

Do executes the "jobs.projects.jobs.patch" call.Any non-2xx status code is an error. Response headers are in either*Job.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsJobsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProjectsJobsSearchCall

type ProjectsJobsSearchCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsSearchCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsSearchCall)Do

Do executes the "jobs.projects.jobs.search" call.Any non-2xx status code is an error. Response headers are in either*SearchJobsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsJobsSearchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsSearchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsJobsSearchCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsJobsSearchForAlertCall

type ProjectsJobsSearchForAlertCall struct {// contains filtered or unexported fields}

func (*ProjectsJobsSearchForAlertCall)Context

Context sets the context to be used in this call's Do method.

func (*ProjectsJobsSearchForAlertCall)Do

Do executes the "jobs.projects.jobs.searchForAlert" call.Any non-2xx status code is an error. Response headers are in either*SearchJobsResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProjectsJobsSearchForAlertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsJobsSearchForAlertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsJobsSearchForAlertCall)Pages

Pages invokes f for each page of results.A non-nil error returned from f will halt the iteration.The provided context supersedes any context provided to the Context method.

typeProjectsJobsService

type ProjectsJobsService struct {// contains filtered or unexported fields}

funcNewProjectsJobsService

func NewProjectsJobsService(s *Service) *ProjectsJobsService

func (*ProjectsJobsService)BatchDelete

func (r *ProjectsJobsService) BatchDelete(parentstring, batchdeletejobsrequest *BatchDeleteJobsRequest) *ProjectsJobsBatchDeleteCall

BatchDelete: Deletes a list of Jobs by filter.

  • parent: The resource name of the project under which the job is created.The format is "projects/{project_id}", for example,"projects/api-test-project".

func (*ProjectsJobsService)Create

func (r *ProjectsJobsService) Create(parentstring, createjobrequest *CreateJobRequest) *ProjectsJobsCreateCall

Create: Creates a new job. Typically, the job becomes searchable within 10seconds, but it may take up to 5 minutes.

  • parent: The resource name of the project under which the job is created.The format is "projects/{project_id}", for example,"projects/api-test-project".

func (*ProjectsJobsService)Delete

Delete: Deletes the specified job. Typically, the job becomes unsearchablewithin 10 seconds, but it may take up to 5 minutes.

  • name: The resource name of the job to be deleted. The format is"projects/{project_id}/jobs/{job_id}", for example,"projects/api-test-project/jobs/1234".

func (*ProjectsJobsService)Get

Get: Retrieves the specified job, whose status is OPEN or recently EXPIREDwithin the last 90 days.

  • name: The resource name of the job to retrieve. The format is"projects/{project_id}/jobs/{job_id}", for example,"projects/api-test-project/jobs/1234".

func (*ProjectsJobsService)List

List: Lists jobs by filter.

  • parent: The resource name of the project under which the job is created.The format is "projects/{project_id}", for example,"projects/api-test-project".

func (*ProjectsJobsService)Patch

func (r *ProjectsJobsService) Patch(namestring, updatejobrequest *UpdateJobRequest) *ProjectsJobsPatchCall

Patch: Updates specified job. Typically, updated contents become visible insearch results within 10 seconds, but it may take up to 5 minutes.

  • name: Required during job update. The resource name for the job. This isgenerated by the service when a job is created. The format is"projects/{project_id}/jobs/{job_id}", for example,"projects/api-test-project/jobs/1234". Use of this field in job queriesand API calls is preferred over the use of requisition_id since this valueis unique.

func (*ProjectsJobsService)Search

func (r *ProjectsJobsService) Search(parentstring, searchjobsrequest *SearchJobsRequest) *ProjectsJobsSearchCall

Search: Searches for jobs using the provided SearchJobsRequest. This callconstrains the visibility of jobs present in the database, and only returnsjobs that the caller has permission to search against.

  • parent: The resource name of the project to search within. The format is"projects/{project_id}", for example, "projects/api-test-project".

func (*ProjectsJobsService)SearchForAlert

func (r *ProjectsJobsService) SearchForAlert(parentstring, searchjobsrequest *SearchJobsRequest) *ProjectsJobsSearchForAlertCall

SearchForAlert: Searches for jobs using the provided SearchJobsRequest. ThisAPI call is intended for the use case of targeting passive job seekers (forexample, job seekers who have signed up to receive email alerts aboutpotential job opportunities), and has different algorithmic adjustments thatare targeted to passive job seekers. This call constrains the visibility ofjobs present in the database, and only returns jobs the caller haspermission to search against.

  • parent: The resource name of the project to search within. The format is"projects/{project_id}", for example, "projects/api-test-project".

typeProjectsOperationsGetCalladded inv0.2.0

type ProjectsOperationsGetCall struct {// contains filtered or unexported fields}

func (*ProjectsOperationsGetCall)Contextadded inv0.2.0

Context sets the context to be used in this call's Do method.

func (*ProjectsOperationsGetCall)Doadded inv0.2.0

Do executes the "jobs.projects.operations.get" call.Any non-2xx status code is an error. Response headers are in either*Operation.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProjectsOperationsGetCall)Fieldsadded inv0.2.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProjectsOperationsGetCall)Headeradded inv0.2.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProjectsOperationsGetCall)IfNoneMatchadded inv0.2.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProjectsOperationsServiceadded inv0.2.0

type ProjectsOperationsService struct {// contains filtered or unexported fields}

funcNewProjectsOperationsServiceadded inv0.2.0

func NewProjectsOperationsService(s *Service) *ProjectsOperationsService

func (*ProjectsOperationsService)Getadded inv0.2.0

Get: Gets the latest state of a long-running operation. Clients can use thismethod to poll the operation result at intervals as recommended by the APIservice.

- name: The name of the operation resource.

typeProjectsService

type ProjectsService struct {ClientEvents *ProjectsClientEventsServiceCompanies *ProjectsCompaniesServiceJobs *ProjectsJobsServiceOperations *ProjectsOperationsService// contains filtered or unexported fields}

funcNewProjectsService

func NewProjectsService(s *Service) *ProjectsService

func (*ProjectsService)Complete

Complete: Completes the specified prefix with keyword suggestions. Intendedfor use by a job search auto-complete search box.

  • name: Resource name of project the completion is performed within. Theformat is "projects/{project_id}", for example,"projects/api-test-project".

typeRequestMetadata

type RequestMetadata struct {// DeviceInfo: Optional. The type of device used by the job seeker at the time// of the call to the service.DeviceInfo *DeviceInfo `json:"deviceInfo,omitempty"`// Domain: Required. The client-defined scope or source of the service call,// which typically is the domain on which the service has been implemented and// is currently being run. For example, if the service is being run by client// *Foo, Inc.*, on job board www.foo.com and career site www.bar.com, then this// field is set to "foo.com" for use on the job board, and "bar.com" for use on// the career site. If this field isn't available for some reason, send// "UNKNOWN". Any improvements to the model for a particular tenant site rely// on this field being set correctly to a domain. The maximum number of allowed// characters is 255.Domainstring `json:"domain,omitempty"`// SessionId: Required. A unique session identification string. A session is// defined as the duration of an end user's interaction with the service over a// certain period. Obfuscate this field for privacy concerns before providing// it to the service. If this field is not available for some reason, send// "UNKNOWN". Note that any improvements to the model for a particular tenant// site, rely on this field being set correctly to some unique session_id. The// maximum number of allowed characters is 255.SessionIdstring `json:"sessionId,omitempty"`// UserId: Required. A unique user identification string, as determined by the// client. To have the strongest positive impact on search quality make sure// the client-level is unique. Obfuscate this field for privacy concerns before// providing it to the service. If this field is not available for some reason,// send "UNKNOWN". Note that any improvements to the model for a particular// tenant site, rely on this field being set correctly to a unique user_id. The// maximum number of allowed characters is 255.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RequestMetadata: Input only. Meta information related to the job searcher orentity conducting the job search. This information is used to improve theperformance of the service.

func (RequestMetadata)MarshalJSON

func (sRequestMetadata) MarshalJSON() ([]byte,error)

typeResponseMetadata

type ResponseMetadata struct {// RequestId: A unique id associated with this call. This id is logged for// tracking purposes.RequestIdstring `json:"requestId,omitempty"`// ForceSendFields is a list of field names (e.g. "RequestId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RequestId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ResponseMetadata: Output only. Additional information returned to client,such as debugging information.

func (ResponseMetadata)MarshalJSON

func (sResponseMetadata) MarshalJSON() ([]byte,error)

typeSearchJobsRequest

type SearchJobsRequest struct {// CustomRankingInfo: Optional. Controls over how job documents get ranked on// top of existing relevance score (determined by API algorithm).CustomRankingInfo *CustomRankingInfo `json:"customRankingInfo,omitempty"`// DisableKeywordMatch: Optional. Controls whether to disable exact keyword// match on Job.job_title, Job.description, Job.company_display_name,// Job.locations, Job.qualifications. When disable keyword match is turned off,// a keyword match returns jobs that do not match given category filters when// there are matching keywords. For example, the query "program manager," a// result is returned even if the job posting has the title "software// developer," which does not fall into "program manager" ontology, but does// have "program manager" appearing in its description. For queries like// "cloud" that does not contain title or location specific ontology, jobs with// "cloud" keyword matches are returned regardless of this flag's value. Please// use Company.keyword_searchable_custom_fields or// Company.keyword_searchable_custom_attributes if company specific globally// matched custom field/attribute string values is needed. Enabling keyword// match improves recall of subsequent search requests. Defaults to false.DisableKeywordMatchbool `json:"disableKeywordMatch,omitempty"`// DiversificationLevel: Optional. Controls whether highly similar jobs are// returned next to each other in the search results. Jobs are identified as// highly similar based on their titles, job categories, and locations. Highly// similar results are clustered so that only one representative job of the// cluster is displayed to the job seeker higher up in the results, with the// other jobs being displayed lower down in the results. Defaults to// DiversificationLevel.SIMPLE if no value is specified.//// Possible values://   "DIVERSIFICATION_LEVEL_UNSPECIFIED" - The diversification level isn't// specified. By default, jobs with this enum are ordered according to SIMPLE// diversifying behavior.//   "DISABLED" - Disables diversification. Jobs that would normally be pushed// to the last page would not have their positions altered. This may result in// highly similar jobs appearing in sequence in the search results.//   "SIMPLE" - Default diversifying behavior. The result list is ordered so// that highly similar results are pushed to the end of the last page of search// results.DiversificationLevelstring `json:"diversificationLevel,omitempty"`// EnableBroadening: Optional. Controls whether to broaden the search when it// produces sparse results. Broadened queries append results to the end of the// matching results list. Defaults to false.EnableBroadeningbool `json:"enableBroadening,omitempty"`// HistogramFacets: Optional. Histogram requests for jobs matching JobQuery.HistogramFacets *HistogramFacets `json:"histogramFacets,omitempty"`// HistogramQueries: Optional. Expression based histogram requests for jobs// matching JobQuery.HistogramQueries []*HistogramQuery `json:"histogramQueries,omitempty"`// JobQuery: Optional. Query used to search against jobs, such as keyword,// location filters, etc.JobQuery *JobQuery `json:"jobQuery,omitempty"`// JobView: Optional. The desired job attributes returned for jobs in the// search response. Defaults to JobView.SMALL if no value is specified.//// Possible values://   "JOB_VIEW_UNSPECIFIED" - Default value.//   "JOB_VIEW_ID_ONLY" - A ID only view of job, with following attributes:// Job.name, Job.requisition_id, Job.language_code.//   "JOB_VIEW_MINIMAL" - A minimal view of the job, with the following// attributes: Job.name, Job.requisition_id, Job.title, Job.company_name,// Job.DerivedInfo.locations, Job.language_code.//   "JOB_VIEW_SMALL" - A small view of the job, with the following attributes// in the search results: Job.name, Job.requisition_id, Job.title,// Job.company_name, Job.DerivedInfo.locations, Job.visibility,// Job.language_code, Job.description.//   "JOB_VIEW_FULL" - All available attributes are included in the search// results.JobViewstring `json:"jobView,omitempty"`// Offset: Optional. An integer that specifies the current offset (that is,// starting result location, amongst the jobs deemed by the API as relevant) in// search results. This field is only considered if page_token is unset. The// maximum allowed value is 5000. Otherwise an error is thrown. For example, 0// means to return results starting from the first matching job, and 10 means// to return from the 11th job. This can be used for pagination, (for example,// pageSize = 10 and offset = 10 means to return from the second page).Offsetint64 `json:"offset,omitempty"`// OrderBy: Optional. The criteria determining how search results are sorted.// Default is "relevance desc". Supported options are: * "relevance desc": By// relevance descending, as determined by the API algorithms. Relevance// thresholding of query results is only available with this ordering. *// "posting_publish_time desc": By Job.posting_publish_time descending. *// "posting_update_time desc": By Job.posting_update_time descending. *// "title": By Job.title ascending. * "title desc": By Job.title// descending. * "annualized_base_compensation": By job's// CompensationInfo.annualized_base_compensation_range ascending. Jobs whose// annualized base compensation is unspecified are put at the end of search// results. * "annualized_base_compensation desc": By job's// CompensationInfo.annualized_base_compensation_range descending. Jobs whose// annualized base compensation is unspecified are put at the end of search// results. * "annualized_total_compensation": By job's// CompensationInfo.annualized_total_compensation_range ascending. Jobs whose// annualized base compensation is unspecified are put at the end of search// results. * "annualized_total_compensation desc": By job's// CompensationInfo.annualized_total_compensation_range descending. Jobs whose// annualized base compensation is unspecified are put at the end of search// results. * "custom_ranking desc": By the relevance score adjusted to the// SearchJobsRequest.custom_ranking_info.ranking_expression with weight factor// assigned by SearchJobsRequest.custom_ranking_info.importance_level in// descending order. * Location sorting: Use the special syntax to order jobs// by distance: "distance_from('Hawaii')": Order by distance from Hawaii.// "distance_from(19.89, 155.5)": Order by distance from a coordinate.// "distance_from('Hawaii'), distance_from('Puerto Rico')": Order by multiple// locations. See details below. "distance_from('Hawaii'),// distance_from(19.89, 155.5)": Order by multiple locations. See details// below. The string can have a maximum of 256 characters. When multiple// distance centers are provided, a job that is close to any of the distance// centers would have a high rank. When a job has multiple locations, the job// location closest to one of the distance centers will be used. Jobs that// don't have locations will be ranked at the bottom. Distance is calculated// with a precision of 11.3 meters (37.4 feet). Diversification strategy is// still applied unless explicitly disabled in diversification_level.OrderBystring `json:"orderBy,omitempty"`// PageSize: Optional. A limit on the number of jobs returned in the search// results. Increasing this value above the default value of 10 can increase// search response time. The value can be between 1 and 100.PageSizeint64 `json:"pageSize,omitempty"`// PageToken: Optional. The token specifying the current offset within search// results. See SearchJobsResponse.next_page_token for an explanation of how to// obtain the next set of query results.PageTokenstring `json:"pageToken,omitempty"`// RequestMetadata: Required. The meta information collected about the job// searcher, used to improve the search quality of the service. The identifiers// (such as `user_id`) are provided by users, and must be unique and// consistent.RequestMetadata *RequestMetadata `json:"requestMetadata,omitempty"`// RequirePreciseResultSize: This field is deprecated.RequirePreciseResultSizebool `json:"requirePreciseResultSize,omitempty"`// SearchMode: Optional. Mode of a search. Defaults to SearchMode.JOB_SEARCH.//// Possible values://   "SEARCH_MODE_UNSPECIFIED" - The mode of the search method isn't specified.// The default search behavior is identical to JOB_SEARCH search behavior.//   "JOB_SEARCH" - The job search matches against all jobs, and featured jobs// (jobs with promotionValue > 0) are not specially handled.//   "FEATURED_JOB_SEARCH" - The job search matches only against featured jobs// (jobs with a promotionValue > 0). This method doesn't return any jobs having// a promotionValue <= 0. The search results order is determined by the// promotionValue (jobs with a higher promotionValue are returned higher up in// the search results), with relevance being used as a tiebreaker.SearchModestring `json:"searchMode,omitempty"`// ForceSendFields is a list of field names (e.g. "CustomRankingInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomRankingInfo") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SearchJobsRequest: Input only. The Request body of the `SearchJobs` call.

func (SearchJobsRequest)MarshalJSON

func (sSearchJobsRequest) MarshalJSON() ([]byte,error)

typeSearchJobsResponse

type SearchJobsResponse struct {// BroadenedQueryJobsCount: If query broadening is enabled, we may append// additional results from the broadened query. This number indicates how many// of the jobs returned in the jobs field are from the broadened query. These// results are always at the end of the jobs list. In particular, a value of 0,// or if the field isn't set, all the jobs in the jobs list are from the// original (without broadening) query. If this field is non-zero, subsequent// requests with offset after this result set should contain all broadened// results.BroadenedQueryJobsCountint64 `json:"broadenedQueryJobsCount,omitempty"`// EstimatedTotalSize: An estimation of the number of jobs that match the// specified query. This number is not guaranteed to be accurate. For accurate// results, see SearchJobsResponse.total_size.EstimatedTotalSizeint64 `json:"estimatedTotalSize,omitempty"`// HistogramQueryResults: The histogram results that match with specified// SearchJobsRequest.histogram_queries.HistogramQueryResults []*HistogramQueryResult `json:"histogramQueryResults,omitempty"`// HistogramResults: The histogram results that match specified// SearchJobsRequest.histogram_facets.HistogramResults *HistogramResults `json:"histogramResults,omitempty"`// LocationFilters: The location filters that the service applied to the// specified query. If any filters are lat-lng based, the// JobLocation.location_type is// JobLocation.LocationType#LOCATION_TYPE_UNSPECIFIED.LocationFilters []*Location `json:"locationFilters,omitempty"`// MatchingJobs: The Job entities that match the specified SearchJobsRequest.MatchingJobs []*MatchingJob `json:"matchingJobs,omitempty"`// Metadata: Additional information for the API invocation, such as the request// tracking id.Metadata *ResponseMetadata `json:"metadata,omitempty"`// NextPageToken: The token that specifies the starting position of the next// page of results. This field is empty if there are no more results.NextPageTokenstring `json:"nextPageToken,omitempty"`// SpellCorrection: The spell checking result, and correction.SpellCorrection *SpellingCorrection `json:"spellCorrection,omitempty"`// TotalSize: The precise result count with limit 100,000.TotalSizeint64 `json:"totalSize,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BroadenedQueryJobsCount") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BroadenedQueryJobsCount") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SearchJobsResponse: Output only. Response for SearchJob method.

func (SearchJobsResponse)MarshalJSON

func (sSearchJobsResponse) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentProjects *ProjectsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewServiceadded inv0.3.0

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeSpellingCorrection

type SpellingCorrection struct {// Corrected: Indicates if the query was corrected by the spell checker.Correctedbool `json:"corrected,omitempty"`// CorrectedText: Correction output consisting of the corrected keyword string.CorrectedTextstring `json:"correctedText,omitempty"`// ForceSendFields is a list of field names (e.g. "Corrected") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Corrected") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SpellingCorrection: Output only. Spell check result.

func (SpellingCorrection)MarshalJSON

func (sSpellingCorrection) MarshalJSON() ([]byte,error)

typeStatusadded inv0.2.0

type Status struct {// Code: The status code, which should be an enum value of google.rpc.Code.Codeint64 `json:"code,omitempty"`// Details: A list of messages that carry the error details. There is a common// set of message types for APIs to use.Details []googleapi.RawMessage `json:"details,omitempty"`// Message: A developer-facing error message, which should be in English. Any// user-facing error message should be localized and sent in the// google.rpc.Status.details field, or localized by the client.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Status: The `Status` type defines a logical error model that is suitable fordifferent programming environments, including REST APIs and RPC APIs. It isused by gRPC (https://github.com/grpc). Each `Status` message contains threepieces of data: error code, error message, and error details. You can findout more about this error model and how to work with it in the API DesignGuide (https://cloud.google.com/apis/design/errors).

func (Status)MarshalJSONadded inv0.2.0

func (sStatus) MarshalJSON() ([]byte,error)

typeTimeOfDay

type TimeOfDay struct {// Hours: Hours of a day in 24 hour format. Must be greater than or equal to 0// and typically must be less than or equal to 23. An API may choose to allow// the value "24:00:00" for scenarios like business closing time.Hoursint64 `json:"hours,omitempty"`// Minutes: Minutes of an hour. Must be greater than or equal to 0 and less// than or equal to 59.Minutesint64 `json:"minutes,omitempty"`// Nanos: Fractions of seconds, in nanoseconds. Must be greater than or equal// to 0 and less than or equal to 999,999,999.Nanosint64 `json:"nanos,omitempty"`// Seconds: Seconds of a minute. Must be greater than or equal to 0 and// typically must be less than or equal to 59. An API may allow the value 60 if// it allows leap-seconds.Secondsint64 `json:"seconds,omitempty"`// ForceSendFields is a list of field names (e.g. "Hours") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Hours") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TimeOfDay: Represents a time of day. The date and time zone are either notsignificant or are specified elsewhere. An API may choose to allow leapseconds. Related types are google.type.Date and `google.protobuf.Timestamp`.

func (TimeOfDay)MarshalJSON

func (sTimeOfDay) MarshalJSON() ([]byte,error)

typeTimestampRange

type TimestampRange struct {// EndTime: End of the period.EndTimestring `json:"endTime,omitempty"`// StartTime: Begin of the period.StartTimestring `json:"startTime,omitempty"`// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndTime") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TimestampRange: Message representing a period of time between twotimestamps.

func (TimestampRange)MarshalJSON

func (sTimestampRange) MarshalJSON() ([]byte,error)

typeUpdateCompanyRequest

type UpdateCompanyRequest struct {// Company: Required. The company resource to replace the current resource in// the system.Company *Company `json:"company,omitempty"`// UpdateMask: Optional but strongly recommended for the best service// experience. If update_mask is provided, only the specified fields in company// are updated. Otherwise all the fields are updated. A field mask to specify// the company fields to be updated. Only top level fields of Company are// supported.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Company") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Company") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UpdateCompanyRequest: Input only. Request for updating a specified company.

func (UpdateCompanyRequest)MarshalJSON

func (sUpdateCompanyRequest) MarshalJSON() ([]byte,error)

typeUpdateJobRequest

type UpdateJobRequest struct {// Job: Required. The Job to be updated.Job *Job `json:"job,omitempty"`// UpdateMask: Optional but strongly recommended to be provided for the best// service experience. If update_mask is provided, only the specified fields in// job are updated. Otherwise all the fields are updated. A field mask to// restrict the fields that are updated. Only top level fields of Job are// supported.UpdateMaskstring `json:"updateMask,omitempty"`// ForceSendFields is a list of field names (e.g. "Job") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Job") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UpdateJobRequest: Input only. Update job request.

func (UpdateJobRequest)MarshalJSON

func (sUpdateJobRequest) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp