com.wgtwo.api.v0.common.PhoneNumberProto Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wgtwo/common/v0/phonenumber.proto
package com.wgtwo.api.v0.common;
public final class PhoneNumberProto {
private PhoneNumberProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PhoneNumberOrBuilder extends
// @@protoc_insertion_point(interface_extends:wgtwo.common.v0.PhoneNumber)
com.google.protobuf.MessageOrBuilder {
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The e164.
*/
java.lang.String getE164();
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The bytes for e164.
*/
com.google.protobuf.ByteString
getE164Bytes();
}
/**
* Protobuf type {@code wgtwo.common.v0.PhoneNumber}
*/
public static final class PhoneNumber extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wgtwo.common.v0.PhoneNumber)
PhoneNumberOrBuilder {
private static final long serialVersionUID = 0L;
// Use PhoneNumber.newBuilder() to construct.
private PhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PhoneNumber() {
e164_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PhoneNumber();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_PhoneNumber_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_PhoneNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.class, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder.class);
}
public static final int E164_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object e164_ = "";
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The e164.
*/
@java.lang.Override
public java.lang.String getE164() {
java.lang.Object ref = e164_;
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();
e164_ = s;
return s;
}
}
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The bytes for e164.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getE164Bytes() {
java.lang.Object ref = e164_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
e164_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e164_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, e164_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(e164_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, e164_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber)) {
return super.equals(obj);
}
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber other = (com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber) obj;
if (!getE164()
.equals(other.getE164())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + E164_FIELD_NUMBER;
hash = (53 * hash) + getE164().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber 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 wgtwo.common.v0.PhoneNumber}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wgtwo.common.v0.PhoneNumber)
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_PhoneNumber_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_PhoneNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.class, com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.Builder.class);
}
// Construct using com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
e164_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_PhoneNumber_descriptor;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getDefaultInstanceForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance();
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber build() {
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber buildPartial() {
com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber result = new com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.e164_ = e164_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber) {
return mergeFrom((com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber other) {
if (other == com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber.getDefaultInstance()) return this;
if (!other.getE164().isEmpty()) {
e164_ = other.e164_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
e164_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object e164_ = "";
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The e164.
*/
public java.lang.String getE164() {
java.lang.Object ref = e164_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
e164_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return The bytes for e164.
*/
public com.google.protobuf.ByteString
getE164Bytes() {
java.lang.Object ref = e164_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
e164_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @param value The e164 to set.
* @return This builder for chaining.
*/
public Builder setE164(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
e164_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @return This builder for chaining.
*/
public Builder clearE164() {
e164_ = getDefaultInstance().getE164();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Phone number formatted as E.164 with leading plus sign
* This contains of three components:
* - The plus prefix
* - Country code, max 3 digits
* - Subscriber number
* Test your number at https://libphonenumber.appspot.com/
* Example: +12024561111
*
*
* string e164 = 1;
* @param value The bytes for e164 to set.
* @return This builder for chaining.
*/
public Builder setE164Bytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
e164_ = value;
bitField0_ |= 0x00000001;
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:wgtwo.common.v0.PhoneNumber)
}
// @@protoc_insertion_point(class_scope:wgtwo.common.v0.PhoneNumber)
private static final com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber();
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PhoneNumber parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.PhoneNumber getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TextAddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:wgtwo.common.v0.TextAddress)
com.google.protobuf.MessageOrBuilder {
/**
* string text_address = 1;
* @return The textAddress.
*/
java.lang.String getTextAddress();
/**
* string text_address = 1;
* @return The bytes for textAddress.
*/
com.google.protobuf.ByteString
getTextAddressBytes();
}
/**
* Protobuf type {@code wgtwo.common.v0.TextAddress}
*/
public static final class TextAddress extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wgtwo.common.v0.TextAddress)
TextAddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use TextAddress.newBuilder() to construct.
private TextAddress(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TextAddress() {
textAddress_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TextAddress();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_TextAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_TextAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.class, com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.Builder.class);
}
public static final int TEXT_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object textAddress_ = "";
/**
* string text_address = 1;
* @return The textAddress.
*/
@java.lang.Override
public java.lang.String getTextAddress() {
java.lang.Object ref = textAddress_;
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();
textAddress_ = s;
return s;
}
}
/**
* string text_address = 1;
* @return The bytes for textAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTextAddressBytes() {
java.lang.Object ref = textAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, textAddress_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(textAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, textAddress_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress)) {
return super.equals(obj);
}
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress other = (com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress) obj;
if (!getTextAddress()
.equals(other.getTextAddress())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TEXT_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getTextAddress().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress 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 wgtwo.common.v0.TextAddress}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wgtwo.common.v0.TextAddress)
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_TextAddress_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_TextAddress_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.class, com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.Builder.class);
}
// Construct using com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
textAddress_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_TextAddress_descriptor;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress getDefaultInstanceForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.getDefaultInstance();
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress build() {
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress buildPartial() {
com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress result = new com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.textAddress_ = textAddress_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress) {
return mergeFrom((com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress other) {
if (other == com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress.getDefaultInstance()) return this;
if (!other.getTextAddress().isEmpty()) {
textAddress_ = other.textAddress_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
textAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object textAddress_ = "";
/**
* string text_address = 1;
* @return The textAddress.
*/
public java.lang.String getTextAddress() {
java.lang.Object ref = textAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
textAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string text_address = 1;
* @return The bytes for textAddress.
*/
public com.google.protobuf.ByteString
getTextAddressBytes() {
java.lang.Object ref = textAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
textAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string text_address = 1;
* @param value The textAddress to set.
* @return This builder for chaining.
*/
public Builder setTextAddress(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
textAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string text_address = 1;
* @return This builder for chaining.
*/
public Builder clearTextAddress() {
textAddress_ = getDefaultInstance().getTextAddress();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string text_address = 1;
* @param value The bytes for textAddress to set.
* @return This builder for chaining.
*/
public Builder setTextAddressBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
textAddress_ = value;
bitField0_ |= 0x00000001;
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:wgtwo.common.v0.TextAddress)
}
// @@protoc_insertion_point(class_scope:wgtwo.common.v0.TextAddress)
private static final com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress();
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TextAddress parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.TextAddress getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NationalPhoneNumberOrBuilder extends
// @@protoc_insertion_point(interface_extends:wgtwo.common.v0.NationalPhoneNumber)
com.google.protobuf.MessageOrBuilder {
/**
* string national_phone_number = 1;
* @return The nationalPhoneNumber.
*/
java.lang.String getNationalPhoneNumber();
/**
* string national_phone_number = 1;
* @return The bytes for nationalPhoneNumber.
*/
com.google.protobuf.ByteString
getNationalPhoneNumberBytes();
}
/**
*
* Any phone number that is tied to a specific country.
* Does not contain the prefix '+' nor a country code.
*
*
* Protobuf type {@code wgtwo.common.v0.NationalPhoneNumber}
*/
public static final class NationalPhoneNumber extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wgtwo.common.v0.NationalPhoneNumber)
NationalPhoneNumberOrBuilder {
private static final long serialVersionUID = 0L;
// Use NationalPhoneNumber.newBuilder() to construct.
private NationalPhoneNumber(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NationalPhoneNumber() {
nationalPhoneNumber_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NationalPhoneNumber();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_NationalPhoneNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.class, com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.Builder.class);
}
public static final int NATIONAL_PHONE_NUMBER_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object nationalPhoneNumber_ = "";
/**
* string national_phone_number = 1;
* @return The nationalPhoneNumber.
*/
@java.lang.Override
public java.lang.String getNationalPhoneNumber() {
java.lang.Object ref = nationalPhoneNumber_;
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();
nationalPhoneNumber_ = s;
return s;
}
}
/**
* string national_phone_number = 1;
* @return The bytes for nationalPhoneNumber.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNationalPhoneNumberBytes() {
java.lang.Object ref = nationalPhoneNumber_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nationalPhoneNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nationalPhoneNumber_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nationalPhoneNumber_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nationalPhoneNumber_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber)) {
return super.equals(obj);
}
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber other = (com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber) obj;
if (!getNationalPhoneNumber()
.equals(other.getNationalPhoneNumber())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) 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) + NATIONAL_PHONE_NUMBER_FIELD_NUMBER;
hash = (53 * hash) + getNationalPhoneNumber().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber 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;
}
/**
*
* Any phone number that is tied to a specific country.
* Does not contain the prefix '+' nor a country code.
*
*
* Protobuf type {@code wgtwo.common.v0.NationalPhoneNumber}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wgtwo.common.v0.NationalPhoneNumber)
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumberOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_NationalPhoneNumber_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.class, com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.Builder.class);
}
// Construct using com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
nationalPhoneNumber_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber getDefaultInstanceForType() {
return com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.getDefaultInstance();
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber build() {
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber buildPartial() {
com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber result = new com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.nationalPhoneNumber_ = nationalPhoneNumber_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber) {
return mergeFrom((com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber other) {
if (other == com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber.getDefaultInstance()) return this;
if (!other.getNationalPhoneNumber().isEmpty()) {
nationalPhoneNumber_ = other.nationalPhoneNumber_;
bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
nationalPhoneNumber_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object nationalPhoneNumber_ = "";
/**
* string national_phone_number = 1;
* @return The nationalPhoneNumber.
*/
public java.lang.String getNationalPhoneNumber() {
java.lang.Object ref = nationalPhoneNumber_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nationalPhoneNumber_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string national_phone_number = 1;
* @return The bytes for nationalPhoneNumber.
*/
public com.google.protobuf.ByteString
getNationalPhoneNumberBytes() {
java.lang.Object ref = nationalPhoneNumber_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
nationalPhoneNumber_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string national_phone_number = 1;
* @param value The nationalPhoneNumber to set.
* @return This builder for chaining.
*/
public Builder setNationalPhoneNumber(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
nationalPhoneNumber_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string national_phone_number = 1;
* @return This builder for chaining.
*/
public Builder clearNationalPhoneNumber() {
nationalPhoneNumber_ = getDefaultInstance().getNationalPhoneNumber();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string national_phone_number = 1;
* @param value The bytes for nationalPhoneNumber to set.
* @return This builder for chaining.
*/
public Builder setNationalPhoneNumberBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
nationalPhoneNumber_ = value;
bitField0_ |= 0x00000001;
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:wgtwo.common.v0.NationalPhoneNumber)
}
// @@protoc_insertion_point(class_scope:wgtwo.common.v0.NationalPhoneNumber)
private static final com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber();
}
public static com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NationalPhoneNumber parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.wgtwo.api.v0.common.PhoneNumberProto.NationalPhoneNumber getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wgtwo_common_v0_PhoneNumber_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wgtwo_common_v0_PhoneNumber_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wgtwo_common_v0_TextAddress_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wgtwo_common_v0_TextAddress_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_wgtwo_common_v0_NationalPhoneNumber_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n!wgtwo/common/v0/phonenumber.proto\022\017wgt" +
"wo.common.v0\"\033\n\013PhoneNumber\022\014\n\004e164\030\001 \001(" +
"\t\"#\n\013TextAddress\022\024\n\014text_address\030\001 \001(\t\"4" +
"\n\023NationalPhoneNumber\022\035\n\025national_phone_" +
"number\030\001 \001(\tBc\n\027com.wgtwo.api.v0.commonB" +
"\020PhoneNumberProtoZ6github.com/working-gr" +
"oup-two/wgtwoapis/wgtwo/common/v0b\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_wgtwo_common_v0_PhoneNumber_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_wgtwo_common_v0_PhoneNumber_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wgtwo_common_v0_PhoneNumber_descriptor,
new java.lang.String[] { "E164", });
internal_static_wgtwo_common_v0_TextAddress_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_wgtwo_common_v0_TextAddress_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wgtwo_common_v0_TextAddress_descriptor,
new java.lang.String[] { "TextAddress", });
internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_wgtwo_common_v0_NationalPhoneNumber_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_wgtwo_common_v0_NationalPhoneNumber_descriptor,
new java.lang.String[] { "NationalPhoneNumber", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy