public final class Address extends com.google.protobuf.GeneratedMessageV3 implements AddressOrBuilder
Example result = Braintree::Address.create( :first_name => 'Jenna', :last_name => 'Smith', :company => 'Braintree', :street_address => '1 E Main St', :extended_address => 'Suite 403', :locality => 'Chicago', :region => 'Illinois', :postal_code => '60622', :country_code_numeric => '840' )Protobuf type
appscode.namespace.v1beta1.Address| Modifier and Type | Class and Description |
|---|---|
static class |
Address.Builder
Example
result = Braintree::Address.create(
:first_name => 'Jenna',
:last_name => 'Smith',
:company => 'Braintree',
:street_address => '1 E Main St',
:extended_address => 'Suite 403',
:locality => 'Chicago',
:region => 'Illinois',
:postal_code => '60622',
:country_code_numeric => '840'
)
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
COMPANY_FIELD_NUMBER |
static int |
COUNTRY_CODE_NUMERIC_FIELD_NUMBER |
static int |
EXTENDED_ADDRESS_FIELD_NUMBER |
static int |
FIRST_NAME_FIELD_NUMBER |
static int |
LAST_NAME_FIELD_NUMBER |
static int |
LOCALITY_FIELD_NUMBER |
static int |
POSTAL_CODE_FIELD_NUMBER |
static int |
REGION_FIELD_NUMBER |
static int |
STREET_ADDRESS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCompany()
string company = 3; |
com.google.protobuf.ByteString |
getCompanyBytes()
string company = 3; |
java.lang.String |
getCountryCodeNumeric()
Ref https://developers.braintreepayments.com/reference/general/countries/ruby
|
com.google.protobuf.ByteString |
getCountryCodeNumericBytes()
Ref https://developers.braintreepayments.com/reference/general/countries/ruby
|
static Address |
getDefaultInstance() |
Address |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getExtendedAddress()
string extended_address = 5; |
com.google.protobuf.ByteString |
getExtendedAddressBytes()
string extended_address = 5; |
java.lang.String |
getFirstName()
string first_name = 1; |
com.google.protobuf.ByteString |
getFirstNameBytes()
string first_name = 1; |
java.lang.String |
getLastName()
string last_name = 2; |
com.google.protobuf.ByteString |
getLastNameBytes()
string last_name = 2; |
java.lang.String |
getLocality()
string locality = 6; |
com.google.protobuf.ByteString |
getLocalityBytes()
string locality = 6; |
com.google.protobuf.Parser<Address> |
getParserForType() |
java.lang.String |
getPostalCode()
string postal_code = 8; |
com.google.protobuf.ByteString |
getPostalCodeBytes()
string postal_code = 8; |
java.lang.String |
getRegion()
string region = 7; |
com.google.protobuf.ByteString |
getRegionBytes()
string region = 7; |
int |
getSerializedSize() |
java.lang.String |
getStreetAddress()
string street_address = 4; |
com.google.protobuf.ByteString |
getStreetAddressBytes()
string street_address = 4; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Address.Builder |
newBuilder() |
static Address.Builder |
newBuilder(Address prototype) |
Address.Builder |
newBuilderForType() |
protected Address.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Address |
parseDelimitedFrom(java.io.InputStream input) |
static Address |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(byte[] data) |
static Address |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(java.nio.ByteBuffer data) |
static Address |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(com.google.protobuf.ByteString data) |
static Address |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Address |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Address |
parseFrom(java.io.InputStream input) |
static Address |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Address> |
parser() |
Address.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int FIRST_NAME_FIELD_NUMBER
public static final int LAST_NAME_FIELD_NUMBER
public static final int COMPANY_FIELD_NUMBER
public static final int STREET_ADDRESS_FIELD_NUMBER
public static final int EXTENDED_ADDRESS_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
public static final int POSTAL_CODE_FIELD_NUMBER
public static final int COUNTRY_CODE_NUMERIC_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getFirstName()
string first_name = 1;getFirstName in interface AddressOrBuilderpublic com.google.protobuf.ByteString getFirstNameBytes()
string first_name = 1;getFirstNameBytes in interface AddressOrBuilderpublic java.lang.String getLastName()
string last_name = 2;getLastName in interface AddressOrBuilderpublic com.google.protobuf.ByteString getLastNameBytes()
string last_name = 2;getLastNameBytes in interface AddressOrBuilderpublic java.lang.String getCompany()
string company = 3;getCompany in interface AddressOrBuilderpublic com.google.protobuf.ByteString getCompanyBytes()
string company = 3;getCompanyBytes in interface AddressOrBuilderpublic java.lang.String getStreetAddress()
string street_address = 4;getStreetAddress in interface AddressOrBuilderpublic com.google.protobuf.ByteString getStreetAddressBytes()
string street_address = 4;getStreetAddressBytes in interface AddressOrBuilderpublic java.lang.String getExtendedAddress()
string extended_address = 5;getExtendedAddress in interface AddressOrBuilderpublic com.google.protobuf.ByteString getExtendedAddressBytes()
string extended_address = 5;getExtendedAddressBytes in interface AddressOrBuilderpublic java.lang.String getLocality()
string locality = 6;getLocality in interface AddressOrBuilderpublic com.google.protobuf.ByteString getLocalityBytes()
string locality = 6;getLocalityBytes in interface AddressOrBuilderpublic java.lang.String getRegion()
string region = 7;getRegion in interface AddressOrBuilderpublic com.google.protobuf.ByteString getRegionBytes()
string region = 7;getRegionBytes in interface AddressOrBuilderpublic java.lang.String getPostalCode()
string postal_code = 8;getPostalCode in interface AddressOrBuilderpublic com.google.protobuf.ByteString getPostalCodeBytes()
string postal_code = 8;getPostalCodeBytes in interface AddressOrBuilderpublic java.lang.String getCountryCodeNumeric()
Ref https://developers.braintreepayments.com/reference/general/countries/ruby
string country_code_numeric = 9;getCountryCodeNumeric in interface AddressOrBuilderpublic com.google.protobuf.ByteString getCountryCodeNumericBytes()
Ref https://developers.braintreepayments.com/reference/general/countries/ruby
string country_code_numeric = 9;getCountryCodeNumericBytes in interface AddressOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Address parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Address parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Address parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Address parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Address parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Address parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Address parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Address.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Address.Builder newBuilder()
public static Address.Builder newBuilder(Address prototype)
public Address.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Address.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Address getDefaultInstance()
public static com.google.protobuf.Parser<Address> parser()
public com.google.protobuf.Parser<Address> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Address getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder