yandex.cloud.api.oauth.v1.Claims Maven / Gradle / Ivy
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/oauth/claims.proto
package yandex.cloud.api.oauth.v1;
public final class Claims {
  private Claims() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code yandex.cloud.oauth.SubjectType}
   */
  public enum SubjectType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * SUBJECT_TYPE_UNSPECIFIED = 0;
     */
    SUBJECT_TYPE_UNSPECIFIED(0),
    /**
     * USER_ACCOUNT = 1;
     */
    USER_ACCOUNT(1),
    /**
     * SERVICE_ACCOUNT = 2;
     */
    SERVICE_ACCOUNT(2),
    /**
     * GROUP = 3;
     */
    GROUP(3),
    /**
     * INVITEE = 4;
     */
    INVITEE(4),
    UNRECOGNIZED(-1),
    ;
    /**
     * SUBJECT_TYPE_UNSPECIFIED = 0;
     */
    public static final int SUBJECT_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     * USER_ACCOUNT = 1;
     */
    public static final int USER_ACCOUNT_VALUE = 1;
    /**
     * SERVICE_ACCOUNT = 2;
     */
    public static final int SERVICE_ACCOUNT_VALUE = 2;
    /**
     * GROUP = 3;
     */
    public static final int GROUP_VALUE = 3;
    /**
     * INVITEE = 4;
     */
    public static final int INVITEE_VALUE = 4;
    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }
    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static SubjectType valueOf(int value) {
      return forNumber(value);
    }
    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static SubjectType forNumber(int value) {
      switch (value) {
        case 0: return SUBJECT_TYPE_UNSPECIFIED;
        case 1: return USER_ACCOUNT;
        case 2: return SERVICE_ACCOUNT;
        case 3: return GROUP;
        case 4: return INVITEE;
        default: return null;
      }
    }
    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        SubjectType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public SubjectType findValueByNumber(int number) {
              return SubjectType.forNumber(number);
            }
          };
    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return yandex.cloud.api.oauth.v1.Claims.getDescriptor().getEnumTypes().get(0);
    }
    private static final SubjectType[] VALUES = values();
    public static SubjectType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }
    private final int value;
    private SubjectType(int value) {
      this.value = value;
    }
    // @@protoc_insertion_point(enum_scope:yandex.cloud.oauth.SubjectType)
  }
  public interface SubjectClaimsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.oauth.SubjectClaims)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * Subject - Identifier for the End-User at the Issuer.
     * 
     *
     * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The sub.
     */
    java.lang.String getSub();
    /**
     * 
     * Subject - Identifier for the End-User at the Issuer.
     * 
     *
     * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The bytes for sub.
     */
    com.google.protobuf.ByteString
        getSubBytes();
    /**
     * 
     * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
     * 
     *
     * string name = 2;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * 
     * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
     * 
     *
     * string name = 2;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
    /**
     * 
     * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
     * 
     *
     * string given_name = 3;
     * @return The givenName.
     */
    java.lang.String getGivenName();
    /**
     * 
     * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
     * 
     *
     * string given_name = 3;
     * @return The bytes for givenName.
     */
    com.google.protobuf.ByteString
        getGivenNameBytes();
    /**
     * 
     * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
     * 
     *
     * string family_name = 4;
     * @return The familyName.
     */
    java.lang.String getFamilyName();
    /**
     * 
     * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
     * 
     *
     * string family_name = 4;
     * @return The bytes for familyName.
     */
    com.google.protobuf.ByteString
        getFamilyNameBytes();
    /**
     * 
     * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
     * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string preferred_username = 7;
     * @return The preferredUsername.
     */
    java.lang.String getPreferredUsername();
    /**
     * 
     * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
     * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string preferred_username = 7;
     * @return The bytes for preferredUsername.
     */
    com.google.protobuf.ByteString
        getPreferredUsernameBytes();
    /**
     * 
     * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
     * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
     * 
     *
     * string picture = 9;
     * @return The picture.
     */
    java.lang.String getPicture();
    /**
     * 
     * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
     * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
     * 
     *
     * string picture = 9;
     * @return The bytes for picture.
     */
    com.google.protobuf.ByteString
        getPictureBytes();
    /**
     * 
     * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
     * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string email = 11;
     * @return The email.
     */
    java.lang.String getEmail();
    /**
     * 
     * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
     * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string email = 11;
     * @return The bytes for email.
     */
    com.google.protobuf.ByteString
        getEmailBytes();
    /**
     * 
     * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
     * 
     *
     * string zoneinfo = 15;
     * @return The zoneinfo.
     */
    java.lang.String getZoneinfo();
    /**
     * 
     * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
     * 
     *
     * string zoneinfo = 15;
     * @return The bytes for zoneinfo.
     */
    com.google.protobuf.ByteString
        getZoneinfoBytes();
    /**
     * 
     * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
     * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
     * 
     *
     * string locale = 16;
     * @return The locale.
     */
    java.lang.String getLocale();
    /**
     * 
     * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
     * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
     * 
     *
     * string locale = 16;
     * @return The bytes for locale.
     */
    com.google.protobuf.ByteString
        getLocaleBytes();
    /**
     * 
     * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
     * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
     * 
     *
     * string phone_number = 17;
     * @return The phoneNumber.
     */
    java.lang.String getPhoneNumber();
    /**
     * 
     * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
     * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
     * 
     *
     * string phone_number = 17;
     * @return The bytes for phoneNumber.
     */
    com.google.protobuf.ByteString
        getPhoneNumberBytes();
    /**
     * 
     * Subject type.
     * 
     *
     * .yandex.cloud.oauth.SubjectType sub_type = 99;
     * @return The enum numeric value on the wire for subType.
     */
    int getSubTypeValue();
    /**
     * 
     * Subject type.
     * 
     *
     * .yandex.cloud.oauth.SubjectType sub_type = 99;
     * @return The subType.
     */
    yandex.cloud.api.oauth.v1.Claims.SubjectType getSubType();
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     * @return Whether the federation field is set.
     */
    boolean hasFederation();
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     * @return The federation.
     */
    yandex.cloud.api.oauth.v1.Claims.Federation getFederation();
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     */
    yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder getFederationOrBuilder();
  }
  /**
   * 
   * Claims representation, see https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims for details.
   * 
   *
   * Protobuf type {@code yandex.cloud.oauth.SubjectClaims}
   */
  public static final class SubjectClaims extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.oauth.SubjectClaims)
      SubjectClaimsOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use SubjectClaims.newBuilder() to construct.
    private SubjectClaims(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private SubjectClaims() {
      sub_ = "";
      name_ = "";
      givenName_ = "";
      familyName_ = "";
      preferredUsername_ = "";
      picture_ = "";
      email_ = "";
      zoneinfo_ = "";
      locale_ = "";
      phoneNumber_ = "";
      subType_ = 0;
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new SubjectClaims();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private SubjectClaims(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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();
              sub_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();
              name_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              givenName_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();
              familyName_ = s;
              break;
            }
            case 58: {
              java.lang.String s = input.readStringRequireUtf8();
              preferredUsername_ = s;
              break;
            }
            case 74: {
              java.lang.String s = input.readStringRequireUtf8();
              picture_ = s;
              break;
            }
            case 90: {
              java.lang.String s = input.readStringRequireUtf8();
              email_ = s;
              break;
            }
            case 122: {
              java.lang.String s = input.readStringRequireUtf8();
              zoneinfo_ = s;
              break;
            }
            case 130: {
              java.lang.String s = input.readStringRequireUtf8();
              locale_ = s;
              break;
            }
            case 138: {
              java.lang.String s = input.readStringRequireUtf8();
              phoneNumber_ = s;
              break;
            }
            case 792: {
              int rawValue = input.readEnum();
              subType_ = rawValue;
              break;
            }
            case 802: {
              yandex.cloud.api.oauth.v1.Claims.Federation.Builder subBuilder = null;
              if (federation_ != null) {
                subBuilder = federation_.toBuilder();
              }
              federation_ = input.readMessage(yandex.cloud.api.oauth.v1.Claims.Federation.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(federation_);
                federation_ = 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 yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_SubjectClaims_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_SubjectClaims_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.oauth.v1.Claims.SubjectClaims.class, yandex.cloud.api.oauth.v1.Claims.SubjectClaims.Builder.class);
    }
    public static final int SUB_FIELD_NUMBER = 1;
    private volatile java.lang.Object sub_;
    /**
     * 
     * Subject - Identifier for the End-User at the Issuer.
     * 
     *
     * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The sub.
     */
    @java.lang.Override
    public java.lang.String getSub() {
      java.lang.Object ref = sub_;
      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();
        sub_ = s;
        return s;
      }
    }
    /**
     * 
     * Subject - Identifier for the End-User at the Issuer.
     * 
     *
     * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The bytes for sub.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getSubBytes() {
      java.lang.Object ref = sub_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        sub_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int NAME_FIELD_NUMBER = 2;
    private volatile java.lang.Object name_;
    /**
     * 
     * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
     * 
     *
     * string name = 2;
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * 
     * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
     * 
     *
     * string name = 2;
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int GIVEN_NAME_FIELD_NUMBER = 3;
    private volatile java.lang.Object givenName_;
    /**
     * 
     * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
     * 
     *
     * string given_name = 3;
     * @return The givenName.
     */
    @java.lang.Override
    public java.lang.String getGivenName() {
      java.lang.Object ref = givenName_;
      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();
        givenName_ = s;
        return s;
      }
    }
    /**
     * 
     * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
     * 
     *
     * string given_name = 3;
     * @return The bytes for givenName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getGivenNameBytes() {
      java.lang.Object ref = givenName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        givenName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int FAMILY_NAME_FIELD_NUMBER = 4;
    private volatile java.lang.Object familyName_;
    /**
     * 
     * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
     * 
     *
     * string family_name = 4;
     * @return The familyName.
     */
    @java.lang.Override
    public java.lang.String getFamilyName() {
      java.lang.Object ref = familyName_;
      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();
        familyName_ = s;
        return s;
      }
    }
    /**
     * 
     * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
     * 
     *
     * string family_name = 4;
     * @return The bytes for familyName.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getFamilyNameBytes() {
      java.lang.Object ref = familyName_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        familyName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int PREFERRED_USERNAME_FIELD_NUMBER = 7;
    private volatile java.lang.Object preferredUsername_;
    /**
     * 
     * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
     * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string preferred_username = 7;
     * @return The preferredUsername.
     */
    @java.lang.Override
    public java.lang.String getPreferredUsername() {
      java.lang.Object ref = preferredUsername_;
      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();
        preferredUsername_ = s;
        return s;
      }
    }
    /**
     * 
     * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
     * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string preferred_username = 7;
     * @return The bytes for preferredUsername.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPreferredUsernameBytes() {
      java.lang.Object ref = preferredUsername_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        preferredUsername_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int PICTURE_FIELD_NUMBER = 9;
    private volatile java.lang.Object picture_;
    /**
     * 
     * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
     * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
     * 
     *
     * string picture = 9;
     * @return The picture.
     */
    @java.lang.Override
    public java.lang.String getPicture() {
      java.lang.Object ref = picture_;
      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();
        picture_ = s;
        return s;
      }
    }
    /**
     * 
     * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
     * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
     * 
     *
     * string picture = 9;
     * @return The bytes for picture.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPictureBytes() {
      java.lang.Object ref = picture_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        picture_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int EMAIL_FIELD_NUMBER = 11;
    private volatile java.lang.Object email_;
    /**
     * 
     * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
     * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string email = 11;
     * @return The email.
     */
    @java.lang.Override
    public java.lang.String getEmail() {
      java.lang.Object ref = email_;
      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();
        email_ = s;
        return s;
      }
    }
    /**
     * 
     * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
     * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
     * 
     *
     * string email = 11;
     * @return The bytes for email.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getEmailBytes() {
      java.lang.Object ref = email_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        email_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int ZONEINFO_FIELD_NUMBER = 15;
    private volatile java.lang.Object zoneinfo_;
    /**
     * 
     * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
     * 
     *
     * string zoneinfo = 15;
     * @return The zoneinfo.
     */
    @java.lang.Override
    public java.lang.String getZoneinfo() {
      java.lang.Object ref = zoneinfo_;
      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();
        zoneinfo_ = s;
        return s;
      }
    }
    /**
     * 
     * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
     * 
     *
     * string zoneinfo = 15;
     * @return The bytes for zoneinfo.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getZoneinfoBytes() {
      java.lang.Object ref = zoneinfo_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        zoneinfo_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int LOCALE_FIELD_NUMBER = 16;
    private volatile java.lang.Object locale_;
    /**
     * 
     * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
     * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
     * 
     *
     * string locale = 16;
     * @return The locale.
     */
    @java.lang.Override
    public java.lang.String getLocale() {
      java.lang.Object ref = locale_;
      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();
        locale_ = s;
        return s;
      }
    }
    /**
     * 
     * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
     * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
     * 
     *
     * string locale = 16;
     * @return The bytes for locale.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getLocaleBytes() {
      java.lang.Object ref = locale_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        locale_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int PHONE_NUMBER_FIELD_NUMBER = 17;
    private volatile java.lang.Object phoneNumber_;
    /**
     * 
     * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
     * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
     * 
     *
     * string phone_number = 17;
     * @return The phoneNumber.
     */
    @java.lang.Override
    public java.lang.String getPhoneNumber() {
      java.lang.Object ref = phoneNumber_;
      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();
        phoneNumber_ = s;
        return s;
      }
    }
    /**
     * 
     * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
     * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
     * 
     *
     * string phone_number = 17;
     * @return The bytes for phoneNumber.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPhoneNumberBytes() {
      java.lang.Object ref = phoneNumber_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        phoneNumber_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int SUB_TYPE_FIELD_NUMBER = 99;
    private int subType_;
    /**
     * 
     * Subject type.
     * 
     *
     * .yandex.cloud.oauth.SubjectType sub_type = 99;
     * @return The enum numeric value on the wire for subType.
     */
    @java.lang.Override public int getSubTypeValue() {
      return subType_;
    }
    /**
     * 
     * Subject type.
     * 
     *
     * .yandex.cloud.oauth.SubjectType sub_type = 99;
     * @return The subType.
     */
    @java.lang.Override public yandex.cloud.api.oauth.v1.Claims.SubjectType getSubType() {
      @SuppressWarnings("deprecation")
      yandex.cloud.api.oauth.v1.Claims.SubjectType result = yandex.cloud.api.oauth.v1.Claims.SubjectType.valueOf(subType_);
      return result == null ? yandex.cloud.api.oauth.v1.Claims.SubjectType.UNRECOGNIZED : result;
    }
    public static final int FEDERATION_FIELD_NUMBER = 100;
    private yandex.cloud.api.oauth.v1.Claims.Federation federation_;
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     * @return Whether the federation field is set.
     */
    @java.lang.Override
    public boolean hasFederation() {
      return federation_ != null;
    }
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     * @return The federation.
     */
    @java.lang.Override
    public yandex.cloud.api.oauth.v1.Claims.Federation getFederation() {
      return federation_ == null ? yandex.cloud.api.oauth.v1.Claims.Federation.getDefaultInstance() : federation_;
    }
    /**
     * 
     * User federation, non-empty only for federated users.
     * 
     *
     * .yandex.cloud.oauth.Federation federation = 100;
     */
    @java.lang.Override
    public yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder getFederationOrBuilder() {
      return getFederation();
    }
    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(sub_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sub_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, givenName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, familyName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredUsername_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 7, preferredUsername_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(picture_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 9, picture_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 11, email_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneinfo_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 15, zoneinfo_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 16, locale_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 17, phoneNumber_);
      }
      if (subType_ != yandex.cloud.api.oauth.v1.Claims.SubjectType.SUBJECT_TYPE_UNSPECIFIED.getNumber()) {
        output.writeEnum(99, subType_);
      }
      if (federation_ != null) {
        output.writeMessage(100, getFederation());
      }
      unknownFields.writeTo(output);
    }
    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;
      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sub_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sub_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(givenName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, givenName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(familyName_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, familyName_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(preferredUsername_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, preferredUsername_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(picture_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, picture_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, email_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zoneinfo_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, zoneinfo_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locale_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, locale_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(phoneNumber_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, phoneNumber_);
      }
      if (subType_ != yandex.cloud.api.oauth.v1.Claims.SubjectType.SUBJECT_TYPE_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(99, subType_);
      }
      if (federation_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(100, getFederation());
      }
      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 yandex.cloud.api.oauth.v1.Claims.SubjectClaims)) {
        return super.equals(obj);
      }
      yandex.cloud.api.oauth.v1.Claims.SubjectClaims other = (yandex.cloud.api.oauth.v1.Claims.SubjectClaims) obj;
      if (!getSub()
          .equals(other.getSub())) return false;
      if (!getName()
          .equals(other.getName())) return false;
      if (!getGivenName()
          .equals(other.getGivenName())) return false;
      if (!getFamilyName()
          .equals(other.getFamilyName())) return false;
      if (!getPreferredUsername()
          .equals(other.getPreferredUsername())) return false;
      if (!getPicture()
          .equals(other.getPicture())) return false;
      if (!getEmail()
          .equals(other.getEmail())) return false;
      if (!getZoneinfo()
          .equals(other.getZoneinfo())) return false;
      if (!getLocale()
          .equals(other.getLocale())) return false;
      if (!getPhoneNumber()
          .equals(other.getPhoneNumber())) return false;
      if (subType_ != other.subType_) return false;
      if (hasFederation() != other.hasFederation()) return false;
      if (hasFederation()) {
        if (!getFederation()
            .equals(other.getFederation())) 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) + SUB_FIELD_NUMBER;
      hash = (53 * hash) + getSub().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getGivenName().hashCode();
      hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER;
      hash = (53 * hash) + getFamilyName().hashCode();
      hash = (37 * hash) + PREFERRED_USERNAME_FIELD_NUMBER;
      hash = (53 * hash) + getPreferredUsername().hashCode();
      hash = (37 * hash) + PICTURE_FIELD_NUMBER;
      hash = (53 * hash) + getPicture().hashCode();
      hash = (37 * hash) + EMAIL_FIELD_NUMBER;
      hash = (53 * hash) + getEmail().hashCode();
      hash = (37 * hash) + ZONEINFO_FIELD_NUMBER;
      hash = (53 * hash) + getZoneinfo().hashCode();
      hash = (37 * hash) + LOCALE_FIELD_NUMBER;
      hash = (53 * hash) + getLocale().hashCode();
      hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER;
      hash = (53 * hash) + getPhoneNumber().hashCode();
      hash = (37 * hash) + SUB_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + subType_;
      if (hasFederation()) {
        hash = (37 * hash) + FEDERATION_FIELD_NUMBER;
        hash = (53 * hash) + getFederation().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims 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 yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims 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 yandex.cloud.api.oauth.v1.Claims.SubjectClaims parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims 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(yandex.cloud.api.oauth.v1.Claims.SubjectClaims 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;
    }
    /**
     * 
     * Claims representation, see https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims for details.
     * 
     *
     * Protobuf type {@code yandex.cloud.oauth.SubjectClaims}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.oauth.SubjectClaims)
        yandex.cloud.api.oauth.v1.Claims.SubjectClaimsOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_SubjectClaims_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_SubjectClaims_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.oauth.v1.Claims.SubjectClaims.class, yandex.cloud.api.oauth.v1.Claims.SubjectClaims.Builder.class);
      }
      // Construct using yandex.cloud.api.oauth.v1.Claims.SubjectClaims.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();
        sub_ = "";
        name_ = "";
        givenName_ = "";
        familyName_ = "";
        preferredUsername_ = "";
        picture_ = "";
        email_ = "";
        zoneinfo_ = "";
        locale_ = "";
        phoneNumber_ = "";
        subType_ = 0;
        if (federationBuilder_ == null) {
          federation_ = null;
        } else {
          federation_ = null;
          federationBuilder_ = null;
        }
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_SubjectClaims_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.SubjectClaims getDefaultInstanceForType() {
        return yandex.cloud.api.oauth.v1.Claims.SubjectClaims.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.SubjectClaims build() {
        yandex.cloud.api.oauth.v1.Claims.SubjectClaims result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.SubjectClaims buildPartial() {
        yandex.cloud.api.oauth.v1.Claims.SubjectClaims result = new yandex.cloud.api.oauth.v1.Claims.SubjectClaims(this);
        result.sub_ = sub_;
        result.name_ = name_;
        result.givenName_ = givenName_;
        result.familyName_ = familyName_;
        result.preferredUsername_ = preferredUsername_;
        result.picture_ = picture_;
        result.email_ = email_;
        result.zoneinfo_ = zoneinfo_;
        result.locale_ = locale_;
        result.phoneNumber_ = phoneNumber_;
        result.subType_ = subType_;
        if (federationBuilder_ == null) {
          result.federation_ = federation_;
        } else {
          result.federation_ = federationBuilder_.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 yandex.cloud.api.oauth.v1.Claims.SubjectClaims) {
          return mergeFrom((yandex.cloud.api.oauth.v1.Claims.SubjectClaims)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.oauth.v1.Claims.SubjectClaims other) {
        if (other == yandex.cloud.api.oauth.v1.Claims.SubjectClaims.getDefaultInstance()) return this;
        if (!other.getSub().isEmpty()) {
          sub_ = other.sub_;
          onChanged();
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getGivenName().isEmpty()) {
          givenName_ = other.givenName_;
          onChanged();
        }
        if (!other.getFamilyName().isEmpty()) {
          familyName_ = other.familyName_;
          onChanged();
        }
        if (!other.getPreferredUsername().isEmpty()) {
          preferredUsername_ = other.preferredUsername_;
          onChanged();
        }
        if (!other.getPicture().isEmpty()) {
          picture_ = other.picture_;
          onChanged();
        }
        if (!other.getEmail().isEmpty()) {
          email_ = other.email_;
          onChanged();
        }
        if (!other.getZoneinfo().isEmpty()) {
          zoneinfo_ = other.zoneinfo_;
          onChanged();
        }
        if (!other.getLocale().isEmpty()) {
          locale_ = other.locale_;
          onChanged();
        }
        if (!other.getPhoneNumber().isEmpty()) {
          phoneNumber_ = other.phoneNumber_;
          onChanged();
        }
        if (other.subType_ != 0) {
          setSubTypeValue(other.getSubTypeValue());
        }
        if (other.hasFederation()) {
          mergeFederation(other.getFederation());
        }
        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 {
        yandex.cloud.api.oauth.v1.Claims.SubjectClaims parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.oauth.v1.Claims.SubjectClaims) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private java.lang.Object sub_ = "";
      /**
       * 
       * Subject - Identifier for the End-User at the Issuer.
       * 
       *
       * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return The sub.
       */
      public java.lang.String getSub() {
        java.lang.Object ref = sub_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          sub_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Subject - Identifier for the End-User at the Issuer.
       * 
       *
       * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return The bytes for sub.
       */
      public com.google.protobuf.ByteString
          getSubBytes() {
        java.lang.Object ref = sub_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          sub_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Subject - Identifier for the End-User at the Issuer.
       * 
       *
       * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @param value The sub to set.
       * @return This builder for chaining.
       */
      public Builder setSub(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        sub_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Subject - Identifier for the End-User at the Issuer.
       * 
       *
       * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return This builder for chaining.
       */
      public Builder clearSub() {
        
        sub_ = getDefaultInstance().getSub();
        onChanged();
        return this;
      }
      /**
       * 
       * Subject - Identifier for the End-User at the Issuer.
       * 
       *
       * string sub = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @param value The bytes for sub to set.
       * @return This builder for chaining.
       */
      public Builder setSubBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        sub_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object name_ = "";
      /**
       * 
       * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
       * 
       *
       * string name = 2;
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
       * 
       *
       * string name = 2;
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
       * 
       *
       * string name = 2;
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
       * 
       *
       * string name = 2;
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
       * 
       *
       * string name = 2;
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object givenName_ = "";
      /**
       * 
       * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
       * 
       *
       * string given_name = 3;
       * @return The givenName.
       */
      public java.lang.String getGivenName() {
        java.lang.Object ref = givenName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          givenName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
       * 
       *
       * string given_name = 3;
       * @return The bytes for givenName.
       */
      public com.google.protobuf.ByteString
          getGivenNameBytes() {
        java.lang.Object ref = givenName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          givenName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
       * 
       *
       * string given_name = 3;
       * @param value The givenName to set.
       * @return This builder for chaining.
       */
      public Builder setGivenName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        givenName_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
       * 
       *
       * string given_name = 3;
       * @return This builder for chaining.
       */
      public Builder clearGivenName() {
        
        givenName_ = getDefaultInstance().getGivenName();
        onChanged();
        return this;
      }
      /**
       * 
       * Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
       * 
       *
       * string given_name = 3;
       * @param value The bytes for givenName to set.
       * @return This builder for chaining.
       */
      public Builder setGivenNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        givenName_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object familyName_ = "";
      /**
       * 
       * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
       * 
       *
       * string family_name = 4;
       * @return The familyName.
       */
      public java.lang.String getFamilyName() {
        java.lang.Object ref = familyName_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          familyName_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
       * 
       *
       * string family_name = 4;
       * @return The bytes for familyName.
       */
      public com.google.protobuf.ByteString
          getFamilyNameBytes() {
        java.lang.Object ref = familyName_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          familyName_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
       * 
       *
       * string family_name = 4;
       * @param value The familyName to set.
       * @return This builder for chaining.
       */
      public Builder setFamilyName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        familyName_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
       * 
       *
       * string family_name = 4;
       * @return This builder for chaining.
       */
      public Builder clearFamilyName() {
        
        familyName_ = getDefaultInstance().getFamilyName();
        onChanged();
        return this;
      }
      /**
       * 
       * Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
       * 
       *
       * string family_name = 4;
       * @param value The bytes for familyName to set.
       * @return This builder for chaining.
       */
      public Builder setFamilyNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        familyName_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object preferredUsername_ = "";
      /**
       * 
       * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
       * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string preferred_username = 7;
       * @return The preferredUsername.
       */
      public java.lang.String getPreferredUsername() {
        java.lang.Object ref = preferredUsername_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          preferredUsername_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
       * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string preferred_username = 7;
       * @return The bytes for preferredUsername.
       */
      public com.google.protobuf.ByteString
          getPreferredUsernameBytes() {
        java.lang.Object ref = preferredUsername_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          preferredUsername_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
       * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string preferred_username = 7;
       * @param value The preferredUsername to set.
       * @return This builder for chaining.
       */
      public Builder setPreferredUsername(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        preferredUsername_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
       * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string preferred_username = 7;
       * @return This builder for chaining.
       */
      public Builder clearPreferredUsername() {
        
        preferredUsername_ = getDefaultInstance().getPreferredUsername();
        onChanged();
        return this;
      }
      /**
       * 
       * Shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe.
       * This value MAY be any valid JSON string including special characters such as @, /, or whitespace. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string preferred_username = 7;
       * @param value The bytes for preferredUsername to set.
       * @return This builder for chaining.
       */
      public Builder setPreferredUsernameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        preferredUsername_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object picture_ = "";
      /**
       * 
       * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
       * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
       * 
       *
       * string picture = 9;
       * @return The picture.
       */
      public java.lang.String getPicture() {
        java.lang.Object ref = picture_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          picture_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
       * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
       * 
       *
       * string picture = 9;
       * @return The bytes for picture.
       */
      public com.google.protobuf.ByteString
          getPictureBytes() {
        java.lang.Object ref = picture_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          picture_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
       * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
       * 
       *
       * string picture = 9;
       * @param value The picture to set.
       * @return This builder for chaining.
       */
      public Builder setPicture(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        picture_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
       * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
       * 
       *
       * string picture = 9;
       * @return This builder for chaining.
       */
      public Builder clearPicture() {
        
        picture_ = getDefaultInstance().getPicture();
        onChanged();
        return this;
      }
      /**
       * 
       * URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file),
       * rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
       * 
       *
       * string picture = 9;
       * @param value The bytes for picture to set.
       * @return This builder for chaining.
       */
      public Builder setPictureBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        picture_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object email_ = "";
      /**
       * 
       * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
       * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string email = 11;
       * @return The email.
       */
      public java.lang.String getEmail() {
        java.lang.Object ref = email_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          email_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
       * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string email = 11;
       * @return The bytes for email.
       */
      public com.google.protobuf.ByteString
          getEmailBytes() {
        java.lang.Object ref = email_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          email_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
       * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string email = 11;
       * @param value The email to set.
       * @return This builder for chaining.
       */
      public Builder setEmail(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        email_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
       * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string email = 11;
       * @return This builder for chaining.
       */
      public Builder clearEmail() {
        
        email_ = getDefaultInstance().getEmail();
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax.
       * The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
       * 
       *
       * string email = 11;
       * @param value The bytes for email to set.
       * @return This builder for chaining.
       */
      public Builder setEmailBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        email_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object zoneinfo_ = "";
      /**
       * 
       * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
       * 
       *
       * string zoneinfo = 15;
       * @return The zoneinfo.
       */
      public java.lang.String getZoneinfo() {
        java.lang.Object ref = zoneinfo_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          zoneinfo_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
       * 
       *
       * string zoneinfo = 15;
       * @return The bytes for zoneinfo.
       */
      public com.google.protobuf.ByteString
          getZoneinfoBytes() {
        java.lang.Object ref = zoneinfo_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          zoneinfo_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
       * 
       *
       * string zoneinfo = 15;
       * @param value The zoneinfo to set.
       * @return This builder for chaining.
       */
      public Builder setZoneinfo(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        zoneinfo_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
       * 
       *
       * string zoneinfo = 15;
       * @return This builder for chaining.
       */
      public Builder clearZoneinfo() {
        
        zoneinfo_ = getDefaultInstance().getZoneinfo();
        onChanged();
        return this;
      }
      /**
       * 
       * String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
       * 
       *
       * string zoneinfo = 15;
       * @param value The bytes for zoneinfo to set.
       * @return This builder for chaining.
       */
      public Builder setZoneinfoBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        zoneinfo_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object locale_ = "";
      /**
       * 
       * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
       * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
       * 
       *
       * string locale = 16;
       * @return The locale.
       */
      public java.lang.String getLocale() {
        java.lang.Object ref = locale_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          locale_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
       * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
       * 
       *
       * string locale = 16;
       * @return The bytes for locale.
       */
      public com.google.protobuf.ByteString
          getLocaleBytes() {
        java.lang.Object ref = locale_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          locale_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
       * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
       * 
       *
       * string locale = 16;
       * @param value The locale to set.
       * @return This builder for chaining.
       */
      public Builder setLocale(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        locale_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
       * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
       * 
       *
       * string locale = 16;
       * @return This builder for chaining.
       */
      public Builder clearLocale() {
        
        locale_ = getDefaultInstance().getLocale();
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639-1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166-1] country code in uppercase, separated by a dash.
       * For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
       * 
       *
       * string locale = 16;
       * @param value The bytes for locale to set.
       * @return This builder for chaining.
       */
      public Builder setLocaleBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        locale_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object phoneNumber_ = "";
      /**
       * 
       * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
       * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
       * 
       *
       * string phone_number = 17;
       * @return The phoneNumber.
       */
      public java.lang.String getPhoneNumber() {
        java.lang.Object ref = phoneNumber_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          phoneNumber_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
       * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
       * 
       *
       * string phone_number = 17;
       * @return The bytes for phoneNumber.
       */
      public com.google.protobuf.ByteString
          getPhoneNumberBytes() {
        java.lang.Object ref = phoneNumber_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          phoneNumber_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
       * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
       * 
       *
       * string phone_number = 17;
       * @param value The phoneNumber to set.
       * @return This builder for chaining.
       */
      public Builder setPhoneNumber(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        phoneNumber_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
       * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
       * 
       *
       * string phone_number = 17;
       * @return This builder for chaining.
       */
      public Builder clearPhoneNumber() {
        
        phoneNumber_ = getDefaultInstance().getPhoneNumber();
        onChanged();
        return this;
      }
      /**
       * 
       * End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400.
       * If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
       * 
       *
       * string phone_number = 17;
       * @param value The bytes for phoneNumber to set.
       * @return This builder for chaining.
       */
      public Builder setPhoneNumberBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        phoneNumber_ = value;
        onChanged();
        return this;
      }
      private int subType_ = 0;
      /**
       * 
       * Subject type.
       * 
       *
       * .yandex.cloud.oauth.SubjectType sub_type = 99;
       * @return The enum numeric value on the wire for subType.
       */
      @java.lang.Override public int getSubTypeValue() {
        return subType_;
      }
      /**
       * 
       * Subject type.
       * 
       *
       * .yandex.cloud.oauth.SubjectType sub_type = 99;
       * @param value The enum numeric value on the wire for subType to set.
       * @return This builder for chaining.
       */
      public Builder setSubTypeValue(int value) {
        
        subType_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Subject type.
       * 
       *
       * .yandex.cloud.oauth.SubjectType sub_type = 99;
       * @return The subType.
       */
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.SubjectType getSubType() {
        @SuppressWarnings("deprecation")
        yandex.cloud.api.oauth.v1.Claims.SubjectType result = yandex.cloud.api.oauth.v1.Claims.SubjectType.valueOf(subType_);
        return result == null ? yandex.cloud.api.oauth.v1.Claims.SubjectType.UNRECOGNIZED : result;
      }
      /**
       * 
       * Subject type.
       * 
       *
       * .yandex.cloud.oauth.SubjectType sub_type = 99;
       * @param value The subType to set.
       * @return This builder for chaining.
       */
      public Builder setSubType(yandex.cloud.api.oauth.v1.Claims.SubjectType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        subType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * 
       * Subject type.
       * 
       *
       * .yandex.cloud.oauth.SubjectType sub_type = 99;
       * @return This builder for chaining.
       */
      public Builder clearSubType() {
        
        subType_ = 0;
        onChanged();
        return this;
      }
      private yandex.cloud.api.oauth.v1.Claims.Federation federation_;
      private com.google.protobuf.SingleFieldBuilderV3<
          yandex.cloud.api.oauth.v1.Claims.Federation, yandex.cloud.api.oauth.v1.Claims.Federation.Builder, yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder> federationBuilder_;
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       * @return Whether the federation field is set.
       */
      public boolean hasFederation() {
        return federationBuilder_ != null || federation_ != null;
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       * @return The federation.
       */
      public yandex.cloud.api.oauth.v1.Claims.Federation getFederation() {
        if (federationBuilder_ == null) {
          return federation_ == null ? yandex.cloud.api.oauth.v1.Claims.Federation.getDefaultInstance() : federation_;
        } else {
          return federationBuilder_.getMessage();
        }
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public Builder setFederation(yandex.cloud.api.oauth.v1.Claims.Federation value) {
        if (federationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          federation_ = value;
          onChanged();
        } else {
          federationBuilder_.setMessage(value);
        }
        return this;
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public Builder setFederation(
          yandex.cloud.api.oauth.v1.Claims.Federation.Builder builderForValue) {
        if (federationBuilder_ == null) {
          federation_ = builderForValue.build();
          onChanged();
        } else {
          federationBuilder_.setMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public Builder mergeFederation(yandex.cloud.api.oauth.v1.Claims.Federation value) {
        if (federationBuilder_ == null) {
          if (federation_ != null) {
            federation_ =
              yandex.cloud.api.oauth.v1.Claims.Federation.newBuilder(federation_).mergeFrom(value).buildPartial();
          } else {
            federation_ = value;
          }
          onChanged();
        } else {
          federationBuilder_.mergeFrom(value);
        }
        return this;
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public Builder clearFederation() {
        if (federationBuilder_ == null) {
          federation_ = null;
          onChanged();
        } else {
          federation_ = null;
          federationBuilder_ = null;
        }
        return this;
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public yandex.cloud.api.oauth.v1.Claims.Federation.Builder getFederationBuilder() {
        
        onChanged();
        return getFederationFieldBuilder().getBuilder();
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      public yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder getFederationOrBuilder() {
        if (federationBuilder_ != null) {
          return federationBuilder_.getMessageOrBuilder();
        } else {
          return federation_ == null ?
              yandex.cloud.api.oauth.v1.Claims.Federation.getDefaultInstance() : federation_;
        }
      }
      /**
       * 
       * User federation, non-empty only for federated users.
       * 
       *
       * .yandex.cloud.oauth.Federation federation = 100;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          yandex.cloud.api.oauth.v1.Claims.Federation, yandex.cloud.api.oauth.v1.Claims.Federation.Builder, yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder> 
          getFederationFieldBuilder() {
        if (federationBuilder_ == null) {
          federationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              yandex.cloud.api.oauth.v1.Claims.Federation, yandex.cloud.api.oauth.v1.Claims.Federation.Builder, yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder>(
                  getFederation(),
                  getParentForChildren(),
                  isClean());
          federation_ = null;
        }
        return federationBuilder_;
      }
      @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:yandex.cloud.oauth.SubjectClaims)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.oauth.SubjectClaims)
    private static final yandex.cloud.api.oauth.v1.Claims.SubjectClaims DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.oauth.v1.Claims.SubjectClaims();
    }
    public static yandex.cloud.api.oauth.v1.Claims.SubjectClaims getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public SubjectClaims parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new SubjectClaims(input, extensionRegistry);
      }
    };
    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }
    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }
    @java.lang.Override
    public yandex.cloud.api.oauth.v1.Claims.SubjectClaims getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  public interface FederationOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.oauth.Federation)
      com.google.protobuf.MessageOrBuilder {
    /**
     * 
     * ID of the federation.
     * 
     *
     * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The id.
     */
    java.lang.String getId();
    /**
     * 
     * ID of the federation.
     * 
     *
     * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();
    /**
     * 
     * Name of the federation. The name is unique within the cloud or organization
     * 
     *
     * string name = 3;
     * @return The name.
     */
    java.lang.String getName();
    /**
     * 
     * Name of the federation. The name is unique within the cloud or organization
     * 
     *
     * string name = 3;
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
  }
  /**
   * 
   * Minimalistic analog of yandex.cloud.organizationmanager.v1.saml.Federation
   * 
   *
   * Protobuf type {@code yandex.cloud.oauth.Federation}
   */
  public static final class Federation extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.oauth.Federation)
      FederationOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use Federation.newBuilder() to construct.
    private Federation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
      super(builder);
    }
    private Federation() {
      id_ = "";
      name_ = "";
    }
    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new Federation();
    }
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private Federation(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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();
              id_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              name_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_Federation_descriptor;
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_Federation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.oauth.v1.Claims.Federation.class, yandex.cloud.api.oauth.v1.Claims.Federation.Builder.class);
    }
    public static final int ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object id_;
    /**
     * 
     * ID of the federation.
     * 
     *
     * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      java.lang.Object ref = id_;
      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();
        id_ = s;
        return s;
      }
    }
    /**
     * 
     * ID of the federation.
     * 
     *
     * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      java.lang.Object ref = id_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        id_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    public static final int NAME_FIELD_NUMBER = 3;
    private volatile java.lang.Object name_;
    /**
     * 
     * Name of the federation. The name is unique within the cloud or organization
     * 
     *
     * string name = 3;
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * 
     * Name of the federation. The name is unique within the cloud or organization
     * 
     *
     * string name = 3;
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = 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(id_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
      }
      unknownFields.writeTo(output);
    }
    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;
      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
      }
      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 yandex.cloud.api.oauth.v1.Claims.Federation)) {
        return super.equals(obj);
      }
      yandex.cloud.api.oauth.v1.Claims.Federation other = (yandex.cloud.api.oauth.v1.Claims.Federation) obj;
      if (!getId()
          .equals(other.getId())) return false;
      if (!getName()
          .equals(other.getName())) 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) + ID_FIELD_NUMBER;
      hash = (53 * hash) + getId().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation 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 yandex.cloud.api.oauth.v1.Claims.Federation parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation 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 yandex.cloud.api.oauth.v1.Claims.Federation parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation 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(yandex.cloud.api.oauth.v1.Claims.Federation 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;
    }
    /**
     * 
     * Minimalistic analog of yandex.cloud.organizationmanager.v1.saml.Federation
     * 
     *
     * Protobuf type {@code yandex.cloud.oauth.Federation}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.oauth.Federation)
        yandex.cloud.api.oauth.v1.Claims.FederationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_Federation_descriptor;
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_Federation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.oauth.v1.Claims.Federation.class, yandex.cloud.api.oauth.v1.Claims.Federation.Builder.class);
      }
      // Construct using yandex.cloud.api.oauth.v1.Claims.Federation.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();
        id_ = "";
        name_ = "";
        return this;
      }
      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.oauth.v1.Claims.internal_static_yandex_cloud_oauth_Federation_descriptor;
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.Federation getDefaultInstanceForType() {
        return yandex.cloud.api.oauth.v1.Claims.Federation.getDefaultInstance();
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.Federation build() {
        yandex.cloud.api.oauth.v1.Claims.Federation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      @java.lang.Override
      public yandex.cloud.api.oauth.v1.Claims.Federation buildPartial() {
        yandex.cloud.api.oauth.v1.Claims.Federation result = new yandex.cloud.api.oauth.v1.Claims.Federation(this);
        result.id_ = id_;
        result.name_ = name_;
        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 yandex.cloud.api.oauth.v1.Claims.Federation) {
          return mergeFrom((yandex.cloud.api.oauth.v1.Claims.Federation)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      public Builder mergeFrom(yandex.cloud.api.oauth.v1.Claims.Federation other) {
        if (other == yandex.cloud.api.oauth.v1.Claims.Federation.getDefaultInstance()) return this;
        if (!other.getId().isEmpty()) {
          id_ = other.id_;
          onChanged();
        }
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }
      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        yandex.cloud.api.oauth.v1.Claims.Federation parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.oauth.v1.Claims.Federation) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private java.lang.Object id_ = "";
      /**
       * 
       * ID of the federation.
       * 
       *
       * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return The id.
       */
      public java.lang.String getId() {
        java.lang.Object ref = id_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          id_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * ID of the federation.
       * 
       *
       * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return The bytes for id.
       */
      public com.google.protobuf.ByteString
          getIdBytes() {
        java.lang.Object ref = id_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          id_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * ID of the federation.
       * 
       *
       * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        id_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the federation.
       * 
       *
       * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @return This builder for chaining.
       */
      public Builder clearId() {
        
        id_ = getDefaultInstance().getId();
        onChanged();
        return this;
      }
      /**
       * 
       * ID of the federation.
       * 
       *
       * string id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"];
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        id_ = value;
        onChanged();
        return this;
      }
      private java.lang.Object name_ = "";
      /**
       * 
       * Name of the federation. The name is unique within the cloud or organization
       * 
       *
       * string name = 3;
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * 
       * Name of the federation. The name is unique within the cloud or organization
       * 
       *
       * string name = 3;
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * 
       * Name of the federation. The name is unique within the cloud or organization
       * 
       *
       * string name = 3;
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * 
       * Name of the federation. The name is unique within the cloud or organization
       * 
       *
       * string name = 3;
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * 
       * Name of the federation. The name is unique within the cloud or organization
       * 
       *
       * string name = 3;
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }
      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }
      // @@protoc_insertion_point(builder_scope:yandex.cloud.oauth.Federation)
    }
    // @@protoc_insertion_point(class_scope:yandex.cloud.oauth.Federation)
    private static final yandex.cloud.api.oauth.v1.Claims.Federation DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.oauth.v1.Claims.Federation();
    }
    public static yandex.cloud.api.oauth.v1.Claims.Federation getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }
    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public Federation parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Federation(input, extensionRegistry);
      }
    };
    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }
    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }
    @java.lang.Override
    public yandex.cloud.api.oauth.v1.Claims.Federation getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_oauth_SubjectClaims_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_oauth_SubjectClaims_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_oauth_Federation_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_oauth_Federation_fieldAccessorTable;
  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\037yandex/cloud/oauth/claims.proto\022\022yande" +
      "x.cloud.oauth\032\035yandex/cloud/validation.p" +
      "roto\"\274\002\n\rSubjectClaims\022\031\n\003sub\030\001 \001(\tB\014\350\3071" +
      "\001\212\3101\004<=50\022\014\n\004name\030\002 \001(\t\022\022\n\ngiven_name\030\003 " +
      "\001(\t\022\023\n\013family_name\030\004 \001(\t\022\032\n\022preferred_us" +
      "ername\030\007 \001(\t\022\017\n\007picture\030\t \001(\t\022\r\n\005email\030\013" +
      " \001(\t\022\020\n\010zoneinfo\030\017 \001(\t\022\016\n\006locale\030\020 \001(\t\022\024" +
      "\n\014phone_number\030\021 \001(\t\0221\n\010sub_type\030c \001(\0162\037" +
      ".yandex.cloud.oauth.SubjectType\0222\n\nfeder" +
      "ation\030d \001(\0132\036.yandex.cloud.oauth.Federat" +
      "ion\"4\n\nFederation\022\030\n\002id\030\001 \001(\tB\014\350\3071\001\212\3101\004<" +
      "=50\022\014\n\004name\030\003 \001(\t*j\n\013SubjectType\022\034\n\030SUBJ" +
      "ECT_TYPE_UNSPECIFIED\020\000\022\020\n\014USER_ACCOUNT\020\001" +
      "\022\023\n\017SERVICE_ACCOUNT\020\002\022\t\n\005GROUP\020\003\022\013\n\007INVI" +
      "TEE\020\004BY\n\031yandex.cloud.api.oauth.v1Z                © 2015 - 2025 Weber Informatics LLC | Privacy Policy