All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clarifai.grpc.api.User Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/clarifai/api/resources.proto

package com.clarifai.grpc.api;

/**
 * 
 * User
 * 
* * Protobuf type {@code clarifai.api.User} */ public final class User extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:clarifai.api.User) UserOrBuilder { private static final long serialVersionUID = 0L; // Use User.newBuilder() to construct. private User(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private User() { id_ = ""; primaryEmail_ = ""; firstName_ = ""; lastName_ = ""; companyName_ = ""; jobTitle_ = ""; jobRole_ = ""; intention_ = ""; referralSource_ = ""; billType_ = ""; emailAddresses_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new User(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private User( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); primaryEmail_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); firstName_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); lastName_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); companyName_ = s; break; } case 50: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (createdAt_ != null) { subBuilder = createdAt_.toBuilder(); } createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(createdAt_); createdAt_ = subBuilder.buildPartial(); } break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); billType_ = s; break; } case 66: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (dateGdprConsent_ != null) { subBuilder = dateGdprConsent_.toBuilder(); } dateGdprConsent_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dateGdprConsent_); dateGdprConsent_ = subBuilder.buildPartial(); } break; } case 74: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (dateTosConsent_ != null) { subBuilder = dateTosConsent_.toBuilder(); } dateTosConsent_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dateTosConsent_); dateTosConsent_ = subBuilder.buildPartial(); } break; } case 82: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (dateMarketingConsent_ != null) { subBuilder = dateMarketingConsent_.toBuilder(); } dateMarketingConsent_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(dateMarketingConsent_); dateMarketingConsent_ = subBuilder.buildPartial(); } break; } case 90: { com.google.protobuf.Struct.Builder subBuilder = null; if (metadata_ != null) { subBuilder = metadata_.toBuilder(); } metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); } break; } case 98: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { emailAddresses_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } emailAddresses_.add( input.readMessage(com.clarifai.grpc.api.EmailAddress.parser(), extensionRegistry)); break; } case 120: { twoFactorAuthEnabled_ = input.readBool(); break; } case 128: { teamsCount_ = input.readUInt32(); break; } case 138: { com.clarifai.grpc.api.Visibility.Builder subBuilder = null; if (visibility_ != null) { subBuilder = visibility_.toBuilder(); } visibility_ = input.readMessage(com.clarifai.grpc.api.Visibility.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(visibility_); visibility_ = subBuilder.buildPartial(); } break; } case 146: { com.clarifai.grpc.api.UserDetail.Builder subBuilder = null; if (userDetail_ != null) { subBuilder = userDetail_.toBuilder(); } userDetail_ = input.readMessage(com.clarifai.grpc.api.UserDetail.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(userDetail_); userDetail_ = subBuilder.buildPartial(); } break; } case 154: { java.lang.String s = input.readStringRequireUtf8(); jobTitle_ = s; break; } case 162: { java.lang.String s = input.readStringRequireUtf8(); jobRole_ = s; break; } case 168: { isStarred_ = input.readBool(); break; } case 176: { starCount_ = input.readInt32(); break; } case 186: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (datePiiConsent_ != null) { subBuilder = datePiiConsent_.toBuilder(); } datePiiConsent_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(datePiiConsent_); datePiiConsent_ = subBuilder.buildPartial(); } break; } case 194: { java.lang.String s = input.readStringRequireUtf8(); intention_ = s; break; } case 202: { java.lang.String s = input.readStringRequireUtf8(); referralSource_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_User_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.User.class, com.clarifai.grpc.api.User.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** * string id = 1; * @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; } } /** * string id = 1; * @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 PRIMARY_EMAIL_FIELD_NUMBER = 2; private volatile java.lang.Object primaryEmail_; /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @return The primaryEmail. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getPrimaryEmail() { java.lang.Object ref = primaryEmail_; 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(); primaryEmail_ = s; return s; } } /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @return The bytes for primaryEmail. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getPrimaryEmailBytes() { java.lang.Object ref = primaryEmail_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); primaryEmail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FIRST_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object firstName_; /** * string first_name = 3; * @return The firstName. */ @java.lang.Override public java.lang.String getFirstName() { java.lang.Object ref = firstName_; 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(); firstName_ = s; return s; } } /** * string first_name = 3; * @return The bytes for firstName. */ @java.lang.Override public com.google.protobuf.ByteString getFirstNameBytes() { java.lang.Object ref = firstName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); firstName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LAST_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object lastName_; /** * string last_name = 4; * @return The lastName. */ @java.lang.Override public java.lang.String getLastName() { java.lang.Object ref = lastName_; 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(); lastName_ = s; return s; } } /** * string last_name = 4; * @return The bytes for lastName. */ @java.lang.Override public com.google.protobuf.ByteString getLastNameBytes() { java.lang.Object ref = lastName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COMPANY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object companyName_; /** * string company_name = 5; * @return The companyName. */ @java.lang.Override public java.lang.String getCompanyName() { java.lang.Object ref = companyName_; 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(); companyName_ = s; return s; } } /** * string company_name = 5; * @return The bytes for companyName. */ @java.lang.Override public com.google.protobuf.ByteString getCompanyNameBytes() { java.lang.Object ref = companyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); companyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JOB_TITLE_FIELD_NUMBER = 19; private volatile java.lang.Object jobTitle_; /** * string job_title = 19; * @return The jobTitle. */ @java.lang.Override public java.lang.String getJobTitle() { java.lang.Object ref = jobTitle_; 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(); jobTitle_ = s; return s; } } /** * string job_title = 19; * @return The bytes for jobTitle. */ @java.lang.Override public com.google.protobuf.ByteString getJobTitleBytes() { java.lang.Object ref = jobTitle_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int JOB_ROLE_FIELD_NUMBER = 20; private volatile java.lang.Object jobRole_; /** * string job_role = 20; * @return The jobRole. */ @java.lang.Override public java.lang.String getJobRole() { java.lang.Object ref = jobRole_; 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(); jobRole_ = s; return s; } } /** * string job_role = 20; * @return The bytes for jobRole. */ @java.lang.Override public com.google.protobuf.ByteString getJobRoleBytes() { java.lang.Object ref = jobRole_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobRole_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int INTENTION_FIELD_NUMBER = 24; private volatile java.lang.Object intention_; /** *
   * This specifies user intent when registering on clarifai
   * 
* * string intention = 24; * @return The intention. */ @java.lang.Override public java.lang.String getIntention() { java.lang.Object ref = intention_; 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(); intention_ = s; return s; } } /** *
   * This specifies user intent when registering on clarifai
   * 
* * string intention = 24; * @return The bytes for intention. */ @java.lang.Override public com.google.protobuf.ByteString getIntentionBytes() { java.lang.Object ref = intention_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); intention_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REFERRAL_SOURCE_FIELD_NUMBER = 25; private volatile java.lang.Object referralSource_; /** *
   * This specifies how one got to know about clarifai
   * 
* * string referral_source = 25; * @return The referralSource. */ @java.lang.Override public java.lang.String getReferralSource() { java.lang.Object ref = referralSource_; 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(); referralSource_ = s; return s; } } /** *
   * This specifies how one got to know about clarifai
   * 
* * string referral_source = 25; * @return The bytes for referralSource. */ @java.lang.Override public com.google.protobuf.ByteString getReferralSourceBytes() { java.lang.Object ref = referralSource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); referralSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int BILL_TYPE_FIELD_NUMBER = 7; private volatile java.lang.Object billType_; /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @return The billType. */ @java.lang.Override @java.lang.Deprecated public java.lang.String getBillType() { java.lang.Object ref = billType_; 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(); billType_ = s; return s; } } /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @return The bytes for billType. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.ByteString getBillTypeBytes() { java.lang.Object ref = billType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CREATED_AT_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createdAt_; /** *
   * When the user was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ @java.lang.Override public boolean hasCreatedAt() { return createdAt_ != null; } /** *
   * When the user was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ @java.lang.Override public com.google.protobuf.Timestamp getCreatedAt() { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } /** *
   * When the user was created. We follow the XXXX timestamp
   * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
   * "2006-01-02T15:04:05.999999Z" so you can expect results like
   * the following from the API:
   * "2017-04-11T21:50:50.223962Z"
   * 
* * .google.protobuf.Timestamp created_at = 6; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { return getCreatedAt(); } public static final int DATE_GDPR_CONSENT_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp dateGdprConsent_; /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; * @deprecated clarifai.api.User.date_gdpr_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2591 * @return Whether the dateGdprConsent field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDateGdprConsent() { return dateGdprConsent_ != null; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; * @deprecated clarifai.api.User.date_gdpr_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2591 * @return The dateGdprConsent. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Timestamp getDateGdprConsent() { return dateGdprConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateGdprConsent_; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateGdprConsentOrBuilder() { return getDateGdprConsent(); } public static final int DATE_TOS_CONSENT_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp dateTosConsent_; /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; * @deprecated clarifai.api.User.date_tos_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2592 * @return Whether the dateTosConsent field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDateTosConsent() { return dateTosConsent_ != null; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; * @deprecated clarifai.api.User.date_tos_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2592 * @return The dateTosConsent. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Timestamp getDateTosConsent() { return dateTosConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateTosConsent_; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateTosConsentOrBuilder() { return getDateTosConsent(); } public static final int DATE_MARKETING_CONSENT_FIELD_NUMBER = 10; private com.google.protobuf.Timestamp dateMarketingConsent_; /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; * @deprecated clarifai.api.User.date_marketing_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2593 * @return Whether the dateMarketingConsent field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDateMarketingConsent() { return dateMarketingConsent_ != null; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; * @deprecated clarifai.api.User.date_marketing_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2593 * @return The dateMarketingConsent. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Timestamp getDateMarketingConsent() { return dateMarketingConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateMarketingConsent_; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateMarketingConsentOrBuilder() { return getDateMarketingConsent(); } public static final int DATE_PII_CONSENT_FIELD_NUMBER = 23; private com.google.protobuf.Timestamp datePiiConsent_; /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; * @deprecated clarifai.api.User.date_pii_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2594 * @return Whether the datePiiConsent field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasDatePiiConsent() { return datePiiConsent_ != null; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; * @deprecated clarifai.api.User.date_pii_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2594 * @return The datePiiConsent. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Timestamp getDatePiiConsent() { return datePiiConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : datePiiConsent_; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDatePiiConsentOrBuilder() { return getDatePiiConsent(); } public static final int METADATA_FIELD_NUMBER = 11; private com.google.protobuf.Struct metadata_; /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; * @deprecated clarifai.api.User.metadata is deprecated. * See proto/clarifai/api/resources.proto;l=2598 * @return Whether the metadata field is set. */ @java.lang.Override @java.lang.Deprecated public boolean hasMetadata() { return metadata_ != null; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; * @deprecated clarifai.api.User.metadata is deprecated. * See proto/clarifai/api/resources.proto;l=2598 * @return The metadata. */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.Struct getMetadata() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } /** *
   * To handle arbitrary json metadata you can use a struct field:
   * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
   * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 12; private java.util.List emailAddresses_; /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getEmailAddressesList() { return emailAddresses_; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getEmailAddressesOrBuilderList() { return emailAddresses_; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public int getEmailAddressesCount() { return emailAddresses_.size(); } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddress getEmailAddresses(int index) { return emailAddresses_.get(index); } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddressOrBuilder getEmailAddressesOrBuilder( int index) { return emailAddresses_.get(index); } public static final int TWO_FACTOR_AUTH_ENABLED_FIELD_NUMBER = 15; private boolean twoFactorAuthEnabled_; /** * bool two_factor_auth_enabled = 15 [deprecated = true]; * @deprecated clarifai.api.User.two_factor_auth_enabled is deprecated. * See proto/clarifai/api/resources.proto;l=2601 * @return The twoFactorAuthEnabled. */ @java.lang.Override @java.lang.Deprecated public boolean getTwoFactorAuthEnabled() { return twoFactorAuthEnabled_; } public static final int TEAMS_COUNT_FIELD_NUMBER = 16; private int teamsCount_; /** * uint32 teams_count = 16 [deprecated = true]; * @deprecated clarifai.api.User.teams_count is deprecated. * See proto/clarifai/api/resources.proto;l=2602 * @return The teamsCount. */ @java.lang.Override @java.lang.Deprecated public int getTeamsCount() { return teamsCount_; } public static final int IS_STARRED_FIELD_NUMBER = 21; private boolean isStarred_; /** *
   * Is starred by the requesting user (only showed on get/list requests)
   * Please use PostUserStars/DeleteUserStars endpoints to star/unstar an user
   * 
* * bool is_starred = 21; * @return The isStarred. */ @java.lang.Override public boolean getIsStarred() { return isStarred_; } public static final int STAR_COUNT_FIELD_NUMBER = 22; private int starCount_; /** *
   * How many users have starred the user (only showed on get/list requests)
   * Computed value, not editable
   * 
* * int32 star_count = 22; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } public static final int VISIBILITY_FIELD_NUMBER = 17; private com.clarifai.grpc.api.Visibility visibility_; /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 17; * @return Whether the visibility field is set. */ @java.lang.Override public boolean hasVisibility() { return visibility_ != null; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 17; * @return The visibility. */ @java.lang.Override public com.clarifai.grpc.api.Visibility getVisibility() { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } /** *
   * The visibility field represents whether this message is privately/publicly visible.
   * To be visible to the public the App that contains it AND the User that contains the App must
   * also be publicly visible.
   * 
* * .clarifai.api.Visibility visibility = 17; */ @java.lang.Override public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { return getVisibility(); } public static final int USER_DETAIL_FIELD_NUMBER = 18; private com.clarifai.grpc.api.UserDetail userDetail_; /** *
   * This is all the personal information of a user. GetUser/ListUsers will not return this
   * information unless the caller has the UserAccounts_Get scope on their key or is the user
   * themselves.
   * 
* * .clarifai.api.UserDetail user_detail = 18; * @return Whether the userDetail field is set. */ @java.lang.Override public boolean hasUserDetail() { return userDetail_ != null; } /** *
   * This is all the personal information of a user. GetUser/ListUsers will not return this
   * information unless the caller has the UserAccounts_Get scope on their key or is the user
   * themselves.
   * 
* * .clarifai.api.UserDetail user_detail = 18; * @return The userDetail. */ @java.lang.Override public com.clarifai.grpc.api.UserDetail getUserDetail() { return userDetail_ == null ? com.clarifai.grpc.api.UserDetail.getDefaultInstance() : userDetail_; } /** *
   * This is all the personal information of a user. GetUser/ListUsers will not return this
   * information unless the caller has the UserAccounts_Get scope on their key or is the user
   * themselves.
   * 
* * .clarifai.api.UserDetail user_detail = 18; */ @java.lang.Override public com.clarifai.grpc.api.UserDetailOrBuilder getUserDetailOrBuilder() { return getUserDetail(); } 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(primaryEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, primaryEmail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firstName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, lastName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(companyName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, companyName_); } if (createdAt_ != null) { output.writeMessage(6, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billType_); } if (dateGdprConsent_ != null) { output.writeMessage(8, getDateGdprConsent()); } if (dateTosConsent_ != null) { output.writeMessage(9, getDateTosConsent()); } if (dateMarketingConsent_ != null) { output.writeMessage(10, getDateMarketingConsent()); } if (metadata_ != null) { output.writeMessage(11, getMetadata()); } for (int i = 0; i < emailAddresses_.size(); i++) { output.writeMessage(12, emailAddresses_.get(i)); } if (twoFactorAuthEnabled_ != false) { output.writeBool(15, twoFactorAuthEnabled_); } if (teamsCount_ != 0) { output.writeUInt32(16, teamsCount_); } if (visibility_ != null) { output.writeMessage(17, getVisibility()); } if (userDetail_ != null) { output.writeMessage(18, getUserDetail()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, jobTitle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobRole_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, jobRole_); } if (isStarred_ != false) { output.writeBool(21, isStarred_); } if (starCount_ != 0) { output.writeInt32(22, starCount_); } if (datePiiConsent_ != null) { output.writeMessage(23, getDatePiiConsent()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intention_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 24, intention_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referralSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 25, referralSource_); } 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(primaryEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, primaryEmail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firstName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firstName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(lastName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, lastName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(companyName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, companyName_); } if (createdAt_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getCreatedAt()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billType_); } if (dateGdprConsent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getDateGdprConsent()); } if (dateTosConsent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getDateTosConsent()); } if (dateMarketingConsent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getDateMarketingConsent()); } if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getMetadata()); } for (int i = 0; i < emailAddresses_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, emailAddresses_.get(i)); } if (twoFactorAuthEnabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, twoFactorAuthEnabled_); } if (teamsCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(16, teamsCount_); } if (visibility_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getVisibility()); } if (userDetail_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getUserDetail()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobTitle_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, jobTitle_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobRole_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, jobRole_); } if (isStarred_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, isStarred_); } if (starCount_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(22, starCount_); } if (datePiiConsent_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, getDatePiiConsent()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intention_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(24, intention_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(referralSource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(25, referralSource_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.clarifai.grpc.api.User)) { return super.equals(obj); } com.clarifai.grpc.api.User other = (com.clarifai.grpc.api.User) obj; if (!getId() .equals(other.getId())) return false; if (!getPrimaryEmail() .equals(other.getPrimaryEmail())) return false; if (!getFirstName() .equals(other.getFirstName())) return false; if (!getLastName() .equals(other.getLastName())) return false; if (!getCompanyName() .equals(other.getCompanyName())) return false; if (!getJobTitle() .equals(other.getJobTitle())) return false; if (!getJobRole() .equals(other.getJobRole())) return false; if (!getIntention() .equals(other.getIntention())) return false; if (!getReferralSource() .equals(other.getReferralSource())) return false; if (!getBillType() .equals(other.getBillType())) return false; if (hasCreatedAt() != other.hasCreatedAt()) return false; if (hasCreatedAt()) { if (!getCreatedAt() .equals(other.getCreatedAt())) return false; } if (hasDateGdprConsent() != other.hasDateGdprConsent()) return false; if (hasDateGdprConsent()) { if (!getDateGdprConsent() .equals(other.getDateGdprConsent())) return false; } if (hasDateTosConsent() != other.hasDateTosConsent()) return false; if (hasDateTosConsent()) { if (!getDateTosConsent() .equals(other.getDateTosConsent())) return false; } if (hasDateMarketingConsent() != other.hasDateMarketingConsent()) return false; if (hasDateMarketingConsent()) { if (!getDateMarketingConsent() .equals(other.getDateMarketingConsent())) return false; } if (hasDatePiiConsent() != other.hasDatePiiConsent()) return false; if (hasDatePiiConsent()) { if (!getDatePiiConsent() .equals(other.getDatePiiConsent())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata() .equals(other.getMetadata())) return false; } if (!getEmailAddressesList() .equals(other.getEmailAddressesList())) return false; if (getTwoFactorAuthEnabled() != other.getTwoFactorAuthEnabled()) return false; if (getTeamsCount() != other.getTeamsCount()) return false; if (getIsStarred() != other.getIsStarred()) return false; if (getStarCount() != other.getStarCount()) return false; if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (hasUserDetail() != other.hasUserDetail()) return false; if (hasUserDetail()) { if (!getUserDetail() .equals(other.getUserDetail())) 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) + PRIMARY_EMAIL_FIELD_NUMBER; hash = (53 * hash) + getPrimaryEmail().hashCode(); hash = (37 * hash) + FIRST_NAME_FIELD_NUMBER; hash = (53 * hash) + getFirstName().hashCode(); hash = (37 * hash) + LAST_NAME_FIELD_NUMBER; hash = (53 * hash) + getLastName().hashCode(); hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; hash = (53 * hash) + getCompanyName().hashCode(); hash = (37 * hash) + JOB_TITLE_FIELD_NUMBER; hash = (53 * hash) + getJobTitle().hashCode(); hash = (37 * hash) + JOB_ROLE_FIELD_NUMBER; hash = (53 * hash) + getJobRole().hashCode(); hash = (37 * hash) + INTENTION_FIELD_NUMBER; hash = (53 * hash) + getIntention().hashCode(); hash = (37 * hash) + REFERRAL_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getReferralSource().hashCode(); hash = (37 * hash) + BILL_TYPE_FIELD_NUMBER; hash = (53 * hash) + getBillType().hashCode(); if (hasCreatedAt()) { hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; hash = (53 * hash) + getCreatedAt().hashCode(); } if (hasDateGdprConsent()) { hash = (37 * hash) + DATE_GDPR_CONSENT_FIELD_NUMBER; hash = (53 * hash) + getDateGdprConsent().hashCode(); } if (hasDateTosConsent()) { hash = (37 * hash) + DATE_TOS_CONSENT_FIELD_NUMBER; hash = (53 * hash) + getDateTosConsent().hashCode(); } if (hasDateMarketingConsent()) { hash = (37 * hash) + DATE_MARKETING_CONSENT_FIELD_NUMBER; hash = (53 * hash) + getDateMarketingConsent().hashCode(); } if (hasDatePiiConsent()) { hash = (37 * hash) + DATE_PII_CONSENT_FIELD_NUMBER; hash = (53 * hash) + getDatePiiConsent().hashCode(); } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } if (getEmailAddressesCount() > 0) { hash = (37 * hash) + EMAIL_ADDRESSES_FIELD_NUMBER; hash = (53 * hash) + getEmailAddressesList().hashCode(); } hash = (37 * hash) + TWO_FACTOR_AUTH_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTwoFactorAuthEnabled()); hash = (37 * hash) + TEAMS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getTeamsCount(); hash = (37 * hash) + IS_STARRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsStarred()); hash = (37 * hash) + STAR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getStarCount(); if (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } if (hasUserDetail()) { hash = (37 * hash) + USER_DETAIL_FIELD_NUMBER; hash = (53 * hash) + getUserDetail().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.clarifai.grpc.api.User parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.User parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.User parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.User parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.User parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.clarifai.grpc.api.User parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.clarifai.grpc.api.User parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.User parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.User parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.clarifai.grpc.api.User parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.clarifai.grpc.api.User parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.clarifai.grpc.api.User parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.clarifai.grpc.api.User 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; } /** *
   * User
   * 
* * Protobuf type {@code clarifai.api.User} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:clarifai.api.User) com.clarifai.grpc.api.UserOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_User_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_User_fieldAccessorTable .ensureFieldAccessorsInitialized( com.clarifai.grpc.api.User.class, com.clarifai.grpc.api.User.Builder.class); } // Construct using com.clarifai.grpc.api.User.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEmailAddressesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; primaryEmail_ = ""; firstName_ = ""; lastName_ = ""; companyName_ = ""; jobTitle_ = ""; jobRole_ = ""; intention_ = ""; referralSource_ = ""; billType_ = ""; if (createdAtBuilder_ == null) { createdAt_ = null; } else { createdAt_ = null; createdAtBuilder_ = null; } if (dateGdprConsentBuilder_ == null) { dateGdprConsent_ = null; } else { dateGdprConsent_ = null; dateGdprConsentBuilder_ = null; } if (dateTosConsentBuilder_ == null) { dateTosConsent_ = null; } else { dateTosConsent_ = null; dateTosConsentBuilder_ = null; } if (dateMarketingConsentBuilder_ == null) { dateMarketingConsent_ = null; } else { dateMarketingConsent_ = null; dateMarketingConsentBuilder_ = null; } if (datePiiConsentBuilder_ == null) { datePiiConsent_ = null; } else { datePiiConsent_ = null; datePiiConsentBuilder_ = null; } if (metadataBuilder_ == null) { metadata_ = null; } else { metadata_ = null; metadataBuilder_ = null; } if (emailAddressesBuilder_ == null) { emailAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { emailAddressesBuilder_.clear(); } twoFactorAuthEnabled_ = false; teamsCount_ = 0; isStarred_ = false; starCount_ = 0; if (visibilityBuilder_ == null) { visibility_ = null; } else { visibility_ = null; visibilityBuilder_ = null; } if (userDetailBuilder_ == null) { userDetail_ = null; } else { userDetail_ = null; userDetailBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_User_descriptor; } @java.lang.Override public com.clarifai.grpc.api.User getDefaultInstanceForType() { return com.clarifai.grpc.api.User.getDefaultInstance(); } @java.lang.Override public com.clarifai.grpc.api.User build() { com.clarifai.grpc.api.User result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.clarifai.grpc.api.User buildPartial() { com.clarifai.grpc.api.User result = new com.clarifai.grpc.api.User(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.primaryEmail_ = primaryEmail_; result.firstName_ = firstName_; result.lastName_ = lastName_; result.companyName_ = companyName_; result.jobTitle_ = jobTitle_; result.jobRole_ = jobRole_; result.intention_ = intention_; result.referralSource_ = referralSource_; result.billType_ = billType_; if (createdAtBuilder_ == null) { result.createdAt_ = createdAt_; } else { result.createdAt_ = createdAtBuilder_.build(); } if (dateGdprConsentBuilder_ == null) { result.dateGdprConsent_ = dateGdprConsent_; } else { result.dateGdprConsent_ = dateGdprConsentBuilder_.build(); } if (dateTosConsentBuilder_ == null) { result.dateTosConsent_ = dateTosConsent_; } else { result.dateTosConsent_ = dateTosConsentBuilder_.build(); } if (dateMarketingConsentBuilder_ == null) { result.dateMarketingConsent_ = dateMarketingConsent_; } else { result.dateMarketingConsent_ = dateMarketingConsentBuilder_.build(); } if (datePiiConsentBuilder_ == null) { result.datePiiConsent_ = datePiiConsent_; } else { result.datePiiConsent_ = datePiiConsentBuilder_.build(); } if (metadataBuilder_ == null) { result.metadata_ = metadata_; } else { result.metadata_ = metadataBuilder_.build(); } if (emailAddressesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { emailAddresses_ = java.util.Collections.unmodifiableList(emailAddresses_); bitField0_ = (bitField0_ & ~0x00000001); } result.emailAddresses_ = emailAddresses_; } else { result.emailAddresses_ = emailAddressesBuilder_.build(); } result.twoFactorAuthEnabled_ = twoFactorAuthEnabled_; result.teamsCount_ = teamsCount_; result.isStarred_ = isStarred_; result.starCount_ = starCount_; if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } if (userDetailBuilder_ == null) { result.userDetail_ = userDetail_; } else { result.userDetail_ = userDetailBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.clarifai.grpc.api.User) { return mergeFrom((com.clarifai.grpc.api.User)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.clarifai.grpc.api.User other) { if (other == com.clarifai.grpc.api.User.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getPrimaryEmail().isEmpty()) { primaryEmail_ = other.primaryEmail_; onChanged(); } if (!other.getFirstName().isEmpty()) { firstName_ = other.firstName_; onChanged(); } if (!other.getLastName().isEmpty()) { lastName_ = other.lastName_; onChanged(); } if (!other.getCompanyName().isEmpty()) { companyName_ = other.companyName_; onChanged(); } if (!other.getJobTitle().isEmpty()) { jobTitle_ = other.jobTitle_; onChanged(); } if (!other.getJobRole().isEmpty()) { jobRole_ = other.jobRole_; onChanged(); } if (!other.getIntention().isEmpty()) { intention_ = other.intention_; onChanged(); } if (!other.getReferralSource().isEmpty()) { referralSource_ = other.referralSource_; onChanged(); } if (!other.getBillType().isEmpty()) { billType_ = other.billType_; onChanged(); } if (other.hasCreatedAt()) { mergeCreatedAt(other.getCreatedAt()); } if (other.hasDateGdprConsent()) { mergeDateGdprConsent(other.getDateGdprConsent()); } if (other.hasDateTosConsent()) { mergeDateTosConsent(other.getDateTosConsent()); } if (other.hasDateMarketingConsent()) { mergeDateMarketingConsent(other.getDateMarketingConsent()); } if (other.hasDatePiiConsent()) { mergeDatePiiConsent(other.getDatePiiConsent()); } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } if (emailAddressesBuilder_ == null) { if (!other.emailAddresses_.isEmpty()) { if (emailAddresses_.isEmpty()) { emailAddresses_ = other.emailAddresses_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEmailAddressesIsMutable(); emailAddresses_.addAll(other.emailAddresses_); } onChanged(); } } else { if (!other.emailAddresses_.isEmpty()) { if (emailAddressesBuilder_.isEmpty()) { emailAddressesBuilder_.dispose(); emailAddressesBuilder_ = null; emailAddresses_ = other.emailAddresses_; bitField0_ = (bitField0_ & ~0x00000001); emailAddressesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEmailAddressesFieldBuilder() : null; } else { emailAddressesBuilder_.addAllMessages(other.emailAddresses_); } } } if (other.getTwoFactorAuthEnabled() != false) { setTwoFactorAuthEnabled(other.getTwoFactorAuthEnabled()); } if (other.getTeamsCount() != 0) { setTeamsCount(other.getTeamsCount()); } if (other.getIsStarred() != false) { setIsStarred(other.getIsStarred()); } if (other.getStarCount() != 0) { setStarCount(other.getStarCount()); } if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (other.hasUserDetail()) { mergeUserDetail(other.getUserDetail()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.clarifai.grpc.api.User parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.clarifai.grpc.api.User) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** * string id = 1; * @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; } } /** * string id = 1; * @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; } } /** * string id = 1; * @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; } /** * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** * string id = 1; * @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 primaryEmail_ = ""; /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @return The primaryEmail. */ @java.lang.Deprecated public java.lang.String getPrimaryEmail() { java.lang.Object ref = primaryEmail_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); primaryEmail_ = s; return s; } else { return (java.lang.String) ref; } } /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @return The bytes for primaryEmail. */ @java.lang.Deprecated public com.google.protobuf.ByteString getPrimaryEmailBytes() { java.lang.Object ref = primaryEmail_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); primaryEmail_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @param value The primaryEmail to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPrimaryEmail( java.lang.String value) { if (value == null) { throw new NullPointerException(); } primaryEmail_ = value; onChanged(); return this; } /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPrimaryEmail() { primaryEmail_ = getDefaultInstance().getPrimaryEmail(); onChanged(); return this; } /** * string primary_email = 2 [deprecated = true]; * @deprecated clarifai.api.User.primary_email is deprecated. * See proto/clarifai/api/resources.proto;l=2573 * @param value The bytes for primaryEmail to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setPrimaryEmailBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); primaryEmail_ = value; onChanged(); return this; } private java.lang.Object firstName_ = ""; /** * string first_name = 3; * @return The firstName. */ public java.lang.String getFirstName() { java.lang.Object ref = firstName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); firstName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string first_name = 3; * @return The bytes for firstName. */ public com.google.protobuf.ByteString getFirstNameBytes() { java.lang.Object ref = firstName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); firstName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string first_name = 3; * @param value The firstName to set. * @return This builder for chaining. */ public Builder setFirstName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } firstName_ = value; onChanged(); return this; } /** * string first_name = 3; * @return This builder for chaining. */ public Builder clearFirstName() { firstName_ = getDefaultInstance().getFirstName(); onChanged(); return this; } /** * string first_name = 3; * @param value The bytes for firstName to set. * @return This builder for chaining. */ public Builder setFirstNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); firstName_ = value; onChanged(); return this; } private java.lang.Object lastName_ = ""; /** * string last_name = 4; * @return The lastName. */ public java.lang.String getLastName() { java.lang.Object ref = lastName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); lastName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string last_name = 4; * @return The bytes for lastName. */ public com.google.protobuf.ByteString getLastNameBytes() { java.lang.Object ref = lastName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); lastName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string last_name = 4; * @param value The lastName to set. * @return This builder for chaining. */ public Builder setLastName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } lastName_ = value; onChanged(); return this; } /** * string last_name = 4; * @return This builder for chaining. */ public Builder clearLastName() { lastName_ = getDefaultInstance().getLastName(); onChanged(); return this; } /** * string last_name = 4; * @param value The bytes for lastName to set. * @return This builder for chaining. */ public Builder setLastNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); lastName_ = value; onChanged(); return this; } private java.lang.Object companyName_ = ""; /** * string company_name = 5; * @return The companyName. */ public java.lang.String getCompanyName() { java.lang.Object ref = companyName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); companyName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string company_name = 5; * @return The bytes for companyName. */ public com.google.protobuf.ByteString getCompanyNameBytes() { java.lang.Object ref = companyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); companyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string company_name = 5; * @param value The companyName to set. * @return This builder for chaining. */ public Builder setCompanyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } companyName_ = value; onChanged(); return this; } /** * string company_name = 5; * @return This builder for chaining. */ public Builder clearCompanyName() { companyName_ = getDefaultInstance().getCompanyName(); onChanged(); return this; } /** * string company_name = 5; * @param value The bytes for companyName to set. * @return This builder for chaining. */ public Builder setCompanyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); companyName_ = value; onChanged(); return this; } private java.lang.Object jobTitle_ = ""; /** * string job_title = 19; * @return The jobTitle. */ public java.lang.String getJobTitle() { java.lang.Object ref = jobTitle_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobTitle_ = s; return s; } else { return (java.lang.String) ref; } } /** * string job_title = 19; * @return The bytes for jobTitle. */ public com.google.protobuf.ByteString getJobTitleBytes() { java.lang.Object ref = jobTitle_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobTitle_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string job_title = 19; * @param value The jobTitle to set. * @return This builder for chaining. */ public Builder setJobTitle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobTitle_ = value; onChanged(); return this; } /** * string job_title = 19; * @return This builder for chaining. */ public Builder clearJobTitle() { jobTitle_ = getDefaultInstance().getJobTitle(); onChanged(); return this; } /** * string job_title = 19; * @param value The bytes for jobTitle to set. * @return This builder for chaining. */ public Builder setJobTitleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobTitle_ = value; onChanged(); return this; } private java.lang.Object jobRole_ = ""; /** * string job_role = 20; * @return The jobRole. */ public java.lang.String getJobRole() { java.lang.Object ref = jobRole_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobRole_ = s; return s; } else { return (java.lang.String) ref; } } /** * string job_role = 20; * @return The bytes for jobRole. */ public com.google.protobuf.ByteString getJobRoleBytes() { java.lang.Object ref = jobRole_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobRole_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string job_role = 20; * @param value The jobRole to set. * @return This builder for chaining. */ public Builder setJobRole( java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobRole_ = value; onChanged(); return this; } /** * string job_role = 20; * @return This builder for chaining. */ public Builder clearJobRole() { jobRole_ = getDefaultInstance().getJobRole(); onChanged(); return this; } /** * string job_role = 20; * @param value The bytes for jobRole to set. * @return This builder for chaining. */ public Builder setJobRoleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobRole_ = value; onChanged(); return this; } private java.lang.Object intention_ = ""; /** *
     * This specifies user intent when registering on clarifai
     * 
* * string intention = 24; * @return The intention. */ public java.lang.String getIntention() { java.lang.Object ref = intention_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); intention_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This specifies user intent when registering on clarifai
     * 
* * string intention = 24; * @return The bytes for intention. */ public com.google.protobuf.ByteString getIntentionBytes() { java.lang.Object ref = intention_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); intention_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This specifies user intent when registering on clarifai
     * 
* * string intention = 24; * @param value The intention to set. * @return This builder for chaining. */ public Builder setIntention( java.lang.String value) { if (value == null) { throw new NullPointerException(); } intention_ = value; onChanged(); return this; } /** *
     * This specifies user intent when registering on clarifai
     * 
* * string intention = 24; * @return This builder for chaining. */ public Builder clearIntention() { intention_ = getDefaultInstance().getIntention(); onChanged(); return this; } /** *
     * This specifies user intent when registering on clarifai
     * 
* * string intention = 24; * @param value The bytes for intention to set. * @return This builder for chaining. */ public Builder setIntentionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); intention_ = value; onChanged(); return this; } private java.lang.Object referralSource_ = ""; /** *
     * This specifies how one got to know about clarifai
     * 
* * string referral_source = 25; * @return The referralSource. */ public java.lang.String getReferralSource() { java.lang.Object ref = referralSource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); referralSource_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * This specifies how one got to know about clarifai
     * 
* * string referral_source = 25; * @return The bytes for referralSource. */ public com.google.protobuf.ByteString getReferralSourceBytes() { java.lang.Object ref = referralSource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); referralSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * This specifies how one got to know about clarifai
     * 
* * string referral_source = 25; * @param value The referralSource to set. * @return This builder for chaining. */ public Builder setReferralSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } referralSource_ = value; onChanged(); return this; } /** *
     * This specifies how one got to know about clarifai
     * 
* * string referral_source = 25; * @return This builder for chaining. */ public Builder clearReferralSource() { referralSource_ = getDefaultInstance().getReferralSource(); onChanged(); return this; } /** *
     * This specifies how one got to know about clarifai
     * 
* * string referral_source = 25; * @param value The bytes for referralSource to set. * @return This builder for chaining. */ public Builder setReferralSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); referralSource_ = value; onChanged(); return this; } private java.lang.Object billType_ = ""; /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @return The billType. */ @java.lang.Deprecated public java.lang.String getBillType() { java.lang.Object ref = billType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); billType_ = s; return s; } else { return (java.lang.String) ref; } } /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @return The bytes for billType. */ @java.lang.Deprecated public com.google.protobuf.ByteString getBillTypeBytes() { java.lang.Object ref = billType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); billType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @param value The billType to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setBillType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } billType_ = value; onChanged(); return this; } /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearBillType() { billType_ = getDefaultInstance().getBillType(); onChanged(); return this; } /** * string bill_type = 7 [deprecated = true]; * @deprecated clarifai.api.User.bill_type is deprecated. * See proto/clarifai/api/resources.proto;l=2583 * @param value The bytes for billType to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setBillTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); billType_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp createdAt_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return Whether the createdAt field is set. */ public boolean hasCreatedAt() { return createdAtBuilder_ != null || createdAt_ != null; } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; * @return The createdAt. */ public com.google.protobuf.Timestamp getCreatedAt() { if (createdAtBuilder_ == null) { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } else { return createdAtBuilder_.getMessage(); } } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (value == null) { throw new NullPointerException(); } createdAt_ = value; onChanged(); } else { createdAtBuilder_.setMessage(value); } return this; } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder setCreatedAt( com.google.protobuf.Timestamp.Builder builderForValue) { if (createdAtBuilder_ == null) { createdAt_ = builderForValue.build(); onChanged(); } else { createdAtBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { if (createdAtBuilder_ == null) { if (createdAt_ != null) { createdAt_ = com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); } else { createdAt_ = value; } onChanged(); } else { createdAtBuilder_.mergeFrom(value); } return this; } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public Builder clearCreatedAt() { if (createdAtBuilder_ == null) { createdAt_ = null; onChanged(); } else { createdAt_ = null; createdAtBuilder_ = null; } return this; } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { onChanged(); return getCreatedAtFieldBuilder().getBuilder(); } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { if (createdAtBuilder_ != null) { return createdAtBuilder_.getMessageOrBuilder(); } else { return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; } } /** *
     * When the user was created. We follow the XXXX timestamp
     * format. We use https://www.ietf.org/rfc/rfc3339.txt format:
     * "2006-01-02T15:04:05.999999Z" so you can expect results like
     * the following from the API:
     * "2017-04-11T21:50:50.223962Z"
     * 
* * .google.protobuf.Timestamp created_at = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreatedAtFieldBuilder() { if (createdAtBuilder_ == null) { createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCreatedAt(), getParentForChildren(), isClean()); createdAt_ = null; } return createdAtBuilder_; } private com.google.protobuf.Timestamp dateGdprConsent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateGdprConsentBuilder_; /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; * @deprecated clarifai.api.User.date_gdpr_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2591 * @return Whether the dateGdprConsent field is set. */ @java.lang.Deprecated public boolean hasDateGdprConsent() { return dateGdprConsentBuilder_ != null || dateGdprConsent_ != null; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; * @deprecated clarifai.api.User.date_gdpr_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2591 * @return The dateGdprConsent. */ @java.lang.Deprecated public com.google.protobuf.Timestamp getDateGdprConsent() { if (dateGdprConsentBuilder_ == null) { return dateGdprConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateGdprConsent_; } else { return dateGdprConsentBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateGdprConsent(com.google.protobuf.Timestamp value) { if (dateGdprConsentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dateGdprConsent_ = value; onChanged(); } else { dateGdprConsentBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateGdprConsent( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateGdprConsentBuilder_ == null) { dateGdprConsent_ = builderForValue.build(); onChanged(); } else { dateGdprConsentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDateGdprConsent(com.google.protobuf.Timestamp value) { if (dateGdprConsentBuilder_ == null) { if (dateGdprConsent_ != null) { dateGdprConsent_ = com.google.protobuf.Timestamp.newBuilder(dateGdprConsent_).mergeFrom(value).buildPartial(); } else { dateGdprConsent_ = value; } onChanged(); } else { dateGdprConsentBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDateGdprConsent() { if (dateGdprConsentBuilder_ == null) { dateGdprConsent_ = null; onChanged(); } else { dateGdprConsent_ = null; dateGdprConsentBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getDateGdprConsentBuilder() { onChanged(); return getDateGdprConsentFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateGdprConsentOrBuilder() { if (dateGdprConsentBuilder_ != null) { return dateGdprConsentBuilder_.getMessageOrBuilder(); } else { return dateGdprConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateGdprConsent_; } } /** * .google.protobuf.Timestamp date_gdpr_consent = 8 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateGdprConsentFieldBuilder() { if (dateGdprConsentBuilder_ == null) { dateGdprConsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDateGdprConsent(), getParentForChildren(), isClean()); dateGdprConsent_ = null; } return dateGdprConsentBuilder_; } private com.google.protobuf.Timestamp dateTosConsent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateTosConsentBuilder_; /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; * @deprecated clarifai.api.User.date_tos_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2592 * @return Whether the dateTosConsent field is set. */ @java.lang.Deprecated public boolean hasDateTosConsent() { return dateTosConsentBuilder_ != null || dateTosConsent_ != null; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; * @deprecated clarifai.api.User.date_tos_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2592 * @return The dateTosConsent. */ @java.lang.Deprecated public com.google.protobuf.Timestamp getDateTosConsent() { if (dateTosConsentBuilder_ == null) { return dateTosConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateTosConsent_; } else { return dateTosConsentBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateTosConsent(com.google.protobuf.Timestamp value) { if (dateTosConsentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dateTosConsent_ = value; onChanged(); } else { dateTosConsentBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateTosConsent( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateTosConsentBuilder_ == null) { dateTosConsent_ = builderForValue.build(); onChanged(); } else { dateTosConsentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDateTosConsent(com.google.protobuf.Timestamp value) { if (dateTosConsentBuilder_ == null) { if (dateTosConsent_ != null) { dateTosConsent_ = com.google.protobuf.Timestamp.newBuilder(dateTosConsent_).mergeFrom(value).buildPartial(); } else { dateTosConsent_ = value; } onChanged(); } else { dateTosConsentBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDateTosConsent() { if (dateTosConsentBuilder_ == null) { dateTosConsent_ = null; onChanged(); } else { dateTosConsent_ = null; dateTosConsentBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getDateTosConsentBuilder() { onChanged(); return getDateTosConsentFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateTosConsentOrBuilder() { if (dateTosConsentBuilder_ != null) { return dateTosConsentBuilder_.getMessageOrBuilder(); } else { return dateTosConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateTosConsent_; } } /** * .google.protobuf.Timestamp date_tos_consent = 9 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateTosConsentFieldBuilder() { if (dateTosConsentBuilder_ == null) { dateTosConsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDateTosConsent(), getParentForChildren(), isClean()); dateTosConsent_ = null; } return dateTosConsentBuilder_; } private com.google.protobuf.Timestamp dateMarketingConsent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dateMarketingConsentBuilder_; /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; * @deprecated clarifai.api.User.date_marketing_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2593 * @return Whether the dateMarketingConsent field is set. */ @java.lang.Deprecated public boolean hasDateMarketingConsent() { return dateMarketingConsentBuilder_ != null || dateMarketingConsent_ != null; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; * @deprecated clarifai.api.User.date_marketing_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2593 * @return The dateMarketingConsent. */ @java.lang.Deprecated public com.google.protobuf.Timestamp getDateMarketingConsent() { if (dateMarketingConsentBuilder_ == null) { return dateMarketingConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateMarketingConsent_; } else { return dateMarketingConsentBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateMarketingConsent(com.google.protobuf.Timestamp value) { if (dateMarketingConsentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } dateMarketingConsent_ = value; onChanged(); } else { dateMarketingConsentBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder setDateMarketingConsent( com.google.protobuf.Timestamp.Builder builderForValue) { if (dateMarketingConsentBuilder_ == null) { dateMarketingConsent_ = builderForValue.build(); onChanged(); } else { dateMarketingConsentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDateMarketingConsent(com.google.protobuf.Timestamp value) { if (dateMarketingConsentBuilder_ == null) { if (dateMarketingConsent_ != null) { dateMarketingConsent_ = com.google.protobuf.Timestamp.newBuilder(dateMarketingConsent_).mergeFrom(value).buildPartial(); } else { dateMarketingConsent_ = value; } onChanged(); } else { dateMarketingConsentBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDateMarketingConsent() { if (dateMarketingConsentBuilder_ == null) { dateMarketingConsent_ = null; onChanged(); } else { dateMarketingConsent_ = null; dateMarketingConsentBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getDateMarketingConsentBuilder() { onChanged(); return getDateMarketingConsentFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDateMarketingConsentOrBuilder() { if (dateMarketingConsentBuilder_ != null) { return dateMarketingConsentBuilder_.getMessageOrBuilder(); } else { return dateMarketingConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateMarketingConsent_; } } /** * .google.protobuf.Timestamp date_marketing_consent = 10 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDateMarketingConsentFieldBuilder() { if (dateMarketingConsentBuilder_ == null) { dateMarketingConsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDateMarketingConsent(), getParentForChildren(), isClean()); dateMarketingConsent_ = null; } return dateMarketingConsentBuilder_; } private com.google.protobuf.Timestamp datePiiConsent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datePiiConsentBuilder_; /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; * @deprecated clarifai.api.User.date_pii_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2594 * @return Whether the datePiiConsent field is set. */ @java.lang.Deprecated public boolean hasDatePiiConsent() { return datePiiConsentBuilder_ != null || datePiiConsent_ != null; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; * @deprecated clarifai.api.User.date_pii_consent is deprecated. * See proto/clarifai/api/resources.proto;l=2594 * @return The datePiiConsent. */ @java.lang.Deprecated public com.google.protobuf.Timestamp getDatePiiConsent() { if (datePiiConsentBuilder_ == null) { return datePiiConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : datePiiConsent_; } else { return datePiiConsentBuilder_.getMessage(); } } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public Builder setDatePiiConsent(com.google.protobuf.Timestamp value) { if (datePiiConsentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } datePiiConsent_ = value; onChanged(); } else { datePiiConsentBuilder_.setMessage(value); } return this; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public Builder setDatePiiConsent( com.google.protobuf.Timestamp.Builder builderForValue) { if (datePiiConsentBuilder_ == null) { datePiiConsent_ = builderForValue.build(); onChanged(); } else { datePiiConsentBuilder_.setMessage(builderForValue.build()); } return this; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeDatePiiConsent(com.google.protobuf.Timestamp value) { if (datePiiConsentBuilder_ == null) { if (datePiiConsent_ != null) { datePiiConsent_ = com.google.protobuf.Timestamp.newBuilder(datePiiConsent_).mergeFrom(value).buildPartial(); } else { datePiiConsent_ = value; } onChanged(); } else { datePiiConsentBuilder_.mergeFrom(value); } return this; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public Builder clearDatePiiConsent() { if (datePiiConsentBuilder_ == null) { datePiiConsent_ = null; onChanged(); } else { datePiiConsent_ = null; datePiiConsentBuilder_ = null; } return this; } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getDatePiiConsentBuilder() { onChanged(); return getDatePiiConsentFieldBuilder().getBuilder(); } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getDatePiiConsentOrBuilder() { if (datePiiConsentBuilder_ != null) { return datePiiConsentBuilder_.getMessageOrBuilder(); } else { return datePiiConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : datePiiConsent_; } } /** * .google.protobuf.Timestamp date_pii_consent = 23 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getDatePiiConsentFieldBuilder() { if (datePiiConsentBuilder_ == null) { datePiiConsentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getDatePiiConsent(), getParentForChildren(), isClean()); datePiiConsent_ = null; } return datePiiConsentBuilder_; } private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; * @deprecated clarifai.api.User.metadata is deprecated. * See proto/clarifai/api/resources.proto;l=2598 * @return Whether the metadata field is set. */ @java.lang.Deprecated public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; * @deprecated clarifai.api.User.metadata is deprecated. * See proto/clarifai/api/resources.proto;l=2598 * @return The metadata. */ @java.lang.Deprecated public com.google.protobuf.Struct getMetadata() { if (metadataBuilder_ == null) { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder setMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } metadata_ = value; onChanged(); } else { metadataBuilder_.setMessage(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder setMetadata( com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } onChanged(); } else { metadataBuilder_.mergeFrom(value); } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public Builder clearMetadata() { if (metadataBuilder_ == null) { metadata_ = null; onChanged(); } else { metadata_ = null; metadataBuilder_ = null; } return this; } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.Struct.Builder getMetadataBuilder() { onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ @java.lang.Deprecated public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } } /** *
     * To handle arbitrary json metadata you can use a struct field:
     * https://github.com/google/protobuf/blob/master/src/google/protobuf/struct.proto
     * 
* * .google.protobuf.Struct metadata = 11 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } private java.util.List emailAddresses_ = java.util.Collections.emptyList(); private void ensureEmailAddressesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { emailAddresses_ = new java.util.ArrayList(emailAddresses_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EmailAddress, com.clarifai.grpc.api.EmailAddress.Builder, com.clarifai.grpc.api.EmailAddressOrBuilder> emailAddressesBuilder_; /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEmailAddressesList() { if (emailAddressesBuilder_ == null) { return java.util.Collections.unmodifiableList(emailAddresses_); } else { return emailAddressesBuilder_.getMessageList(); } } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public int getEmailAddressesCount() { if (emailAddressesBuilder_ == null) { return emailAddresses_.size(); } else { return emailAddressesBuilder_.getCount(); } } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddress getEmailAddresses(int index) { if (emailAddressesBuilder_ == null) { return emailAddresses_.get(index); } else { return emailAddressesBuilder_.getMessage(index); } } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder setEmailAddresses( int index, com.clarifai.grpc.api.EmailAddress value) { if (emailAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmailAddressesIsMutable(); emailAddresses_.set(index, value); onChanged(); } else { emailAddressesBuilder_.setMessage(index, value); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder setEmailAddresses( int index, com.clarifai.grpc.api.EmailAddress.Builder builderForValue) { if (emailAddressesBuilder_ == null) { ensureEmailAddressesIsMutable(); emailAddresses_.set(index, builderForValue.build()); onChanged(); } else { emailAddressesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder addEmailAddresses(com.clarifai.grpc.api.EmailAddress value) { if (emailAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmailAddressesIsMutable(); emailAddresses_.add(value); onChanged(); } else { emailAddressesBuilder_.addMessage(value); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder addEmailAddresses( int index, com.clarifai.grpc.api.EmailAddress value) { if (emailAddressesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEmailAddressesIsMutable(); emailAddresses_.add(index, value); onChanged(); } else { emailAddressesBuilder_.addMessage(index, value); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder addEmailAddresses( com.clarifai.grpc.api.EmailAddress.Builder builderForValue) { if (emailAddressesBuilder_ == null) { ensureEmailAddressesIsMutable(); emailAddresses_.add(builderForValue.build()); onChanged(); } else { emailAddressesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder addEmailAddresses( int index, com.clarifai.grpc.api.EmailAddress.Builder builderForValue) { if (emailAddressesBuilder_ == null) { ensureEmailAddressesIsMutable(); emailAddresses_.add(index, builderForValue.build()); onChanged(); } else { emailAddressesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder addAllEmailAddresses( java.lang.Iterable values) { if (emailAddressesBuilder_ == null) { ensureEmailAddressesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, emailAddresses_); onChanged(); } else { emailAddressesBuilder_.addAllMessages(values); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder clearEmailAddresses() { if (emailAddressesBuilder_ == null) { emailAddresses_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { emailAddressesBuilder_.clear(); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public Builder removeEmailAddresses(int index) { if (emailAddressesBuilder_ == null) { ensureEmailAddressesIsMutable(); emailAddresses_.remove(index); onChanged(); } else { emailAddressesBuilder_.remove(index); } return this; } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddress.Builder getEmailAddressesBuilder( int index) { return getEmailAddressesFieldBuilder().getBuilder(index); } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddressOrBuilder getEmailAddressesOrBuilder( int index) { if (emailAddressesBuilder_ == null) { return emailAddresses_.get(index); } else { return emailAddressesBuilder_.getMessageOrBuilder(index); } } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEmailAddressesOrBuilderList() { if (emailAddressesBuilder_ != null) { return emailAddressesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(emailAddresses_); } } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddress.Builder addEmailAddressesBuilder() { return getEmailAddressesFieldBuilder().addBuilder( com.clarifai.grpc.api.EmailAddress.getDefaultInstance()); } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public com.clarifai.grpc.api.EmailAddress.Builder addEmailAddressesBuilder( int index) { return getEmailAddressesFieldBuilder().addBuilder( index, com.clarifai.grpc.api.EmailAddress.getDefaultInstance()); } /** * repeated .clarifai.api.EmailAddress email_addresses = 12 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEmailAddressesBuilderList() { return getEmailAddressesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EmailAddress, com.clarifai.grpc.api.EmailAddress.Builder, com.clarifai.grpc.api.EmailAddressOrBuilder> getEmailAddressesFieldBuilder() { if (emailAddressesBuilder_ == null) { emailAddressesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.clarifai.grpc.api.EmailAddress, com.clarifai.grpc.api.EmailAddress.Builder, com.clarifai.grpc.api.EmailAddressOrBuilder>( emailAddresses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); emailAddresses_ = null; } return emailAddressesBuilder_; } private boolean twoFactorAuthEnabled_ ; /** * bool two_factor_auth_enabled = 15 [deprecated = true]; * @deprecated clarifai.api.User.two_factor_auth_enabled is deprecated. * See proto/clarifai/api/resources.proto;l=2601 * @return The twoFactorAuthEnabled. */ @java.lang.Override @java.lang.Deprecated public boolean getTwoFactorAuthEnabled() { return twoFactorAuthEnabled_; } /** * bool two_factor_auth_enabled = 15 [deprecated = true]; * @deprecated clarifai.api.User.two_factor_auth_enabled is deprecated. * See proto/clarifai/api/resources.proto;l=2601 * @param value The twoFactorAuthEnabled to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTwoFactorAuthEnabled(boolean value) { twoFactorAuthEnabled_ = value; onChanged(); return this; } /** * bool two_factor_auth_enabled = 15 [deprecated = true]; * @deprecated clarifai.api.User.two_factor_auth_enabled is deprecated. * See proto/clarifai/api/resources.proto;l=2601 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTwoFactorAuthEnabled() { twoFactorAuthEnabled_ = false; onChanged(); return this; } private int teamsCount_ ; /** * uint32 teams_count = 16 [deprecated = true]; * @deprecated clarifai.api.User.teams_count is deprecated. * See proto/clarifai/api/resources.proto;l=2602 * @return The teamsCount. */ @java.lang.Override @java.lang.Deprecated public int getTeamsCount() { return teamsCount_; } /** * uint32 teams_count = 16 [deprecated = true]; * @deprecated clarifai.api.User.teams_count is deprecated. * See proto/clarifai/api/resources.proto;l=2602 * @param value The teamsCount to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTeamsCount(int value) { teamsCount_ = value; onChanged(); return this; } /** * uint32 teams_count = 16 [deprecated = true]; * @deprecated clarifai.api.User.teams_count is deprecated. * See proto/clarifai/api/resources.proto;l=2602 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTeamsCount() { teamsCount_ = 0; onChanged(); return this; } private boolean isStarred_ ; /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostUserStars/DeleteUserStars endpoints to star/unstar an user
     * 
* * bool is_starred = 21; * @return The isStarred. */ @java.lang.Override public boolean getIsStarred() { return isStarred_; } /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostUserStars/DeleteUserStars endpoints to star/unstar an user
     * 
* * bool is_starred = 21; * @param value The isStarred to set. * @return This builder for chaining. */ public Builder setIsStarred(boolean value) { isStarred_ = value; onChanged(); return this; } /** *
     * Is starred by the requesting user (only showed on get/list requests)
     * Please use PostUserStars/DeleteUserStars endpoints to star/unstar an user
     * 
* * bool is_starred = 21; * @return This builder for chaining. */ public Builder clearIsStarred() { isStarred_ = false; onChanged(); return this; } private int starCount_ ; /** *
     * How many users have starred the user (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 22; * @return The starCount. */ @java.lang.Override public int getStarCount() { return starCount_; } /** *
     * How many users have starred the user (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 22; * @param value The starCount to set. * @return This builder for chaining. */ public Builder setStarCount(int value) { starCount_ = value; onChanged(); return this; } /** *
     * How many users have starred the user (only showed on get/list requests)
     * Computed value, not editable
     * 
* * int32 star_count = 22; * @return This builder for chaining. */ public Builder clearStarCount() { starCount_ = 0; onChanged(); return this; } private com.clarifai.grpc.api.Visibility visibility_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> visibilityBuilder_; /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; * @return Whether the visibility field is set. */ public boolean hasVisibility() { return visibilityBuilder_ != null || visibility_ != null; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; * @return The visibility. */ public com.clarifai.grpc.api.Visibility getVisibility() { if (visibilityBuilder_ == null) { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } else { return visibilityBuilder_.getMessage(); } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public Builder setVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } visibility_ = value; onChanged(); } else { visibilityBuilder_.setMessage(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public Builder setVisibility( com.clarifai.grpc.api.Visibility.Builder builderForValue) { if (visibilityBuilder_ == null) { visibility_ = builderForValue.build(); onChanged(); } else { visibilityBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public Builder mergeVisibility(com.clarifai.grpc.api.Visibility value) { if (visibilityBuilder_ == null) { if (visibility_ != null) { visibility_ = com.clarifai.grpc.api.Visibility.newBuilder(visibility_).mergeFrom(value).buildPartial(); } else { visibility_ = value; } onChanged(); } else { visibilityBuilder_.mergeFrom(value); } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public Builder clearVisibility() { if (visibilityBuilder_ == null) { visibility_ = null; onChanged(); } else { visibility_ = null; visibilityBuilder_ = null; } return this; } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public com.clarifai.grpc.api.Visibility.Builder getVisibilityBuilder() { onChanged(); return getVisibilityFieldBuilder().getBuilder(); } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ public com.clarifai.grpc.api.VisibilityOrBuilder getVisibilityOrBuilder() { if (visibilityBuilder_ != null) { return visibilityBuilder_.getMessageOrBuilder(); } else { return visibility_ == null ? com.clarifai.grpc.api.Visibility.getDefaultInstance() : visibility_; } } /** *
     * The visibility field represents whether this message is privately/publicly visible.
     * To be visible to the public the App that contains it AND the User that contains the App must
     * also be publicly visible.
     * 
* * .clarifai.api.Visibility visibility = 17; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder> getVisibilityFieldBuilder() { if (visibilityBuilder_ == null) { visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.Visibility, com.clarifai.grpc.api.Visibility.Builder, com.clarifai.grpc.api.VisibilityOrBuilder>( getVisibility(), getParentForChildren(), isClean()); visibility_ = null; } return visibilityBuilder_; } private com.clarifai.grpc.api.UserDetail userDetail_; private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserDetail, com.clarifai.grpc.api.UserDetail.Builder, com.clarifai.grpc.api.UserDetailOrBuilder> userDetailBuilder_; /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; * @return Whether the userDetail field is set. */ public boolean hasUserDetail() { return userDetailBuilder_ != null || userDetail_ != null; } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; * @return The userDetail. */ public com.clarifai.grpc.api.UserDetail getUserDetail() { if (userDetailBuilder_ == null) { return userDetail_ == null ? com.clarifai.grpc.api.UserDetail.getDefaultInstance() : userDetail_; } else { return userDetailBuilder_.getMessage(); } } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public Builder setUserDetail(com.clarifai.grpc.api.UserDetail value) { if (userDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } userDetail_ = value; onChanged(); } else { userDetailBuilder_.setMessage(value); } return this; } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public Builder setUserDetail( com.clarifai.grpc.api.UserDetail.Builder builderForValue) { if (userDetailBuilder_ == null) { userDetail_ = builderForValue.build(); onChanged(); } else { userDetailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public Builder mergeUserDetail(com.clarifai.grpc.api.UserDetail value) { if (userDetailBuilder_ == null) { if (userDetail_ != null) { userDetail_ = com.clarifai.grpc.api.UserDetail.newBuilder(userDetail_).mergeFrom(value).buildPartial(); } else { userDetail_ = value; } onChanged(); } else { userDetailBuilder_.mergeFrom(value); } return this; } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public Builder clearUserDetail() { if (userDetailBuilder_ == null) { userDetail_ = null; onChanged(); } else { userDetail_ = null; userDetailBuilder_ = null; } return this; } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public com.clarifai.grpc.api.UserDetail.Builder getUserDetailBuilder() { onChanged(); return getUserDetailFieldBuilder().getBuilder(); } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ public com.clarifai.grpc.api.UserDetailOrBuilder getUserDetailOrBuilder() { if (userDetailBuilder_ != null) { return userDetailBuilder_.getMessageOrBuilder(); } else { return userDetail_ == null ? com.clarifai.grpc.api.UserDetail.getDefaultInstance() : userDetail_; } } /** *
     * This is all the personal information of a user. GetUser/ListUsers will not return this
     * information unless the caller has the UserAccounts_Get scope on their key or is the user
     * themselves.
     * 
* * .clarifai.api.UserDetail user_detail = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserDetail, com.clarifai.grpc.api.UserDetail.Builder, com.clarifai.grpc.api.UserDetailOrBuilder> getUserDetailFieldBuilder() { if (userDetailBuilder_ == null) { userDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.clarifai.grpc.api.UserDetail, com.clarifai.grpc.api.UserDetail.Builder, com.clarifai.grpc.api.UserDetailOrBuilder>( getUserDetail(), getParentForChildren(), isClean()); userDetail_ = null; } return userDetailBuilder_; } @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:clarifai.api.User) } // @@protoc_insertion_point(class_scope:clarifai.api.User) private static final com.clarifai.grpc.api.User DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.clarifai.grpc.api.User(); } public static com.clarifai.grpc.api.User getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public User parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new User(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 com.clarifai.grpc.api.User getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy