// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/talent/v4beta1/filters.proto

package com.google.cloud.talent.v4beta1;

/**
 *
 *
 * <pre>
 * Input only.
 * The query required to perform a search query.
 * </pre>
 *
 * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery}
 */
public final class JobQuery extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.JobQuery)
    JobQueryOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use JobQuery.newBuilder() to construct.
  private JobQuery(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private JobQuery() {
    query_ = "";
    companies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    locationFilters_ = java.util.Collections.emptyList();
    jobCategories_ = java.util.Collections.emptyList();
    companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    customAttributeFilter_ = "";
    employmentTypes_ = java.util.Collections.emptyList();
    languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private JobQuery(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              java.lang.String s = input.readStringRequireUtf8();

              query_ = s;
              break;
            }
          case 18:
            {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                companies_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000002;
              }
              companies_.add(s);
              break;
            }
          case 26:
            {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                locationFilters_ =
                    new java.util.ArrayList<com.google.cloud.talent.v4beta1.LocationFilter>();
                mutable_bitField0_ |= 0x00000004;
              }
              locationFilters_.add(
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.LocationFilter.parser(), extensionRegistry));
              break;
            }
          case 32:
            {
              int rawValue = input.readEnum();
              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                jobCategories_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000008;
              }
              jobCategories_.add(rawValue);
              break;
            }
          case 34:
            {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while (input.getBytesUntilLimit() > 0) {
                int rawValue = input.readEnum();
                if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                  jobCategories_ = new java.util.ArrayList<java.lang.Integer>();
                  mutable_bitField0_ |= 0x00000008;
                }
                jobCategories_.add(rawValue);
              }
              input.popLimit(oldLimit);
              break;
            }
          case 42:
            {
              com.google.cloud.talent.v4beta1.CommuteFilter.Builder subBuilder = null;
              if (commuteFilter_ != null) {
                subBuilder = commuteFilter_.toBuilder();
              }
              commuteFilter_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.CommuteFilter.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(commuteFilter_);
                commuteFilter_ = subBuilder.buildPartial();
              }

              break;
            }
          case 50:
            {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000020) != 0)) {
                companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000020;
              }
              companyDisplayNames_.add(s);
              break;
            }
          case 58:
            {
              com.google.cloud.talent.v4beta1.CompensationFilter.Builder subBuilder = null;
              if (compensationFilter_ != null) {
                subBuilder = compensationFilter_.toBuilder();
              }
              compensationFilter_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.CompensationFilter.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(compensationFilter_);
                compensationFilter_ = subBuilder.buildPartial();
              }

              break;
            }
          case 66:
            {
              java.lang.String s = input.readStringRequireUtf8();

              customAttributeFilter_ = s;
              break;
            }
          case 72:
            {
              disableSpellCheck_ = input.readBool();
              break;
            }
          case 80:
            {
              int rawValue = input.readEnum();
              if (!((mutable_bitField0_ & 0x00000200) != 0)) {
                employmentTypes_ = new java.util.ArrayList<java.lang.Integer>();
                mutable_bitField0_ |= 0x00000200;
              }
              employmentTypes_.add(rawValue);
              break;
            }
          case 82:
            {
              int length = input.readRawVarint32();
              int oldLimit = input.pushLimit(length);
              while (input.getBytesUntilLimit() > 0) {
                int rawValue = input.readEnum();
                if (!((mutable_bitField0_ & 0x00000200) != 0)) {
                  employmentTypes_ = new java.util.ArrayList<java.lang.Integer>();
                  mutable_bitField0_ |= 0x00000200;
                }
                employmentTypes_.add(rawValue);
              }
              input.popLimit(oldLimit);
              break;
            }
          case 90:
            {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000400) != 0)) {
                languageCodes_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000400;
              }
              languageCodes_.add(s);
              break;
            }
          case 98:
            {
              com.google.cloud.talent.v4beta1.TimestampRange.Builder subBuilder = null;
              if (publishTimeRange_ != null) {
                subBuilder = publishTimeRange_.toBuilder();
              }
              publishTimeRange_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.TimestampRange.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(publishTimeRange_);
                publishTimeRange_ = subBuilder.buildPartial();
              }

              break;
            }
          case 106:
            {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00001000) != 0)) {
                excludedJobs_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00001000;
              }
              excludedJobs_.add(s);
              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        companies_ = companies_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_);
      }
      if (((mutable_bitField0_ & 0x00000008) != 0)) {
        jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_);
      }
      if (((mutable_bitField0_ & 0x00000020) != 0)) {
        companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000200) != 0)) {
        employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_);
      }
      if (((mutable_bitField0_ & 0x00000400) != 0)) {
        languageCodes_ = languageCodes_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00001000) != 0)) {
        excludedJobs_ = excludedJobs_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.talent.v4beta1.FiltersProto
        .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.talent.v4beta1.FiltersProto
        .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.talent.v4beta1.JobQuery.class,
            com.google.cloud.talent.v4beta1.JobQuery.Builder.class);
  }

  private int bitField0_;
  public static final int QUERY_FIELD_NUMBER = 1;
  private volatile java.lang.Object query_;
  /**
   *
   *
   * <pre>
   * Optional.
   * The query string that matches against the job title, description, and
   * location fields.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string query = 1;</code>
   */
  public java.lang.String getQuery() {
    java.lang.Object ref = query_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      query_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The query string that matches against the job title, description, and
   * location fields.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string query = 1;</code>
   */
  public com.google.protobuf.ByteString getQueryBytes() {
    java.lang.Object ref = query_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      query_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COMPANIES_FIELD_NUMBER = 2;
  private com.google.protobuf.LazyStringList companies_;
  /**
   *
   *
   * <pre>
   * 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}/tenants/{tenant_id}/companies/{company_id}", for
   * example, "projects/api-test-project/tenants/foo/companies/bar".
   * Tenant id is optional and the default tenant is used if unspecified, for
   * example, "projects/api-test-project/companies/bar".
   * At most 20 company filters are allowed.
   * </pre>
   *
   * <code>repeated string companies = 2;</code>
   */
  public com.google.protobuf.ProtocolStringList getCompaniesList() {
    return companies_;
  }
  /**
   *
   *
   * <pre>
   * 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}/tenants/{tenant_id}/companies/{company_id}", for
   * example, "projects/api-test-project/tenants/foo/companies/bar".
   * Tenant id is optional and the default tenant is used if unspecified, for
   * example, "projects/api-test-project/companies/bar".
   * At most 20 company filters are allowed.
   * </pre>
   *
   * <code>repeated string companies = 2;</code>
   */
  public int getCompaniesCount() {
    return companies_.size();
  }
  /**
   *
   *
   * <pre>
   * 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}/tenants/{tenant_id}/companies/{company_id}", for
   * example, "projects/api-test-project/tenants/foo/companies/bar".
   * Tenant id is optional and the default tenant is used if unspecified, for
   * example, "projects/api-test-project/companies/bar".
   * At most 20 company filters are allowed.
   * </pre>
   *
   * <code>repeated string companies = 2;</code>
   */
  public java.lang.String getCompanies(int index) {
    return companies_.get(index);
  }
  /**
   *
   *
   * <pre>
   * 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}/tenants/{tenant_id}/companies/{company_id}", for
   * example, "projects/api-test-project/tenants/foo/companies/bar".
   * Tenant id is optional and the default tenant is used if unspecified, for
   * example, "projects/api-test-project/companies/bar".
   * At most 20 company filters are allowed.
   * </pre>
   *
   * <code>repeated string companies = 2;</code>
   */
  public com.google.protobuf.ByteString getCompaniesBytes(int index) {
    return companies_.getByteString(index);
  }

  public static final int LOCATION_FILTERS_FIELD_NUMBER = 3;
  private java.util.List<com.google.cloud.talent.v4beta1.LocationFilter> locationFilters_;
  /**
   *
   *
   * <pre>
   * Optional.
   * The location filter specifies geo-regions containing the jobs to
   * search against. See
   * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
   * parameter, the maximum provided distance is used for all locations.
   * At most 5 location filters are allowed.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
   */
  public java.util.List<com.google.cloud.talent.v4beta1.LocationFilter> getLocationFiltersList() {
    return locationFilters_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The location filter specifies geo-regions containing the jobs to
   * search against. See
   * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
   * parameter, the maximum provided distance is used for all locations.
   * At most 5 location filters are allowed.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
   */
  public java.util.List<? extends com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>
      getLocationFiltersOrBuilderList() {
    return locationFilters_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The location filter specifies geo-regions containing the jobs to
   * search against. See
   * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
   * parameter, the maximum provided distance is used for all locations.
   * At most 5 location filters are allowed.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
   */
  public int getLocationFiltersCount() {
    return locationFilters_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The location filter specifies geo-regions containing the jobs to
   * search against. See
   * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
   * parameter, the maximum provided distance is used for all locations.
   * At most 5 location filters are allowed.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
   */
  public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) {
    return locationFilters_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The location filter specifies geo-regions containing the jobs to
   * search against. See
   * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
   * parameter, the maximum provided distance is used for all locations.
   * At most 5 location filters are allowed.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
   */
  public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(
      int index) {
    return locationFilters_.get(index);
  }

  public static final int JOB_CATEGORIES_FIELD_NUMBER = 4;
  private java.util.List<java.lang.Integer> jobCategories_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>
      jobCategories_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>() {
            public com.google.cloud.talent.v4beta1.JobCategory convert(java.lang.Integer from) {
              @SuppressWarnings("deprecation")
              com.google.cloud.talent.v4beta1.JobCategory result =
                  com.google.cloud.talent.v4beta1.JobCategory.valueOf(from);
              return result == null
                  ? com.google.cloud.talent.v4beta1.JobCategory.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Optional.
   * The category filter specifies the categories of jobs to search against.
   * See [Category][] for more information.
   * If a value isn't specified, jobs from any category are searched against.
   * If multiple values are specified, jobs from any of the specified
   * categories are searched against.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
   */
  public java.util.List<com.google.cloud.talent.v4beta1.JobCategory> getJobCategoriesList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>(
        jobCategories_, jobCategories_converter_);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The category filter specifies the categories of jobs to search against.
   * See [Category][] for more information.
   * If a value isn't specified, jobs from any category are searched against.
   * If multiple values are specified, jobs from any of the specified
   * categories are searched against.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
   */
  public int getJobCategoriesCount() {
    return jobCategories_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The category filter specifies the categories of jobs to search against.
   * See [Category][] for more information.
   * If a value isn't specified, jobs from any category are searched against.
   * If multiple values are specified, jobs from any of the specified
   * categories are searched against.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
   */
  public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) {
    return jobCategories_converter_.convert(jobCategories_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The category filter specifies the categories of jobs to search against.
   * See [Category][] for more information.
   * If a value isn't specified, jobs from any category are searched against.
   * If multiple values are specified, jobs from any of the specified
   * categories are searched against.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
   */
  public java.util.List<java.lang.Integer> getJobCategoriesValueList() {
    return jobCategories_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The category filter specifies the categories of jobs to search against.
   * See [Category][] for more information.
   * If a value isn't specified, jobs from any category are searched against.
   * If multiple values are specified, jobs from any of the specified
   * categories are searched against.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
   */
  public int getJobCategoriesValue(int index) {
    return jobCategories_.get(index);
  }

  private int jobCategoriesMemoizedSerializedSize;

  public static final int COMMUTE_FILTER_FIELD_NUMBER = 5;
  private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_;
  /**
   *
   *
   * <pre>
   * Optional.
   *  Allows filtering jobs by commute time with different travel methods (for
   *  example, driving or public transit). Note: This only works with [COMMUTE
   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
   *  ignored.
   *  Currently we don't support sorting by commute time.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
   */
  public boolean hasCommuteFilter() {
    return commuteFilter_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   *  Allows filtering jobs by commute time with different travel methods (for
   *  example, driving or public transit). Note: This only works with [COMMUTE
   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
   *  ignored.
   *  Currently we don't support sorting by commute time.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() {
    return commuteFilter_ == null
        ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()
        : commuteFilter_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   *  Allows filtering jobs by commute time with different travel methods (for
   *  example, driving or public transit). Note: This only works with [COMMUTE
   *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
   *  ignored.
   *  Currently we don't support sorting by commute time.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() {
    return getCommuteFilter();
  }

  public static final int COMPANY_DISPLAY_NAMES_FIELD_NUMBER = 6;
  private com.google.protobuf.LazyStringList companyDisplayNames_;
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies the exact [company display
   * name][Company.display_name] of the jobs to search against.
   * 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.
   * </pre>
   *
   * <code>repeated string company_display_names = 6;</code>
   */
  public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() {
    return companyDisplayNames_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies the exact [company display
   * name][Company.display_name] of the jobs to search against.
   * 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.
   * </pre>
   *
   * <code>repeated string company_display_names = 6;</code>
   */
  public int getCompanyDisplayNamesCount() {
    return companyDisplayNames_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies the exact [company display
   * name][Company.display_name] of the jobs to search against.
   * 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.
   * </pre>
   *
   * <code>repeated string company_display_names = 6;</code>
   */
  public java.lang.String getCompanyDisplayNames(int index) {
    return companyDisplayNames_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies the exact [company display
   * name][Company.display_name] of the jobs to search against.
   * 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.
   * </pre>
   *
   * <code>repeated string company_display_names = 6;</code>
   */
  public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) {
    return companyDisplayNames_.getByteString(index);
  }

  public static final int COMPENSATION_FILTER_FIELD_NUMBER = 7;
  private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_;
  /**
   *
   *
   * <pre>
   * Optional.
   * This search filter is applied only to
   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
   * For example, if the filter is specified as "Hourly job with per-hour
   * compensation &gt; $15", only jobs meeting these criteria are searched. If a
   * filter isn't defined, all open jobs are searched.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
   */
  public boolean hasCompensationFilter() {
    return compensationFilter_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This search filter is applied only to
   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
   * For example, if the filter is specified as "Hourly job with per-hour
   * compensation &gt; $15", only jobs meeting these criteria are searched. If a
   * filter isn't defined, all open jobs are searched.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
   */
  public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() {
    return compensationFilter_ == null
        ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()
        : compensationFilter_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This search filter is applied only to
   * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
   * For example, if the filter is specified as "Hourly job with per-hour
   * compensation &gt; $15", only jobs meeting these criteria are searched. If a
   * filter isn't defined, all open jobs are searched.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
   */
  public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder
      getCompensationFilterOrBuilder() {
    return getCompensationFilter();
  }

  public static final int CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER = 8;
  private volatile java.lang.Object customAttributeFilter_;
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a structured syntax to match against the
   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
   * marked as `filterable`.
   * The syntax for this expression is a subset of SQL syntax.
   * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
   * quote (&#92;") 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 &lt; 3000 bytes in length.
   * Sample Query:
   * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
   * driving_years &gt; 10`
   * </pre>
   *
   * <code>string custom_attribute_filter = 8;</code>
   */
  public java.lang.String getCustomAttributeFilter() {
    java.lang.Object ref = customAttributeFilter_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      customAttributeFilter_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a structured syntax to match against the
   * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
   * marked as `filterable`.
   * The syntax for this expression is a subset of SQL syntax.
   * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
   * quote (&#92;") 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 &lt; 3000 bytes in length.
   * Sample Query:
   * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
   * driving_years &gt; 10`
   * </pre>
   *
   * <code>string custom_attribute_filter = 8;</code>
   */
  public com.google.protobuf.ByteString getCustomAttributeFilterBytes() {
    java.lang.Object ref = customAttributeFilter_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      customAttributeFilter_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int DISABLE_SPELL_CHECK_FIELD_NUMBER = 9;
  private boolean disableSpellCheck_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>bool disable_spell_check = 9;</code>
   */
  public boolean getDisableSpellCheck() {
    return disableSpellCheck_;
  }

  public static final int EMPLOYMENT_TYPES_FIELD_NUMBER = 10;
  private java.util.List<java.lang.Integer> employmentTypes_;
  private static final com.google.protobuf.Internal.ListAdapter.Converter<
          java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>
      employmentTypes_converter_ =
          new com.google.protobuf.Internal.ListAdapter.Converter<
              java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>() {
            public com.google.cloud.talent.v4beta1.EmploymentType convert(java.lang.Integer from) {
              @SuppressWarnings("deprecation")
              com.google.cloud.talent.v4beta1.EmploymentType result =
                  com.google.cloud.talent.v4beta1.EmploymentType.valueOf(from);
              return result == null
                  ? com.google.cloud.talent.v4beta1.EmploymentType.UNRECOGNIZED
                  : result;
            }
          };
  /**
   *
   *
   * <pre>
   * Optional.
   * The employment type filter specifies the employment type of jobs to
   * search against, such as
   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
   * If a value isn't 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.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
   */
  public java.util.List<com.google.cloud.talent.v4beta1.EmploymentType> getEmploymentTypesList() {
    return new com.google.protobuf.Internal.ListAdapter<
        java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>(
        employmentTypes_, employmentTypes_converter_);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The employment type filter specifies the employment type of jobs to
   * search against, such as
   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
   * If a value isn't 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.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
   */
  public int getEmploymentTypesCount() {
    return employmentTypes_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The employment type filter specifies the employment type of jobs to
   * search against, such as
   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
   * If a value isn't 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.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
   */
  public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) {
    return employmentTypes_converter_.convert(employmentTypes_.get(index));
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The employment type filter specifies the employment type of jobs to
   * search against, such as
   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
   * If a value isn't 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.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
   */
  public java.util.List<java.lang.Integer> getEmploymentTypesValueList() {
    return employmentTypes_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The employment type filter specifies the employment type of jobs to
   * search against, such as
   * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
   * If a value isn't 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.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
   */
  public int getEmploymentTypesValue(int index) {
    return employmentTypes_.get(index);
  }

  private int employmentTypesMemoizedSerializedSize;

  public static final int LANGUAGE_CODES_FIELD_NUMBER = 11;
  private com.google.protobuf.LazyStringList languageCodes_;
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated string language_codes = 11;</code>
   */
  public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
    return languageCodes_;
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated string language_codes = 11;</code>
   */
  public int getLanguageCodesCount() {
    return languageCodes_.size();
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated string language_codes = 11;</code>
   */
  public java.lang.String getLanguageCodes(int index) {
    return languageCodes_.get(index);
  }
  /**
   *
   *
   * <pre>
   * 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.
   * </pre>
   *
   * <code>repeated string language_codes = 11;</code>
   */
  public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
    return languageCodes_.getByteString(index);
  }

  public static final int PUBLISH_TIME_RANGE_FIELD_NUMBER = 12;
  private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_;
  /**
   *
   *
   * <pre>
   * Optional.
   * Jobs published within a range specified by this filter are searched
   * against.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
   */
  public boolean hasPublishTimeRange() {
    return publishTimeRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Jobs published within a range specified by this filter are searched
   * against.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
   */
  public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() {
    return publishTimeRange_ == null
        ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()
        : publishTimeRange_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Jobs published within a range specified by this filter are searched
   * against.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
   */
  public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() {
    return getPublishTimeRange();
  }

  public static final int EXCLUDED_JOBS_FIELD_NUMBER = 13;
  private com.google.protobuf.LazyStringList excludedJobs_;
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a list of job names to be excluded during search.
   * At most 200 excluded job names are allowed.
   * </pre>
   *
   * <code>repeated string excluded_jobs = 13;</code>
   */
  public com.google.protobuf.ProtocolStringList getExcludedJobsList() {
    return excludedJobs_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a list of job names to be excluded during search.
   * At most 200 excluded job names are allowed.
   * </pre>
   *
   * <code>repeated string excluded_jobs = 13;</code>
   */
  public int getExcludedJobsCount() {
    return excludedJobs_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a list of job names to be excluded during search.
   * At most 200 excluded job names are allowed.
   * </pre>
   *
   * <code>repeated string excluded_jobs = 13;</code>
   */
  public java.lang.String getExcludedJobs(int index) {
    return excludedJobs_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * This filter specifies a list of job names to be excluded during search.
   * At most 200 excluded job names are allowed.
   * </pre>
   *
   * <code>repeated string excluded_jobs = 13;</code>
   */
  public com.google.protobuf.ByteString getExcludedJobsBytes(int index) {
    return excludedJobs_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    getSerializedSize();
    if (!getQueryBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_);
    }
    for (int i = 0; i < companies_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, companies_.getRaw(i));
    }
    for (int i = 0; i < locationFilters_.size(); i++) {
      output.writeMessage(3, locationFilters_.get(i));
    }
    if (getJobCategoriesList().size() > 0) {
      output.writeUInt32NoTag(34);
      output.writeUInt32NoTag(jobCategoriesMemoizedSerializedSize);
    }
    for (int i = 0; i < jobCategories_.size(); i++) {
      output.writeEnumNoTag(jobCategories_.get(i));
    }
    if (commuteFilter_ != null) {
      output.writeMessage(5, getCommuteFilter());
    }
    for (int i = 0; i < companyDisplayNames_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, companyDisplayNames_.getRaw(i));
    }
    if (compensationFilter_ != null) {
      output.writeMessage(7, getCompensationFilter());
    }
    if (!getCustomAttributeFilterBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, customAttributeFilter_);
    }
    if (disableSpellCheck_ != false) {
      output.writeBool(9, disableSpellCheck_);
    }
    if (getEmploymentTypesList().size() > 0) {
      output.writeUInt32NoTag(82);
      output.writeUInt32NoTag(employmentTypesMemoizedSerializedSize);
    }
    for (int i = 0; i < employmentTypes_.size(); i++) {
      output.writeEnumNoTag(employmentTypes_.get(i));
    }
    for (int i = 0; i < languageCodes_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 11, languageCodes_.getRaw(i));
    }
    if (publishTimeRange_ != null) {
      output.writeMessage(12, getPublishTimeRange());
    }
    for (int i = 0; i < excludedJobs_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 13, excludedJobs_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getQueryBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < companies_.size(); i++) {
        dataSize += computeStringSizeNoTag(companies_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getCompaniesList().size();
    }
    for (int i = 0; i < locationFilters_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, locationFilters_.get(i));
    }
    {
      int dataSize = 0;
      for (int i = 0; i < jobCategories_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(jobCategories_.get(i));
      }
      size += dataSize;
      if (!getJobCategoriesList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      jobCategoriesMemoizedSerializedSize = dataSize;
    }
    if (commuteFilter_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCommuteFilter());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < companyDisplayNames_.size(); i++) {
        dataSize += computeStringSizeNoTag(companyDisplayNames_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getCompanyDisplayNamesList().size();
    }
    if (compensationFilter_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCompensationFilter());
    }
    if (!getCustomAttributeFilterBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, customAttributeFilter_);
    }
    if (disableSpellCheck_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, disableSpellCheck_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < employmentTypes_.size(); i++) {
        dataSize +=
            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(employmentTypes_.get(i));
      }
      size += dataSize;
      if (!getEmploymentTypesList().isEmpty()) {
        size += 1;
        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
      }
      employmentTypesMemoizedSerializedSize = dataSize;
    }
    {
      int dataSize = 0;
      for (int i = 0; i < languageCodes_.size(); i++) {
        dataSize += computeStringSizeNoTag(languageCodes_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getLanguageCodesList().size();
    }
    if (publishTimeRange_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getPublishTimeRange());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < excludedJobs_.size(); i++) {
        dataSize += computeStringSizeNoTag(excludedJobs_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getExcludedJobsList().size();
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.talent.v4beta1.JobQuery)) {
      return super.equals(obj);
    }
    com.google.cloud.talent.v4beta1.JobQuery other = (com.google.cloud.talent.v4beta1.JobQuery) obj;

    if (!getQuery().equals(other.getQuery())) return false;
    if (!getCompaniesList().equals(other.getCompaniesList())) return false;
    if (!getLocationFiltersList().equals(other.getLocationFiltersList())) return false;
    if (!jobCategories_.equals(other.jobCategories_)) return false;
    if (hasCommuteFilter() != other.hasCommuteFilter()) return false;
    if (hasCommuteFilter()) {
      if (!getCommuteFilter().equals(other.getCommuteFilter())) return false;
    }
    if (!getCompanyDisplayNamesList().equals(other.getCompanyDisplayNamesList())) return false;
    if (hasCompensationFilter() != other.hasCompensationFilter()) return false;
    if (hasCompensationFilter()) {
      if (!getCompensationFilter().equals(other.getCompensationFilter())) return false;
    }
    if (!getCustomAttributeFilter().equals(other.getCustomAttributeFilter())) return false;
    if (getDisableSpellCheck() != other.getDisableSpellCheck()) return false;
    if (!employmentTypes_.equals(other.employmentTypes_)) return false;
    if (!getLanguageCodesList().equals(other.getLanguageCodesList())) return false;
    if (hasPublishTimeRange() != other.hasPublishTimeRange()) return false;
    if (hasPublishTimeRange()) {
      if (!getPublishTimeRange().equals(other.getPublishTimeRange())) return false;
    }
    if (!getExcludedJobsList().equals(other.getExcludedJobsList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + QUERY_FIELD_NUMBER;
    hash = (53 * hash) + getQuery().hashCode();
    if (getCompaniesCount() > 0) {
      hash = (37 * hash) + COMPANIES_FIELD_NUMBER;
      hash = (53 * hash) + getCompaniesList().hashCode();
    }
    if (getLocationFiltersCount() > 0) {
      hash = (37 * hash) + LOCATION_FILTERS_FIELD_NUMBER;
      hash = (53 * hash) + getLocationFiltersList().hashCode();
    }
    if (getJobCategoriesCount() > 0) {
      hash = (37 * hash) + JOB_CATEGORIES_FIELD_NUMBER;
      hash = (53 * hash) + jobCategories_.hashCode();
    }
    if (hasCommuteFilter()) {
      hash = (37 * hash) + COMMUTE_FILTER_FIELD_NUMBER;
      hash = (53 * hash) + getCommuteFilter().hashCode();
    }
    if (getCompanyDisplayNamesCount() > 0) {
      hash = (37 * hash) + COMPANY_DISPLAY_NAMES_FIELD_NUMBER;
      hash = (53 * hash) + getCompanyDisplayNamesList().hashCode();
    }
    if (hasCompensationFilter()) {
      hash = (37 * hash) + COMPENSATION_FILTER_FIELD_NUMBER;
      hash = (53 * hash) + getCompensationFilter().hashCode();
    }
    hash = (37 * hash) + CUSTOM_ATTRIBUTE_FILTER_FIELD_NUMBER;
    hash = (53 * hash) + getCustomAttributeFilter().hashCode();
    hash = (37 * hash) + DISABLE_SPELL_CHECK_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCheck());
    if (getEmploymentTypesCount() > 0) {
      hash = (37 * hash) + EMPLOYMENT_TYPES_FIELD_NUMBER;
      hash = (53 * hash) + employmentTypes_.hashCode();
    }
    if (getLanguageCodesCount() > 0) {
      hash = (37 * hash) + LANGUAGE_CODES_FIELD_NUMBER;
      hash = (53 * hash) + getLanguageCodesList().hashCode();
    }
    if (hasPublishTimeRange()) {
      hash = (37 * hash) + PUBLISH_TIME_RANGE_FIELD_NUMBER;
      hash = (53 * hash) + getPublishTimeRange().hashCode();
    }
    if (getExcludedJobsCount() > 0) {
      hash = (37 * hash) + EXCLUDED_JOBS_FIELD_NUMBER;
      hash = (53 * hash) + getExcludedJobsList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.JobQuery parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.talent.v4beta1.JobQuery prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Input only.
   * The query required to perform a search query.
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.JobQuery}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.JobQuery)
      com.google.cloud.talent.v4beta1.JobQueryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.FiltersProto
          .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.talent.v4beta1.FiltersProto
          .internal_static_google_cloud_talent_v4beta1_JobQuery_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.talent.v4beta1.JobQuery.class,
              com.google.cloud.talent.v4beta1.JobQuery.Builder.class);
    }

    // Construct using com.google.cloud.talent.v4beta1.JobQuery.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
        getLocationFiltersFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      query_ = "";

      companies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      if (locationFiltersBuilder_ == null) {
        locationFilters_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
      } else {
        locationFiltersBuilder_.clear();
      }
      jobCategories_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      if (commuteFilterBuilder_ == null) {
        commuteFilter_ = null;
      } else {
        commuteFilter_ = null;
        commuteFilterBuilder_ = null;
      }
      companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      if (compensationFilterBuilder_ == null) {
        compensationFilter_ = null;
      } else {
        compensationFilter_ = null;
        compensationFilterBuilder_ = null;
      }
      customAttributeFilter_ = "";

      disableSpellCheck_ = false;

      employmentTypes_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000200);
      languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000400);
      if (publishTimeRangeBuilder_ == null) {
        publishTimeRange_ = null;
      } else {
        publishTimeRange_ = null;
        publishTimeRangeBuilder_ = null;
      }
      excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00001000);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.talent.v4beta1.FiltersProto
          .internal_static_google_cloud_talent_v4beta1_JobQuery_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() {
      return com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.JobQuery build() {
      com.google.cloud.talent.v4beta1.JobQuery result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.JobQuery buildPartial() {
      com.google.cloud.talent.v4beta1.JobQuery result =
          new com.google.cloud.talent.v4beta1.JobQuery(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.query_ = query_;
      if (((bitField0_ & 0x00000002) != 0)) {
        companies_ = companies_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.companies_ = companies_;
      if (locationFiltersBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          locationFilters_ = java.util.Collections.unmodifiableList(locationFilters_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.locationFilters_ = locationFilters_;
      } else {
        result.locationFilters_ = locationFiltersBuilder_.build();
      }
      if (((bitField0_ & 0x00000008) != 0)) {
        jobCategories_ = java.util.Collections.unmodifiableList(jobCategories_);
        bitField0_ = (bitField0_ & ~0x00000008);
      }
      result.jobCategories_ = jobCategories_;
      if (commuteFilterBuilder_ == null) {
        result.commuteFilter_ = commuteFilter_;
      } else {
        result.commuteFilter_ = commuteFilterBuilder_.build();
      }
      if (((bitField0_ & 0x00000020) != 0)) {
        companyDisplayNames_ = companyDisplayNames_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000020);
      }
      result.companyDisplayNames_ = companyDisplayNames_;
      if (compensationFilterBuilder_ == null) {
        result.compensationFilter_ = compensationFilter_;
      } else {
        result.compensationFilter_ = compensationFilterBuilder_.build();
      }
      result.customAttributeFilter_ = customAttributeFilter_;
      result.disableSpellCheck_ = disableSpellCheck_;
      if (((bitField0_ & 0x00000200) != 0)) {
        employmentTypes_ = java.util.Collections.unmodifiableList(employmentTypes_);
        bitField0_ = (bitField0_ & ~0x00000200);
      }
      result.employmentTypes_ = employmentTypes_;
      if (((bitField0_ & 0x00000400) != 0)) {
        languageCodes_ = languageCodes_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000400);
      }
      result.languageCodes_ = languageCodes_;
      if (publishTimeRangeBuilder_ == null) {
        result.publishTimeRange_ = publishTimeRange_;
      } else {
        result.publishTimeRange_ = publishTimeRangeBuilder_.build();
      }
      if (((bitField0_ & 0x00001000) != 0)) {
        excludedJobs_ = excludedJobs_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00001000);
      }
      result.excludedJobs_ = excludedJobs_;
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.talent.v4beta1.JobQuery) {
        return mergeFrom((com.google.cloud.talent.v4beta1.JobQuery) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.talent.v4beta1.JobQuery other) {
      if (other == com.google.cloud.talent.v4beta1.JobQuery.getDefaultInstance()) return this;
      if (!other.getQuery().isEmpty()) {
        query_ = other.query_;
        onChanged();
      }
      if (!other.companies_.isEmpty()) {
        if (companies_.isEmpty()) {
          companies_ = other.companies_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureCompaniesIsMutable();
          companies_.addAll(other.companies_);
        }
        onChanged();
      }
      if (locationFiltersBuilder_ == null) {
        if (!other.locationFilters_.isEmpty()) {
          if (locationFilters_.isEmpty()) {
            locationFilters_ = other.locationFilters_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureLocationFiltersIsMutable();
            locationFilters_.addAll(other.locationFilters_);
          }
          onChanged();
        }
      } else {
        if (!other.locationFilters_.isEmpty()) {
          if (locationFiltersBuilder_.isEmpty()) {
            locationFiltersBuilder_.dispose();
            locationFiltersBuilder_ = null;
            locationFilters_ = other.locationFilters_;
            bitField0_ = (bitField0_ & ~0x00000004);
            locationFiltersBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getLocationFiltersFieldBuilder()
                    : null;
          } else {
            locationFiltersBuilder_.addAllMessages(other.locationFilters_);
          }
        }
      }
      if (!other.jobCategories_.isEmpty()) {
        if (jobCategories_.isEmpty()) {
          jobCategories_ = other.jobCategories_;
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          ensureJobCategoriesIsMutable();
          jobCategories_.addAll(other.jobCategories_);
        }
        onChanged();
      }
      if (other.hasCommuteFilter()) {
        mergeCommuteFilter(other.getCommuteFilter());
      }
      if (!other.companyDisplayNames_.isEmpty()) {
        if (companyDisplayNames_.isEmpty()) {
          companyDisplayNames_ = other.companyDisplayNames_;
          bitField0_ = (bitField0_ & ~0x00000020);
        } else {
          ensureCompanyDisplayNamesIsMutable();
          companyDisplayNames_.addAll(other.companyDisplayNames_);
        }
        onChanged();
      }
      if (other.hasCompensationFilter()) {
        mergeCompensationFilter(other.getCompensationFilter());
      }
      if (!other.getCustomAttributeFilter().isEmpty()) {
        customAttributeFilter_ = other.customAttributeFilter_;
        onChanged();
      }
      if (other.getDisableSpellCheck() != false) {
        setDisableSpellCheck(other.getDisableSpellCheck());
      }
      if (!other.employmentTypes_.isEmpty()) {
        if (employmentTypes_.isEmpty()) {
          employmentTypes_ = other.employmentTypes_;
          bitField0_ = (bitField0_ & ~0x00000200);
        } else {
          ensureEmploymentTypesIsMutable();
          employmentTypes_.addAll(other.employmentTypes_);
        }
        onChanged();
      }
      if (!other.languageCodes_.isEmpty()) {
        if (languageCodes_.isEmpty()) {
          languageCodes_ = other.languageCodes_;
          bitField0_ = (bitField0_ & ~0x00000400);
        } else {
          ensureLanguageCodesIsMutable();
          languageCodes_.addAll(other.languageCodes_);
        }
        onChanged();
      }
      if (other.hasPublishTimeRange()) {
        mergePublishTimeRange(other.getPublishTimeRange());
      }
      if (!other.excludedJobs_.isEmpty()) {
        if (excludedJobs_.isEmpty()) {
          excludedJobs_ = other.excludedJobs_;
          bitField0_ = (bitField0_ & ~0x00001000);
        } else {
          ensureExcludedJobsIsMutable();
          excludedJobs_.addAll(other.excludedJobs_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.cloud.talent.v4beta1.JobQuery parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.talent.v4beta1.JobQuery) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

    private java.lang.Object query_ = "";
    /**
     *
     *
     * <pre>
     * Optional.
     * The query string that matches against the job title, description, and
     * location fields.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string query = 1;</code>
     */
    public java.lang.String getQuery() {
      java.lang.Object ref = query_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        query_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The query string that matches against the job title, description, and
     * location fields.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string query = 1;</code>
     */
    public com.google.protobuf.ByteString getQueryBytes() {
      java.lang.Object ref = query_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        query_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The query string that matches against the job title, description, and
     * location fields.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string query = 1;</code>
     */
    public Builder setQuery(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      query_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The query string that matches against the job title, description, and
     * location fields.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string query = 1;</code>
     */
    public Builder clearQuery() {

      query_ = getDefaultInstance().getQuery();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The query string that matches against the job title, description, and
     * location fields.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string query = 1;</code>
     */
    public Builder setQueryBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      query_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList companies_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureCompaniesIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        companies_ = new com.google.protobuf.LazyStringArrayList(companies_);
        bitField0_ |= 0x00000002;
      }
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public com.google.protobuf.ProtocolStringList getCompaniesList() {
      return companies_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public int getCompaniesCount() {
      return companies_.size();
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public java.lang.String getCompanies(int index) {
      return companies_.get(index);
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public com.google.protobuf.ByteString getCompaniesBytes(int index) {
      return companies_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public Builder setCompanies(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureCompaniesIsMutable();
      companies_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public Builder addCompanies(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureCompaniesIsMutable();
      companies_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public Builder addAllCompanies(java.lang.Iterable<java.lang.String> values) {
      ensureCompaniesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companies_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public Builder clearCompanies() {
      companies_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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}/tenants/{tenant_id}/companies/{company_id}", for
     * example, "projects/api-test-project/tenants/foo/companies/bar".
     * Tenant id is optional and the default tenant is used if unspecified, for
     * example, "projects/api-test-project/companies/bar".
     * At most 20 company filters are allowed.
     * </pre>
     *
     * <code>repeated string companies = 2;</code>
     */
    public Builder addCompaniesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureCompaniesIsMutable();
      companies_.add(value);
      onChanged();
      return this;
    }

    private java.util.List<com.google.cloud.talent.v4beta1.LocationFilter> locationFilters_ =
        java.util.Collections.emptyList();

    private void ensureLocationFiltersIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        locationFilters_ =
            new java.util.ArrayList<com.google.cloud.talent.v4beta1.LocationFilter>(
                locationFilters_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.talent.v4beta1.LocationFilter,
            com.google.cloud.talent.v4beta1.LocationFilter.Builder,
            com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>
        locationFiltersBuilder_;

    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public java.util.List<com.google.cloud.talent.v4beta1.LocationFilter> getLocationFiltersList() {
      if (locationFiltersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(locationFilters_);
      } else {
        return locationFiltersBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public int getLocationFiltersCount() {
      if (locationFiltersBuilder_ == null) {
        return locationFilters_.size();
      } else {
        return locationFiltersBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public com.google.cloud.talent.v4beta1.LocationFilter getLocationFilters(int index) {
      if (locationFiltersBuilder_ == null) {
        return locationFilters_.get(index);
      } else {
        return locationFiltersBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder setLocationFilters(
        int index, com.google.cloud.talent.v4beta1.LocationFilter value) {
      if (locationFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationFiltersIsMutable();
        locationFilters_.set(index, value);
        onChanged();
      } else {
        locationFiltersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder setLocationFilters(
        int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) {
      if (locationFiltersBuilder_ == null) {
        ensureLocationFiltersIsMutable();
        locationFilters_.set(index, builderForValue.build());
        onChanged();
      } else {
        locationFiltersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder addLocationFilters(com.google.cloud.talent.v4beta1.LocationFilter value) {
      if (locationFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationFiltersIsMutable();
        locationFilters_.add(value);
        onChanged();
      } else {
        locationFiltersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder addLocationFilters(
        int index, com.google.cloud.talent.v4beta1.LocationFilter value) {
      if (locationFiltersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLocationFiltersIsMutable();
        locationFilters_.add(index, value);
        onChanged();
      } else {
        locationFiltersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder addLocationFilters(
        com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) {
      if (locationFiltersBuilder_ == null) {
        ensureLocationFiltersIsMutable();
        locationFilters_.add(builderForValue.build());
        onChanged();
      } else {
        locationFiltersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder addLocationFilters(
        int index, com.google.cloud.talent.v4beta1.LocationFilter.Builder builderForValue) {
      if (locationFiltersBuilder_ == null) {
        ensureLocationFiltersIsMutable();
        locationFilters_.add(index, builderForValue.build());
        onChanged();
      } else {
        locationFiltersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder addAllLocationFilters(
        java.lang.Iterable<? extends com.google.cloud.talent.v4beta1.LocationFilter> values) {
      if (locationFiltersBuilder_ == null) {
        ensureLocationFiltersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locationFilters_);
        onChanged();
      } else {
        locationFiltersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder clearLocationFilters() {
      if (locationFiltersBuilder_ == null) {
        locationFilters_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        locationFiltersBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public Builder removeLocationFilters(int index) {
      if (locationFiltersBuilder_ == null) {
        ensureLocationFiltersIsMutable();
        locationFilters_.remove(index);
        onChanged();
      } else {
        locationFiltersBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public com.google.cloud.talent.v4beta1.LocationFilter.Builder getLocationFiltersBuilder(
        int index) {
      return getLocationFiltersFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public com.google.cloud.talent.v4beta1.LocationFilterOrBuilder getLocationFiltersOrBuilder(
        int index) {
      if (locationFiltersBuilder_ == null) {
        return locationFilters_.get(index);
      } else {
        return locationFiltersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public java.util.List<? extends com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>
        getLocationFiltersOrBuilderList() {
      if (locationFiltersBuilder_ != null) {
        return locationFiltersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(locationFilters_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder() {
      return getLocationFiltersFieldBuilder()
          .addBuilder(com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public com.google.cloud.talent.v4beta1.LocationFilter.Builder addLocationFiltersBuilder(
        int index) {
      return getLocationFiltersFieldBuilder()
          .addBuilder(index, com.google.cloud.talent.v4beta1.LocationFilter.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The location filter specifies geo-regions containing the jobs to
     * search against. See
     * [LocationFilter][google.cloud.talent.v4beta1.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][google.cloud.talent.v4beta1.LocationFilter.distance_in_miles]
     * parameter, the maximum provided distance is used for all locations.
     * At most 5 location filters are allowed.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.LocationFilter location_filters = 3;</code>
     */
    public java.util.List<com.google.cloud.talent.v4beta1.LocationFilter.Builder>
        getLocationFiltersBuilderList() {
      return getLocationFiltersFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.talent.v4beta1.LocationFilter,
            com.google.cloud.talent.v4beta1.LocationFilter.Builder,
            com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>
        getLocationFiltersFieldBuilder() {
      if (locationFiltersBuilder_ == null) {
        locationFiltersBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.talent.v4beta1.LocationFilter,
                com.google.cloud.talent.v4beta1.LocationFilter.Builder,
                com.google.cloud.talent.v4beta1.LocationFilterOrBuilder>(
                locationFilters_,
                ((bitField0_ & 0x00000004) != 0),
                getParentForChildren(),
                isClean());
        locationFilters_ = null;
      }
      return locationFiltersBuilder_;
    }

    private java.util.List<java.lang.Integer> jobCategories_ = java.util.Collections.emptyList();

    private void ensureJobCategoriesIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        jobCategories_ = new java.util.ArrayList<java.lang.Integer>(jobCategories_);
        bitField0_ |= 0x00000008;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public java.util.List<com.google.cloud.talent.v4beta1.JobCategory> getJobCategoriesList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.cloud.talent.v4beta1.JobCategory>(
          jobCategories_, jobCategories_converter_);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public int getJobCategoriesCount() {
      return jobCategories_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public com.google.cloud.talent.v4beta1.JobCategory getJobCategories(int index) {
      return jobCategories_converter_.convert(jobCategories_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder setJobCategories(int index, com.google.cloud.talent.v4beta1.JobCategory value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureJobCategoriesIsMutable();
      jobCategories_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder addJobCategories(com.google.cloud.talent.v4beta1.JobCategory value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureJobCategoriesIsMutable();
      jobCategories_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder addAllJobCategories(
        java.lang.Iterable<? extends com.google.cloud.talent.v4beta1.JobCategory> values) {
      ensureJobCategoriesIsMutable();
      for (com.google.cloud.talent.v4beta1.JobCategory value : values) {
        jobCategories_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder clearJobCategories() {
      jobCategories_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public java.util.List<java.lang.Integer> getJobCategoriesValueList() {
      return java.util.Collections.unmodifiableList(jobCategories_);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public int getJobCategoriesValue(int index) {
      return jobCategories_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder setJobCategoriesValue(int index, int value) {
      ensureJobCategoriesIsMutable();
      jobCategories_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder addJobCategoriesValue(int value) {
      ensureJobCategoriesIsMutable();
      jobCategories_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The category filter specifies the categories of jobs to search against.
     * See [Category][] for more information.
     * If a value isn't specified, jobs from any category are searched against.
     * If multiple values are specified, jobs from any of the specified
     * categories are searched against.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.JobCategory job_categories = 4;</code>
     */
    public Builder addAllJobCategoriesValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureJobCategoriesIsMutable();
      for (int value : values) {
        jobCategories_.add(value);
      }
      onChanged();
      return this;
    }

    private com.google.cloud.talent.v4beta1.CommuteFilter commuteFilter_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CommuteFilter,
            com.google.cloud.talent.v4beta1.CommuteFilter.Builder,
            com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>
        commuteFilterBuilder_;
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public boolean hasCommuteFilter() {
      return commuteFilterBuilder_ != null || commuteFilter_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.CommuteFilter getCommuteFilter() {
      if (commuteFilterBuilder_ == null) {
        return commuteFilter_ == null
            ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()
            : commuteFilter_;
      } else {
        return commuteFilterBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public Builder setCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) {
      if (commuteFilterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        commuteFilter_ = value;
        onChanged();
      } else {
        commuteFilterBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public Builder setCommuteFilter(
        com.google.cloud.talent.v4beta1.CommuteFilter.Builder builderForValue) {
      if (commuteFilterBuilder_ == null) {
        commuteFilter_ = builderForValue.build();
        onChanged();
      } else {
        commuteFilterBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public Builder mergeCommuteFilter(com.google.cloud.talent.v4beta1.CommuteFilter value) {
      if (commuteFilterBuilder_ == null) {
        if (commuteFilter_ != null) {
          commuteFilter_ =
              com.google.cloud.talent.v4beta1.CommuteFilter.newBuilder(commuteFilter_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          commuteFilter_ = value;
        }
        onChanged();
      } else {
        commuteFilterBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public Builder clearCommuteFilter() {
      if (commuteFilterBuilder_ == null) {
        commuteFilter_ = null;
        onChanged();
      } else {
        commuteFilter_ = null;
        commuteFilterBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.CommuteFilter.Builder getCommuteFilterBuilder() {

      onChanged();
      return getCommuteFilterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder getCommuteFilterOrBuilder() {
      if (commuteFilterBuilder_ != null) {
        return commuteFilterBuilder_.getMessageOrBuilder();
      } else {
        return commuteFilter_ == null
            ? com.google.cloud.talent.v4beta1.CommuteFilter.getDefaultInstance()
            : commuteFilter_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     *  Allows filtering jobs by commute time with different travel methods (for
     *  example, driving or public transit). Note: This only works with [COMMUTE
     *  MODE][Mode#COMMUTE]. When specified, [JobQuery.location_filters] is
     *  ignored.
     *  Currently we don't support sorting by commute time.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CommuteFilter commute_filter = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CommuteFilter,
            com.google.cloud.talent.v4beta1.CommuteFilter.Builder,
            com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>
        getCommuteFilterFieldBuilder() {
      if (commuteFilterBuilder_ == null) {
        commuteFilterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.CommuteFilter,
                com.google.cloud.talent.v4beta1.CommuteFilter.Builder,
                com.google.cloud.talent.v4beta1.CommuteFilterOrBuilder>(
                getCommuteFilter(), getParentForChildren(), isClean());
        commuteFilter_ = null;
      }
      return commuteFilterBuilder_;
    }

    private com.google.protobuf.LazyStringList companyDisplayNames_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureCompanyDisplayNamesIsMutable() {
      if (!((bitField0_ & 0x00000020) != 0)) {
        companyDisplayNames_ = new com.google.protobuf.LazyStringArrayList(companyDisplayNames_);
        bitField0_ |= 0x00000020;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public com.google.protobuf.ProtocolStringList getCompanyDisplayNamesList() {
      return companyDisplayNames_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public int getCompanyDisplayNamesCount() {
      return companyDisplayNames_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public java.lang.String getCompanyDisplayNames(int index) {
      return companyDisplayNames_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public com.google.protobuf.ByteString getCompanyDisplayNamesBytes(int index) {
      return companyDisplayNames_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public Builder setCompanyDisplayNames(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureCompanyDisplayNamesIsMutable();
      companyDisplayNames_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public Builder addCompanyDisplayNames(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureCompanyDisplayNamesIsMutable();
      companyDisplayNames_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public Builder addAllCompanyDisplayNames(java.lang.Iterable<java.lang.String> values) {
      ensureCompanyDisplayNamesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, companyDisplayNames_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public Builder clearCompanyDisplayNames() {
      companyDisplayNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies the exact [company display
     * name][Company.display_name] of the jobs to search against.
     * 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.
     * </pre>
     *
     * <code>repeated string company_display_names = 6;</code>
     */
    public Builder addCompanyDisplayNamesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureCompanyDisplayNamesIsMutable();
      companyDisplayNames_.add(value);
      onChanged();
      return this;
    }

    private com.google.cloud.talent.v4beta1.CompensationFilter compensationFilter_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationFilter,
            com.google.cloud.talent.v4beta1.CompensationFilter.Builder,
            com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>
        compensationFilterBuilder_;
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public boolean hasCompensationFilter() {
      return compensationFilterBuilder_ != null || compensationFilter_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationFilter getCompensationFilter() {
      if (compensationFilterBuilder_ == null) {
        return compensationFilter_ == null
            ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()
            : compensationFilter_;
      } else {
        return compensationFilterBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public Builder setCompensationFilter(com.google.cloud.talent.v4beta1.CompensationFilter value) {
      if (compensationFilterBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        compensationFilter_ = value;
        onChanged();
      } else {
        compensationFilterBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public Builder setCompensationFilter(
        com.google.cloud.talent.v4beta1.CompensationFilter.Builder builderForValue) {
      if (compensationFilterBuilder_ == null) {
        compensationFilter_ = builderForValue.build();
        onChanged();
      } else {
        compensationFilterBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public Builder mergeCompensationFilter(
        com.google.cloud.talent.v4beta1.CompensationFilter value) {
      if (compensationFilterBuilder_ == null) {
        if (compensationFilter_ != null) {
          compensationFilter_ =
              com.google.cloud.talent.v4beta1.CompensationFilter.newBuilder(compensationFilter_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          compensationFilter_ = value;
        }
        onChanged();
      } else {
        compensationFilterBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public Builder clearCompensationFilter() {
      if (compensationFilterBuilder_ == null) {
        compensationFilter_ = null;
        onChanged();
      } else {
        compensationFilter_ = null;
        compensationFilterBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationFilter.Builder
        getCompensationFilterBuilder() {

      onChanged();
      return getCompensationFilterFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder
        getCompensationFilterOrBuilder() {
      if (compensationFilterBuilder_ != null) {
        return compensationFilterBuilder_.getMessageOrBuilder();
      } else {
        return compensationFilter_ == null
            ? com.google.cloud.talent.v4beta1.CompensationFilter.getDefaultInstance()
            : compensationFilter_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This search filter is applied only to
     * [Job.compensation_info][google.cloud.talent.v4beta1.Job.compensation_info].
     * For example, if the filter is specified as "Hourly job with per-hour
     * compensation &gt; $15", only jobs meeting these criteria are searched. If a
     * filter isn't defined, all open jobs are searched.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationFilter compensation_filter = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationFilter,
            com.google.cloud.talent.v4beta1.CompensationFilter.Builder,
            com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>
        getCompensationFilterFieldBuilder() {
      if (compensationFilterBuilder_ == null) {
        compensationFilterBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.CompensationFilter,
                com.google.cloud.talent.v4beta1.CompensationFilter.Builder,
                com.google.cloud.talent.v4beta1.CompensationFilterOrBuilder>(
                getCompensationFilter(), getParentForChildren(), isClean());
        compensationFilter_ = null;
      }
      return compensationFilterBuilder_;
    }

    private java.lang.Object customAttributeFilter_ = "";
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a structured syntax to match against the
     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
     * marked as `filterable`.
     * The syntax for this expression is a subset of SQL syntax.
     * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
     * quote (&#92;") 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 &lt; 3000 bytes in length.
     * Sample Query:
     * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
     * driving_years &gt; 10`
     * </pre>
     *
     * <code>string custom_attribute_filter = 8;</code>
     */
    public java.lang.String getCustomAttributeFilter() {
      java.lang.Object ref = customAttributeFilter_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        customAttributeFilter_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a structured syntax to match against the
     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
     * marked as `filterable`.
     * The syntax for this expression is a subset of SQL syntax.
     * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
     * quote (&#92;") 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 &lt; 3000 bytes in length.
     * Sample Query:
     * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
     * driving_years &gt; 10`
     * </pre>
     *
     * <code>string custom_attribute_filter = 8;</code>
     */
    public com.google.protobuf.ByteString getCustomAttributeFilterBytes() {
      java.lang.Object ref = customAttributeFilter_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        customAttributeFilter_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a structured syntax to match against the
     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
     * marked as `filterable`.
     * The syntax for this expression is a subset of SQL syntax.
     * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
     * quote (&#92;") 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 &lt; 3000 bytes in length.
     * Sample Query:
     * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
     * driving_years &gt; 10`
     * </pre>
     *
     * <code>string custom_attribute_filter = 8;</code>
     */
    public Builder setCustomAttributeFilter(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      customAttributeFilter_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a structured syntax to match against the
     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
     * marked as `filterable`.
     * The syntax for this expression is a subset of SQL syntax.
     * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
     * quote (&#92;") 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 &lt; 3000 bytes in length.
     * Sample Query:
     * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
     * driving_years &gt; 10`
     * </pre>
     *
     * <code>string custom_attribute_filter = 8;</code>
     */
    public Builder clearCustomAttributeFilter() {

      customAttributeFilter_ = getDefaultInstance().getCustomAttributeFilter();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a structured syntax to match against the
     * [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]
     * marked as `filterable`.
     * The syntax for this expression is a subset of SQL syntax.
     * Supported operators are: `=`, `!=`, `&lt;`, `&lt;=`, `&gt;`, and `&gt;=` 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 (&#92;&#92;) and
     * quote (&#92;") 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 &lt; 3000 bytes in length.
     * Sample Query:
     * `(LOWER(driving_license)="class &#92;"a&#92;"" OR EMPTY(driving_license)) AND
     * driving_years &gt; 10`
     * </pre>
     *
     * <code>string custom_attribute_filter = 8;</code>
     */
    public Builder setCustomAttributeFilterBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

      customAttributeFilter_ = value;
      onChanged();
      return this;
    }

    private boolean disableSpellCheck_;
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>bool disable_spell_check = 9;</code>
     */
    public boolean getDisableSpellCheck() {
      return disableSpellCheck_;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>bool disable_spell_check = 9;</code>
     */
    public Builder setDisableSpellCheck(boolean value) {

      disableSpellCheck_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>bool disable_spell_check = 9;</code>
     */
    public Builder clearDisableSpellCheck() {

      disableSpellCheck_ = false;
      onChanged();
      return this;
    }

    private java.util.List<java.lang.Integer> employmentTypes_ = java.util.Collections.emptyList();

    private void ensureEmploymentTypesIsMutable() {
      if (!((bitField0_ & 0x00000200) != 0)) {
        employmentTypes_ = new java.util.ArrayList<java.lang.Integer>(employmentTypes_);
        bitField0_ |= 0x00000200;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public java.util.List<com.google.cloud.talent.v4beta1.EmploymentType> getEmploymentTypesList() {
      return new com.google.protobuf.Internal.ListAdapter<
          java.lang.Integer, com.google.cloud.talent.v4beta1.EmploymentType>(
          employmentTypes_, employmentTypes_converter_);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public int getEmploymentTypesCount() {
      return employmentTypes_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public com.google.cloud.talent.v4beta1.EmploymentType getEmploymentTypes(int index) {
      return employmentTypes_converter_.convert(employmentTypes_.get(index));
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder setEmploymentTypes(
        int index, com.google.cloud.talent.v4beta1.EmploymentType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureEmploymentTypesIsMutable();
      employmentTypes_.set(index, value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder addEmploymentTypes(com.google.cloud.talent.v4beta1.EmploymentType value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureEmploymentTypesIsMutable();
      employmentTypes_.add(value.getNumber());
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder addAllEmploymentTypes(
        java.lang.Iterable<? extends com.google.cloud.talent.v4beta1.EmploymentType> values) {
      ensureEmploymentTypesIsMutable();
      for (com.google.cloud.talent.v4beta1.EmploymentType value : values) {
        employmentTypes_.add(value.getNumber());
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder clearEmploymentTypes() {
      employmentTypes_ = java.util.Collections.emptyList();
      bitField0_ = (bitField0_ & ~0x00000200);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public java.util.List<java.lang.Integer> getEmploymentTypesValueList() {
      return java.util.Collections.unmodifiableList(employmentTypes_);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public int getEmploymentTypesValue(int index) {
      return employmentTypes_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder setEmploymentTypesValue(int index, int value) {
      ensureEmploymentTypesIsMutable();
      employmentTypes_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder addEmploymentTypesValue(int value) {
      ensureEmploymentTypesIsMutable();
      employmentTypes_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The employment type filter specifies the employment type of jobs to
     * search against, such as
     * [EmploymentType.FULL_TIME][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME].
     * If a value isn't 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.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.EmploymentType employment_types = 10;</code>
     */
    public Builder addAllEmploymentTypesValue(java.lang.Iterable<java.lang.Integer> values) {
      ensureEmploymentTypesIsMutable();
      for (int value : values) {
        employmentTypes_.add(value);
      }
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringList languageCodes_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureLanguageCodesIsMutable() {
      if (!((bitField0_ & 0x00000400) != 0)) {
        languageCodes_ = new com.google.protobuf.LazyStringArrayList(languageCodes_);
        bitField0_ |= 0x00000400;
      }
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public com.google.protobuf.ProtocolStringList getLanguageCodesList() {
      return languageCodes_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public int getLanguageCodesCount() {
      return languageCodes_.size();
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public java.lang.String getLanguageCodes(int index) {
      return languageCodes_.get(index);
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public com.google.protobuf.ByteString getLanguageCodesBytes(int index) {
      return languageCodes_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public Builder setLanguageCodes(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureLanguageCodesIsMutable();
      languageCodes_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public Builder addLanguageCodes(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureLanguageCodesIsMutable();
      languageCodes_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public Builder addAllLanguageCodes(java.lang.Iterable<java.lang.String> values) {
      ensureLanguageCodesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, languageCodes_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public Builder clearLanguageCodes() {
      languageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000400);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * 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.
     * </pre>
     *
     * <code>repeated string language_codes = 11;</code>
     */
    public Builder addLanguageCodesBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureLanguageCodesIsMutable();
      languageCodes_.add(value);
      onChanged();
      return this;
    }

    private com.google.cloud.talent.v4beta1.TimestampRange publishTimeRange_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.TimestampRange,
            com.google.cloud.talent.v4beta1.TimestampRange.Builder,
            com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>
        publishTimeRangeBuilder_;
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public boolean hasPublishTimeRange() {
      return publishTimeRangeBuilder_ != null || publishTimeRange_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public com.google.cloud.talent.v4beta1.TimestampRange getPublishTimeRange() {
      if (publishTimeRangeBuilder_ == null) {
        return publishTimeRange_ == null
            ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()
            : publishTimeRange_;
      } else {
        return publishTimeRangeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public Builder setPublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) {
      if (publishTimeRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        publishTimeRange_ = value;
        onChanged();
      } else {
        publishTimeRangeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public Builder setPublishTimeRange(
        com.google.cloud.talent.v4beta1.TimestampRange.Builder builderForValue) {
      if (publishTimeRangeBuilder_ == null) {
        publishTimeRange_ = builderForValue.build();
        onChanged();
      } else {
        publishTimeRangeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public Builder mergePublishTimeRange(com.google.cloud.talent.v4beta1.TimestampRange value) {
      if (publishTimeRangeBuilder_ == null) {
        if (publishTimeRange_ != null) {
          publishTimeRange_ =
              com.google.cloud.talent.v4beta1.TimestampRange.newBuilder(publishTimeRange_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          publishTimeRange_ = value;
        }
        onChanged();
      } else {
        publishTimeRangeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public Builder clearPublishTimeRange() {
      if (publishTimeRangeBuilder_ == null) {
        publishTimeRange_ = null;
        onChanged();
      } else {
        publishTimeRange_ = null;
        publishTimeRangeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public com.google.cloud.talent.v4beta1.TimestampRange.Builder getPublishTimeRangeBuilder() {

      onChanged();
      return getPublishTimeRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    public com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder getPublishTimeRangeOrBuilder() {
      if (publishTimeRangeBuilder_ != null) {
        return publishTimeRangeBuilder_.getMessageOrBuilder();
      } else {
        return publishTimeRange_ == null
            ? com.google.cloud.talent.v4beta1.TimestampRange.getDefaultInstance()
            : publishTimeRange_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Jobs published within a range specified by this filter are searched
     * against.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.TimestampRange publish_time_range = 12;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.TimestampRange,
            com.google.cloud.talent.v4beta1.TimestampRange.Builder,
            com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>
        getPublishTimeRangeFieldBuilder() {
      if (publishTimeRangeBuilder_ == null) {
        publishTimeRangeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.TimestampRange,
                com.google.cloud.talent.v4beta1.TimestampRange.Builder,
                com.google.cloud.talent.v4beta1.TimestampRangeOrBuilder>(
                getPublishTimeRange(), getParentForChildren(), isClean());
        publishTimeRange_ = null;
      }
      return publishTimeRangeBuilder_;
    }

    private com.google.protobuf.LazyStringList excludedJobs_ =
        com.google.protobuf.LazyStringArrayList.EMPTY;

    private void ensureExcludedJobsIsMutable() {
      if (!((bitField0_ & 0x00001000) != 0)) {
        excludedJobs_ = new com.google.protobuf.LazyStringArrayList(excludedJobs_);
        bitField0_ |= 0x00001000;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public com.google.protobuf.ProtocolStringList getExcludedJobsList() {
      return excludedJobs_.getUnmodifiableView();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public int getExcludedJobsCount() {
      return excludedJobs_.size();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public java.lang.String getExcludedJobs(int index) {
      return excludedJobs_.get(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public com.google.protobuf.ByteString getExcludedJobsBytes(int index) {
      return excludedJobs_.getByteString(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public Builder setExcludedJobs(int index, java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureExcludedJobsIsMutable();
      excludedJobs_.set(index, value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public Builder addExcludedJobs(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      ensureExcludedJobsIsMutable();
      excludedJobs_.add(value);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public Builder addAllExcludedJobs(java.lang.Iterable<java.lang.String> values) {
      ensureExcludedJobsIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedJobs_);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public Builder clearExcludedJobs() {
      excludedJobs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00001000);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * This filter specifies a list of job names to be excluded during search.
     * At most 200 excluded job names are allowed.
     * </pre>
     *
     * <code>repeated string excluded_jobs = 13;</code>
     */
    public Builder addExcludedJobsBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      ensureExcludedJobsIsMutable();
      excludedJobs_.add(value);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.JobQuery)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.JobQuery)
  private static final com.google.cloud.talent.v4beta1.JobQuery DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.JobQuery();
  }

  public static com.google.cloud.talent.v4beta1.JobQuery getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<JobQuery> PARSER =
      new com.google.protobuf.AbstractParser<JobQuery>() {
        @java.lang.Override
        public JobQuery parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new JobQuery(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<JobQuery> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<JobQuery> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.talent.v4beta1.JobQuery getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
