/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/security/privateca/v1beta1/resources.proto

package com.google.cloud.security.privateca.v1beta1;

/**
 *
 *
 * <pre>
 * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
 * describes the subject of the certificate.
 * </pre>
 *
 * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
 */
public final class Subject extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.security.privateca.v1beta1.Subject)
    SubjectOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use Subject.newBuilder() to construct.
  private Subject(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private Subject() {
    countryCode_ = "";
    organization_ = "";
    organizationalUnit_ = "";
    locality_ = "";
    province_ = "";
    streetAddress_ = "";
    postalCode_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new Subject();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
        .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
        .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.security.privateca.v1beta1.Subject.class,
            com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
  }

  public static final int COUNTRY_CODE_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private volatile java.lang.Object countryCode_ = "";
  /**
   *
   *
   * <pre>
   * The country code of the subject.
   * </pre>
   *
   * <code>string country_code = 1;</code>
   *
   * @return The countryCode.
   */
  @java.lang.Override
  public java.lang.String getCountryCode() {
    java.lang.Object ref = countryCode_;
    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();
      countryCode_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The country code of the subject.
   * </pre>
   *
   * <code>string country_code = 1;</code>
   *
   * @return The bytes for countryCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getCountryCodeBytes() {
    java.lang.Object ref = countryCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      countryCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORGANIZATION_FIELD_NUMBER = 2;

  @SuppressWarnings("serial")
  private volatile java.lang.Object organization_ = "";
  /**
   *
   *
   * <pre>
   * The organization of the subject.
   * </pre>
   *
   * <code>string organization = 2;</code>
   *
   * @return The organization.
   */
  @java.lang.Override
  public java.lang.String getOrganization() {
    java.lang.Object ref = organization_;
    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();
      organization_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The organization of the subject.
   * </pre>
   *
   * <code>string organization = 2;</code>
   *
   * @return The bytes for organization.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOrganizationBytes() {
    java.lang.Object ref = organization_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      organization_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object organizationalUnit_ = "";
  /**
   *
   *
   * <pre>
   * The organizational_unit of the subject.
   * </pre>
   *
   * <code>string organizational_unit = 3;</code>
   *
   * @return The organizationalUnit.
   */
  @java.lang.Override
  public java.lang.String getOrganizationalUnit() {
    java.lang.Object ref = organizationalUnit_;
    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();
      organizationalUnit_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The organizational_unit of the subject.
   * </pre>
   *
   * <code>string organizational_unit = 3;</code>
   *
   * @return The bytes for organizationalUnit.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getOrganizationalUnitBytes() {
    java.lang.Object ref = organizationalUnit_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      organizationalUnit_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int LOCALITY_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private volatile java.lang.Object locality_ = "";
  /**
   *
   *
   * <pre>
   * The locality or city of the subject.
   * </pre>
   *
   * <code>string locality = 4;</code>
   *
   * @return The locality.
   */
  @java.lang.Override
  public java.lang.String getLocality() {
    java.lang.Object ref = locality_;
    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();
      locality_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The locality or city of the subject.
   * </pre>
   *
   * <code>string locality = 4;</code>
   *
   * @return The bytes for locality.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getLocalityBytes() {
    java.lang.Object ref = locality_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      locality_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROVINCE_FIELD_NUMBER = 5;

  @SuppressWarnings("serial")
  private volatile java.lang.Object province_ = "";
  /**
   *
   *
   * <pre>
   * The province, territory, or regional state of the subject.
   * </pre>
   *
   * <code>string province = 5;</code>
   *
   * @return The province.
   */
  @java.lang.Override
  public java.lang.String getProvince() {
    java.lang.Object ref = province_;
    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();
      province_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The province, territory, or regional state of the subject.
   * </pre>
   *
   * <code>string province = 5;</code>
   *
   * @return The bytes for province.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getProvinceBytes() {
    java.lang.Object ref = province_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      province_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STREET_ADDRESS_FIELD_NUMBER = 6;

  @SuppressWarnings("serial")
  private volatile java.lang.Object streetAddress_ = "";
  /**
   *
   *
   * <pre>
   * The street address of the subject.
   * </pre>
   *
   * <code>string street_address = 6;</code>
   *
   * @return The streetAddress.
   */
  @java.lang.Override
  public java.lang.String getStreetAddress() {
    java.lang.Object ref = streetAddress_;
    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();
      streetAddress_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The street address of the subject.
   * </pre>
   *
   * <code>string street_address = 6;</code>
   *
   * @return The bytes for streetAddress.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getStreetAddressBytes() {
    java.lang.Object ref = streetAddress_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      streetAddress_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int POSTAL_CODE_FIELD_NUMBER = 7;

  @SuppressWarnings("serial")
  private volatile java.lang.Object postalCode_ = "";
  /**
   *
   *
   * <pre>
   * The postal code of the subject.
   * </pre>
   *
   * <code>string postal_code = 7;</code>
   *
   * @return The postalCode.
   */
  @java.lang.Override
  public java.lang.String getPostalCode() {
    java.lang.Object ref = postalCode_;
    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();
      postalCode_ = s;
      return s;
    }
  }
  /**
   *
   *
   * <pre>
   * The postal code of the subject.
   * </pre>
   *
   * <code>string postal_code = 7;</code>
   *
   * @return The bytes for postalCode.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getPostalCodeBytes() {
    java.lang.Object ref = postalCode_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      postalCode_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, countryCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organization_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationalUnit_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, organizationalUnit_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locality_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locality_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(province_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, province_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streetAddress_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, streetAddress_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postalCode_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 7, postalCode_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(countryCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, countryCode_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organization_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organization_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationalUnit_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, organizationalUnit_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locality_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locality_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(province_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, province_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streetAddress_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, streetAddress_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postalCode_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, postalCode_);
    }
    size += getUnknownFields().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.security.privateca.v1beta1.Subject)) {
      return super.equals(obj);
    }
    com.google.cloud.security.privateca.v1beta1.Subject other =
        (com.google.cloud.security.privateca.v1beta1.Subject) obj;

    if (!getCountryCode().equals(other.getCountryCode())) return false;
    if (!getOrganization().equals(other.getOrganization())) return false;
    if (!getOrganizationalUnit().equals(other.getOrganizationalUnit())) return false;
    if (!getLocality().equals(other.getLocality())) return false;
    if (!getProvince().equals(other.getProvince())) return false;
    if (!getStreetAddress().equals(other.getStreetAddress())) return false;
    if (!getPostalCode().equals(other.getPostalCode())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) 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) + COUNTRY_CODE_FIELD_NUMBER;
    hash = (53 * hash) + getCountryCode().hashCode();
    hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER;
    hash = (53 * hash) + getOrganization().hashCode();
    hash = (37 * hash) + ORGANIZATIONAL_UNIT_FIELD_NUMBER;
    hash = (53 * hash) + getOrganizationalUnit().hashCode();
    hash = (37 * hash) + LOCALITY_FIELD_NUMBER;
    hash = (53 * hash) + getLocality().hashCode();
    hash = (37 * hash) + PROVINCE_FIELD_NUMBER;
    hash = (53 * hash) + getProvince().hashCode();
    hash = (37 * hash) + STREET_ADDRESS_FIELD_NUMBER;
    hash = (53 * hash) + getStreetAddress().hashCode();
    hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER;
    hash = (53 * hash) + getPostalCode().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.security.privateca.v1beta1.Subject 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.security.privateca.v1beta1.Subject parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

  public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.security.privateca.v1beta1.Subject parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

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

  public static com.google.cloud.security.privateca.v1beta1.Subject 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.security.privateca.v1beta1.Subject parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.security.privateca.v1beta1.Subject 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.security.privateca.v1beta1.Subject 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>
   * [Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn,
   * describes the subject of the certificate.
   * </pre>
   *
   * Protobuf type {@code google.cloud.security.privateca.v1beta1.Subject}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.security.privateca.v1beta1.Subject)
      com.google.cloud.security.privateca.v1beta1.SubjectOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_Subject_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.security.privateca.v1beta1.Subject.class,
              com.google.cloud.security.privateca.v1beta1.Subject.Builder.class);
    }

    // Construct using com.google.cloud.security.privateca.v1beta1.Subject.newBuilder()
    private Builder() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      countryCode_ = "";
      organization_ = "";
      organizationalUnit_ = "";
      locality_ = "";
      province_ = "";
      streetAddress_ = "";
      postalCode_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.security.privateca.v1beta1.PrivateCaResourcesProto
          .internal_static_google_cloud_security_privateca_v1beta1_Subject_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.Subject getDefaultInstanceForType() {
      return com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.Subject build() {
      com.google.cloud.security.privateca.v1beta1.Subject result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.security.privateca.v1beta1.Subject buildPartial() {
      com.google.cloud.security.privateca.v1beta1.Subject result =
          new com.google.cloud.security.privateca.v1beta1.Subject(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.cloud.security.privateca.v1beta1.Subject result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.countryCode_ = countryCode_;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.organization_ = organization_;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.organizationalUnit_ = organizationalUnit_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.locality_ = locality_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.province_ = province_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.streetAddress_ = streetAddress_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.postalCode_ = postalCode_;
      }
    }

    @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.security.privateca.v1beta1.Subject) {
        return mergeFrom((com.google.cloud.security.privateca.v1beta1.Subject) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.security.privateca.v1beta1.Subject other) {
      if (other == com.google.cloud.security.privateca.v1beta1.Subject.getDefaultInstance())
        return this;
      if (!other.getCountryCode().isEmpty()) {
        countryCode_ = other.countryCode_;
        bitField0_ |= 0x00000001;
        onChanged();
      }
      if (!other.getOrganization().isEmpty()) {
        organization_ = other.organization_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      if (!other.getOrganizationalUnit().isEmpty()) {
        organizationalUnit_ = other.organizationalUnit_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (!other.getLocality().isEmpty()) {
        locality_ = other.locality_;
        bitField0_ |= 0x00000008;
        onChanged();
      }
      if (!other.getProvince().isEmpty()) {
        province_ = other.province_;
        bitField0_ |= 0x00000010;
        onChanged();
      }
      if (!other.getStreetAddress().isEmpty()) {
        streetAddress_ = other.streetAddress_;
        bitField0_ |= 0x00000020;
        onChanged();
      }
      if (!other.getPostalCode().isEmpty()) {
        postalCode_ = other.postalCode_;
        bitField0_ |= 0x00000040;
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                countryCode_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                organization_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                organizationalUnit_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                locality_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            case 42:
              {
                province_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000010;
                break;
              } // case 42
            case 50:
              {
                streetAddress_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                postalCode_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private java.lang.Object countryCode_ = "";
    /**
     *
     *
     * <pre>
     * The country code of the subject.
     * </pre>
     *
     * <code>string country_code = 1;</code>
     *
     * @return The countryCode.
     */
    public java.lang.String getCountryCode() {
      java.lang.Object ref = countryCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        countryCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The country code of the subject.
     * </pre>
     *
     * <code>string country_code = 1;</code>
     *
     * @return The bytes for countryCode.
     */
    public com.google.protobuf.ByteString getCountryCodeBytes() {
      java.lang.Object ref = countryCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        countryCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The country code of the subject.
     * </pre>
     *
     * <code>string country_code = 1;</code>
     *
     * @param value The countryCode to set.
     * @return This builder for chaining.
     */
    public Builder setCountryCode(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      countryCode_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The country code of the subject.
     * </pre>
     *
     * <code>string country_code = 1;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearCountryCode() {
      countryCode_ = getDefaultInstance().getCountryCode();
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The country code of the subject.
     * </pre>
     *
     * <code>string country_code = 1;</code>
     *
     * @param value The bytes for countryCode to set.
     * @return This builder for chaining.
     */
    public Builder setCountryCodeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      countryCode_ = value;
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    private java.lang.Object organization_ = "";
    /**
     *
     *
     * <pre>
     * The organization of the subject.
     * </pre>
     *
     * <code>string organization = 2;</code>
     *
     * @return The organization.
     */
    public java.lang.String getOrganization() {
      java.lang.Object ref = organization_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        organization_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The organization of the subject.
     * </pre>
     *
     * <code>string organization = 2;</code>
     *
     * @return The bytes for organization.
     */
    public com.google.protobuf.ByteString getOrganizationBytes() {
      java.lang.Object ref = organization_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        organization_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The organization of the subject.
     * </pre>
     *
     * <code>string organization = 2;</code>
     *
     * @param value The organization to set.
     * @return This builder for chaining.
     */
    public Builder setOrganization(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      organization_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The organization of the subject.
     * </pre>
     *
     * <code>string organization = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOrganization() {
      organization_ = getDefaultInstance().getOrganization();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The organization of the subject.
     * </pre>
     *
     * <code>string organization = 2;</code>
     *
     * @param value The bytes for organization to set.
     * @return This builder for chaining.
     */
    public Builder setOrganizationBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      organization_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    private java.lang.Object organizationalUnit_ = "";
    /**
     *
     *
     * <pre>
     * The organizational_unit of the subject.
     * </pre>
     *
     * <code>string organizational_unit = 3;</code>
     *
     * @return The organizationalUnit.
     */
    public java.lang.String getOrganizationalUnit() {
      java.lang.Object ref = organizationalUnit_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        organizationalUnit_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The organizational_unit of the subject.
     * </pre>
     *
     * <code>string organizational_unit = 3;</code>
     *
     * @return The bytes for organizationalUnit.
     */
    public com.google.protobuf.ByteString getOrganizationalUnitBytes() {
      java.lang.Object ref = organizationalUnit_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        organizationalUnit_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The organizational_unit of the subject.
     * </pre>
     *
     * <code>string organizational_unit = 3;</code>
     *
     * @param value The organizationalUnit to set.
     * @return This builder for chaining.
     */
    public Builder setOrganizationalUnit(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      organizationalUnit_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The organizational_unit of the subject.
     * </pre>
     *
     * <code>string organizational_unit = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearOrganizationalUnit() {
      organizationalUnit_ = getDefaultInstance().getOrganizationalUnit();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The organizational_unit of the subject.
     * </pre>
     *
     * <code>string organizational_unit = 3;</code>
     *
     * @param value The bytes for organizationalUnit to set.
     * @return This builder for chaining.
     */
    public Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      organizationalUnit_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.lang.Object locality_ = "";
    /**
     *
     *
     * <pre>
     * The locality or city of the subject.
     * </pre>
     *
     * <code>string locality = 4;</code>
     *
     * @return The locality.
     */
    public java.lang.String getLocality() {
      java.lang.Object ref = locality_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        locality_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The locality or city of the subject.
     * </pre>
     *
     * <code>string locality = 4;</code>
     *
     * @return The bytes for locality.
     */
    public com.google.protobuf.ByteString getLocalityBytes() {
      java.lang.Object ref = locality_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        locality_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The locality or city of the subject.
     * </pre>
     *
     * <code>string locality = 4;</code>
     *
     * @param value The locality to set.
     * @return This builder for chaining.
     */
    public Builder setLocality(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      locality_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The locality or city of the subject.
     * </pre>
     *
     * <code>string locality = 4;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearLocality() {
      locality_ = getDefaultInstance().getLocality();
      bitField0_ = (bitField0_ & ~0x00000008);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The locality or city of the subject.
     * </pre>
     *
     * <code>string locality = 4;</code>
     *
     * @param value The bytes for locality to set.
     * @return This builder for chaining.
     */
    public Builder setLocalityBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      locality_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    private java.lang.Object province_ = "";
    /**
     *
     *
     * <pre>
     * The province, territory, or regional state of the subject.
     * </pre>
     *
     * <code>string province = 5;</code>
     *
     * @return The province.
     */
    public java.lang.String getProvince() {
      java.lang.Object ref = province_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        province_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The province, territory, or regional state of the subject.
     * </pre>
     *
     * <code>string province = 5;</code>
     *
     * @return The bytes for province.
     */
    public com.google.protobuf.ByteString getProvinceBytes() {
      java.lang.Object ref = province_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        province_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The province, territory, or regional state of the subject.
     * </pre>
     *
     * <code>string province = 5;</code>
     *
     * @param value The province to set.
     * @return This builder for chaining.
     */
    public Builder setProvince(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      province_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The province, territory, or regional state of the subject.
     * </pre>
     *
     * <code>string province = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearProvince() {
      province_ = getDefaultInstance().getProvince();
      bitField0_ = (bitField0_ & ~0x00000010);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The province, territory, or regional state of the subject.
     * </pre>
     *
     * <code>string province = 5;</code>
     *
     * @param value The bytes for province to set.
     * @return This builder for chaining.
     */
    public Builder setProvinceBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      province_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    private java.lang.Object streetAddress_ = "";
    /**
     *
     *
     * <pre>
     * The street address of the subject.
     * </pre>
     *
     * <code>string street_address = 6;</code>
     *
     * @return The streetAddress.
     */
    public java.lang.String getStreetAddress() {
      java.lang.Object ref = streetAddress_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        streetAddress_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The street address of the subject.
     * </pre>
     *
     * <code>string street_address = 6;</code>
     *
     * @return The bytes for streetAddress.
     */
    public com.google.protobuf.ByteString getStreetAddressBytes() {
      java.lang.Object ref = streetAddress_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        streetAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The street address of the subject.
     * </pre>
     *
     * <code>string street_address = 6;</code>
     *
     * @param value The streetAddress to set.
     * @return This builder for chaining.
     */
    public Builder setStreetAddress(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      streetAddress_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The street address of the subject.
     * </pre>
     *
     * <code>string street_address = 6;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearStreetAddress() {
      streetAddress_ = getDefaultInstance().getStreetAddress();
      bitField0_ = (bitField0_ & ~0x00000020);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The street address of the subject.
     * </pre>
     *
     * <code>string street_address = 6;</code>
     *
     * @param value The bytes for streetAddress to set.
     * @return This builder for chaining.
     */
    public Builder setStreetAddressBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      streetAddress_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    private java.lang.Object postalCode_ = "";
    /**
     *
     *
     * <pre>
     * The postal code of the subject.
     * </pre>
     *
     * <code>string postal_code = 7;</code>
     *
     * @return The postalCode.
     */
    public java.lang.String getPostalCode() {
      java.lang.Object ref = postalCode_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        postalCode_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The postal code of the subject.
     * </pre>
     *
     * <code>string postal_code = 7;</code>
     *
     * @return The bytes for postalCode.
     */
    public com.google.protobuf.ByteString getPostalCodeBytes() {
      java.lang.Object ref = postalCode_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        postalCode_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     *
     *
     * <pre>
     * The postal code of the subject.
     * </pre>
     *
     * <code>string postal_code = 7;</code>
     *
     * @param value The postalCode to set.
     * @return This builder for chaining.
     */
    public Builder setPostalCode(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      postalCode_ = value;
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The postal code of the subject.
     * </pre>
     *
     * <code>string postal_code = 7;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearPostalCode() {
      postalCode_ = getDefaultInstance().getPostalCode();
      bitField0_ = (bitField0_ & ~0x00000040);
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * The postal code of the subject.
     * </pre>
     *
     * <code>string postal_code = 7;</code>
     *
     * @param value The bytes for postalCode to set.
     * @return This builder for chaining.
     */
    public Builder setPostalCodeBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      postalCode_ = value;
      bitField0_ |= 0x00000040;
      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.security.privateca.v1beta1.Subject)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.security.privateca.v1beta1.Subject)
  private static final com.google.cloud.security.privateca.v1beta1.Subject DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.security.privateca.v1beta1.Subject();
  }

  public static com.google.cloud.security.privateca.v1beta1.Subject getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<Subject> PARSER =
      new com.google.protobuf.AbstractParser<Subject>() {
        @java.lang.Override
        public Subject parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

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

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

  @java.lang.Override
  public com.google.cloud.security.privateca.v1beta1.Subject getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
