Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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 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=2519
* @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=2519
* @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"
*
* 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=2527
* @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=2527
* @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=2528
* @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=2528
* @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=2529
* @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=2529
* @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=2530
* @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=2530
* @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=2534
* @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=2534
* @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 extends com.clarifai.grpc.api.EmailAddressOrBuilder>
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=2537
* @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=2538
* @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.
*
* 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.
*
* 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_);
}
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_);
}
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 (!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) + 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_ = "";
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.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.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=2511
* @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=2511
* @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=2511
* @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=2511
* @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=2511
* @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
*
* 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 billType_ = "";
/**
* string bill_type = 7 [deprecated = true];
* @deprecated clarifai.api.User.bill_type is deprecated.
* See proto/clarifai/api/resources.proto;l=2519
* @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=2519
* @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=2519
* @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=2519
* @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=2519
* @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"
*
* 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"
*
* 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"
*
* 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"
*
* 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"
*
* 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"
*
* 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"
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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.
*
* 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;
}
}