Class TransactionData.Address

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.recaptchaenterprise.v1.TransactionData.Address
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TransactionData.AddressOrBuilder, Serializable
Enclosing class:
TransactionData

public static final class TransactionData.Address extends com.google.protobuf.GeneratedMessage implements TransactionData.AddressOrBuilder
 Structured address format for billing and shipping addresses.
 
Protobuf type google.cloud.recaptchaenterprise.v1.TransactionData.Address
See Also:
  • Field Details

    • RECIPIENT_FIELD_NUMBER

      public static final int RECIPIENT_FIELD_NUMBER
      See Also:
    • ADDRESS_FIELD_NUMBER

      public static final int ADDRESS_FIELD_NUMBER
      See Also:
    • LOCALITY_FIELD_NUMBER

      public static final int LOCALITY_FIELD_NUMBER
      See Also:
    • ADMINISTRATIVE_AREA_FIELD_NUMBER

      public static final int ADMINISTRATIVE_AREA_FIELD_NUMBER
      See Also:
    • REGION_CODE_FIELD_NUMBER

      public static final int REGION_CODE_FIELD_NUMBER
      See Also:
    • POSTAL_CODE_FIELD_NUMBER

      public static final int POSTAL_CODE_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TransactionData.Address parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransactionData.Address parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransactionData.Address parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransactionData.Address parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransactionData.Address parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransactionData.Address parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransactionData.Address parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static TransactionData.Address.Builder newBuilder()
    • newBuilder

      public static TransactionData.Address.Builder newBuilder(TransactionData.Address prototype)
    • toBuilder

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

      protected TransactionData.Address.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TransactionData.Address getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TransactionData.Address> parser()
    • getParserForType

      public com.google.protobuf.Parser<TransactionData.Address> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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