Class TransactionData.Address.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
com.google.recaptchaenterprise.v1beta1.TransactionData.Address.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransactionData.AddressOrBuilder,Cloneable
- Enclosing class:
- TransactionData.Address
public static final class TransactionData.Address.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
implements TransactionData.AddressOrBuilder
Structured address format for billing and shipping addresses.Protobuf type
google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address-
Method Summary
Modifier and TypeMethodDescriptionaddAddress(String value) The first lines of the address.addAddressBytes(com.google.protobuf.ByteString value) The first lines of the address.addAllAddress(Iterable<String> values) The first lines of the address.build()clear()The first lines of the address.The state, province, or otherwise administrative area of the address.The town/city of the address.The postal or ZIP code of the address.The recipient name, potentially including information such as "care of".The CLDR country/region of the address.getAddress(int index) The first lines of the address.com.google.protobuf.ByteStringgetAddressBytes(int index) The first lines of the address.intThe first lines of the address.com.google.protobuf.ProtocolStringListThe first lines of the address.The state, province, or otherwise administrative area of the address.com.google.protobuf.ByteStringThe state, province, or otherwise administrative area of the address.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe town/city of the address.com.google.protobuf.ByteStringThe town/city of the address.The postal or ZIP code of the address.com.google.protobuf.ByteStringThe postal or ZIP code of the address.The recipient name, potentially including information such as "care of".com.google.protobuf.ByteStringThe recipient name, potentially including information such as "care of".The CLDR country/region of the address.com.google.protobuf.ByteStringThe CLDR country/region of the address.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TransactionData.Address other) setAddress(int index, String value) The first lines of the address.setAdministrativeArea(String value) The state, province, or otherwise administrative area of the address.setAdministrativeAreaBytes(com.google.protobuf.ByteString value) The state, province, or otherwise administrative area of the address.setLocality(String value) The town/city of the address.setLocalityBytes(com.google.protobuf.ByteString value) The town/city of the address.setPostalCode(String value) The postal or ZIP code of the address.setPostalCodeBytes(com.google.protobuf.ByteString value) The postal or ZIP code of the address.setRecipient(String value) The recipient name, potentially including information such as "care of".setRecipientBytes(com.google.protobuf.ByteString value) The recipient name, potentially including information such as "care of".setRegionCode(String value) The CLDR country/region of the address.setRegionCodeBytes(com.google.protobuf.ByteString value) The CLDR country/region of the address.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<TransactionData.Address.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<TransactionData.Address.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<TransactionData.Address.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<TransactionData.Address.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
-
mergeFrom
public TransactionData.Address.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<TransactionData.Address.Builder>- Throws:
IOException
-
getRecipient
The recipient name, potentially including information such as "care of".
string recipient = 1;- Specified by:
getRecipientin interfaceTransactionData.AddressOrBuilder- Returns:
- The recipient.
-
getRecipientBytes
public com.google.protobuf.ByteString getRecipientBytes()The recipient name, potentially including information such as "care of".
string recipient = 1;- Specified by:
getRecipientBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for recipient.
-
setRecipient
The recipient name, potentially including information such as "care of".
string recipient = 1;- Parameters:
value- The recipient to set.- Returns:
- This builder for chaining.
-
clearRecipient
The recipient name, potentially including information such as "care of".
string recipient = 1;- Returns:
- This builder for chaining.
-
setRecipientBytes
The recipient name, potentially including information such as "care of".
string recipient = 1;- Parameters:
value- The bytes for recipient to set.- Returns:
- This builder for chaining.
-
getAddressList
public com.google.protobuf.ProtocolStringList getAddressList()The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Specified by:
getAddressListin interfaceTransactionData.AddressOrBuilder- Returns:
- A list containing the address.
-
getAddressCount
public int getAddressCount()The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Specified by:
getAddressCountin interfaceTransactionData.AddressOrBuilder- Returns:
- The count of address.
-
getAddress
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Specified by:
getAddressin interfaceTransactionData.AddressOrBuilder- 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) The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Specified by:
getAddressBytesin interfaceTransactionData.AddressOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the address at the given index.
-
setAddress
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Parameters:
index- The index to set the value at.value- The address to set.- Returns:
- This builder for chaining.
-
addAddress
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Parameters:
value- The address to add.- Returns:
- This builder for chaining.
-
addAllAddress
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Parameters:
values- The address to add.- Returns:
- This builder for chaining.
-
clearAddress
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Returns:
- This builder for chaining.
-
addAddressBytes
The first lines of the address. The first line generally contains the street name and number, and further lines may include information such as an apartment number.
repeated string address = 2;- Parameters:
value- The bytes of the address to add.- Returns:
- This builder for chaining.
-
getLocality
The town/city of the address.
string locality = 3;- Specified by:
getLocalityin interfaceTransactionData.AddressOrBuilder- Returns:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()The town/city of the address.
string locality = 3;- Specified by:
getLocalityBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for locality.
-
setLocality
The town/city of the address.
string locality = 3;- Parameters:
value- The locality to set.- Returns:
- This builder for chaining.
-
clearLocality
The town/city of the address.
string locality = 3;- Returns:
- This builder for chaining.
-
setLocalityBytes
The town/city of the address.
string locality = 3;- Parameters:
value- The bytes for locality to set.- Returns:
- This builder for chaining.
-
getAdministrativeArea
The state, province, or otherwise administrative area of the address.
string administrative_area = 4;- Specified by:
getAdministrativeAreain interfaceTransactionData.AddressOrBuilder- Returns:
- The administrativeArea.
-
getAdministrativeAreaBytes
public com.google.protobuf.ByteString getAdministrativeAreaBytes()The state, province, or otherwise administrative area of the address.
string administrative_area = 4;- Specified by:
getAdministrativeAreaBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for administrativeArea.
-
setAdministrativeArea
The state, province, or otherwise administrative area of the address.
string administrative_area = 4;- Parameters:
value- The administrativeArea to set.- Returns:
- This builder for chaining.
-
clearAdministrativeArea
The state, province, or otherwise administrative area of the address.
string administrative_area = 4;- Returns:
- This builder for chaining.
-
setAdministrativeAreaBytes
public TransactionData.Address.Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) The state, province, or otherwise administrative area of the address.
string administrative_area = 4;- Parameters:
value- The bytes for administrativeArea to set.- Returns:
- This builder for chaining.
-
getRegionCode
The CLDR country/region of the address.
string region_code = 5;- Specified by:
getRegionCodein interfaceTransactionData.AddressOrBuilder- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()The CLDR country/region of the address.
string region_code = 5;- Specified by:
getRegionCodeBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for regionCode.
-
setRegionCode
The CLDR country/region of the address.
string region_code = 5;- Parameters:
value- The regionCode to set.- Returns:
- This builder for chaining.
-
clearRegionCode
The CLDR country/region of the address.
string region_code = 5;- Returns:
- This builder for chaining.
-
setRegionCodeBytes
The CLDR country/region of the address.
string region_code = 5;- Parameters:
value- The bytes for regionCode to set.- Returns:
- This builder for chaining.
-
getPostalCode
The postal or ZIP code of the address.
string postal_code = 6;- Specified by:
getPostalCodein interfaceTransactionData.AddressOrBuilder- Returns:
- The postalCode.
-
getPostalCodeBytes
public com.google.protobuf.ByteString getPostalCodeBytes()The postal or ZIP code of the address.
string postal_code = 6;- Specified by:
getPostalCodeBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for postalCode.
-
setPostalCode
The postal or ZIP code of the address.
string postal_code = 6;- Parameters:
value- The postalCode to set.- Returns:
- This builder for chaining.
-
clearPostalCode
The postal or ZIP code of the address.
string postal_code = 6;- Returns:
- This builder for chaining.
-
setPostalCodeBytes
The postal or ZIP code of the address.
string postal_code = 6;- Parameters:
value- The bytes for postalCode to set.- Returns:
- This builder for chaining.
-