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

package com.google.cloud.talent.v4beta1;

/**
 *
 *
 * <pre>
 * Input only.
 * Meta information related to the job searcher or entity
 * conducting the job search. This information is used to improve the
 * performance of the service.
 * </pre>
 *
 * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata}
 */
public final class RequestMetadata extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.RequestMetadata)
    RequestMetadataOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use RequestMetadata.newBuilder() to construct.
  private RequestMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private RequestMetadata() {
    domain_ = "";
    sessionId_ = "";
    userId_ = "";
  }

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

  private RequestMetadata(
      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();

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

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

              userId_ = s;
              break;
            }
          case 32:
            {
              allowMissingIds_ = input.readBool();
              break;
            }
          case 42:
            {
              com.google.cloud.talent.v4beta1.DeviceInfo.Builder subBuilder = null;
              if (deviceInfo_ != null) {
                subBuilder = deviceInfo_.toBuilder();
              }
              deviceInfo_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.DeviceInfo.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(deviceInfo_);
                deviceInfo_ = subBuilder.buildPartial();
              }

              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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

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

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

  public static final int DOMAIN_FIELD_NUMBER = 1;
  private volatile java.lang.Object domain_;
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * The client-defined scope or source of the service call, which typically
   * is the domain on
   * which the service has been implemented and is currently being run.
   * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
   * job board www.foo.com and career site www.bar.com, then this field is
   * set to "foo.com" for use on the job board, and "bar.com" for use on the
   * career site.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique domain.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string domain = 1;</code>
   */
  public java.lang.String getDomain() {
    java.lang.Object ref = domain_;
    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();
      domain_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * The client-defined scope or source of the service call, which typically
   * is the domain on
   * which the service has been implemented and is currently being run.
   * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
   * job board www.foo.com and career site www.bar.com, then this field is
   * set to "foo.com" for use on the job board, and "bar.com" for use on the
   * career site.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique domain.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string domain = 1;</code>
   */
  public com.google.protobuf.ByteString getDomainBytes() {
    java.lang.Object ref = domain_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      domain_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int SESSION_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object sessionId_;
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * A unique session identification string. A session is defined as the
   * duration of an end user's interaction with the service over a certain
   * period.
   * Obfuscate this field for privacy concerns before
   * providing it to the service.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique session ID.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string session_id = 2;</code>
   */
  public java.lang.String getSessionId() {
    java.lang.Object ref = sessionId_;
    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();
      sessionId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * A unique session identification string. A session is defined as the
   * duration of an end user's interaction with the service over a certain
   * period.
   * Obfuscate this field for privacy concerns before
   * providing it to the service.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique session ID.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string session_id = 2;</code>
   */
  public com.google.protobuf.ByteString getSessionIdBytes() {
    java.lang.Object ref = sessionId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      sessionId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int USER_ID_FIELD_NUMBER = 3;
  private volatile java.lang.Object userId_;
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * A unique user identification string, as determined by the client.
   * To have the strongest positive impact on search quality
   * make sure the client-level is unique.
   * Obfuscate this field for privacy concerns before
   * providing it to the service.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique user ID.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string user_id = 3;</code>
   */
  public java.lang.String getUserId() {
    java.lang.Object ref = userId_;
    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();
      userId_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * Required if
   * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
   * is unset or `false`.
   * A unique user identification string, as determined by the client.
   * To have the strongest positive impact on search quality
   * make sure the client-level is unique.
   * Obfuscate this field for privacy concerns before
   * providing it to the service.
   * Note that any improvements to the model for a particular tenant site rely
   * on this field being set correctly to a unique user ID.
   * The maximum number of allowed characters is 255.
   * </pre>
   *
   * <code>string user_id = 3;</code>
   */
  public com.google.protobuf.ByteString getUserIdBytes() {
    java.lang.Object ref = userId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      userId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ALLOW_MISSING_IDS_FIELD_NUMBER = 4;
  private boolean allowMissingIds_;
  /**
   *
   *
   * <pre>
   * Optional.
   * If set to `true`,
   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
   * optional. Only set when any of these fields isn't available for some
   * reason. It is highly recommended not to set this field and provide accurate
   * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
   * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
   * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
   * service experience.
   * </pre>
   *
   * <code>bool allow_missing_ids = 4;</code>
   */
  public boolean getAllowMissingIds() {
    return allowMissingIds_;
  }

  public static final int DEVICE_INFO_FIELD_NUMBER = 5;
  private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_;
  /**
   *
   *
   * <pre>
   * Optional.
   * The type of device used by the job seeker at the time of the call to the
   * service.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
   */
  public boolean hasDeviceInfo() {
    return deviceInfo_ != null;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The type of device used by the job seeker at the time of the call to the
   * service.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() {
    return deviceInfo_ == null
        ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()
        : deviceInfo_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * The type of device used by the job seeker at the time of the call to the
   * service.
   * </pre>
   *
   * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
   */
  public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() {
    return getDeviceInfo();
  }

  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 {
    if (!getDomainBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, domain_);
    }
    if (!getSessionIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sessionId_);
    }
    if (!getUserIdBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userId_);
    }
    if (allowMissingIds_ != false) {
      output.writeBool(4, allowMissingIds_);
    }
    if (deviceInfo_ != null) {
      output.writeMessage(5, getDeviceInfo());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (!getDomainBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, domain_);
    }
    if (!getSessionIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sessionId_);
    }
    if (!getUserIdBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userId_);
    }
    if (allowMissingIds_ != false) {
      size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissingIds_);
    }
    if (deviceInfo_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDeviceInfo());
    }
    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.RequestMetadata)) {
      return super.equals(obj);
    }
    com.google.cloud.talent.v4beta1.RequestMetadata other =
        (com.google.cloud.talent.v4beta1.RequestMetadata) obj;

    if (!getDomain().equals(other.getDomain())) return false;
    if (!getSessionId().equals(other.getSessionId())) return false;
    if (!getUserId().equals(other.getUserId())) return false;
    if (getAllowMissingIds() != other.getAllowMissingIds()) return false;
    if (hasDeviceInfo() != other.hasDeviceInfo()) return false;
    if (hasDeviceInfo()) {
      if (!getDeviceInfo().equals(other.getDeviceInfo())) 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) + DOMAIN_FIELD_NUMBER;
    hash = (53 * hash) + getDomain().hashCode();
    hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
    hash = (53 * hash) + getSessionId().hashCode();
    hash = (37 * hash) + USER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getUserId().hashCode();
    hash = (37 * hash) + ALLOW_MISSING_IDS_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissingIds());
    if (hasDeviceInfo()) {
      hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER;
      hash = (53 * hash) + getDeviceInfo().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.cloud.talent.v4beta1.RequestMetadata 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.RequestMetadata parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.RequestMetadata 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.RequestMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.RequestMetadata 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.RequestMetadata parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.RequestMetadata 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.RequestMetadata parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.RequestMetadata 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.RequestMetadata 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.RequestMetadata 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.RequestMetadata 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.
   * Meta information related to the job searcher or entity
   * conducting the job search. This information is used to improve the
   * performance of the service.
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.RequestMetadata}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.RequestMetadata)
      com.google.cloud.talent.v4beta1.RequestMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_RequestMetadata_descriptor;
    }

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

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

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

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

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

      sessionId_ = "";

      userId_ = "";

      allowMissingIds_ = false;

      if (deviceInfoBuilder_ == null) {
        deviceInfo_ = null;
      } else {
        deviceInfo_ = null;
        deviceInfoBuilder_ = null;
      }
      return this;
    }

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

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

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

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.RequestMetadata buildPartial() {
      com.google.cloud.talent.v4beta1.RequestMetadata result =
          new com.google.cloud.talent.v4beta1.RequestMetadata(this);
      result.domain_ = domain_;
      result.sessionId_ = sessionId_;
      result.userId_ = userId_;
      result.allowMissingIds_ = allowMissingIds_;
      if (deviceInfoBuilder_ == null) {
        result.deviceInfo_ = deviceInfo_;
      } else {
        result.deviceInfo_ = deviceInfoBuilder_.build();
      }
      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.RequestMetadata) {
        return mergeFrom((com.google.cloud.talent.v4beta1.RequestMetadata) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.talent.v4beta1.RequestMetadata other) {
      if (other == com.google.cloud.talent.v4beta1.RequestMetadata.getDefaultInstance())
        return this;
      if (!other.getDomain().isEmpty()) {
        domain_ = other.domain_;
        onChanged();
      }
      if (!other.getSessionId().isEmpty()) {
        sessionId_ = other.sessionId_;
        onChanged();
      }
      if (!other.getUserId().isEmpty()) {
        userId_ = other.userId_;
        onChanged();
      }
      if (other.getAllowMissingIds() != false) {
        setAllowMissingIds(other.getAllowMissingIds());
      }
      if (other.hasDeviceInfo()) {
        mergeDeviceInfo(other.getDeviceInfo());
      }
      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.RequestMetadata parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.talent.v4beta1.RequestMetadata) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object domain_ = "";
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * The client-defined scope or source of the service call, which typically
     * is the domain on
     * which the service has been implemented and is currently being run.
     * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
     * job board www.foo.com and career site www.bar.com, then this field is
     * set to "foo.com" for use on the job board, and "bar.com" for use on the
     * career site.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique domain.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string domain = 1;</code>
     */
    public java.lang.String getDomain() {
      java.lang.Object ref = domain_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        domain_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * The client-defined scope or source of the service call, which typically
     * is the domain on
     * which the service has been implemented and is currently being run.
     * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
     * job board www.foo.com and career site www.bar.com, then this field is
     * set to "foo.com" for use on the job board, and "bar.com" for use on the
     * career site.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique domain.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string domain = 1;</code>
     */
    public com.google.protobuf.ByteString getDomainBytes() {
      java.lang.Object ref = domain_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        domain_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * The client-defined scope or source of the service call, which typically
     * is the domain on
     * which the service has been implemented and is currently being run.
     * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
     * job board www.foo.com and career site www.bar.com, then this field is
     * set to "foo.com" for use on the job board, and "bar.com" for use on the
     * career site.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique domain.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string domain = 1;</code>
     */
    public Builder setDomain(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      domain_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * The client-defined scope or source of the service call, which typically
     * is the domain on
     * which the service has been implemented and is currently being run.
     * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
     * job board www.foo.com and career site www.bar.com, then this field is
     * set to "foo.com" for use on the job board, and "bar.com" for use on the
     * career site.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique domain.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string domain = 1;</code>
     */
    public Builder clearDomain() {

      domain_ = getDefaultInstance().getDomain();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * The client-defined scope or source of the service call, which typically
     * is the domain on
     * which the service has been implemented and is currently being run.
     * For example, if the service is being run by client &lt;em&gt;Foo, Inc.&lt;/em&gt;, on
     * job board www.foo.com and career site www.bar.com, then this field is
     * set to "foo.com" for use on the job board, and "bar.com" for use on the
     * career site.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique domain.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string domain = 1;</code>
     */
    public Builder setDomainBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

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

    private java.lang.Object sessionId_ = "";
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique session identification string. A session is defined as the
     * duration of an end user's interaction with the service over a certain
     * period.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique session ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string session_id = 2;</code>
     */
    public java.lang.String getSessionId() {
      java.lang.Object ref = sessionId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        sessionId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique session identification string. A session is defined as the
     * duration of an end user's interaction with the service over a certain
     * period.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique session ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string session_id = 2;</code>
     */
    public com.google.protobuf.ByteString getSessionIdBytes() {
      java.lang.Object ref = sessionId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        sessionId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique session identification string. A session is defined as the
     * duration of an end user's interaction with the service over a certain
     * period.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique session ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string session_id = 2;</code>
     */
    public Builder setSessionId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      sessionId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique session identification string. A session is defined as the
     * duration of an end user's interaction with the service over a certain
     * period.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique session ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string session_id = 2;</code>
     */
    public Builder clearSessionId() {

      sessionId_ = getDefaultInstance().getSessionId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique session identification string. A session is defined as the
     * duration of an end user's interaction with the service over a certain
     * period.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique session ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string session_id = 2;</code>
     */
    public Builder setSessionIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

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

    private java.lang.Object userId_ = "";
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique user identification string, as determined by the client.
     * To have the strongest positive impact on search quality
     * make sure the client-level is unique.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique user ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string user_id = 3;</code>
     */
    public java.lang.String getUserId() {
      java.lang.Object ref = userId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        userId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique user identification string, as determined by the client.
     * To have the strongest positive impact on search quality
     * make sure the client-level is unique.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique user ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string user_id = 3;</code>
     */
    public com.google.protobuf.ByteString getUserIdBytes() {
      java.lang.Object ref = userId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        userId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique user identification string, as determined by the client.
     * To have the strongest positive impact on search quality
     * make sure the client-level is unique.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique user ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string user_id = 3;</code>
     */
    public Builder setUserId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }

      userId_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique user identification string, as determined by the client.
     * To have the strongest positive impact on search quality
     * make sure the client-level is unique.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique user ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string user_id = 3;</code>
     */
    public Builder clearUserId() {

      userId_ = getDefaultInstance().getUserId();
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Required if
     * [allow_missing_ids][google.cloud.talent.v4beta1.RequestMetadata.allow_missing_ids]
     * is unset or `false`.
     * A unique user identification string, as determined by the client.
     * To have the strongest positive impact on search quality
     * make sure the client-level is unique.
     * Obfuscate this field for privacy concerns before
     * providing it to the service.
     * Note that any improvements to the model for a particular tenant site rely
     * on this field being set correctly to a unique user ID.
     * The maximum number of allowed characters is 255.
     * </pre>
     *
     * <code>string user_id = 3;</code>
     */
    public Builder setUserIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);

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

    private boolean allowMissingIds_;
    /**
     *
     *
     * <pre>
     * Optional.
     * If set to `true`,
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
     * optional. Only set when any of these fields isn't available for some
     * reason. It is highly recommended not to set this field and provide accurate
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
     * service experience.
     * </pre>
     *
     * <code>bool allow_missing_ids = 4;</code>
     */
    public boolean getAllowMissingIds() {
      return allowMissingIds_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * If set to `true`,
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
     * optional. Only set when any of these fields isn't available for some
     * reason. It is highly recommended not to set this field and provide accurate
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
     * service experience.
     * </pre>
     *
     * <code>bool allow_missing_ids = 4;</code>
     */
    public Builder setAllowMissingIds(boolean value) {

      allowMissingIds_ = value;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * If set to `true`,
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] are
     * optional. Only set when any of these fields isn't available for some
     * reason. It is highly recommended not to set this field and provide accurate
     * [domain][google.cloud.talent.v4beta1.RequestMetadata.domain],
     * [session_id][google.cloud.talent.v4beta1.RequestMetadata.session_id] and
     * [user_id][google.cloud.talent.v4beta1.RequestMetadata.user_id] for the best
     * service experience.
     * </pre>
     *
     * <code>bool allow_missing_ids = 4;</code>
     */
    public Builder clearAllowMissingIds() {

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

    private com.google.cloud.talent.v4beta1.DeviceInfo deviceInfo_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.DeviceInfo,
            com.google.cloud.talent.v4beta1.DeviceInfo.Builder,
            com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>
        deviceInfoBuilder_;
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public boolean hasDeviceInfo() {
      return deviceInfoBuilder_ != null || deviceInfo_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.DeviceInfo getDeviceInfo() {
      if (deviceInfoBuilder_ == null) {
        return deviceInfo_ == null
            ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()
            : deviceInfo_;
      } else {
        return deviceInfoBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public Builder setDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) {
      if (deviceInfoBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        deviceInfo_ = value;
        onChanged();
      } else {
        deviceInfoBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public Builder setDeviceInfo(
        com.google.cloud.talent.v4beta1.DeviceInfo.Builder builderForValue) {
      if (deviceInfoBuilder_ == null) {
        deviceInfo_ = builderForValue.build();
        onChanged();
      } else {
        deviceInfoBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public Builder mergeDeviceInfo(com.google.cloud.talent.v4beta1.DeviceInfo value) {
      if (deviceInfoBuilder_ == null) {
        if (deviceInfo_ != null) {
          deviceInfo_ =
              com.google.cloud.talent.v4beta1.DeviceInfo.newBuilder(deviceInfo_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          deviceInfo_ = value;
        }
        onChanged();
      } else {
        deviceInfoBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public Builder clearDeviceInfo() {
      if (deviceInfoBuilder_ == null) {
        deviceInfo_ = null;
        onChanged();
      } else {
        deviceInfo_ = null;
        deviceInfoBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.DeviceInfo.Builder getDeviceInfoBuilder() {

      onChanged();
      return getDeviceInfoFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    public com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() {
      if (deviceInfoBuilder_ != null) {
        return deviceInfoBuilder_.getMessageOrBuilder();
      } else {
        return deviceInfo_ == null
            ? com.google.cloud.talent.v4beta1.DeviceInfo.getDefaultInstance()
            : deviceInfo_;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The type of device used by the job seeker at the time of the call to the
     * service.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.DeviceInfo device_info = 5;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.DeviceInfo,
            com.google.cloud.talent.v4beta1.DeviceInfo.Builder,
            com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>
        getDeviceInfoFieldBuilder() {
      if (deviceInfoBuilder_ == null) {
        deviceInfoBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.DeviceInfo,
                com.google.cloud.talent.v4beta1.DeviceInfo.Builder,
                com.google.cloud.talent.v4beta1.DeviceInfoOrBuilder>(
                getDeviceInfo(), getParentForChildren(), isClean());
        deviceInfo_ = null;
      }
      return deviceInfoBuilder_;
    }

    @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.RequestMetadata)
  }

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

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

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

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

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

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

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