All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.bloombox.schema.contact.ContactInfo Maven / Gradle / Ivy

There is a newer version: 1.8
Show newest version
/*
 * Copyright 2017, Bloombox, LLC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: contact/ContactInfo.proto

package io.bloombox.schema.contact;

/**
 * 
 * Contact information for a person, organization, or other entity.
 * 
* * Protobuf type {@code contact.ContactInfo} */ public final class ContactInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:contact.ContactInfo) ContactInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ContactInfo.newBuilder() to construct. private ContactInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ContactInfo() { } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ContactInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); 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; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { io.bloombox.schema.geo.Location.Builder subBuilder = null; if (location_ != null) { subBuilder = location_.toBuilder(); } location_ = input.readMessage(io.bloombox.schema.geo.Location.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(location_); location_ = subBuilder.buildPartial(); } break; } case 18: { io.bloombox.schema.contact.PhoneNumber.Builder subBuilder = null; if (phone_ != null) { subBuilder = phone_.toBuilder(); } phone_ = input.readMessage(io.bloombox.schema.contact.PhoneNumber.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(phone_); phone_ = subBuilder.buildPartial(); } break; } case 26: { io.bloombox.schema.contact.EmailAddress.Builder subBuilder = null; if (email_ != null) { subBuilder = email_.toBuilder(); } email_ = input.readMessage(io.bloombox.schema.contact.EmailAddress.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(email_); email_ = subBuilder.buildPartial(); } break; } case 34: { io.bloombox.schema.contact.Website.Builder subBuilder = null; if (website_ != null) { subBuilder = website_.toBuilder(); } website_ = input.readMessage(io.bloombox.schema.contact.Website.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(website_); website_ = subBuilder.buildPartial(); } 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 io.bloombox.schema.contact.ContactInfoOuterClass.internal_static_contact_ContactInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.contact.ContactInfoOuterClass.internal_static_contact_ContactInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.contact.ContactInfo.class, io.bloombox.schema.contact.ContactInfo.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private io.bloombox.schema.geo.Location location_; /** *
   * Geographic location and physical mail contact information.
   * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public boolean hasLocation() { return location_ != null; } /** *
   * Geographic location and physical mail contact information.
   * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public io.bloombox.schema.geo.Location getLocation() { return location_ == null ? io.bloombox.schema.geo.Location.getDefaultInstance() : location_; } /** *
   * Geographic location and physical mail contact information.
   * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public io.bloombox.schema.geo.LocationOrBuilder getLocationOrBuilder() { return getLocation(); } public static final int PHONE_FIELD_NUMBER = 2; private io.bloombox.schema.contact.PhoneNumber phone_; /** *
   * Telephone contact information.
   * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public boolean hasPhone() { return phone_ != null; } /** *
   * Telephone contact information.
   * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public io.bloombox.schema.contact.PhoneNumber getPhone() { return phone_ == null ? io.bloombox.schema.contact.PhoneNumber.getDefaultInstance() : phone_; } /** *
   * Telephone contact information.
   * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public io.bloombox.schema.contact.PhoneNumberOrBuilder getPhoneOrBuilder() { return getPhone(); } public static final int EMAIL_FIELD_NUMBER = 3; private io.bloombox.schema.contact.EmailAddress email_; /** *
   * Electronic mail contact information.
   * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public boolean hasEmail() { return email_ != null; } /** *
   * Electronic mail contact information.
   * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public io.bloombox.schema.contact.EmailAddress getEmail() { return email_ == null ? io.bloombox.schema.contact.EmailAddress.getDefaultInstance() : email_; } /** *
   * Electronic mail contact information.
   * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public io.bloombox.schema.contact.EmailAddressOrBuilder getEmailOrBuilder() { return getEmail(); } public static final int WEBSITE_FIELD_NUMBER = 4; private io.bloombox.schema.contact.Website website_; /** *
   * Website contact information.
   * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public boolean hasWebsite() { return website_ != null; } /** *
   * Website contact information.
   * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public io.bloombox.schema.contact.Website getWebsite() { return website_ == null ? io.bloombox.schema.contact.Website.getDefaultInstance() : website_; } /** *
   * Website contact information.
   * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public io.bloombox.schema.contact.WebsiteOrBuilder getWebsiteOrBuilder() { return getWebsite(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (location_ != null) { output.writeMessage(1, getLocation()); } if (phone_ != null) { output.writeMessage(2, getPhone()); } if (email_ != null) { output.writeMessage(3, getEmail()); } if (website_ != null) { output.writeMessage(4, getWebsite()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (location_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getLocation()); } if (phone_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPhone()); } if (email_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEmail()); } if (website_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWebsite()); } 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 io.bloombox.schema.contact.ContactInfo)) { return super.equals(obj); } io.bloombox.schema.contact.ContactInfo other = (io.bloombox.schema.contact.ContactInfo) obj; boolean result = true; result = result && (hasLocation() == other.hasLocation()); if (hasLocation()) { result = result && getLocation() .equals(other.getLocation()); } result = result && (hasPhone() == other.hasPhone()); if (hasPhone()) { result = result && getPhone() .equals(other.getPhone()); } result = result && (hasEmail() == other.hasEmail()); if (hasEmail()) { result = result && getEmail() .equals(other.getEmail()); } result = result && (hasWebsite() == other.hasWebsite()); if (hasWebsite()) { result = result && getWebsite() .equals(other.getWebsite()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasLocation()) { hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); } if (hasPhone()) { hash = (37 * hash) + PHONE_FIELD_NUMBER; hash = (53 * hash) + getPhone().hashCode(); } if (hasEmail()) { hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); } if (hasWebsite()) { hash = (37 * hash) + WEBSITE_FIELD_NUMBER; hash = (53 * hash) + getWebsite().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.bloombox.schema.contact.ContactInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.contact.ContactInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.contact.ContactInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.contact.ContactInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.contact.ContactInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.bloombox.schema.contact.ContactInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.bloombox.schema.contact.ContactInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.contact.ContactInfo 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 io.bloombox.schema.contact.ContactInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.bloombox.schema.contact.ContactInfo 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 io.bloombox.schema.contact.ContactInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.bloombox.schema.contact.ContactInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.bloombox.schema.contact.ContactInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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; } /** *
   * Contact information for a person, organization, or other entity.
   * 
* * Protobuf type {@code contact.ContactInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:contact.ContactInfo) io.bloombox.schema.contact.ContactInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.bloombox.schema.contact.ContactInfoOuterClass.internal_static_contact_ContactInfo_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.bloombox.schema.contact.ContactInfoOuterClass.internal_static_contact_ContactInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( io.bloombox.schema.contact.ContactInfo.class, io.bloombox.schema.contact.ContactInfo.Builder.class); } // Construct using io.bloombox.schema.contact.ContactInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } public Builder clear() { super.clear(); if (locationBuilder_ == null) { location_ = null; } else { location_ = null; locationBuilder_ = null; } if (phoneBuilder_ == null) { phone_ = null; } else { phone_ = null; phoneBuilder_ = null; } if (emailBuilder_ == null) { email_ = null; } else { email_ = null; emailBuilder_ = null; } if (websiteBuilder_ == null) { website_ = null; } else { website_ = null; websiteBuilder_ = null; } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.bloombox.schema.contact.ContactInfoOuterClass.internal_static_contact_ContactInfo_descriptor; } public io.bloombox.schema.contact.ContactInfo getDefaultInstanceForType() { return io.bloombox.schema.contact.ContactInfo.getDefaultInstance(); } public io.bloombox.schema.contact.ContactInfo build() { io.bloombox.schema.contact.ContactInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public io.bloombox.schema.contact.ContactInfo buildPartial() { io.bloombox.schema.contact.ContactInfo result = new io.bloombox.schema.contact.ContactInfo(this); if (locationBuilder_ == null) { result.location_ = location_; } else { result.location_ = locationBuilder_.build(); } if (phoneBuilder_ == null) { result.phone_ = phone_; } else { result.phone_ = phoneBuilder_.build(); } if (emailBuilder_ == null) { result.email_ = email_; } else { result.email_ = emailBuilder_.build(); } if (websiteBuilder_ == null) { result.website_ = website_; } else { result.website_ = websiteBuilder_.build(); } onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.bloombox.schema.contact.ContactInfo) { return mergeFrom((io.bloombox.schema.contact.ContactInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.bloombox.schema.contact.ContactInfo other) { if (other == io.bloombox.schema.contact.ContactInfo.getDefaultInstance()) return this; if (other.hasLocation()) { mergeLocation(other.getLocation()); } if (other.hasPhone()) { mergePhone(other.getPhone()); } if (other.hasEmail()) { mergeEmail(other.getEmail()); } if (other.hasWebsite()) { mergeWebsite(other.getWebsite()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.bloombox.schema.contact.ContactInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.bloombox.schema.contact.ContactInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.bloombox.schema.geo.Location location_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.geo.Location, io.bloombox.schema.geo.Location.Builder, io.bloombox.schema.geo.LocationOrBuilder> locationBuilder_; /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public boolean hasLocation() { return locationBuilder_ != null || location_ != null; } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public io.bloombox.schema.geo.Location getLocation() { if (locationBuilder_ == null) { return location_ == null ? io.bloombox.schema.geo.Location.getDefaultInstance() : location_; } else { return locationBuilder_.getMessage(); } } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public Builder setLocation(io.bloombox.schema.geo.Location value) { if (locationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } location_ = value; onChanged(); } else { locationBuilder_.setMessage(value); } return this; } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public Builder setLocation( io.bloombox.schema.geo.Location.Builder builderForValue) { if (locationBuilder_ == null) { location_ = builderForValue.build(); onChanged(); } else { locationBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public Builder mergeLocation(io.bloombox.schema.geo.Location value) { if (locationBuilder_ == null) { if (location_ != null) { location_ = io.bloombox.schema.geo.Location.newBuilder(location_).mergeFrom(value).buildPartial(); } else { location_ = value; } onChanged(); } else { locationBuilder_.mergeFrom(value); } return this; } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public Builder clearLocation() { if (locationBuilder_ == null) { location_ = null; onChanged(); } else { location_ = null; locationBuilder_ = null; } return this; } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public io.bloombox.schema.geo.Location.Builder getLocationBuilder() { onChanged(); return getLocationFieldBuilder().getBuilder(); } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ public io.bloombox.schema.geo.LocationOrBuilder getLocationOrBuilder() { if (locationBuilder_ != null) { return locationBuilder_.getMessageOrBuilder(); } else { return location_ == null ? io.bloombox.schema.geo.Location.getDefaultInstance() : location_; } } /** *
     * Geographic location and physical mail contact information.
     * 
* * .geo.Location location = 1 [(.gen_bq_schema.description) = "Geographic location and physical mail contact information."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.geo.Location, io.bloombox.schema.geo.Location.Builder, io.bloombox.schema.geo.LocationOrBuilder> getLocationFieldBuilder() { if (locationBuilder_ == null) { locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.geo.Location, io.bloombox.schema.geo.Location.Builder, io.bloombox.schema.geo.LocationOrBuilder>( getLocation(), getParentForChildren(), isClean()); location_ = null; } return locationBuilder_; } private io.bloombox.schema.contact.PhoneNumber phone_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.PhoneNumber, io.bloombox.schema.contact.PhoneNumber.Builder, io.bloombox.schema.contact.PhoneNumberOrBuilder> phoneBuilder_; /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public boolean hasPhone() { return phoneBuilder_ != null || phone_ != null; } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public io.bloombox.schema.contact.PhoneNumber getPhone() { if (phoneBuilder_ == null) { return phone_ == null ? io.bloombox.schema.contact.PhoneNumber.getDefaultInstance() : phone_; } else { return phoneBuilder_.getMessage(); } } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public Builder setPhone(io.bloombox.schema.contact.PhoneNumber value) { if (phoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phone_ = value; onChanged(); } else { phoneBuilder_.setMessage(value); } return this; } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public Builder setPhone( io.bloombox.schema.contact.PhoneNumber.Builder builderForValue) { if (phoneBuilder_ == null) { phone_ = builderForValue.build(); onChanged(); } else { phoneBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public Builder mergePhone(io.bloombox.schema.contact.PhoneNumber value) { if (phoneBuilder_ == null) { if (phone_ != null) { phone_ = io.bloombox.schema.contact.PhoneNumber.newBuilder(phone_).mergeFrom(value).buildPartial(); } else { phone_ = value; } onChanged(); } else { phoneBuilder_.mergeFrom(value); } return this; } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public Builder clearPhone() { if (phoneBuilder_ == null) { phone_ = null; onChanged(); } else { phone_ = null; phoneBuilder_ = null; } return this; } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public io.bloombox.schema.contact.PhoneNumber.Builder getPhoneBuilder() { onChanged(); return getPhoneFieldBuilder().getBuilder(); } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ public io.bloombox.schema.contact.PhoneNumberOrBuilder getPhoneOrBuilder() { if (phoneBuilder_ != null) { return phoneBuilder_.getMessageOrBuilder(); } else { return phone_ == null ? io.bloombox.schema.contact.PhoneNumber.getDefaultInstance() : phone_; } } /** *
     * Telephone contact information.
     * 
* * .contact.PhoneNumber phone = 2 [(.gen_bq_schema.description) = "Telephone contact information."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.PhoneNumber, io.bloombox.schema.contact.PhoneNumber.Builder, io.bloombox.schema.contact.PhoneNumberOrBuilder> getPhoneFieldBuilder() { if (phoneBuilder_ == null) { phoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.PhoneNumber, io.bloombox.schema.contact.PhoneNumber.Builder, io.bloombox.schema.contact.PhoneNumberOrBuilder>( getPhone(), getParentForChildren(), isClean()); phone_ = null; } return phoneBuilder_; } private io.bloombox.schema.contact.EmailAddress email_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.EmailAddress, io.bloombox.schema.contact.EmailAddress.Builder, io.bloombox.schema.contact.EmailAddressOrBuilder> emailBuilder_; /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public boolean hasEmail() { return emailBuilder_ != null || email_ != null; } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public io.bloombox.schema.contact.EmailAddress getEmail() { if (emailBuilder_ == null) { return email_ == null ? io.bloombox.schema.contact.EmailAddress.getDefaultInstance() : email_; } else { return emailBuilder_.getMessage(); } } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public Builder setEmail(io.bloombox.schema.contact.EmailAddress value) { if (emailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } email_ = value; onChanged(); } else { emailBuilder_.setMessage(value); } return this; } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public Builder setEmail( io.bloombox.schema.contact.EmailAddress.Builder builderForValue) { if (emailBuilder_ == null) { email_ = builderForValue.build(); onChanged(); } else { emailBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public Builder mergeEmail(io.bloombox.schema.contact.EmailAddress value) { if (emailBuilder_ == null) { if (email_ != null) { email_ = io.bloombox.schema.contact.EmailAddress.newBuilder(email_).mergeFrom(value).buildPartial(); } else { email_ = value; } onChanged(); } else { emailBuilder_.mergeFrom(value); } return this; } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public Builder clearEmail() { if (emailBuilder_ == null) { email_ = null; onChanged(); } else { email_ = null; emailBuilder_ = null; } return this; } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public io.bloombox.schema.contact.EmailAddress.Builder getEmailBuilder() { onChanged(); return getEmailFieldBuilder().getBuilder(); } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ public io.bloombox.schema.contact.EmailAddressOrBuilder getEmailOrBuilder() { if (emailBuilder_ != null) { return emailBuilder_.getMessageOrBuilder(); } else { return email_ == null ? io.bloombox.schema.contact.EmailAddress.getDefaultInstance() : email_; } } /** *
     * Electronic mail contact information.
     * 
* * .contact.EmailAddress email = 3 [(.gen_bq_schema.description) = "Electronic mail contact information."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.EmailAddress, io.bloombox.schema.contact.EmailAddress.Builder, io.bloombox.schema.contact.EmailAddressOrBuilder> getEmailFieldBuilder() { if (emailBuilder_ == null) { emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.EmailAddress, io.bloombox.schema.contact.EmailAddress.Builder, io.bloombox.schema.contact.EmailAddressOrBuilder>( getEmail(), getParentForChildren(), isClean()); email_ = null; } return emailBuilder_; } private io.bloombox.schema.contact.Website website_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.Website, io.bloombox.schema.contact.Website.Builder, io.bloombox.schema.contact.WebsiteOrBuilder> websiteBuilder_; /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public boolean hasWebsite() { return websiteBuilder_ != null || website_ != null; } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public io.bloombox.schema.contact.Website getWebsite() { if (websiteBuilder_ == null) { return website_ == null ? io.bloombox.schema.contact.Website.getDefaultInstance() : website_; } else { return websiteBuilder_.getMessage(); } } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public Builder setWebsite(io.bloombox.schema.contact.Website value) { if (websiteBuilder_ == null) { if (value == null) { throw new NullPointerException(); } website_ = value; onChanged(); } else { websiteBuilder_.setMessage(value); } return this; } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public Builder setWebsite( io.bloombox.schema.contact.Website.Builder builderForValue) { if (websiteBuilder_ == null) { website_ = builderForValue.build(); onChanged(); } else { websiteBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public Builder mergeWebsite(io.bloombox.schema.contact.Website value) { if (websiteBuilder_ == null) { if (website_ != null) { website_ = io.bloombox.schema.contact.Website.newBuilder(website_).mergeFrom(value).buildPartial(); } else { website_ = value; } onChanged(); } else { websiteBuilder_.mergeFrom(value); } return this; } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public Builder clearWebsite() { if (websiteBuilder_ == null) { website_ = null; onChanged(); } else { website_ = null; websiteBuilder_ = null; } return this; } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public io.bloombox.schema.contact.Website.Builder getWebsiteBuilder() { onChanged(); return getWebsiteFieldBuilder().getBuilder(); } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ public io.bloombox.schema.contact.WebsiteOrBuilder getWebsiteOrBuilder() { if (websiteBuilder_ != null) { return websiteBuilder_.getMessageOrBuilder(); } else { return website_ == null ? io.bloombox.schema.contact.Website.getDefaultInstance() : website_; } } /** *
     * Website contact information.
     * 
* * .contact.Website website = 4 [(.gen_bq_schema.description) = "Website contact information."]; */ private com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.Website, io.bloombox.schema.contact.Website.Builder, io.bloombox.schema.contact.WebsiteOrBuilder> getWebsiteFieldBuilder() { if (websiteBuilder_ == null) { websiteBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.bloombox.schema.contact.Website, io.bloombox.schema.contact.Website.Builder, io.bloombox.schema.contact.WebsiteOrBuilder>( getWebsite(), getParentForChildren(), isClean()); website_ = null; } return websiteBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:contact.ContactInfo) } // @@protoc_insertion_point(class_scope:contact.ContactInfo) private static final io.bloombox.schema.contact.ContactInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.bloombox.schema.contact.ContactInfo(); } public static io.bloombox.schema.contact.ContactInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public ContactInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ContactInfo(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public io.bloombox.schema.contact.ContactInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy