dev.crashteam.crm.SMSUserMessage Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crm.proto
package dev.crashteam.crm;
/**
* Protobuf type {@code crm.SMSUserMessage}
*/
public final class SMSUserMessage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:crm.SMSUserMessage)
SMSUserMessageOrBuilder {
private static final long serialVersionUID = 0L;
// Use SMSUserMessage.newBuilder() to construct.
private SMSUserMessage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SMSUserMessage() {
senderName_ = "";
receiverPhoneNumber_ = com.google.protobuf.LazyStringArrayList.EMPTY;
text_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SMSUserMessage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SMSUserMessage(
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();
senderName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
receiverPhoneNumber_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
receiverPhoneNumber_.add(s);
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
text_ = s;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = sendAtTime_.toBuilder();
}
sendAtTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(sendAtTime_);
sendAtTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
receiverPhoneNumber_ = receiverPhoneNumber_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_SMSUserMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_SMSUserMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.SMSUserMessage.class, dev.crashteam.crm.SMSUserMessage.Builder.class);
}
private int bitField0_;
public static final int SENDER_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object senderName_;
/**
* string sender_name = 1;
* @return The senderName.
*/
@java.lang.Override
public java.lang.String getSenderName() {
java.lang.Object ref = senderName_;
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();
senderName_ = s;
return s;
}
}
/**
* string sender_name = 1;
* @return The bytes for senderName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSenderNameBytes() {
java.lang.Object ref = senderName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RECEIVER_PHONE_NUMBER_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList receiverPhoneNumber_;
/**
* repeated string receiver_phone_number = 2;
* @return A list containing the receiverPhoneNumber.
*/
public com.google.protobuf.ProtocolStringList
getReceiverPhoneNumberList() {
return receiverPhoneNumber_;
}
/**
* repeated string receiver_phone_number = 2;
* @return The count of receiverPhoneNumber.
*/
public int getReceiverPhoneNumberCount() {
return receiverPhoneNumber_.size();
}
/**
* repeated string receiver_phone_number = 2;
* @param index The index of the element to return.
* @return The receiverPhoneNumber at the given index.
*/
public java.lang.String getReceiverPhoneNumber(int index) {
return receiverPhoneNumber_.get(index);
}
/**
* repeated string receiver_phone_number = 2;
* @param index The index of the value to return.
* @return The bytes of the receiverPhoneNumber at the given index.
*/
public com.google.protobuf.ByteString
getReceiverPhoneNumberBytes(int index) {
return receiverPhoneNumber_.getByteString(index);
}
public static final int TEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object text_;
/**
* string text = 3;
* @return The text.
*/
@java.lang.Override
public java.lang.String getText() {
java.lang.Object ref = text_;
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();
text_ = s;
return s;
}
}
/**
* string text = 3;
* @return The bytes for text.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEND_AT_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp sendAtTime_;
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
* @return Whether the sendAtTime field is set.
*/
@java.lang.Override
public boolean hasSendAtTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
* @return The sendAtTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getSendAtTime() {
return sendAtTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendAtTime_;
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getSendAtTimeOrBuilder() {
return sendAtTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendAtTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(senderName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, senderName_);
}
for (int i = 0; i < receiverPhoneNumber_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, receiverPhoneNumber_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, text_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(4, getSendAtTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(senderName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, senderName_);
}
{
int dataSize = 0;
for (int i = 0; i < receiverPhoneNumber_.size(); i++) {
dataSize += computeStringSizeNoTag(receiverPhoneNumber_.getRaw(i));
}
size += dataSize;
size += 1 * getReceiverPhoneNumberList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(text_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, text_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSendAtTime());
}
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.SMSUserMessage)) {
return super.equals(obj);
}
dev.crashteam.crm.SMSUserMessage other = (dev.crashteam.crm.SMSUserMessage) obj;
if (!getSenderName()
.equals(other.getSenderName())) return false;
if (!getReceiverPhoneNumberList()
.equals(other.getReceiverPhoneNumberList())) return false;
if (!getText()
.equals(other.getText())) return false;
if (hasSendAtTime() != other.hasSendAtTime()) return false;
if (hasSendAtTime()) {
if (!getSendAtTime()
.equals(other.getSendAtTime())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SENDER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSenderName().hashCode();
if (getReceiverPhoneNumberCount() > 0) {
hash = (37 * hash) + RECEIVER_PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getReceiverPhoneNumberList().hashCode();
}
hash = (37 * hash) + TEXT_FIELD_NUMBER;
hash = (53 * hash) + getText().hashCode();
if (hasSendAtTime()) {
hash = (37 * hash) + SEND_AT_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSendAtTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static dev.crashteam.crm.SMSUserMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.SMSUserMessage 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.SMSUserMessage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.SMSUserMessage 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.SMSUserMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static dev.crashteam.crm.SMSUserMessage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static dev.crashteam.crm.SMSUserMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.SMSUserMessage 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.SMSUserMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static dev.crashteam.crm.SMSUserMessage 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.SMSUserMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static dev.crashteam.crm.SMSUserMessage 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.SMSUserMessage 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.SMSUserMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:crm.SMSUserMessage)
dev.crashteam.crm.SMSUserMessageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return dev.crashteam.crm.CrmProto.internal_static_crm_SMSUserMessage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return dev.crashteam.crm.CrmProto.internal_static_crm_SMSUserMessage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
dev.crashteam.crm.SMSUserMessage.class, dev.crashteam.crm.SMSUserMessage.Builder.class);
}
// Construct using dev.crashteam.crm.SMSUserMessage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSendAtTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
senderName_ = "";
receiverPhoneNumber_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
text_ = "";
if (sendAtTimeBuilder_ == null) {
sendAtTime_ = null;
} else {
sendAtTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return dev.crashteam.crm.CrmProto.internal_static_crm_SMSUserMessage_descriptor;
}
@java.lang.Override
public dev.crashteam.crm.SMSUserMessage getDefaultInstanceForType() {
return dev.crashteam.crm.SMSUserMessage.getDefaultInstance();
}
@java.lang.Override
public dev.crashteam.crm.SMSUserMessage build() {
dev.crashteam.crm.SMSUserMessage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public dev.crashteam.crm.SMSUserMessage buildPartial() {
dev.crashteam.crm.SMSUserMessage result = new dev.crashteam.crm.SMSUserMessage(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.senderName_ = senderName_;
if (((bitField0_ & 0x00000001) != 0)) {
receiverPhoneNumber_ = receiverPhoneNumber_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.receiverPhoneNumber_ = receiverPhoneNumber_;
result.text_ = text_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (sendAtTimeBuilder_ == null) {
result.sendAtTime_ = sendAtTime_;
} else {
result.sendAtTime_ = sendAtTimeBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
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.SMSUserMessage) {
return mergeFrom((dev.crashteam.crm.SMSUserMessage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(dev.crashteam.crm.SMSUserMessage other) {
if (other == dev.crashteam.crm.SMSUserMessage.getDefaultInstance()) return this;
if (!other.getSenderName().isEmpty()) {
senderName_ = other.senderName_;
onChanged();
}
if (!other.receiverPhoneNumber_.isEmpty()) {
if (receiverPhoneNumber_.isEmpty()) {
receiverPhoneNumber_ = other.receiverPhoneNumber_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureReceiverPhoneNumberIsMutable();
receiverPhoneNumber_.addAll(other.receiverPhoneNumber_);
}
onChanged();
}
if (!other.getText().isEmpty()) {
text_ = other.text_;
onChanged();
}
if (other.hasSendAtTime()) {
mergeSendAtTime(other.getSendAtTime());
}
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.SMSUserMessage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (dev.crashteam.crm.SMSUserMessage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object senderName_ = "";
/**
* string sender_name = 1;
* @return The senderName.
*/
public java.lang.String getSenderName() {
java.lang.Object ref = senderName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
senderName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sender_name = 1;
* @return The bytes for senderName.
*/
public com.google.protobuf.ByteString
getSenderNameBytes() {
java.lang.Object ref = senderName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
senderName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sender_name = 1;
* @param value The senderName to set.
* @return This builder for chaining.
*/
public Builder setSenderName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
senderName_ = value;
onChanged();
return this;
}
/**
* string sender_name = 1;
* @return This builder for chaining.
*/
public Builder clearSenderName() {
senderName_ = getDefaultInstance().getSenderName();
onChanged();
return this;
}
/**
* string sender_name = 1;
* @param value The bytes for senderName to set.
* @return This builder for chaining.
*/
public Builder setSenderNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
senderName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList receiverPhoneNumber_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureReceiverPhoneNumberIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
receiverPhoneNumber_ = new com.google.protobuf.LazyStringArrayList(receiverPhoneNumber_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string receiver_phone_number = 2;
* @return A list containing the receiverPhoneNumber.
*/
public com.google.protobuf.ProtocolStringList
getReceiverPhoneNumberList() {
return receiverPhoneNumber_.getUnmodifiableView();
}
/**
* repeated string receiver_phone_number = 2;
* @return The count of receiverPhoneNumber.
*/
public int getReceiverPhoneNumberCount() {
return receiverPhoneNumber_.size();
}
/**
* repeated string receiver_phone_number = 2;
* @param index The index of the element to return.
* @return The receiverPhoneNumber at the given index.
*/
public java.lang.String getReceiverPhoneNumber(int index) {
return receiverPhoneNumber_.get(index);
}
/**
* repeated string receiver_phone_number = 2;
* @param index The index of the value to return.
* @return The bytes of the receiverPhoneNumber at the given index.
*/
public com.google.protobuf.ByteString
getReceiverPhoneNumberBytes(int index) {
return receiverPhoneNumber_.getByteString(index);
}
/**
* repeated string receiver_phone_number = 2;
* @param index The index to set the value at.
* @param value The receiverPhoneNumber to set.
* @return This builder for chaining.
*/
public Builder setReceiverPhoneNumber(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReceiverPhoneNumberIsMutable();
receiverPhoneNumber_.set(index, value);
onChanged();
return this;
}
/**
* repeated string receiver_phone_number = 2;
* @param value The receiverPhoneNumber to add.
* @return This builder for chaining.
*/
public Builder addReceiverPhoneNumber(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureReceiverPhoneNumberIsMutable();
receiverPhoneNumber_.add(value);
onChanged();
return this;
}
/**
* repeated string receiver_phone_number = 2;
* @param values The receiverPhoneNumber to add.
* @return This builder for chaining.
*/
public Builder addAllReceiverPhoneNumber(
java.lang.Iterable values) {
ensureReceiverPhoneNumberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, receiverPhoneNumber_);
onChanged();
return this;
}
/**
* repeated string receiver_phone_number = 2;
* @return This builder for chaining.
*/
public Builder clearReceiverPhoneNumber() {
receiverPhoneNumber_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string receiver_phone_number = 2;
* @param value The bytes of the receiverPhoneNumber to add.
* @return This builder for chaining.
*/
public Builder addReceiverPhoneNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureReceiverPhoneNumberIsMutable();
receiverPhoneNumber_.add(value);
onChanged();
return this;
}
private java.lang.Object text_ = "";
/**
* string text = 3;
* @return The text.
*/
public java.lang.String getText() {
java.lang.Object ref = text_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
text_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string text = 3;
* @return The bytes for text.
*/
public com.google.protobuf.ByteString
getTextBytes() {
java.lang.Object ref = text_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
text_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string text = 3;
* @param value The text to set.
* @return This builder for chaining.
*/
public Builder setText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
text_ = value;
onChanged();
return this;
}
/**
* string text = 3;
* @return This builder for chaining.
*/
public Builder clearText() {
text_ = getDefaultInstance().getText();
onChanged();
return this;
}
/**
* string text = 3;
* @param value The bytes for text to set.
* @return This builder for chaining.
*/
public Builder setTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
text_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp sendAtTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> sendAtTimeBuilder_;
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
* @return Whether the sendAtTime field is set.
*/
public boolean hasSendAtTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
* @return The sendAtTime.
*/
public com.google.protobuf.Timestamp getSendAtTime() {
if (sendAtTimeBuilder_ == null) {
return sendAtTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : sendAtTime_;
} else {
return sendAtTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public Builder setSendAtTime(com.google.protobuf.Timestamp value) {
if (sendAtTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
sendAtTime_ = value;
onChanged();
} else {
sendAtTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public Builder setSendAtTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (sendAtTimeBuilder_ == null) {
sendAtTime_ = builderForValue.build();
onChanged();
} else {
sendAtTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public Builder mergeSendAtTime(com.google.protobuf.Timestamp value) {
if (sendAtTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
sendAtTime_ != null &&
sendAtTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
sendAtTime_ =
com.google.protobuf.Timestamp.newBuilder(sendAtTime_).mergeFrom(value).buildPartial();
} else {
sendAtTime_ = value;
}
onChanged();
} else {
sendAtTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public Builder clearSendAtTime() {
if (sendAtTimeBuilder_ == null) {
sendAtTime_ = null;
onChanged();
} else {
sendAtTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getSendAtTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSendAtTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
public com.google.protobuf.TimestampOrBuilder getSendAtTimeOrBuilder() {
if (sendAtTimeBuilder_ != null) {
return sendAtTimeBuilder_.getMessageOrBuilder();
} else {
return sendAtTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : sendAtTime_;
}
}
/**
* optional .google.protobuf.Timestamp send_at_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getSendAtTimeFieldBuilder() {
if (sendAtTimeBuilder_ == null) {
sendAtTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getSendAtTime(),
getParentForChildren(),
isClean());
sendAtTime_ = null;
}
return sendAtTimeBuilder_;
}
@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.SMSUserMessage)
}
// @@protoc_insertion_point(class_scope:crm.SMSUserMessage)
private static final dev.crashteam.crm.SMSUserMessage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new dev.crashteam.crm.SMSUserMessage();
}
public static dev.crashteam.crm.SMSUserMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SMSUserMessage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SMSUserMessage(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.SMSUserMessage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy