Packages

Cloud Talent Solution API client library. Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters.

Current section

Files

Jump to
google_api_jobs lib google_api jobs v2 model custom_attribute.ex
Raw

lib/google_api/jobs/v2/model/custom_attribute.ex

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.
defmodule GoogleApi.Jobs.V2.Model.CustomAttribute do
@moduledoc """
Custom attribute values that are either filterable or non-filterable.
## Attributes
* `filterable` (*type:* `boolean()`, *default:* `nil`) - Optional. If the `filterable` flag is true, custom field values are searchable.
If false, values are not searchable.
Default is false.
* `longValue` (*type:* `String.t`, *default:* `nil`) - Optional but at least one of string_values or long_value must
be specified.
This field is used to perform number range search.
(`EQ`, `GT`, `GE`, `LE`, `LT`) over filterable `long_value`. For
`long_value`, a value between Long.MIN and Long.MAX is allowed.
* `stringValues` (*type:* `GoogleApi.Jobs.V2.Model.StringValues.t`, *default:* `nil`) - Optional but at least one of string_values or long_value must
be specified.
This field is used to perform a string match (`CASE_SENSITIVE_MATCH` or
`CASE_INSENSITIVE_MATCH`) search.
For filterable `string_values`, a maximum total number of 200 values
is allowed, with each `string_value` has a byte size of no more than
255B. For unfilterable `string_values`, the maximum total byte size of
unfilterable `string_values` is 50KB.
Empty strings are not allowed.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:filterable => boolean(),
:longValue => String.t(),
:stringValues => GoogleApi.Jobs.V2.Model.StringValues.t()
}
field(:filterable)
field(:longValue)
field(:stringValues, as: GoogleApi.Jobs.V2.Model.StringValues)
end
defimpl Poison.Decoder, for: GoogleApi.Jobs.V2.Model.CustomAttribute do
def decode(value, options) do
GoogleApi.Jobs.V2.Model.CustomAttribute.decode(value, options)
end
end
defimpl Poison.Encoder, for: GoogleApi.Jobs.V2.Model.CustomAttribute do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end