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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransactionData.Address.Builder>
    • getDefaultInstanceForType

      public TransactionData.Address getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransactionData.Address build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransactionData.Address buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransactionData.Address.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.Address.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransactionData.Address.Builder>
      Throws:
      IOException
    • getRecipient

      public String getRecipient()
       Optional. The recipient name, potentially including information such as
       "care of".
       
      string recipient = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRecipient in interface TransactionData.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:
      getRecipientBytes in interface TransactionData.AddressOrBuilder
      Returns:
      The bytes for recipient.
    • setRecipient

      public TransactionData.Address.Builder setRecipient(String value)
       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

      public TransactionData.Address.Builder 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

      public TransactionData.Address.Builder setRecipientBytes(com.google.protobuf.ByteString value)
       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:
      getAddressList in interface TransactionData.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:
      getAddressCount in interface TransactionData.AddressOrBuilder
      Returns:
      The count of address.
    • getAddress

      public String getAddress(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:
      getAddress in interface TransactionData.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:
      getAddressBytes in interface TransactionData.AddressOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the address at the given index.
    • setAddress

      public TransactionData.Address.Builder setAddress(int index, String value)
       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

      public TransactionData.Address.Builder addAddress(String value)
       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

      public TransactionData.Address.Builder addAllAddress(Iterable<String> values)
       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

      public TransactionData.Address.Builder 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

      public TransactionData.Address.Builder addAddressBytes(com.google.protobuf.ByteString value)
       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

      public String getLocality()
       Optional. The town/city of the address.
       
      string locality = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLocality in interface TransactionData.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:
      getLocalityBytes in interface TransactionData.AddressOrBuilder
      Returns:
      The bytes for locality.
    • setLocality

      public TransactionData.Address.Builder setLocality(String value)
       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

      public TransactionData.Address.Builder clearLocality()
       Optional. The town/city of the address.
       
      string locality = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setLocalityBytes

      public TransactionData.Address.Builder setLocalityBytes(com.google.protobuf.ByteString value)
       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

      public String getAdministrativeArea()
       Optional. The state, province, or otherwise administrative area of the
       address.
       
      string administrative_area = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAdministrativeArea in interface TransactionData.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:
      getAdministrativeAreaBytes in interface TransactionData.AddressOrBuilder
      Returns:
      The bytes for administrativeArea.
    • setAdministrativeArea

      public TransactionData.Address.Builder setAdministrativeArea(String value)
       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

      public TransactionData.Address.Builder 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

      public String getRegionCode()
       Optional. The CLDR country/region of the address.
       
      string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRegionCode in interface TransactionData.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:
      getRegionCodeBytes in interface TransactionData.AddressOrBuilder
      Returns:
      The bytes for regionCode.
    • setRegionCode

      public TransactionData.Address.Builder setRegionCode(String value)
       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

      public TransactionData.Address.Builder clearRegionCode()
       Optional. The CLDR country/region of the address.
       
      string region_code = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setRegionCodeBytes

      public TransactionData.Address.Builder setRegionCodeBytes(com.google.protobuf.ByteString value)
       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

      public String getPostalCode()
       Optional. The postal or ZIP code of the address.
       
      string postal_code = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPostalCode in interface TransactionData.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:
      getPostalCodeBytes in interface TransactionData.AddressOrBuilder
      Returns:
      The bytes for postalCode.
    • setPostalCode

      public TransactionData.Address.Builder setPostalCode(String value)
       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

      public TransactionData.Address.Builder 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

      public TransactionData.Address.Builder setPostalCodeBytes(com.google.protobuf.ByteString value)
       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.