@ -211,9 +211,6 @@ public final class Phonemetadata {
if ( other . hasNationalNumberPattern ( ) ) {
setNationalNumberPattern ( other . getNationalNumberPattern ( ) ) ;
}
if ( other . hasPossibleNumberPattern ( ) ) {
setPossibleNumberPattern ( other . getPossibleNumberPattern ( ) ) ;
}
for ( int i = 0 ; i < other . getPossibleLengthCount ( ) ; i + + ) {
addPossibleLength ( other . getPossibleLength ( i ) ) ;
}
@ -247,22 +244,6 @@ public final class Phonemetadata {
return this ;
}
/ / optional string possible_number_pattern = 3 ;
private boolean hasPossibleNumberPattern ;
private String possibleNumberPattern_ = "" ;
public boolean hasPossibleNumberPattern ( ) { return hasPossibleNumberPattern ; }
public String getPossibleNumberPattern ( ) { return possibleNumberPattern_ ; }
public PhoneNumberDesc setPossibleNumberPattern ( String value ) {
hasPossibleNumberPattern = true ;
possibleNumberPattern_ = value ;
return this ;
}
public PhoneNumberDesc clearPossibleNumberPattern ( ) {
hasPossibleNumberPattern = false ;
possibleNumberPattern_ = "" ;
return this ;
}
/ / repeated int32 possible_length = 9 ;
private java . util . List < Integer > possibleLength_ = new java . util . ArrayList < Integer > ( ) ;
public java . util . List < Integer > getPossibleLengthList ( ) {
@ -317,7 +298,6 @@ public final class Phonemetadata {
public boolean exactlySameAs ( PhoneNumberDesc other ) {
return nationalNumberPattern_ . equals ( other . nationalNumberPattern_ ) & &
possibleNumberPattern_ . equals ( other . possibleNumberPattern_ ) & &
possibleLength_ . equals ( other . possibleLength_ ) & &
possibleLengthLocalOnly_ . equals ( other . possibleLengthLocalOnly_ ) & &
exampleNumber_ . equals ( other . exampleNumber_ ) ;
@ -329,11 +309,6 @@ public final class Phonemetadata {
objectOutput . writeUTF ( nationalNumberPattern_ ) ;
}
objectOutput . writeBoolean ( hasPossibleNumberPattern ) ;
if ( hasPossibleNumberPattern ) {
objectOutput . writeUTF ( possibleNumberPattern_ ) ;
}
int possibleLengthSize = getPossibleLengthCount ( ) ;
objectOutput . writeInt ( possibleLengthSize ) ;
for ( int i = 0 ; i < possibleLengthSize ; i + + ) {
@ -357,10 +332,6 @@ public final class Phonemetadata {
setNationalNumberPattern ( objectInput . readUTF ( ) ) ;
}
if ( objectInput . readBoolean ( ) ) {
setPossibleNumberPattern ( objectInput . readUTF ( ) ) ;
}
int possibleLengthSize = objectInput . readInt ( ) ;
for ( int i = 0 ; i < possibleLengthSize ; i + + ) {
possibleLength_ . add ( objectInput . readInt ( ) ) ;