def Equals(self, x):
    if (x is self):
        return 1
    if (self.has_value_ != x.has_value_):
        return 0
    if (self.has_value_ and (self.value_ != x.value_)):
        return 0
    return 1
def Equals(self, x):
    if (x is self):
        return 1
    if (self.has_value_ != x.has_value_):
        return 0
    if (self.has_value_ and (self.value_ != x.value_)):
        return 0
    return 1