Class ContactInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
ai.pipestream.parsed.data.image.v1.ContactInfo.Builder
- All Implemented Interfaces:
ContactInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
ContactInfo
public static final class ContactInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
implements ContactInfoOrBuilder
Contact information structure for IPTC.Protobuf type
ai.pipestream.parsed.data.image.v1.ContactInfo-
Method Summary
Modifier and TypeMethodDescriptionaddAddress(String value) Multi-line street address.addAddressBytes(com.google.protobuf.ByteString value) Multi-line street address.addAllAddress(Iterable<String> values) Multi-line street address.addAllEmail(Iterable<String> values) Email addresses.addAllPhone(Iterable<String> values) Phone numbers.addAllWebUrl(Iterable<String> values) Website URLs.Email addresses.addEmailBytes(com.google.protobuf.ByteString value) Email addresses.Phone numbers.addPhoneBytes(com.google.protobuf.ByteString value) Phone numbers.Website URLs.addWebUrlBytes(com.google.protobuf.ByteString value) Website URLs.build()clear()Multi-line street address.City name.Country name.Email addresses.Phone numbers.Postal or ZIP code.State or province name.Website URLs.getAddress(int index) Multi-line street address.com.google.protobuf.ByteStringgetAddressBytes(int index) Multi-line street address.intMulti-line street address.com.google.protobuf.ProtocolStringListMulti-line street address.getCity()City name.com.google.protobuf.ByteStringCity name.Country name.com.google.protobuf.ByteStringCountry name.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEmail(int index) Email addresses.com.google.protobuf.ByteStringgetEmailBytes(int index) Email addresses.intEmail addresses.com.google.protobuf.ProtocolStringListEmail addresses.getPhone(int index) Phone numbers.com.google.protobuf.ByteStringgetPhoneBytes(int index) Phone numbers.intPhone numbers.com.google.protobuf.ProtocolStringListPhone numbers.Postal or ZIP code.com.google.protobuf.ByteStringPostal or ZIP code.State or province name.com.google.protobuf.ByteStringState or province name.getWebUrl(int index) Website URLs.com.google.protobuf.ByteStringgetWebUrlBytes(int index) Website URLs.intWebsite URLs.com.google.protobuf.ProtocolStringListWebsite URLs.booleanhasCity()City name.booleanCountry name.booleanPostal or ZIP code.booleanState or province name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ContactInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setAddress(int index, String value) Multi-line street address.City name.setCityBytes(com.google.protobuf.ByteString value) City name.setCountry(String value) Country name.setCountryBytes(com.google.protobuf.ByteString value) Country name.Email addresses.Phone numbers.setPostalCode(String value) Postal or ZIP code.setPostalCodeBytes(com.google.protobuf.ByteString value) Postal or ZIP code.setStateProvince(String value) State or province name.setStateProvinceBytes(com.google.protobuf.ByteString value) State or province name.Website URLs.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>- Throws:
IOException
-
getAddressList
public com.google.protobuf.ProtocolStringList getAddressList()Multi-line street address.
repeated string address = 1 [json_name = "address"];- Specified by:
getAddressListin interfaceContactInfoOrBuilder- Returns:
- A list containing the address.
-
getAddressCount
public int getAddressCount()Multi-line street address.
repeated string address = 1 [json_name = "address"];- Specified by:
getAddressCountin interfaceContactInfoOrBuilder- Returns:
- The count of address.
-
getAddress
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Specified by:
getAddressin interfaceContactInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The address at the given index.
-
getAddressBytes
public com.google.protobuf.ByteString getAddressBytes(int index) Multi-line street address.
repeated string address = 1 [json_name = "address"];- Specified by:
getAddressBytesin interfaceContactInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the address at the given index.
-
setAddress
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Parameters:
index- The index to set the value at.value- The address to set.- Returns:
- This builder for chaining.
-
addAddress
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Parameters:
value- The address to add.- Returns:
- This builder for chaining.
-
addAllAddress
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Parameters:
values- The address to add.- Returns:
- This builder for chaining.
-
clearAddress
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Returns:
- This builder for chaining.
-
addAddressBytes
Multi-line street address.
repeated string address = 1 [json_name = "address"];- Parameters:
value- The bytes of the address to add.- Returns:
- This builder for chaining.
-
hasCity
public boolean hasCity()City name.
optional string city = 2 [json_name = "city"];- Specified by:
hasCityin interfaceContactInfoOrBuilder- Returns:
- Whether the city field is set.
-
getCity
City name.
optional string city = 2 [json_name = "city"];- Specified by:
getCityin interfaceContactInfoOrBuilder- Returns:
- The city.
-
getCityBytes
public com.google.protobuf.ByteString getCityBytes()City name.
optional string city = 2 [json_name = "city"];- Specified by:
getCityBytesin interfaceContactInfoOrBuilder- Returns:
- The bytes for city.
-
setCity
City name.
optional string city = 2 [json_name = "city"];- Parameters:
value- The city to set.- Returns:
- This builder for chaining.
-
clearCity
City name.
optional string city = 2 [json_name = "city"];- Returns:
- This builder for chaining.
-
setCityBytes
City name.
optional string city = 2 [json_name = "city"];- Parameters:
value- The bytes for city to set.- Returns:
- This builder for chaining.
-
hasCountry
public boolean hasCountry()Country name.
optional string country = 3 [json_name = "country"];- Specified by:
hasCountryin interfaceContactInfoOrBuilder- Returns:
- Whether the country field is set.
-
getCountry
Country name.
optional string country = 3 [json_name = "country"];- Specified by:
getCountryin interfaceContactInfoOrBuilder- Returns:
- The country.
-
getCountryBytes
public com.google.protobuf.ByteString getCountryBytes()Country name.
optional string country = 3 [json_name = "country"];- Specified by:
getCountryBytesin interfaceContactInfoOrBuilder- Returns:
- The bytes for country.
-
setCountry
Country name.
optional string country = 3 [json_name = "country"];- Parameters:
value- The country to set.- Returns:
- This builder for chaining.
-
clearCountry
Country name.
optional string country = 3 [json_name = "country"];- Returns:
- This builder for chaining.
-
setCountryBytes
Country name.
optional string country = 3 [json_name = "country"];- Parameters:
value- The bytes for country to set.- Returns:
- This builder for chaining.
-
getEmailList
public com.google.protobuf.ProtocolStringList getEmailList()Email addresses.
repeated string email = 4 [json_name = "email"];- Specified by:
getEmailListin interfaceContactInfoOrBuilder- Returns:
- A list containing the email.
-
getEmailCount
public int getEmailCount()Email addresses.
repeated string email = 4 [json_name = "email"];- Specified by:
getEmailCountin interfaceContactInfoOrBuilder- Returns:
- The count of email.
-
getEmail
Email addresses.
repeated string email = 4 [json_name = "email"];- Specified by:
getEmailin interfaceContactInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The email at the given index.
-
getEmailBytes
public com.google.protobuf.ByteString getEmailBytes(int index) Email addresses.
repeated string email = 4 [json_name = "email"];- Specified by:
getEmailBytesin interfaceContactInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the email at the given index.
-
setEmail
Email addresses.
repeated string email = 4 [json_name = "email"];- Parameters:
index- The index to set the value at.value- The email to set.- Returns:
- This builder for chaining.
-
addEmail
Email addresses.
repeated string email = 4 [json_name = "email"];- Parameters:
value- The email to add.- Returns:
- This builder for chaining.
-
addAllEmail
Email addresses.
repeated string email = 4 [json_name = "email"];- Parameters:
values- The email to add.- Returns:
- This builder for chaining.
-
clearEmail
Email addresses.
repeated string email = 4 [json_name = "email"];- Returns:
- This builder for chaining.
-
addEmailBytes
Email addresses.
repeated string email = 4 [json_name = "email"];- Parameters:
value- The bytes of the email to add.- Returns:
- This builder for chaining.
-
getPhoneList
public com.google.protobuf.ProtocolStringList getPhoneList()Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Specified by:
getPhoneListin interfaceContactInfoOrBuilder- Returns:
- A list containing the phone.
-
getPhoneCount
public int getPhoneCount()Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Specified by:
getPhoneCountin interfaceContactInfoOrBuilder- Returns:
- The count of phone.
-
getPhone
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Specified by:
getPhonein interfaceContactInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The phone at the given index.
-
getPhoneBytes
public com.google.protobuf.ByteString getPhoneBytes(int index) Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Specified by:
getPhoneBytesin interfaceContactInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the phone at the given index.
-
setPhone
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Parameters:
index- The index to set the value at.value- The phone to set.- Returns:
- This builder for chaining.
-
addPhone
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Parameters:
value- The phone to add.- Returns:
- This builder for chaining.
-
addAllPhone
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Parameters:
values- The phone to add.- Returns:
- This builder for chaining.
-
clearPhone
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Returns:
- This builder for chaining.
-
addPhoneBytes
Phone numbers.
repeated string phone = 5 [json_name = "phone"];- Parameters:
value- The bytes of the phone to add.- Returns:
- This builder for chaining.
-
hasPostalCode
public boolean hasPostalCode()Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Specified by:
hasPostalCodein interfaceContactInfoOrBuilder- Returns:
- Whether the postalCode field is set.
-
getPostalCode
Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Specified by:
getPostalCodein interfaceContactInfoOrBuilder- Returns:
- The postalCode.
-
getPostalCodeBytes
public com.google.protobuf.ByteString getPostalCodeBytes()Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Specified by:
getPostalCodeBytesin interfaceContactInfoOrBuilder- Returns:
- The bytes for postalCode.
-
setPostalCode
Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Parameters:
value- The postalCode to set.- Returns:
- This builder for chaining.
-
clearPostalCode
Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Returns:
- This builder for chaining.
-
setPostalCodeBytes
Postal or ZIP code.
optional string postal_code = 6 [json_name = "postalCode"];- Parameters:
value- The bytes for postalCode to set.- Returns:
- This builder for chaining.
-
hasStateProvince
public boolean hasStateProvince()State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Specified by:
hasStateProvincein interfaceContactInfoOrBuilder- Returns:
- Whether the stateProvince field is set.
-
getStateProvince
State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Specified by:
getStateProvincein interfaceContactInfoOrBuilder- Returns:
- The stateProvince.
-
getStateProvinceBytes
public com.google.protobuf.ByteString getStateProvinceBytes()State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Specified by:
getStateProvinceBytesin interfaceContactInfoOrBuilder- Returns:
- The bytes for stateProvince.
-
setStateProvince
State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Parameters:
value- The stateProvince to set.- Returns:
- This builder for chaining.
-
clearStateProvince
State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Returns:
- This builder for chaining.
-
setStateProvinceBytes
State or province name.
optional string state_province = 7 [json_name = "stateProvince"];- Parameters:
value- The bytes for stateProvince to set.- Returns:
- This builder for chaining.
-
getWebUrlList
public com.google.protobuf.ProtocolStringList getWebUrlList()Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Specified by:
getWebUrlListin interfaceContactInfoOrBuilder- Returns:
- A list containing the webUrl.
-
getWebUrlCount
public int getWebUrlCount()Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Specified by:
getWebUrlCountin interfaceContactInfoOrBuilder- Returns:
- The count of webUrl.
-
getWebUrl
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Specified by:
getWebUrlin interfaceContactInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The webUrl at the given index.
-
getWebUrlBytes
public com.google.protobuf.ByteString getWebUrlBytes(int index) Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Specified by:
getWebUrlBytesin interfaceContactInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the webUrl at the given index.
-
setWebUrl
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Parameters:
index- The index to set the value at.value- The webUrl to set.- Returns:
- This builder for chaining.
-
addWebUrl
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Parameters:
value- The webUrl to add.- Returns:
- This builder for chaining.
-
addAllWebUrl
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Parameters:
values- The webUrl to add.- Returns:
- This builder for chaining.
-
clearWebUrl
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Returns:
- This builder for chaining.
-
addWebUrlBytes
Website URLs.
repeated string web_url = 8 [json_name = "webUrl"];- Parameters:
value- The bytes of the webUrl to add.- Returns:
- This builder for chaining.
-