@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (getFunctionsCount() > 0) { hash = (37 * hash) + FUNCTIONS_FIELD_NUMBER; hash = (53 * hash) + getFunctionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.calcite.avatica.proto.Common.DatabaseProperty)) { return super.equals(obj); } org.apache.calcite.avatica.proto.Common.DatabaseProperty other = (org.apache.calcite.avatica.proto.Common.DatabaseProperty) obj; boolean result = true; result = result && getName() .equals(other.getName()); result = result && getFunctionsList() .equals(other.getFunctionsList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(org.apache.calcite.avatica.proto.Common.DatabaseProperty other) { if (other == org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.functions_.isEmpty()) { if (functions_.isEmpty()) { functions_ = other.functions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFunctionsIsMutable(); functions_.addAll(other.functions_); } onChanged(); } onChanged(); return this; }
public static DatabaseProperty fromProto(Common.DatabaseProperty proto) { return DatabaseProperty.valueOf(proto.getName()); }
public static DatabaseProperty fromProto(Common.DatabaseProperty proto) { return DatabaseProperty.valueOf(proto.getName()); }
public static DatabaseProperty fromProto(Common.DatabaseProperty proto) { return DatabaseProperty.valueOf(proto.getName()); }
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>optional string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**