dev.crashteam.crm.CreateLeadRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crm.proto
package dev.crashteam.crm;
/**
* Protobuf type {@code crm.CreateLeadRequest}
*/
public final class CreateLeadRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.CreateLeadRequest)
CreateLeadRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateLeadRequest.newBuilder() to construct.
private CreateLeadRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateLeadRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateLeadRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateLeadRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder subBuilder = null;
if (payloadCase_ == 1) {
subBuilder = ((dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_).toBuilder();
}
payload_ =
input.readMessage(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_);
payload_ = subBuilder.buildPartial();
}
payloadCase_ = 1;
break;
}
case 18: {
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder subBuilder = null;
if (payloadCase_ == 2) {
subBuilder = ((dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_).toBuilder();
}
payload_ =
input.readMessage(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_);
payload_ = subBuilder.buildPartial();
}
payloadCase_ = 2;
break;
}
case 26: {
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder subBuilder = null;
if (payloadCase_ == 3) {
subBuilder = ((dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_).toBuilder();
}
payload_ =
input.readMessage(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_);
payload_ = subBuilder.buildPartial();
}
payloadCase_ = 3;
break;
}
case 34: {
dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder subBuilder = null;
if (utmTag_ != null) {
subBuilder = utmTag_.toBuilder();
}
utmTag_ = input.readMessage(dev.crashteam.crm.CreateLeadRequest.UtmTag.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(utmTag_);
utmTag_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.class, dev.crashteam.crm.CreateLeadRequest.Builder.class);
}
public interface CreateDemoLeadOrBuilder extends
// @@protoc_insertion_point(interface_extends:crm.CreateLeadRequest.CreateDemoLead)
com.google.protobuf.MessageOrBuilder {
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
boolean hasUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
dev.crashteam.crm.UserIdentity getUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
*/
dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
boolean hasUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder();
/**
* string user_email = 3;
* @return The userEmail.
*/
java.lang.String getUserEmail();
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* optional string telegram_username = 4;
* @return Whether the telegramUsername field is set.
*/
boolean hasTelegramUsername();
/**
* optional string telegram_username = 4;
* @return The telegramUsername.
*/
java.lang.String getTelegramUsername();
/**
* optional string telegram_username = 4;
* @return The bytes for telegramUsername.
*/
com.google.protobuf.ByteString
getTelegramUsernameBytes();
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateDemoLead}
*/
public static final class CreateDemoLead extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.CreateLeadRequest.CreateDemoLead)
CreateDemoLeadOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateDemoLead.newBuilder() to construct.
private CreateDemoLead(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateDemoLead() {
userEmail_ = "";
telegramUsername_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateDemoLead();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateDemoLead(
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: {
dev.crashteam.crm.UserIdentity.Builder subBuilder = null;
if (userIdentity_ != null) {
subBuilder = userIdentity_.toBuilder();
}
userIdentity_ = input.readMessage(dev.crashteam.crm.UserIdentity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userIdentity_);
userIdentity_ = subBuilder.buildPartial();
}
break;
}
case 18: {
dev.crashteam.crm.UserPhoneNumber.Builder subBuilder = null;
if (userPhoneNumber_ != null) {
subBuilder = userPhoneNumber_.toBuilder();
}
userPhoneNumber_ = input.readMessage(dev.crashteam.crm.UserPhoneNumber.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userPhoneNumber_);
userPhoneNumber_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
telegramUsername_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateDemoLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateDemoLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.class, dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder.class);
}
private int bitField0_;
public static final int USER_IDENTITY_FIELD_NUMBER = 1;
private dev.crashteam.crm.UserIdentity userIdentity_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
@java.lang.Override
public boolean hasUserIdentity() {
return userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentity getUserIdentity() {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
return getUserIdentity();
}
public static final int USER_PHONE_NUMBER_FIELD_NUMBER = 2;
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
@java.lang.Override
public boolean hasUserPhoneNumber() {
return userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
return getUserPhoneNumber();
}
public static final int USER_EMAIL_FIELD_NUMBER = 3;
private volatile java.lang.Object userEmail_;
/**
* string user_email = 3;
* @return The userEmail.
*/
@java.lang.Override
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TELEGRAM_USERNAME_FIELD_NUMBER = 4;
private volatile java.lang.Object telegramUsername_;
/**
* optional string telegram_username = 4;
* @return Whether the telegramUsername field is set.
*/
@java.lang.Override
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 4;
* @return The telegramUsername.
*/
@java.lang.Override
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
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();
telegramUsername_ = s;
return s;
}
}
/**
* optional string telegram_username = 4;
* @return The bytes for telegramUsername.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = 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 (userIdentity_ != null) {
output.writeMessage(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
output.writeMessage(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userEmail_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, telegramUsername_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userIdentity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userEmail_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, telegramUsername_);
}
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 dev.crashteam.crm.CreateLeadRequest.CreateDemoLead)) {
return super.equals(obj);
}
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead other = (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) obj;
if (hasUserIdentity() != other.hasUserIdentity()) return false;
if (hasUserIdentity()) {
if (!getUserIdentity()
.equals(other.getUserIdentity())) return false;
}
if (hasUserPhoneNumber() != other.hasUserPhoneNumber()) return false;
if (hasUserPhoneNumber()) {
if (!getUserPhoneNumber()
.equals(other.getUserPhoneNumber())) return false;
}
if (!getUserEmail()
.equals(other.getUserEmail())) return false;
if (hasTelegramUsername() != other.hasTelegramUsername()) return false;
if (hasTelegramUsername()) {
if (!getTelegramUsername()
.equals(other.getTelegramUsername())) 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();
if (hasUserIdentity()) {
hash = (37 * hash) + USER_IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getUserIdentity().hashCode();
}
if (hasUserPhoneNumber()) {
hash = (37 * hash) + USER_PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getUserPhoneNumber().hashCode();
}
hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
if (hasTelegramUsername()) {
hash = (37 * hash) + TELEGRAM_USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getTelegramUsername().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead 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 dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead 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 dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead 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(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead 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;
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateDemoLead}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.CreateLeadRequest.CreateDemoLead)
dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateDemoLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateDemoLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.class, dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder.class);
}
// Construct using dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
userEmail_ = "";
telegramUsername_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateDemoLead_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead getDefaultInstanceForType() {
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead build() {
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead buildPartial() {
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead result = new dev.crashteam.crm.CreateLeadRequest.CreateDemoLead(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (userIdentityBuilder_ == null) {
result.userIdentity_ = userIdentity_;
} else {
result.userIdentity_ = userIdentityBuilder_.build();
}
if (userPhoneNumberBuilder_ == null) {
result.userPhoneNumber_ = userPhoneNumber_;
} else {
result.userPhoneNumber_ = userPhoneNumberBuilder_.build();
}
result.userEmail_ = userEmail_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.telegramUsername_ = telegramUsername_;
result.bitField0_ = to_bitField0_;
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 dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) {
return mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateDemoLead)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead other) {
if (other == dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance()) return this;
if (other.hasUserIdentity()) {
mergeUserIdentity(other.getUserIdentity());
}
if (other.hasUserPhoneNumber()) {
mergeUserPhoneNumber(other.getUserPhoneNumber());
}
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (other.hasTelegramUsername()) {
bitField0_ |= 0x00000001;
telegramUsername_ = other.telegramUsername_;
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 {
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private dev.crashteam.crm.UserIdentity userIdentity_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder> userIdentityBuilder_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
public boolean hasUserIdentity() {
return userIdentityBuilder_ != null || userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
public dev.crashteam.crm.UserIdentity getUserIdentity() {
if (userIdentityBuilder_ == null) {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
} else {
return userIdentityBuilder_.getMessage();
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userIdentity_ = value;
onChanged();
} else {
userIdentityBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(
dev.crashteam.crm.UserIdentity.Builder builderForValue) {
if (userIdentityBuilder_ == null) {
userIdentity_ = builderForValue.build();
onChanged();
} else {
userIdentityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder mergeUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (userIdentity_ != null) {
userIdentity_ =
dev.crashteam.crm.UserIdentity.newBuilder(userIdentity_).mergeFrom(value).buildPartial();
} else {
userIdentity_ = value;
}
onChanged();
} else {
userIdentityBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder clearUserIdentity() {
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
onChanged();
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentity.Builder getUserIdentityBuilder() {
onChanged();
return getUserIdentityFieldBuilder().getBuilder();
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
if (userIdentityBuilder_ != null) {
return userIdentityBuilder_.getMessageOrBuilder();
} else {
return userIdentity_ == null ?
dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>
getUserIdentityFieldBuilder() {
if (userIdentityBuilder_ == null) {
userIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>(
getUserIdentity(),
getParentForChildren(),
isClean());
userIdentity_ = null;
}
return userIdentityBuilder_;
}
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder> userPhoneNumberBuilder_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
public boolean hasUserPhoneNumber() {
return userPhoneNumberBuilder_ != null || userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
} else {
return userPhoneNumberBuilder_.getMessage();
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userPhoneNumber_ = value;
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(
dev.crashteam.crm.UserPhoneNumber.Builder builderForValue) {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = builderForValue.build();
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder mergeUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (userPhoneNumber_ != null) {
userPhoneNumber_ =
dev.crashteam.crm.UserPhoneNumber.newBuilder(userPhoneNumber_).mergeFrom(value).buildPartial();
} else {
userPhoneNumber_ = value;
}
onChanged();
} else {
userPhoneNumberBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder clearUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
onChanged();
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumber.Builder getUserPhoneNumberBuilder() {
onChanged();
return getUserPhoneNumberFieldBuilder().getBuilder();
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
if (userPhoneNumberBuilder_ != null) {
return userPhoneNumberBuilder_.getMessageOrBuilder();
} else {
return userPhoneNumber_ == null ?
dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>
getUserPhoneNumberFieldBuilder() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>(
getUserPhoneNumber(),
getParentForChildren(),
isClean());
userPhoneNumber_ = null;
}
return userPhoneNumberBuilder_;
}
private java.lang.Object userEmail_ = "";
/**
* string user_email = 3;
* @return The userEmail.
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user_email = 3;
* @param value The userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string user_email = 3;
* @return This builder for chaining.
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string user_email = 3;
* @param value The bytes for userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object telegramUsername_ = "";
/**
* optional string telegram_username = 4;
* @return Whether the telegramUsername field is set.
*/
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 4;
* @return The telegramUsername.
*/
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telegramUsername_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string telegram_username = 4;
* @return The bytes for telegramUsername.
*/
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string telegram_username = 4;
* @param value The telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
telegramUsername_ = value;
onChanged();
return this;
}
/**
* optional string telegram_username = 4;
* @return This builder for chaining.
*/
public Builder clearTelegramUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
telegramUsername_ = getDefaultInstance().getTelegramUsername();
onChanged();
return this;
}
/**
* optional string telegram_username = 4;
* @param value The bytes for telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
telegramUsername_ = 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:crm.CreateLeadRequest.CreateDemoLead)
}
// @@protoc_insertion_point(class_scope:crm.CreateLeadRequest.CreateDemoLead)
private static final dev.crashteam.crm.CreateLeadRequest.CreateDemoLead DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.CreateLeadRequest.CreateDemoLead();
}
public static dev.crashteam.crm.CreateLeadRequest.CreateDemoLead getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateDemoLead parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateDemoLead(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 dev.crashteam.crm.CreateLeadRequest.CreateDemoLead getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateFeedbackLeadOrBuilder extends
// @@protoc_insertion_point(interface_extends:crm.CreateLeadRequest.CreateFeedbackLead)
com.google.protobuf.MessageOrBuilder {
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
boolean hasUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
dev.crashteam.crm.UserIdentity getUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
*/
dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
boolean hasUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder();
/**
* string user_email = 3;
* @return The userEmail.
*/
java.lang.String getUserEmail();
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* string feedback_message = 4;
* @return The feedbackMessage.
*/
java.lang.String getFeedbackMessage();
/**
* string feedback_message = 4;
* @return The bytes for feedbackMessage.
*/
com.google.protobuf.ByteString
getFeedbackMessageBytes();
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
boolean hasTelegramUsername();
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
java.lang.String getTelegramUsername();
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
com.google.protobuf.ByteString
getTelegramUsernameBytes();
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateFeedbackLead}
*/
public static final class CreateFeedbackLead extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.CreateLeadRequest.CreateFeedbackLead)
CreateFeedbackLeadOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateFeedbackLead.newBuilder() to construct.
private CreateFeedbackLead(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateFeedbackLead() {
userEmail_ = "";
feedbackMessage_ = "";
telegramUsername_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateFeedbackLead();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateFeedbackLead(
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: {
dev.crashteam.crm.UserIdentity.Builder subBuilder = null;
if (userIdentity_ != null) {
subBuilder = userIdentity_.toBuilder();
}
userIdentity_ = input.readMessage(dev.crashteam.crm.UserIdentity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userIdentity_);
userIdentity_ = subBuilder.buildPartial();
}
break;
}
case 18: {
dev.crashteam.crm.UserPhoneNumber.Builder subBuilder = null;
if (userPhoneNumber_ != null) {
subBuilder = userPhoneNumber_.toBuilder();
}
userPhoneNumber_ = input.readMessage(dev.crashteam.crm.UserPhoneNumber.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userPhoneNumber_);
userPhoneNumber_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
feedbackMessage_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
telegramUsername_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateFeedbackLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateFeedbackLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.class, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder.class);
}
private int bitField0_;
public static final int USER_IDENTITY_FIELD_NUMBER = 1;
private dev.crashteam.crm.UserIdentity userIdentity_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
@java.lang.Override
public boolean hasUserIdentity() {
return userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentity getUserIdentity() {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
return getUserIdentity();
}
public static final int USER_PHONE_NUMBER_FIELD_NUMBER = 2;
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
@java.lang.Override
public boolean hasUserPhoneNumber() {
return userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
return getUserPhoneNumber();
}
public static final int USER_EMAIL_FIELD_NUMBER = 3;
private volatile java.lang.Object userEmail_;
/**
* string user_email = 3;
* @return The userEmail.
*/
@java.lang.Override
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FEEDBACK_MESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object feedbackMessage_;
/**
* string feedback_message = 4;
* @return The feedbackMessage.
*/
@java.lang.Override
public java.lang.String getFeedbackMessage() {
java.lang.Object ref = feedbackMessage_;
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();
feedbackMessage_ = s;
return s;
}
}
/**
* string feedback_message = 4;
* @return The bytes for feedbackMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFeedbackMessageBytes() {
java.lang.Object ref = feedbackMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedbackMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TELEGRAM_USERNAME_FIELD_NUMBER = 5;
private volatile java.lang.Object telegramUsername_;
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
@java.lang.Override
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
@java.lang.Override
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
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();
telegramUsername_ = s;
return s;
}
}
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = 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 (userIdentity_ != null) {
output.writeMessage(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
output.writeMessage(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedbackMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, feedbackMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, telegramUsername_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userIdentity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(feedbackMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, feedbackMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, telegramUsername_);
}
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 dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead)) {
return super.equals(obj);
}
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead other = (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) obj;
if (hasUserIdentity() != other.hasUserIdentity()) return false;
if (hasUserIdentity()) {
if (!getUserIdentity()
.equals(other.getUserIdentity())) return false;
}
if (hasUserPhoneNumber() != other.hasUserPhoneNumber()) return false;
if (hasUserPhoneNumber()) {
if (!getUserPhoneNumber()
.equals(other.getUserPhoneNumber())) return false;
}
if (!getUserEmail()
.equals(other.getUserEmail())) return false;
if (!getFeedbackMessage()
.equals(other.getFeedbackMessage())) return false;
if (hasTelegramUsername() != other.hasTelegramUsername()) return false;
if (hasTelegramUsername()) {
if (!getTelegramUsername()
.equals(other.getTelegramUsername())) 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();
if (hasUserIdentity()) {
hash = (37 * hash) + USER_IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getUserIdentity().hashCode();
}
if (hasUserPhoneNumber()) {
hash = (37 * hash) + USER_PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getUserPhoneNumber().hashCode();
}
hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (37 * hash) + FEEDBACK_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getFeedbackMessage().hashCode();
if (hasTelegramUsername()) {
hash = (37 * hash) + TELEGRAM_USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getTelegramUsername().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead 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 dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead 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 dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead 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(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead 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;
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateFeedbackLead}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.CreateLeadRequest.CreateFeedbackLead)
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateFeedbackLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateFeedbackLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.class, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder.class);
}
// Construct using dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
userEmail_ = "";
feedbackMessage_ = "";
telegramUsername_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateFeedbackLead_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead getDefaultInstanceForType() {
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead build() {
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead buildPartial() {
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead result = new dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (userIdentityBuilder_ == null) {
result.userIdentity_ = userIdentity_;
} else {
result.userIdentity_ = userIdentityBuilder_.build();
}
if (userPhoneNumberBuilder_ == null) {
result.userPhoneNumber_ = userPhoneNumber_;
} else {
result.userPhoneNumber_ = userPhoneNumberBuilder_.build();
}
result.userEmail_ = userEmail_;
result.feedbackMessage_ = feedbackMessage_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.telegramUsername_ = telegramUsername_;
result.bitField0_ = to_bitField0_;
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 dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) {
return mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead other) {
if (other == dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance()) return this;
if (other.hasUserIdentity()) {
mergeUserIdentity(other.getUserIdentity());
}
if (other.hasUserPhoneNumber()) {
mergeUserPhoneNumber(other.getUserPhoneNumber());
}
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (!other.getFeedbackMessage().isEmpty()) {
feedbackMessage_ = other.feedbackMessage_;
onChanged();
}
if (other.hasTelegramUsername()) {
bitField0_ |= 0x00000001;
telegramUsername_ = other.telegramUsername_;
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 {
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private dev.crashteam.crm.UserIdentity userIdentity_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder> userIdentityBuilder_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
public boolean hasUserIdentity() {
return userIdentityBuilder_ != null || userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
public dev.crashteam.crm.UserIdentity getUserIdentity() {
if (userIdentityBuilder_ == null) {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
} else {
return userIdentityBuilder_.getMessage();
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userIdentity_ = value;
onChanged();
} else {
userIdentityBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(
dev.crashteam.crm.UserIdentity.Builder builderForValue) {
if (userIdentityBuilder_ == null) {
userIdentity_ = builderForValue.build();
onChanged();
} else {
userIdentityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder mergeUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (userIdentity_ != null) {
userIdentity_ =
dev.crashteam.crm.UserIdentity.newBuilder(userIdentity_).mergeFrom(value).buildPartial();
} else {
userIdentity_ = value;
}
onChanged();
} else {
userIdentityBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder clearUserIdentity() {
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
onChanged();
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentity.Builder getUserIdentityBuilder() {
onChanged();
return getUserIdentityFieldBuilder().getBuilder();
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
if (userIdentityBuilder_ != null) {
return userIdentityBuilder_.getMessageOrBuilder();
} else {
return userIdentity_ == null ?
dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>
getUserIdentityFieldBuilder() {
if (userIdentityBuilder_ == null) {
userIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>(
getUserIdentity(),
getParentForChildren(),
isClean());
userIdentity_ = null;
}
return userIdentityBuilder_;
}
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder> userPhoneNumberBuilder_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
public boolean hasUserPhoneNumber() {
return userPhoneNumberBuilder_ != null || userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
} else {
return userPhoneNumberBuilder_.getMessage();
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userPhoneNumber_ = value;
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(
dev.crashteam.crm.UserPhoneNumber.Builder builderForValue) {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = builderForValue.build();
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder mergeUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (userPhoneNumber_ != null) {
userPhoneNumber_ =
dev.crashteam.crm.UserPhoneNumber.newBuilder(userPhoneNumber_).mergeFrom(value).buildPartial();
} else {
userPhoneNumber_ = value;
}
onChanged();
} else {
userPhoneNumberBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder clearUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
onChanged();
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumber.Builder getUserPhoneNumberBuilder() {
onChanged();
return getUserPhoneNumberFieldBuilder().getBuilder();
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
if (userPhoneNumberBuilder_ != null) {
return userPhoneNumberBuilder_.getMessageOrBuilder();
} else {
return userPhoneNumber_ == null ?
dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>
getUserPhoneNumberFieldBuilder() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>(
getUserPhoneNumber(),
getParentForChildren(),
isClean());
userPhoneNumber_ = null;
}
return userPhoneNumberBuilder_;
}
private java.lang.Object userEmail_ = "";
/**
* string user_email = 3;
* @return The userEmail.
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user_email = 3;
* @param value The userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string user_email = 3;
* @return This builder for chaining.
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string user_email = 3;
* @param value The bytes for userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object feedbackMessage_ = "";
/**
* string feedback_message = 4;
* @return The feedbackMessage.
*/
public java.lang.String getFeedbackMessage() {
java.lang.Object ref = feedbackMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
feedbackMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string feedback_message = 4;
* @return The bytes for feedbackMessage.
*/
public com.google.protobuf.ByteString
getFeedbackMessageBytes() {
java.lang.Object ref = feedbackMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
feedbackMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string feedback_message = 4;
* @param value The feedbackMessage to set.
* @return This builder for chaining.
*/
public Builder setFeedbackMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
feedbackMessage_ = value;
onChanged();
return this;
}
/**
* string feedback_message = 4;
* @return This builder for chaining.
*/
public Builder clearFeedbackMessage() {
feedbackMessage_ = getDefaultInstance().getFeedbackMessage();
onChanged();
return this;
}
/**
* string feedback_message = 4;
* @param value The bytes for feedbackMessage to set.
* @return This builder for chaining.
*/
public Builder setFeedbackMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
feedbackMessage_ = value;
onChanged();
return this;
}
private java.lang.Object telegramUsername_ = "";
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telegramUsername_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string telegram_username = 5;
* @param value The telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
telegramUsername_ = value;
onChanged();
return this;
}
/**
* optional string telegram_username = 5;
* @return This builder for chaining.
*/
public Builder clearTelegramUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
telegramUsername_ = getDefaultInstance().getTelegramUsername();
onChanged();
return this;
}
/**
* optional string telegram_username = 5;
* @param value The bytes for telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
telegramUsername_ = 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:crm.CreateLeadRequest.CreateFeedbackLead)
}
// @@protoc_insertion_point(class_scope:crm.CreateLeadRequest.CreateFeedbackLead)
private static final dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead();
}
public static dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateFeedbackLead parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateFeedbackLead(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 dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CreateServiceLeadOrBuilder extends
// @@protoc_insertion_point(interface_extends:crm.CreateLeadRequest.CreateServiceLead)
com.google.protobuf.MessageOrBuilder {
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
boolean hasUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
dev.crashteam.crm.UserIdentity getUserIdentity();
/**
* .crm.UserIdentity user_identity = 1;
*/
dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
boolean hasUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber();
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder();
/**
* string user_email = 3;
* @return The userEmail.
*/
java.lang.String getUserEmail();
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
com.google.protobuf.ByteString
getUserEmailBytes();
/**
* string service_name = 4;
* @return The serviceName.
*/
java.lang.String getServiceName();
/**
* string service_name = 4;
* @return The bytes for serviceName.
*/
com.google.protobuf.ByteString
getServiceNameBytes();
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
boolean hasTelegramUsername();
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
java.lang.String getTelegramUsername();
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
com.google.protobuf.ByteString
getTelegramUsernameBytes();
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateServiceLead}
*/
public static final class CreateServiceLead extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.CreateLeadRequest.CreateServiceLead)
CreateServiceLeadOrBuilder {
private static final long serialVersionUID = 0L;
// Use CreateServiceLead.newBuilder() to construct.
private CreateServiceLead(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CreateServiceLead() {
userEmail_ = "";
serviceName_ = "";
telegramUsername_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CreateServiceLead();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CreateServiceLead(
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: {
dev.crashteam.crm.UserIdentity.Builder subBuilder = null;
if (userIdentity_ != null) {
subBuilder = userIdentity_.toBuilder();
}
userIdentity_ = input.readMessage(dev.crashteam.crm.UserIdentity.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userIdentity_);
userIdentity_ = subBuilder.buildPartial();
}
break;
}
case 18: {
dev.crashteam.crm.UserPhoneNumber.Builder subBuilder = null;
if (userPhoneNumber_ != null) {
subBuilder = userPhoneNumber_.toBuilder();
}
userPhoneNumber_ = input.readMessage(dev.crashteam.crm.UserPhoneNumber.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userPhoneNumber_);
userPhoneNumber_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
userEmail_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
serviceName_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
telegramUsername_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateServiceLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateServiceLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.class, dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder.class);
}
private int bitField0_;
public static final int USER_IDENTITY_FIELD_NUMBER = 1;
private dev.crashteam.crm.UserIdentity userIdentity_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
@java.lang.Override
public boolean hasUserIdentity() {
return userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentity getUserIdentity() {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
@java.lang.Override
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
return getUserIdentity();
}
public static final int USER_PHONE_NUMBER_FIELD_NUMBER = 2;
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
@java.lang.Override
public boolean hasUserPhoneNumber() {
return userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
@java.lang.Override
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
return getUserPhoneNumber();
}
public static final int USER_EMAIL_FIELD_NUMBER = 3;
private volatile java.lang.Object userEmail_;
/**
* string user_email = 3;
* @return The userEmail.
*/
@java.lang.Override
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
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();
userEmail_ = s;
return s;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_NAME_FIELD_NUMBER = 4;
private volatile java.lang.Object serviceName_;
/**
* string service_name = 4;
* @return The serviceName.
*/
@java.lang.Override
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
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();
serviceName_ = s;
return s;
}
}
/**
* string service_name = 4;
* @return The bytes for serviceName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TELEGRAM_USERNAME_FIELD_NUMBER = 5;
private volatile java.lang.Object telegramUsername_;
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
@java.lang.Override
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
@java.lang.Override
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
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();
telegramUsername_ = s;
return s;
}
}
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = 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 (userIdentity_ != null) {
output.writeMessage(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
output.writeMessage(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, userEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, serviceName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, telegramUsername_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (userIdentity_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getUserIdentity());
}
if (userPhoneNumber_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserPhoneNumber());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmail_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userEmail_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceName_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, telegramUsername_);
}
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 dev.crashteam.crm.CreateLeadRequest.CreateServiceLead)) {
return super.equals(obj);
}
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead other = (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) obj;
if (hasUserIdentity() != other.hasUserIdentity()) return false;
if (hasUserIdentity()) {
if (!getUserIdentity()
.equals(other.getUserIdentity())) return false;
}
if (hasUserPhoneNumber() != other.hasUserPhoneNumber()) return false;
if (hasUserPhoneNumber()) {
if (!getUserPhoneNumber()
.equals(other.getUserPhoneNumber())) return false;
}
if (!getUserEmail()
.equals(other.getUserEmail())) return false;
if (!getServiceName()
.equals(other.getServiceName())) return false;
if (hasTelegramUsername() != other.hasTelegramUsername()) return false;
if (hasTelegramUsername()) {
if (!getTelegramUsername()
.equals(other.getTelegramUsername())) 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();
if (hasUserIdentity()) {
hash = (37 * hash) + USER_IDENTITY_FIELD_NUMBER;
hash = (53 * hash) + getUserIdentity().hashCode();
}
if (hasUserPhoneNumber()) {
hash = (37 * hash) + USER_PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getUserPhoneNumber().hashCode();
}
hash = (37 * hash) + USER_EMAIL_FIELD_NUMBER;
hash = (53 * hash) + getUserEmail().hashCode();
hash = (37 * hash) + SERVICE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServiceName().hashCode();
if (hasTelegramUsername()) {
hash = (37 * hash) + TELEGRAM_USERNAME_FIELD_NUMBER;
hash = (53 * hash) + getTelegramUsername().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead 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 dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead 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 dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead 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(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead 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;
}
/**
* Protobuf type {@code crm.CreateLeadRequest.CreateServiceLead}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.CreateLeadRequest.CreateServiceLead)
dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateServiceLead_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateServiceLead_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.class, dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder.class);
}
// Construct using dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
userEmail_ = "";
serviceName_ = "";
telegramUsername_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_CreateServiceLead_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead getDefaultInstanceForType() {
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead build() {
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead buildPartial() {
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead result = new dev.crashteam.crm.CreateLeadRequest.CreateServiceLead(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (userIdentityBuilder_ == null) {
result.userIdentity_ = userIdentity_;
} else {
result.userIdentity_ = userIdentityBuilder_.build();
}
if (userPhoneNumberBuilder_ == null) {
result.userPhoneNumber_ = userPhoneNumber_;
} else {
result.userPhoneNumber_ = userPhoneNumberBuilder_.build();
}
result.userEmail_ = userEmail_;
result.serviceName_ = serviceName_;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.telegramUsername_ = telegramUsername_;
result.bitField0_ = to_bitField0_;
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 dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) {
return mergeFrom((dev.crashteam.crm.CreateLeadRequest.CreateServiceLead)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead other) {
if (other == dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance()) return this;
if (other.hasUserIdentity()) {
mergeUserIdentity(other.getUserIdentity());
}
if (other.hasUserPhoneNumber()) {
mergeUserPhoneNumber(other.getUserPhoneNumber());
}
if (!other.getUserEmail().isEmpty()) {
userEmail_ = other.userEmail_;
onChanged();
}
if (!other.getServiceName().isEmpty()) {
serviceName_ = other.serviceName_;
onChanged();
}
if (other.hasTelegramUsername()) {
bitField0_ |= 0x00000001;
telegramUsername_ = other.telegramUsername_;
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 {
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private dev.crashteam.crm.UserIdentity userIdentity_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder> userIdentityBuilder_;
/**
* .crm.UserIdentity user_identity = 1;
* @return Whether the userIdentity field is set.
*/
public boolean hasUserIdentity() {
return userIdentityBuilder_ != null || userIdentity_ != null;
}
/**
* .crm.UserIdentity user_identity = 1;
* @return The userIdentity.
*/
public dev.crashteam.crm.UserIdentity getUserIdentity() {
if (userIdentityBuilder_ == null) {
return userIdentity_ == null ? dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
} else {
return userIdentityBuilder_.getMessage();
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userIdentity_ = value;
onChanged();
} else {
userIdentityBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder setUserIdentity(
dev.crashteam.crm.UserIdentity.Builder builderForValue) {
if (userIdentityBuilder_ == null) {
userIdentity_ = builderForValue.build();
onChanged();
} else {
userIdentityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder mergeUserIdentity(dev.crashteam.crm.UserIdentity value) {
if (userIdentityBuilder_ == null) {
if (userIdentity_ != null) {
userIdentity_ =
dev.crashteam.crm.UserIdentity.newBuilder(userIdentity_).mergeFrom(value).buildPartial();
} else {
userIdentity_ = value;
}
onChanged();
} else {
userIdentityBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public Builder clearUserIdentity() {
if (userIdentityBuilder_ == null) {
userIdentity_ = null;
onChanged();
} else {
userIdentity_ = null;
userIdentityBuilder_ = null;
}
return this;
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentity.Builder getUserIdentityBuilder() {
onChanged();
return getUserIdentityFieldBuilder().getBuilder();
}
/**
* .crm.UserIdentity user_identity = 1;
*/
public dev.crashteam.crm.UserIdentityOrBuilder getUserIdentityOrBuilder() {
if (userIdentityBuilder_ != null) {
return userIdentityBuilder_.getMessageOrBuilder();
} else {
return userIdentity_ == null ?
dev.crashteam.crm.UserIdentity.getDefaultInstance() : userIdentity_;
}
}
/**
* .crm.UserIdentity user_identity = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>
getUserIdentityFieldBuilder() {
if (userIdentityBuilder_ == null) {
userIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserIdentity, dev.crashteam.crm.UserIdentity.Builder, dev.crashteam.crm.UserIdentityOrBuilder>(
getUserIdentity(),
getParentForChildren(),
isClean());
userIdentity_ = null;
}
return userIdentityBuilder_;
}
private dev.crashteam.crm.UserPhoneNumber userPhoneNumber_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder> userPhoneNumberBuilder_;
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return Whether the userPhoneNumber field is set.
*/
public boolean hasUserPhoneNumber() {
return userPhoneNumberBuilder_ != null || userPhoneNumber_ != null;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
* @return The userPhoneNumber.
*/
public dev.crashteam.crm.UserPhoneNumber getUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
return userPhoneNumber_ == null ? dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
} else {
return userPhoneNumberBuilder_.getMessage();
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userPhoneNumber_ = value;
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder setUserPhoneNumber(
dev.crashteam.crm.UserPhoneNumber.Builder builderForValue) {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = builderForValue.build();
onChanged();
} else {
userPhoneNumberBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder mergeUserPhoneNumber(dev.crashteam.crm.UserPhoneNumber value) {
if (userPhoneNumberBuilder_ == null) {
if (userPhoneNumber_ != null) {
userPhoneNumber_ =
dev.crashteam.crm.UserPhoneNumber.newBuilder(userPhoneNumber_).mergeFrom(value).buildPartial();
} else {
userPhoneNumber_ = value;
}
onChanged();
} else {
userPhoneNumberBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public Builder clearUserPhoneNumber() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumber_ = null;
onChanged();
} else {
userPhoneNumber_ = null;
userPhoneNumberBuilder_ = null;
}
return this;
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumber.Builder getUserPhoneNumberBuilder() {
onChanged();
return getUserPhoneNumberFieldBuilder().getBuilder();
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
public dev.crashteam.crm.UserPhoneNumberOrBuilder getUserPhoneNumberOrBuilder() {
if (userPhoneNumberBuilder_ != null) {
return userPhoneNumberBuilder_.getMessageOrBuilder();
} else {
return userPhoneNumber_ == null ?
dev.crashteam.crm.UserPhoneNumber.getDefaultInstance() : userPhoneNumber_;
}
}
/**
* .crm.UserPhoneNumber user_phone_number = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>
getUserPhoneNumberFieldBuilder() {
if (userPhoneNumberBuilder_ == null) {
userPhoneNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.UserPhoneNumber, dev.crashteam.crm.UserPhoneNumber.Builder, dev.crashteam.crm.UserPhoneNumberOrBuilder>(
getUserPhoneNumber(),
getParentForChildren(),
isClean());
userPhoneNumber_ = null;
}
return userPhoneNumberBuilder_;
}
private java.lang.Object userEmail_ = "";
/**
* string user_email = 3;
* @return The userEmail.
*/
public java.lang.String getUserEmail() {
java.lang.Object ref = userEmail_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
userEmail_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string user_email = 3;
* @return The bytes for userEmail.
*/
public com.google.protobuf.ByteString
getUserEmailBytes() {
java.lang.Object ref = userEmail_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
userEmail_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string user_email = 3;
* @param value The userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmail(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
userEmail_ = value;
onChanged();
return this;
}
/**
* string user_email = 3;
* @return This builder for chaining.
*/
public Builder clearUserEmail() {
userEmail_ = getDefaultInstance().getUserEmail();
onChanged();
return this;
}
/**
* string user_email = 3;
* @param value The bytes for userEmail to set.
* @return This builder for chaining.
*/
public Builder setUserEmailBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
userEmail_ = value;
onChanged();
return this;
}
private java.lang.Object serviceName_ = "";
/**
* string service_name = 4;
* @return The serviceName.
*/
public java.lang.String getServiceName() {
java.lang.Object ref = serviceName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string service_name = 4;
* @return The bytes for serviceName.
*/
public com.google.protobuf.ByteString
getServiceNameBytes() {
java.lang.Object ref = serviceName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string service_name = 4;
* @param value The serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceName_ = value;
onChanged();
return this;
}
/**
* string service_name = 4;
* @return This builder for chaining.
*/
public Builder clearServiceName() {
serviceName_ = getDefaultInstance().getServiceName();
onChanged();
return this;
}
/**
* string service_name = 4;
* @param value The bytes for serviceName to set.
* @return This builder for chaining.
*/
public Builder setServiceNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceName_ = value;
onChanged();
return this;
}
private java.lang.Object telegramUsername_ = "";
/**
* optional string telegram_username = 5;
* @return Whether the telegramUsername field is set.
*/
public boolean hasTelegramUsername() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string telegram_username = 5;
* @return The telegramUsername.
*/
public java.lang.String getTelegramUsername() {
java.lang.Object ref = telegramUsername_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
telegramUsername_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string telegram_username = 5;
* @return The bytes for telegramUsername.
*/
public com.google.protobuf.ByteString
getTelegramUsernameBytes() {
java.lang.Object ref = telegramUsername_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
telegramUsername_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string telegram_username = 5;
* @param value The telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsername(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
telegramUsername_ = value;
onChanged();
return this;
}
/**
* optional string telegram_username = 5;
* @return This builder for chaining.
*/
public Builder clearTelegramUsername() {
bitField0_ = (bitField0_ & ~0x00000001);
telegramUsername_ = getDefaultInstance().getTelegramUsername();
onChanged();
return this;
}
/**
* optional string telegram_username = 5;
* @param value The bytes for telegramUsername to set.
* @return This builder for chaining.
*/
public Builder setTelegramUsernameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
telegramUsername_ = 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:crm.CreateLeadRequest.CreateServiceLead)
}
// @@protoc_insertion_point(class_scope:crm.CreateLeadRequest.CreateServiceLead)
private static final dev.crashteam.crm.CreateLeadRequest.CreateServiceLead DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.CreateLeadRequest.CreateServiceLead();
}
public static dev.crashteam.crm.CreateLeadRequest.CreateServiceLead getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateServiceLead parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateServiceLead(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 dev.crashteam.crm.CreateLeadRequest.CreateServiceLead getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UtmTagOrBuilder extends
// @@protoc_insertion_point(interface_extends:crm.CreateLeadRequest.UtmTag)
com.google.protobuf.MessageOrBuilder {
/**
* optional string utm_source = 1;
* @return Whether the utmSource field is set.
*/
boolean hasUtmSource();
/**
* optional string utm_source = 1;
* @return The utmSource.
*/
java.lang.String getUtmSource();
/**
* optional string utm_source = 1;
* @return The bytes for utmSource.
*/
com.google.protobuf.ByteString
getUtmSourceBytes();
/**
* optional string utm_medium = 2;
* @return Whether the utmMedium field is set.
*/
boolean hasUtmMedium();
/**
* optional string utm_medium = 2;
* @return The utmMedium.
*/
java.lang.String getUtmMedium();
/**
* optional string utm_medium = 2;
* @return The bytes for utmMedium.
*/
com.google.protobuf.ByteString
getUtmMediumBytes();
/**
* optional string utm_campaign = 3;
* @return Whether the utmCampaign field is set.
*/
boolean hasUtmCampaign();
/**
* optional string utm_campaign = 3;
* @return The utmCampaign.
*/
java.lang.String getUtmCampaign();
/**
* optional string utm_campaign = 3;
* @return The bytes for utmCampaign.
*/
com.google.protobuf.ByteString
getUtmCampaignBytes();
/**
* optional string utm_content = 4;
* @return Whether the utmContent field is set.
*/
boolean hasUtmContent();
/**
* optional string utm_content = 4;
* @return The utmContent.
*/
java.lang.String getUtmContent();
/**
* optional string utm_content = 4;
* @return The bytes for utmContent.
*/
com.google.protobuf.ByteString
getUtmContentBytes();
/**
* optional string utm_term = 5;
* @return Whether the utmTerm field is set.
*/
boolean hasUtmTerm();
/**
* optional string utm_term = 5;
* @return The utmTerm.
*/
java.lang.String getUtmTerm();
/**
* optional string utm_term = 5;
* @return The bytes for utmTerm.
*/
com.google.protobuf.ByteString
getUtmTermBytes();
}
/**
* Protobuf type {@code crm.CreateLeadRequest.UtmTag}
*/
public static final class UtmTag extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.CreateLeadRequest.UtmTag)
UtmTagOrBuilder {
private static final long serialVersionUID = 0L;
// Use UtmTag.newBuilder() to construct.
private UtmTag(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UtmTag() {
utmSource_ = "";
utmMedium_ = "";
utmCampaign_ = "";
utmContent_ = "";
utmTerm_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UtmTag();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UtmTag(
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();
bitField0_ |= 0x00000001;
utmSource_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
utmMedium_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
utmCampaign_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
utmContent_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
utmTerm_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_UtmTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_UtmTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.UtmTag.class, dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder.class);
}
private int bitField0_;
public static final int UTM_SOURCE_FIELD_NUMBER = 1;
private volatile java.lang.Object utmSource_;
/**
* optional string utm_source = 1;
* @return Whether the utmSource field is set.
*/
@java.lang.Override
public boolean hasUtmSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string utm_source = 1;
* @return The utmSource.
*/
@java.lang.Override
public java.lang.String getUtmSource() {
java.lang.Object ref = utmSource_;
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();
utmSource_ = s;
return s;
}
}
/**
* optional string utm_source = 1;
* @return The bytes for utmSource.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUtmSourceBytes() {
java.lang.Object ref = utmSource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UTM_MEDIUM_FIELD_NUMBER = 2;
private volatile java.lang.Object utmMedium_;
/**
* optional string utm_medium = 2;
* @return Whether the utmMedium field is set.
*/
@java.lang.Override
public boolean hasUtmMedium() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string utm_medium = 2;
* @return The utmMedium.
*/
@java.lang.Override
public java.lang.String getUtmMedium() {
java.lang.Object ref = utmMedium_;
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();
utmMedium_ = s;
return s;
}
}
/**
* optional string utm_medium = 2;
* @return The bytes for utmMedium.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUtmMediumBytes() {
java.lang.Object ref = utmMedium_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmMedium_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UTM_CAMPAIGN_FIELD_NUMBER = 3;
private volatile java.lang.Object utmCampaign_;
/**
* optional string utm_campaign = 3;
* @return Whether the utmCampaign field is set.
*/
@java.lang.Override
public boolean hasUtmCampaign() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string utm_campaign = 3;
* @return The utmCampaign.
*/
@java.lang.Override
public java.lang.String getUtmCampaign() {
java.lang.Object ref = utmCampaign_;
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();
utmCampaign_ = s;
return s;
}
}
/**
* optional string utm_campaign = 3;
* @return The bytes for utmCampaign.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUtmCampaignBytes() {
java.lang.Object ref = utmCampaign_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmCampaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UTM_CONTENT_FIELD_NUMBER = 4;
private volatile java.lang.Object utmContent_;
/**
* optional string utm_content = 4;
* @return Whether the utmContent field is set.
*/
@java.lang.Override
public boolean hasUtmContent() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string utm_content = 4;
* @return The utmContent.
*/
@java.lang.Override
public java.lang.String getUtmContent() {
java.lang.Object ref = utmContent_;
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();
utmContent_ = s;
return s;
}
}
/**
* optional string utm_content = 4;
* @return The bytes for utmContent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUtmContentBytes() {
java.lang.Object ref = utmContent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UTM_TERM_FIELD_NUMBER = 5;
private volatile java.lang.Object utmTerm_;
/**
* optional string utm_term = 5;
* @return Whether the utmTerm field is set.
*/
@java.lang.Override
public boolean hasUtmTerm() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string utm_term = 5;
* @return The utmTerm.
*/
@java.lang.Override
public java.lang.String getUtmTerm() {
java.lang.Object ref = utmTerm_;
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();
utmTerm_ = s;
return s;
}
}
/**
* optional string utm_term = 5;
* @return The bytes for utmTerm.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUtmTermBytes() {
java.lang.Object ref = utmTerm_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmTerm_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, utmSource_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, utmMedium_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, utmCampaign_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, utmContent_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, utmTerm_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, utmSource_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, utmMedium_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, utmCampaign_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, utmContent_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, utmTerm_);
}
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 dev.crashteam.crm.CreateLeadRequest.UtmTag)) {
return super.equals(obj);
}
dev.crashteam.crm.CreateLeadRequest.UtmTag other = (dev.crashteam.crm.CreateLeadRequest.UtmTag) obj;
if (hasUtmSource() != other.hasUtmSource()) return false;
if (hasUtmSource()) {
if (!getUtmSource()
.equals(other.getUtmSource())) return false;
}
if (hasUtmMedium() != other.hasUtmMedium()) return false;
if (hasUtmMedium()) {
if (!getUtmMedium()
.equals(other.getUtmMedium())) return false;
}
if (hasUtmCampaign() != other.hasUtmCampaign()) return false;
if (hasUtmCampaign()) {
if (!getUtmCampaign()
.equals(other.getUtmCampaign())) return false;
}
if (hasUtmContent() != other.hasUtmContent()) return false;
if (hasUtmContent()) {
if (!getUtmContent()
.equals(other.getUtmContent())) return false;
}
if (hasUtmTerm() != other.hasUtmTerm()) return false;
if (hasUtmTerm()) {
if (!getUtmTerm()
.equals(other.getUtmTerm())) 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();
if (hasUtmSource()) {
hash = (37 * hash) + UTM_SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getUtmSource().hashCode();
}
if (hasUtmMedium()) {
hash = (37 * hash) + UTM_MEDIUM_FIELD_NUMBER;
hash = (53 * hash) + getUtmMedium().hashCode();
}
if (hasUtmCampaign()) {
hash = (37 * hash) + UTM_CAMPAIGN_FIELD_NUMBER;
hash = (53 * hash) + getUtmCampaign().hashCode();
}
if (hasUtmContent()) {
hash = (37 * hash) + UTM_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getUtmContent().hashCode();
}
if (hasUtmTerm()) {
hash = (37 * hash) + UTM_TERM_FIELD_NUMBER;
hash = (53 * hash) + getUtmTerm().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag 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 dev.crashteam.crm.CreateLeadRequest.UtmTag parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag 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 dev.crashteam.crm.CreateLeadRequest.UtmTag parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag 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(dev.crashteam.crm.CreateLeadRequest.UtmTag 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;
}
/**
* Protobuf type {@code crm.CreateLeadRequest.UtmTag}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.CreateLeadRequest.UtmTag)
dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_UtmTag_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_UtmTag_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.UtmTag.class, dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder.class);
}
// Construct using dev.crashteam.crm.CreateLeadRequest.UtmTag.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
utmSource_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
utmMedium_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
utmCampaign_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
utmContent_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
utmTerm_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_UtmTag_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.UtmTag getDefaultInstanceForType() {
return dev.crashteam.crm.CreateLeadRequest.UtmTag.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.UtmTag build() {
dev.crashteam.crm.CreateLeadRequest.UtmTag result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.UtmTag buildPartial() {
dev.crashteam.crm.CreateLeadRequest.UtmTag result = new dev.crashteam.crm.CreateLeadRequest.UtmTag(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.utmSource_ = utmSource_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.utmMedium_ = utmMedium_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.utmCampaign_ = utmCampaign_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.utmContent_ = utmContent_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.utmTerm_ = utmTerm_;
result.bitField0_ = to_bitField0_;
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 dev.crashteam.crm.CreateLeadRequest.UtmTag) {
return mergeFrom((dev.crashteam.crm.CreateLeadRequest.UtmTag)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.CreateLeadRequest.UtmTag other) {
if (other == dev.crashteam.crm.CreateLeadRequest.UtmTag.getDefaultInstance()) return this;
if (other.hasUtmSource()) {
bitField0_ |= 0x00000001;
utmSource_ = other.utmSource_;
onChanged();
}
if (other.hasUtmMedium()) {
bitField0_ |= 0x00000002;
utmMedium_ = other.utmMedium_;
onChanged();
}
if (other.hasUtmCampaign()) {
bitField0_ |= 0x00000004;
utmCampaign_ = other.utmCampaign_;
onChanged();
}
if (other.hasUtmContent()) {
bitField0_ |= 0x00000008;
utmContent_ = other.utmContent_;
onChanged();
}
if (other.hasUtmTerm()) {
bitField0_ |= 0x00000010;
utmTerm_ = other.utmTerm_;
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 {
dev.crashteam.crm.CreateLeadRequest.UtmTag parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.CreateLeadRequest.UtmTag) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object utmSource_ = "";
/**
* optional string utm_source = 1;
* @return Whether the utmSource field is set.
*/
public boolean hasUtmSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string utm_source = 1;
* @return The utmSource.
*/
public java.lang.String getUtmSource() {
java.lang.Object ref = utmSource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
utmSource_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string utm_source = 1;
* @return The bytes for utmSource.
*/
public com.google.protobuf.ByteString
getUtmSourceBytes() {
java.lang.Object ref = utmSource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string utm_source = 1;
* @param value The utmSource to set.
* @return This builder for chaining.
*/
public Builder setUtmSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
utmSource_ = value;
onChanged();
return this;
}
/**
* optional string utm_source = 1;
* @return This builder for chaining.
*/
public Builder clearUtmSource() {
bitField0_ = (bitField0_ & ~0x00000001);
utmSource_ = getDefaultInstance().getUtmSource();
onChanged();
return this;
}
/**
* optional string utm_source = 1;
* @param value The bytes for utmSource to set.
* @return This builder for chaining.
*/
public Builder setUtmSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
utmSource_ = value;
onChanged();
return this;
}
private java.lang.Object utmMedium_ = "";
/**
* optional string utm_medium = 2;
* @return Whether the utmMedium field is set.
*/
public boolean hasUtmMedium() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string utm_medium = 2;
* @return The utmMedium.
*/
public java.lang.String getUtmMedium() {
java.lang.Object ref = utmMedium_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
utmMedium_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string utm_medium = 2;
* @return The bytes for utmMedium.
*/
public com.google.protobuf.ByteString
getUtmMediumBytes() {
java.lang.Object ref = utmMedium_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmMedium_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string utm_medium = 2;
* @param value The utmMedium to set.
* @return This builder for chaining.
*/
public Builder setUtmMedium(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
utmMedium_ = value;
onChanged();
return this;
}
/**
* optional string utm_medium = 2;
* @return This builder for chaining.
*/
public Builder clearUtmMedium() {
bitField0_ = (bitField0_ & ~0x00000002);
utmMedium_ = getDefaultInstance().getUtmMedium();
onChanged();
return this;
}
/**
* optional string utm_medium = 2;
* @param value The bytes for utmMedium to set.
* @return This builder for chaining.
*/
public Builder setUtmMediumBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
utmMedium_ = value;
onChanged();
return this;
}
private java.lang.Object utmCampaign_ = "";
/**
* optional string utm_campaign = 3;
* @return Whether the utmCampaign field is set.
*/
public boolean hasUtmCampaign() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string utm_campaign = 3;
* @return The utmCampaign.
*/
public java.lang.String getUtmCampaign() {
java.lang.Object ref = utmCampaign_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
utmCampaign_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string utm_campaign = 3;
* @return The bytes for utmCampaign.
*/
public com.google.protobuf.ByteString
getUtmCampaignBytes() {
java.lang.Object ref = utmCampaign_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmCampaign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string utm_campaign = 3;
* @param value The utmCampaign to set.
* @return This builder for chaining.
*/
public Builder setUtmCampaign(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
utmCampaign_ = value;
onChanged();
return this;
}
/**
* optional string utm_campaign = 3;
* @return This builder for chaining.
*/
public Builder clearUtmCampaign() {
bitField0_ = (bitField0_ & ~0x00000004);
utmCampaign_ = getDefaultInstance().getUtmCampaign();
onChanged();
return this;
}
/**
* optional string utm_campaign = 3;
* @param value The bytes for utmCampaign to set.
* @return This builder for chaining.
*/
public Builder setUtmCampaignBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000004;
utmCampaign_ = value;
onChanged();
return this;
}
private java.lang.Object utmContent_ = "";
/**
* optional string utm_content = 4;
* @return Whether the utmContent field is set.
*/
public boolean hasUtmContent() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string utm_content = 4;
* @return The utmContent.
*/
public java.lang.String getUtmContent() {
java.lang.Object ref = utmContent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
utmContent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string utm_content = 4;
* @return The bytes for utmContent.
*/
public com.google.protobuf.ByteString
getUtmContentBytes() {
java.lang.Object ref = utmContent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string utm_content = 4;
* @param value The utmContent to set.
* @return This builder for chaining.
*/
public Builder setUtmContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
utmContent_ = value;
onChanged();
return this;
}
/**
* optional string utm_content = 4;
* @return This builder for chaining.
*/
public Builder clearUtmContent() {
bitField0_ = (bitField0_ & ~0x00000008);
utmContent_ = getDefaultInstance().getUtmContent();
onChanged();
return this;
}
/**
* optional string utm_content = 4;
* @param value The bytes for utmContent to set.
* @return This builder for chaining.
*/
public Builder setUtmContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000008;
utmContent_ = value;
onChanged();
return this;
}
private java.lang.Object utmTerm_ = "";
/**
* optional string utm_term = 5;
* @return Whether the utmTerm field is set.
*/
public boolean hasUtmTerm() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string utm_term = 5;
* @return The utmTerm.
*/
public java.lang.String getUtmTerm() {
java.lang.Object ref = utmTerm_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
utmTerm_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string utm_term = 5;
* @return The bytes for utmTerm.
*/
public com.google.protobuf.ByteString
getUtmTermBytes() {
java.lang.Object ref = utmTerm_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
utmTerm_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string utm_term = 5;
* @param value The utmTerm to set.
* @return This builder for chaining.
*/
public Builder setUtmTerm(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
utmTerm_ = value;
onChanged();
return this;
}
/**
* optional string utm_term = 5;
* @return This builder for chaining.
*/
public Builder clearUtmTerm() {
bitField0_ = (bitField0_ & ~0x00000010);
utmTerm_ = getDefaultInstance().getUtmTerm();
onChanged();
return this;
}
/**
* optional string utm_term = 5;
* @param value The bytes for utmTerm to set.
* @return This builder for chaining.
*/
public Builder setUtmTermBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000010;
utmTerm_ = 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:crm.CreateLeadRequest.UtmTag)
}
// @@protoc_insertion_point(class_scope:crm.CreateLeadRequest.UtmTag)
private static final dev.crashteam.crm.CreateLeadRequest.UtmTag DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.CreateLeadRequest.UtmTag();
}
public static dev.crashteam.crm.CreateLeadRequest.UtmTag getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UtmTag parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UtmTag(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 dev.crashteam.crm.CreateLeadRequest.UtmTag getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int payloadCase_ = 0;
private java.lang.Object payload_;
public enum PayloadCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
CREATE_DEMO_LEAD(1),
CREATE_FEEDBACK_LEAD(2),
CREATE_SERVICE_LEAD(3),
PAYLOAD_NOT_SET(0);
private final int value;
private PayloadCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static PayloadCase valueOf(int value) {
return forNumber(value);
}
public static PayloadCase forNumber(int value) {
switch (value) {
case 1: return CREATE_DEMO_LEAD;
case 2: return CREATE_FEEDBACK_LEAD;
case 3: return CREATE_SERVICE_LEAD;
case 0: return PAYLOAD_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public static final int CREATE_DEMO_LEAD_FIELD_NUMBER = 1;
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
* @return Whether the createDemoLead field is set.
*/
@java.lang.Override
public boolean hasCreateDemoLead() {
return payloadCase_ == 1;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
* @return The createDemoLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead getCreateDemoLead() {
if (payloadCase_ == 1) {
return (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder getCreateDemoLeadOrBuilder() {
if (payloadCase_ == 1) {
return (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
public static final int CREATE_FEEDBACK_LEAD_FIELD_NUMBER = 2;
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
* @return Whether the createFeedbackLead field is set.
*/
@java.lang.Override
public boolean hasCreateFeedbackLead() {
return payloadCase_ == 2;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
* @return The createFeedbackLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead getCreateFeedbackLead() {
if (payloadCase_ == 2) {
return (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder getCreateFeedbackLeadOrBuilder() {
if (payloadCase_ == 2) {
return (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
public static final int CREATE_SERVICE_LEAD_FIELD_NUMBER = 3;
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
* @return Whether the createServiceLead field is set.
*/
@java.lang.Override
public boolean hasCreateServiceLead() {
return payloadCase_ == 3;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
* @return The createServiceLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead getCreateServiceLead() {
if (payloadCase_ == 3) {
return (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder getCreateServiceLeadOrBuilder() {
if (payloadCase_ == 3) {
return (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
public static final int UTM_TAG_FIELD_NUMBER = 4;
private dev.crashteam.crm.CreateLeadRequest.UtmTag utmTag_;
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
* @return Whether the utmTag field is set.
*/
@java.lang.Override
public boolean hasUtmTag() {
return utmTag_ != null;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
* @return The utmTag.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.UtmTag getUtmTag() {
return utmTag_ == null ? dev.crashteam.crm.CreateLeadRequest.UtmTag.getDefaultInstance() : utmTag_;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder getUtmTagOrBuilder() {
return getUtmTag();
}
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 (payloadCase_ == 1) {
output.writeMessage(1, (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_);
}
if (payloadCase_ == 2) {
output.writeMessage(2, (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_);
}
if (payloadCase_ == 3) {
output.writeMessage(3, (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_);
}
if (utmTag_ != null) {
output.writeMessage(4, getUtmTag());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (payloadCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_);
}
if (payloadCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_);
}
if (payloadCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_);
}
if (utmTag_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getUtmTag());
}
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 dev.crashteam.crm.CreateLeadRequest)) {
return super.equals(obj);
}
dev.crashteam.crm.CreateLeadRequest other = (dev.crashteam.crm.CreateLeadRequest) obj;
if (hasUtmTag() != other.hasUtmTag()) return false;
if (hasUtmTag()) {
if (!getUtmTag()
.equals(other.getUtmTag())) return false;
}
if (!getPayloadCase().equals(other.getPayloadCase())) return false;
switch (payloadCase_) {
case 1:
if (!getCreateDemoLead()
.equals(other.getCreateDemoLead())) return false;
break;
case 2:
if (!getCreateFeedbackLead()
.equals(other.getCreateFeedbackLead())) return false;
break;
case 3:
if (!getCreateServiceLead()
.equals(other.getCreateServiceLead())) return false;
break;
case 0:
default:
}
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();
if (hasUtmTag()) {
hash = (37 * hash) + UTM_TAG_FIELD_NUMBER;
hash = (53 * hash) + getUtmTag().hashCode();
}
switch (payloadCase_) {
case 1:
hash = (37 * hash) + CREATE_DEMO_LEAD_FIELD_NUMBER;
hash = (53 * hash) + getCreateDemoLead().hashCode();
break;
case 2:
hash = (37 * hash) + CREATE_FEEDBACK_LEAD_FIELD_NUMBER;
hash = (53 * hash) + getCreateFeedbackLead().hashCode();
break;
case 3:
hash = (37 * hash) + CREATE_SERVICE_LEAD_FIELD_NUMBER;
hash = (53 * hash) + getCreateServiceLead().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.CreateLeadRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest 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 dev.crashteam.crm.CreateLeadRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest 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 dev.crashteam.crm.CreateLeadRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.CreateLeadRequest 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(dev.crashteam.crm.CreateLeadRequest 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;
}
/**
* Protobuf type {@code crm.CreateLeadRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.CreateLeadRequest)
dev.crashteam.crm.CreateLeadRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.CreateLeadRequest.class, dev.crashteam.crm.CreateLeadRequest.Builder.class);
}
// Construct using dev.crashteam.crm.CreateLeadRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (utmTagBuilder_ == null) {
utmTag_ = null;
} else {
utmTag_ = null;
utmTagBuilder_ = null;
}
payloadCase_ = 0;
payload_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_CreateLeadRequest_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest getDefaultInstanceForType() {
return dev.crashteam.crm.CreateLeadRequest.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest build() {
dev.crashteam.crm.CreateLeadRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest buildPartial() {
dev.crashteam.crm.CreateLeadRequest result = new dev.crashteam.crm.CreateLeadRequest(this);
if (payloadCase_ == 1) {
if (createDemoLeadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = createDemoLeadBuilder_.build();
}
}
if (payloadCase_ == 2) {
if (createFeedbackLeadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = createFeedbackLeadBuilder_.build();
}
}
if (payloadCase_ == 3) {
if (createServiceLeadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = createServiceLeadBuilder_.build();
}
}
if (utmTagBuilder_ == null) {
result.utmTag_ = utmTag_;
} else {
result.utmTag_ = utmTagBuilder_.build();
}
result.payloadCase_ = payloadCase_;
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 dev.crashteam.crm.CreateLeadRequest) {
return mergeFrom((dev.crashteam.crm.CreateLeadRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.CreateLeadRequest other) {
if (other == dev.crashteam.crm.CreateLeadRequest.getDefaultInstance()) return this;
if (other.hasUtmTag()) {
mergeUtmTag(other.getUtmTag());
}
switch (other.getPayloadCase()) {
case CREATE_DEMO_LEAD: {
mergeCreateDemoLead(other.getCreateDemoLead());
break;
}
case CREATE_FEEDBACK_LEAD: {
mergeCreateFeedbackLead(other.getCreateFeedbackLead());
break;
}
case CREATE_SERVICE_LEAD: {
mergeCreateServiceLead(other.getCreateServiceLead());
break;
}
case PAYLOAD_NOT_SET: {
break;
}
}
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 {
dev.crashteam.crm.CreateLeadRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.CreateLeadRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int payloadCase_ = 0;
private java.lang.Object payload_;
public PayloadCase
getPayloadCase() {
return PayloadCase.forNumber(
payloadCase_);
}
public Builder clearPayload() {
payloadCase_ = 0;
payload_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead, dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder> createDemoLeadBuilder_;
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
* @return Whether the createDemoLead field is set.
*/
@java.lang.Override
public boolean hasCreateDemoLead() {
return payloadCase_ == 1;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
* @return The createDemoLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead getCreateDemoLead() {
if (createDemoLeadBuilder_ == null) {
if (payloadCase_ == 1) {
return (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
} else {
if (payloadCase_ == 1) {
return createDemoLeadBuilder_.getMessage();
}
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
public Builder setCreateDemoLead(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead value) {
if (createDemoLeadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
createDemoLeadBuilder_.setMessage(value);
}
payloadCase_ = 1;
return this;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
public Builder setCreateDemoLead(
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder builderForValue) {
if (createDemoLeadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
createDemoLeadBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 1;
return this;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
public Builder mergeCreateDemoLead(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead value) {
if (createDemoLeadBuilder_ == null) {
if (payloadCase_ == 1 &&
payload_ != dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance()) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.newBuilder((dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 1) {
createDemoLeadBuilder_.mergeFrom(value);
}
createDemoLeadBuilder_.setMessage(value);
}
payloadCase_ = 1;
return this;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
public Builder clearCreateDemoLead() {
if (createDemoLeadBuilder_ == null) {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 1) {
payloadCase_ = 0;
payload_ = null;
}
createDemoLeadBuilder_.clear();
}
return this;
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder getCreateDemoLeadBuilder() {
return getCreateDemoLeadFieldBuilder().getBuilder();
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder getCreateDemoLeadOrBuilder() {
if ((payloadCase_ == 1) && (createDemoLeadBuilder_ != null)) {
return createDemoLeadBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 1) {
return (dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateDemoLead create_demo_lead = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead, dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder>
getCreateDemoLeadFieldBuilder() {
if (createDemoLeadBuilder_ == null) {
if (!(payloadCase_ == 1)) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.getDefaultInstance();
}
createDemoLeadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateDemoLead, dev.crashteam.crm.CreateLeadRequest.CreateDemoLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateDemoLeadOrBuilder>(
(dev.crashteam.crm.CreateLeadRequest.CreateDemoLead) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 1;
onChanged();;
return createDemoLeadBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder> createFeedbackLeadBuilder_;
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
* @return Whether the createFeedbackLead field is set.
*/
@java.lang.Override
public boolean hasCreateFeedbackLead() {
return payloadCase_ == 2;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
* @return The createFeedbackLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead getCreateFeedbackLead() {
if (createFeedbackLeadBuilder_ == null) {
if (payloadCase_ == 2) {
return (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
} else {
if (payloadCase_ == 2) {
return createFeedbackLeadBuilder_.getMessage();
}
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
public Builder setCreateFeedbackLead(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead value) {
if (createFeedbackLeadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
createFeedbackLeadBuilder_.setMessage(value);
}
payloadCase_ = 2;
return this;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
public Builder setCreateFeedbackLead(
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder builderForValue) {
if (createFeedbackLeadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
createFeedbackLeadBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 2;
return this;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
public Builder mergeCreateFeedbackLead(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead value) {
if (createFeedbackLeadBuilder_ == null) {
if (payloadCase_ == 2 &&
payload_ != dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance()) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.newBuilder((dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 2) {
createFeedbackLeadBuilder_.mergeFrom(value);
}
createFeedbackLeadBuilder_.setMessage(value);
}
payloadCase_ = 2;
return this;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
public Builder clearCreateFeedbackLead() {
if (createFeedbackLeadBuilder_ == null) {
if (payloadCase_ == 2) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 2) {
payloadCase_ = 0;
payload_ = null;
}
createFeedbackLeadBuilder_.clear();
}
return this;
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder getCreateFeedbackLeadBuilder() {
return getCreateFeedbackLeadFieldBuilder().getBuilder();
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder getCreateFeedbackLeadOrBuilder() {
if ((payloadCase_ == 2) && (createFeedbackLeadBuilder_ != null)) {
return createFeedbackLeadBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 2) {
return (dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateFeedbackLead create_feedback_lead = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder>
getCreateFeedbackLeadFieldBuilder() {
if (createFeedbackLeadBuilder_ == null) {
if (!(payloadCase_ == 2)) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.getDefaultInstance();
}
createFeedbackLeadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLeadOrBuilder>(
(dev.crashteam.crm.CreateLeadRequest.CreateFeedbackLead) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 2;
onChanged();;
return createFeedbackLeadBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead, dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder> createServiceLeadBuilder_;
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
* @return Whether the createServiceLead field is set.
*/
@java.lang.Override
public boolean hasCreateServiceLead() {
return payloadCase_ == 3;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
* @return The createServiceLead.
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead getCreateServiceLead() {
if (createServiceLeadBuilder_ == null) {
if (payloadCase_ == 3) {
return (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
} else {
if (payloadCase_ == 3) {
return createServiceLeadBuilder_.getMessage();
}
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
public Builder setCreateServiceLead(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead value) {
if (createServiceLeadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
createServiceLeadBuilder_.setMessage(value);
}
payloadCase_ = 3;
return this;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
public Builder setCreateServiceLead(
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder builderForValue) {
if (createServiceLeadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
createServiceLeadBuilder_.setMessage(builderForValue.build());
}
payloadCase_ = 3;
return this;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
public Builder mergeCreateServiceLead(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead value) {
if (createServiceLeadBuilder_ == null) {
if (payloadCase_ == 3 &&
payload_ != dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance()) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.newBuilder((dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_)
.mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
if (payloadCase_ == 3) {
createServiceLeadBuilder_.mergeFrom(value);
}
createServiceLeadBuilder_.setMessage(value);
}
payloadCase_ = 3;
return this;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
public Builder clearCreateServiceLead() {
if (createServiceLeadBuilder_ == null) {
if (payloadCase_ == 3) {
payloadCase_ = 0;
payload_ = null;
onChanged();
}
} else {
if (payloadCase_ == 3) {
payloadCase_ = 0;
payload_ = null;
}
createServiceLeadBuilder_.clear();
}
return this;
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder getCreateServiceLeadBuilder() {
return getCreateServiceLeadFieldBuilder().getBuilder();
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
@java.lang.Override
public dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder getCreateServiceLeadOrBuilder() {
if ((payloadCase_ == 3) && (createServiceLeadBuilder_ != null)) {
return createServiceLeadBuilder_.getMessageOrBuilder();
} else {
if (payloadCase_ == 3) {
return (dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_;
}
return dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
}
/**
* .crm.CreateLeadRequest.CreateServiceLead create_service_lead = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead, dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder>
getCreateServiceLeadFieldBuilder() {
if (createServiceLeadBuilder_ == null) {
if (!(payloadCase_ == 3)) {
payload_ = dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.getDefaultInstance();
}
createServiceLeadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.CreateServiceLead, dev.crashteam.crm.CreateLeadRequest.CreateServiceLead.Builder, dev.crashteam.crm.CreateLeadRequest.CreateServiceLeadOrBuilder>(
(dev.crashteam.crm.CreateLeadRequest.CreateServiceLead) payload_,
getParentForChildren(),
isClean());
payload_ = null;
}
payloadCase_ = 3;
onChanged();;
return createServiceLeadBuilder_;
}
private dev.crashteam.crm.CreateLeadRequest.UtmTag utmTag_;
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.UtmTag, dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder, dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder> utmTagBuilder_;
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
* @return Whether the utmTag field is set.
*/
public boolean hasUtmTag() {
return utmTagBuilder_ != null || utmTag_ != null;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
* @return The utmTag.
*/
public dev.crashteam.crm.CreateLeadRequest.UtmTag getUtmTag() {
if (utmTagBuilder_ == null) {
return utmTag_ == null ? dev.crashteam.crm.CreateLeadRequest.UtmTag.getDefaultInstance() : utmTag_;
} else {
return utmTagBuilder_.getMessage();
}
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public Builder setUtmTag(dev.crashteam.crm.CreateLeadRequest.UtmTag value) {
if (utmTagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
utmTag_ = value;
onChanged();
} else {
utmTagBuilder_.setMessage(value);
}
return this;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public Builder setUtmTag(
dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder builderForValue) {
if (utmTagBuilder_ == null) {
utmTag_ = builderForValue.build();
onChanged();
} else {
utmTagBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public Builder mergeUtmTag(dev.crashteam.crm.CreateLeadRequest.UtmTag value) {
if (utmTagBuilder_ == null) {
if (utmTag_ != null) {
utmTag_ =
dev.crashteam.crm.CreateLeadRequest.UtmTag.newBuilder(utmTag_).mergeFrom(value).buildPartial();
} else {
utmTag_ = value;
}
onChanged();
} else {
utmTagBuilder_.mergeFrom(value);
}
return this;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public Builder clearUtmTag() {
if (utmTagBuilder_ == null) {
utmTag_ = null;
onChanged();
} else {
utmTag_ = null;
utmTagBuilder_ = null;
}
return this;
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder getUtmTagBuilder() {
onChanged();
return getUtmTagFieldBuilder().getBuilder();
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
public dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder getUtmTagOrBuilder() {
if (utmTagBuilder_ != null) {
return utmTagBuilder_.getMessageOrBuilder();
} else {
return utmTag_ == null ?
dev.crashteam.crm.CreateLeadRequest.UtmTag.getDefaultInstance() : utmTag_;
}
}
/**
* .crm.CreateLeadRequest.UtmTag utm_tag = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.UtmTag, dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder, dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder>
getUtmTagFieldBuilder() {
if (utmTagBuilder_ == null) {
utmTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
dev.crashteam.crm.CreateLeadRequest.UtmTag, dev.crashteam.crm.CreateLeadRequest.UtmTag.Builder, dev.crashteam.crm.CreateLeadRequest.UtmTagOrBuilder>(
getUtmTag(),
getParentForChildren(),
isClean());
utmTag_ = null;
}
return utmTagBuilder_;
}
@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:crm.CreateLeadRequest)
}
// @@protoc_insertion_point(class_scope:crm.CreateLeadRequest)
private static final dev.crashteam.crm.CreateLeadRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.CreateLeadRequest();
}
public static dev.crashteam.crm.CreateLeadRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CreateLeadRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CreateLeadRequest(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 dev.crashteam.crm.CreateLeadRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy