com.clarifai.grpc.api.UserDetail 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;
/**
*
* This message holds the confidential information from the User object that we don't want to expose
* to other users. It will be accessible only from /users/{user_id}/account and with the User scopes.
*
*
* Protobuf type {@code clarifai.api.UserDetail}
*/
public final class UserDetail extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:clarifai.api.UserDetail)
UserDetailOrBuilder {
private static final long serialVersionUID = 0L;
// Use UserDetail.newBuilder() to construct.
private UserDetail(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UserDetail() {
primaryEmail_ = "";
billType_ = "";
emailAddresses_ = java.util.Collections.emptyList();
country_ = "";
state_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UserDetail();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserDetail(
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();
primaryEmail_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
billType_ = s;
break;
}
case 26: {
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 34: {
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 42: {
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 50: {
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 58: {
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 72: {
twoFactorAuthEnabled_ = input.readBool();
break;
}
case 80: {
teamsCount_ = input.readUInt32();
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
country_ = s;
break;
}
case 98: {
java.lang.String s = input.readStringRequireUtf8();
state_ = s;
break;
}
case 106: {
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;
}
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_UserDetail_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_UserDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.UserDetail.class, com.clarifai.grpc.api.UserDetail.Builder.class);
}
public static final int PRIMARY_EMAIL_FIELD_NUMBER = 1;
private volatile java.lang.Object primaryEmail_;
/**
* string primary_email = 1;
* @return The primaryEmail.
*/
@java.lang.Override
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 = 1;
* @return The bytes for primaryEmail.
*/
@java.lang.Override
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 BILL_TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object billType_;
/**
* string bill_type = 2;
* @return The billType.
*/
@java.lang.Override
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 = 2;
* @return The bytes for billType.
*/
@java.lang.Override
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 DATE_GDPR_CONSENT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp dateGdprConsent_;
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
* @return Whether the dateGdprConsent field is set.
*/
@java.lang.Override
public boolean hasDateGdprConsent() {
return dateGdprConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
* @return The dateGdprConsent.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDateGdprConsent() {
return dateGdprConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateGdprConsent_;
}
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDateGdprConsentOrBuilder() {
return getDateGdprConsent();
}
public static final int DATE_TOS_CONSENT_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp dateTosConsent_;
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
* @return Whether the dateTosConsent field is set.
*/
@java.lang.Override
public boolean hasDateTosConsent() {
return dateTosConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
* @return The dateTosConsent.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDateTosConsent() {
return dateTosConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateTosConsent_;
}
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDateTosConsentOrBuilder() {
return getDateTosConsent();
}
public static final int DATE_MARKETING_CONSENT_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp dateMarketingConsent_;
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
* @return Whether the dateMarketingConsent field is set.
*/
@java.lang.Override
public boolean hasDateMarketingConsent() {
return dateMarketingConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
* @return The dateMarketingConsent.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDateMarketingConsent() {
return dateMarketingConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dateMarketingConsent_;
}
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDateMarketingConsentOrBuilder() {
return getDateMarketingConsent();
}
public static final int DATE_PII_CONSENT_FIELD_NUMBER = 13;
private com.google.protobuf.Timestamp datePiiConsent_;
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
* @return Whether the datePiiConsent field is set.
*/
@java.lang.Override
public boolean hasDatePiiConsent() {
return datePiiConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
* @return The datePiiConsent.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getDatePiiConsent() {
return datePiiConsent_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : datePiiConsent_;
}
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getDatePiiConsentOrBuilder() {
return getDatePiiConsent();
}
public static final int METADATA_FIELD_NUMBER = 6;
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 = 6;
* @return Whether the metadata field is set.
*/
@java.lang.Override
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 = 6;
* @return The metadata.
*/
@java.lang.Override
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 = 6;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int EMAIL_ADDRESSES_FIELD_NUMBER = 7;
private java.util.List emailAddresses_;
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
@java.lang.Override
public java.util.List getEmailAddressesList() {
return emailAddresses_;
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
@java.lang.Override
public java.util.List extends com.clarifai.grpc.api.EmailAddressOrBuilder>
getEmailAddressesOrBuilderList() {
return emailAddresses_;
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
@java.lang.Override
public int getEmailAddressesCount() {
return emailAddresses_.size();
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
@java.lang.Override
public com.clarifai.grpc.api.EmailAddress getEmailAddresses(int index) {
return emailAddresses_.get(index);
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
@java.lang.Override
public com.clarifai.grpc.api.EmailAddressOrBuilder getEmailAddressesOrBuilder(
int index) {
return emailAddresses_.get(index);
}
public static final int TWO_FACTOR_AUTH_ENABLED_FIELD_NUMBER = 9;
private boolean twoFactorAuthEnabled_;
/**
* bool two_factor_auth_enabled = 9;
* @return The twoFactorAuthEnabled.
*/
@java.lang.Override
public boolean getTwoFactorAuthEnabled() {
return twoFactorAuthEnabled_;
}
public static final int TEAMS_COUNT_FIELD_NUMBER = 10;
private int teamsCount_;
/**
* uint32 teams_count = 10;
* @return The teamsCount.
*/
@java.lang.Override
public int getTeamsCount() {
return teamsCount_;
}
public static final int COUNTRY_FIELD_NUMBER = 11;
private volatile java.lang.Object country_;
/**
* string country = 11;
* @return The country.
*/
@java.lang.Override
public java.lang.String getCountry() {
java.lang.Object ref = country_;
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();
country_ = s;
return s;
}
}
/**
* string country = 11;
* @return The bytes for country.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATE_FIELD_NUMBER = 12;
private volatile java.lang.Object state_;
/**
* string state = 12;
* @return The state.
*/
@java.lang.Override
public java.lang.String getState() {
java.lang.Object ref = state_;
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();
state_ = s;
return s;
}
}
/**
* string state = 12;
* @return The bytes for state.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryEmail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, primaryEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billType_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, billType_);
}
if (dateGdprConsent_ != null) {
output.writeMessage(3, getDateGdprConsent());
}
if (dateTosConsent_ != null) {
output.writeMessage(4, getDateTosConsent());
}
if (dateMarketingConsent_ != null) {
output.writeMessage(5, getDateMarketingConsent());
}
if (metadata_ != null) {
output.writeMessage(6, getMetadata());
}
for (int i = 0; i < emailAddresses_.size(); i++) {
output.writeMessage(7, emailAddresses_.get(i));
}
if (twoFactorAuthEnabled_ != false) {
output.writeBool(9, twoFactorAuthEnabled_);
}
if (teamsCount_ != 0) {
output.writeUInt32(10, teamsCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, country_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, state_);
}
if (datePiiConsent_ != null) {
output.writeMessage(13, getDatePiiConsent());
}
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(primaryEmail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, primaryEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billType_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, billType_);
}
if (dateGdprConsent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDateGdprConsent());
}
if (dateTosConsent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDateTosConsent());
}
if (dateMarketingConsent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDateMarketingConsent());
}
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMetadata());
}
for (int i = 0; i < emailAddresses_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, emailAddresses_.get(i));
}
if (twoFactorAuthEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, twoFactorAuthEnabled_);
}
if (teamsCount_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, teamsCount_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(country_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, country_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(state_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, state_);
}
if (datePiiConsent_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getDatePiiConsent());
}
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.UserDetail)) {
return super.equals(obj);
}
com.clarifai.grpc.api.UserDetail other = (com.clarifai.grpc.api.UserDetail) obj;
if (!getPrimaryEmail()
.equals(other.getPrimaryEmail())) return false;
if (!getBillType()
.equals(other.getBillType())) 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 (!getCountry()
.equals(other.getCountry())) return false;
if (!getState()
.equals(other.getState())) 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) + PRIMARY_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getPrimaryEmail().hashCode();
hash = (37 * hash) + BILL_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getBillType().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) + COUNTRY_FIELD_NUMBER;
hash = (53 * hash) + getCountry().hashCode();
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.clarifai.grpc.api.UserDetail parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.UserDetail 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.UserDetail parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.UserDetail 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.UserDetail parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.clarifai.grpc.api.UserDetail parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.clarifai.grpc.api.UserDetail parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.UserDetail 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.UserDetail parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.UserDetail 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.UserDetail parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.clarifai.grpc.api.UserDetail 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.UserDetail 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;
}
/**
*
* This message holds the confidential information from the User object that we don't want to expose
* to other users. It will be accessible only from /users/{user_id}/account and with the User scopes.
*
*
* Protobuf type {@code clarifai.api.UserDetail}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:clarifai.api.UserDetail)
com.clarifai.grpc.api.UserDetailOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_UserDetail_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_UserDetail_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.clarifai.grpc.api.UserDetail.class, com.clarifai.grpc.api.UserDetail.Builder.class);
}
// Construct using com.clarifai.grpc.api.UserDetail.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();
primaryEmail_ = "";
billType_ = "";
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;
country_ = "";
state_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.clarifai.grpc.api.Resources.internal_static_clarifai_api_UserDetail_descriptor;
}
@java.lang.Override
public com.clarifai.grpc.api.UserDetail getDefaultInstanceForType() {
return com.clarifai.grpc.api.UserDetail.getDefaultInstance();
}
@java.lang.Override
public com.clarifai.grpc.api.UserDetail build() {
com.clarifai.grpc.api.UserDetail result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.clarifai.grpc.api.UserDetail buildPartial() {
com.clarifai.grpc.api.UserDetail result = new com.clarifai.grpc.api.UserDetail(this);
int from_bitField0_ = bitField0_;
result.primaryEmail_ = primaryEmail_;
result.billType_ = billType_;
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.country_ = country_;
result.state_ = state_;
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.UserDetail) {
return mergeFrom((com.clarifai.grpc.api.UserDetail)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.clarifai.grpc.api.UserDetail other) {
if (other == com.clarifai.grpc.api.UserDetail.getDefaultInstance()) return this;
if (!other.getPrimaryEmail().isEmpty()) {
primaryEmail_ = other.primaryEmail_;
onChanged();
}
if (!other.getBillType().isEmpty()) {
billType_ = other.billType_;
onChanged();
}
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.getCountry().isEmpty()) {
country_ = other.country_;
onChanged();
}
if (!other.getState().isEmpty()) {
state_ = other.state_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.clarifai.grpc.api.UserDetail parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.clarifai.grpc.api.UserDetail) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object primaryEmail_ = "";
/**
* string primary_email = 1;
* @return The primaryEmail.
*/
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 = 1;
* @return The bytes for primaryEmail.
*/
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 = 1;
* @param value The primaryEmail to set.
* @return This builder for chaining.
*/
public Builder setPrimaryEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
primaryEmail_ = value;
onChanged();
return this;
}
/**
* string primary_email = 1;
* @return This builder for chaining.
*/
public Builder clearPrimaryEmail() {
primaryEmail_ = getDefaultInstance().getPrimaryEmail();
onChanged();
return this;
}
/**
* string primary_email = 1;
* @param value The bytes for primaryEmail to set.
* @return This builder for chaining.
*/
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 billType_ = "";
/**
* string bill_type = 2;
* @return The billType.
*/
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 = 2;
* @return The bytes for billType.
*/
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 = 2;
* @param value The billType to set.
* @return This builder for chaining.
*/
public Builder setBillType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
billType_ = value;
onChanged();
return this;
}
/**
* string bill_type = 2;
* @return This builder for chaining.
*/
public Builder clearBillType() {
billType_ = getDefaultInstance().getBillType();
onChanged();
return this;
}
/**
* string bill_type = 2;
* @param value The bytes for billType to set.
* @return This builder for chaining.
*/
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 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 = 3;
* @return Whether the dateGdprConsent field is set.
*/
public boolean hasDateGdprConsent() {
return dateGdprConsentBuilder_ != null || dateGdprConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
* @return The dateGdprConsent.
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
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 = 3;
*/
public Builder clearDateGdprConsent() {
if (dateGdprConsentBuilder_ == null) {
dateGdprConsent_ = null;
onChanged();
} else {
dateGdprConsent_ = null;
dateGdprConsentBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
*/
public com.google.protobuf.Timestamp.Builder getDateGdprConsentBuilder() {
onChanged();
return getDateGdprConsentFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp date_gdpr_consent = 3;
*/
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 = 3;
*/
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 = 4;
* @return Whether the dateTosConsent field is set.
*/
public boolean hasDateTosConsent() {
return dateTosConsentBuilder_ != null || dateTosConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
* @return The dateTosConsent.
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
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 = 4;
*/
public Builder clearDateTosConsent() {
if (dateTosConsentBuilder_ == null) {
dateTosConsent_ = null;
onChanged();
} else {
dateTosConsent_ = null;
dateTosConsentBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
*/
public com.google.protobuf.Timestamp.Builder getDateTosConsentBuilder() {
onChanged();
return getDateTosConsentFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp date_tos_consent = 4;
*/
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 = 4;
*/
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 = 5;
* @return Whether the dateMarketingConsent field is set.
*/
public boolean hasDateMarketingConsent() {
return dateMarketingConsentBuilder_ != null || dateMarketingConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
* @return The dateMarketingConsent.
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
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 = 5;
*/
public Builder clearDateMarketingConsent() {
if (dateMarketingConsentBuilder_ == null) {
dateMarketingConsent_ = null;
onChanged();
} else {
dateMarketingConsent_ = null;
dateMarketingConsentBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
*/
public com.google.protobuf.Timestamp.Builder getDateMarketingConsentBuilder() {
onChanged();
return getDateMarketingConsentFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp date_marketing_consent = 5;
*/
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 = 5;
*/
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 = 13;
* @return Whether the datePiiConsent field is set.
*/
public boolean hasDatePiiConsent() {
return datePiiConsentBuilder_ != null || datePiiConsent_ != null;
}
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
* @return The datePiiConsent.
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
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 = 13;
*/
public Builder clearDatePiiConsent() {
if (datePiiConsentBuilder_ == null) {
datePiiConsent_ = null;
onChanged();
} else {
datePiiConsent_ = null;
datePiiConsentBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
*/
public com.google.protobuf.Timestamp.Builder getDatePiiConsentBuilder() {
onChanged();
return getDatePiiConsentFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp date_pii_consent = 13;
*/
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 = 13;
*/
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 = 6;
* @return Whether the metadata field is set.
*/
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 = 6;
* @return The metadata.
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 6;
*/
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 = 7;
*/
public java.util.List getEmailAddressesList() {
if (emailAddressesBuilder_ == null) {
return java.util.Collections.unmodifiableList(emailAddresses_);
} else {
return emailAddressesBuilder_.getMessageList();
}
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
public int getEmailAddressesCount() {
if (emailAddressesBuilder_ == null) {
return emailAddresses_.size();
} else {
return emailAddressesBuilder_.getCount();
}
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
public Builder addAllEmailAddresses(
java.lang.Iterable extends com.clarifai.grpc.api.EmailAddress> 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 = 7;
*/
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 = 7;
*/
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 = 7;
*/
public com.clarifai.grpc.api.EmailAddress.Builder getEmailAddressesBuilder(
int index) {
return getEmailAddressesFieldBuilder().getBuilder(index);
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
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 = 7;
*/
public java.util.List extends com.clarifai.grpc.api.EmailAddressOrBuilder>
getEmailAddressesOrBuilderList() {
if (emailAddressesBuilder_ != null) {
return emailAddressesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(emailAddresses_);
}
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
public com.clarifai.grpc.api.EmailAddress.Builder addEmailAddressesBuilder() {
return getEmailAddressesFieldBuilder().addBuilder(
com.clarifai.grpc.api.EmailAddress.getDefaultInstance());
}
/**
* repeated .clarifai.api.EmailAddress email_addresses = 7;
*/
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 = 7;
*/
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 = 9;
* @return The twoFactorAuthEnabled.
*/
@java.lang.Override
public boolean getTwoFactorAuthEnabled() {
return twoFactorAuthEnabled_;
}
/**
* bool two_factor_auth_enabled = 9;
* @param value The twoFactorAuthEnabled to set.
* @return This builder for chaining.
*/
public Builder setTwoFactorAuthEnabled(boolean value) {
twoFactorAuthEnabled_ = value;
onChanged();
return this;
}
/**
* bool two_factor_auth_enabled = 9;
* @return This builder for chaining.
*/
public Builder clearTwoFactorAuthEnabled() {
twoFactorAuthEnabled_ = false;
onChanged();
return this;
}
private int teamsCount_ ;
/**
* uint32 teams_count = 10;
* @return The teamsCount.
*/
@java.lang.Override
public int getTeamsCount() {
return teamsCount_;
}
/**
* uint32 teams_count = 10;
* @param value The teamsCount to set.
* @return This builder for chaining.
*/
public Builder setTeamsCount(int value) {
teamsCount_ = value;
onChanged();
return this;
}
/**
* uint32 teams_count = 10;
* @return This builder for chaining.
*/
public Builder clearTeamsCount() {
teamsCount_ = 0;
onChanged();
return this;
}
private java.lang.Object country_ = "";
/**
* string country = 11;
* @return The country.
*/
public java.lang.String getCountry() {
java.lang.Object ref = country_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
country_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string country = 11;
* @return The bytes for country.
*/
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
country_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string country = 11;
* @param value The country to set.
* @return This builder for chaining.
*/
public Builder setCountry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
country_ = value;
onChanged();
return this;
}
/**
* string country = 11;
* @return This builder for chaining.
*/
public Builder clearCountry() {
country_ = getDefaultInstance().getCountry();
onChanged();
return this;
}
/**
* string country = 11;
* @param value The bytes for country to set.
* @return This builder for chaining.
*/
public Builder setCountryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
country_ = value;
onChanged();
return this;
}
private java.lang.Object state_ = "";
/**
* string state = 12;
* @return The state.
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
state_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string state = 12;
* @return The bytes for state.
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string state = 12;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value;
onChanged();
return this;
}
/**
* string state = 12;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* string state = 12;
* @param value The bytes for state to set.
* @return This builder for chaining.
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
state_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:clarifai.api.UserDetail)
}
// @@protoc_insertion_point(class_scope:clarifai.api.UserDetail)
private static final com.clarifai.grpc.api.UserDetail DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.clarifai.grpc.api.UserDetail();
}
public static com.clarifai.grpc.api.UserDetail getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UserDetail parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UserDetail(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.UserDetail getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}