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.v1.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.v1.TransactionData.Address-
Method Summary
Modifier and TypeMethodDescriptionaddAddress(String value) Optional.addAddressBytes(com.google.protobuf.ByteString value) Optional.addAllAddress(Iterable<String> values) Optional.build()clear()Optional.Optional.Optional.Optional.Optional.Optional.getAddress(int index) Optional.com.google.protobuf.ByteStringgetAddressBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.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) Optional.setAdministrativeArea(String value) Optional.setAdministrativeAreaBytes(com.google.protobuf.ByteString value) Optional.setLocality(String value) Optional.setLocalityBytes(com.google.protobuf.ByteString value) Optional.setPostalCode(String value) Optional.setPostalCodeBytes(com.google.protobuf.ByteString value) Optional.setRecipient(String value) Optional.setRecipientBytes(com.google.protobuf.ByteString value) Optional.setRegionCode(String value) Optional.setRegionCodeBytes(com.google.protobuf.ByteString value) Optional.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
Optional. The recipient name, potentially including information such as "care of".
string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRecipientin interfaceTransactionData.AddressOrBuilder- Returns:
- The recipient.
-
getRecipientBytes
public com.google.protobuf.ByteString getRecipientBytes()Optional. The recipient name, potentially including information such as "care of".
string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRecipientBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for recipient.
-
setRecipient
Optional. The recipient name, potentially including information such as "care of".
string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The recipient to set.- Returns:
- This builder for chaining.
-
clearRecipient
Optional. The recipient name, potentially including information such as "care of".
string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRecipientBytes
Optional. The recipient name, potentially including information such as "care of".
string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for recipient to set.- Returns:
- This builder for chaining.
-
getAddressList
public com.google.protobuf.ProtocolStringList getAddressList()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAddressListin interfaceTransactionData.AddressOrBuilder- Returns:
- A list containing the address.
-
getAddressCount
public int getAddressCount()Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAddressCountin interfaceTransactionData.AddressOrBuilder- Returns:
- The count of address.
-
getAddress
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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) Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- 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
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The address to set.- Returns:
- This builder for chaining.
-
addAddress
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The address to add.- Returns:
- This builder for chaining.
-
addAllAddress
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The address to add.- Returns:
- This builder for chaining.
-
clearAddress
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addAddressBytes
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the address to add.- Returns:
- This builder for chaining.
-
getLocality
Optional. The town/city of the address.
string locality = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLocalityin interfaceTransactionData.AddressOrBuilder- Returns:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()Optional. The town/city of the address.
string locality = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLocalityBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for locality.
-
setLocality
Optional. The town/city of the address.
string locality = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The locality to set.- Returns:
- This builder for chaining.
-
clearLocality
Optional. The town/city of the address.
string locality = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setLocalityBytes
Optional. The town/city of the address.
string locality = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for locality to set.- Returns:
- This builder for chaining.
-
getAdministrativeArea
Optional. The state, province, or otherwise administrative area of the address.
string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdministrativeAreain interfaceTransactionData.AddressOrBuilder- Returns:
- The administrativeArea.
-
getAdministrativeAreaBytes
public com.google.protobuf.ByteString getAdministrativeAreaBytes()Optional. The state, province, or otherwise administrative area of the address.
string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAdministrativeAreaBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for administrativeArea.
-
setAdministrativeArea
Optional. The state, province, or otherwise administrative area of the address.
string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The administrativeArea to set.- Returns:
- This builder for chaining.
-
clearAdministrativeArea
Optional. The state, province, or otherwise administrative area of the address.
string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setAdministrativeAreaBytes
public TransactionData.Address.Builder setAdministrativeAreaBytes(com.google.protobuf.ByteString value) Optional. The state, province, or otherwise administrative area of the address.
string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for administrativeArea to set.- Returns:
- This builder for chaining.
-
getRegionCode
Optional. The CLDR country/region of the address.
string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodein interfaceTransactionData.AddressOrBuilder- Returns:
- The regionCode.
-
getRegionCodeBytes
public com.google.protobuf.ByteString getRegionCodeBytes()Optional. The CLDR country/region of the address.
string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRegionCodeBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for regionCode.
-
setRegionCode
Optional. The CLDR country/region of the address.
string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The regionCode to set.- Returns:
- This builder for chaining.
-
clearRegionCode
Optional. The CLDR country/region of the address.
string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setRegionCodeBytes
Optional. The CLDR country/region of the address.
string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for regionCode to set.- Returns:
- This builder for chaining.
-
getPostalCode
Optional. The postal or ZIP code of the address.
string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostalCodein interfaceTransactionData.AddressOrBuilder- Returns:
- The postalCode.
-
getPostalCodeBytes
public com.google.protobuf.ByteString getPostalCodeBytes()Optional. The postal or ZIP code of the address.
string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPostalCodeBytesin interfaceTransactionData.AddressOrBuilder- Returns:
- The bytes for postalCode.
-
setPostalCode
Optional. The postal or ZIP code of the address.
string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The postalCode to set.- Returns:
- This builder for chaining.
-
clearPostalCode
Optional. The postal or ZIP code of the address.
string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPostalCodeBytes
Optional. The postal or ZIP code of the address.
string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for postalCode to set.- Returns:
- This builder for chaining.
-