@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); 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.hyperledger.fabric.protos.peer.Configuration.AnchorPeer)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) obj; boolean result = true; result = result && getHost() .equals(other.getHost()); result = result && (getPort() == other.getPort()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other) { if (other == org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) obj; boolean result = true; result = result && getHost() .equals(other.getHost()); result = result && (getPort() == other.getPort()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); 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.hyperledger.fabric.protos.peer.Configuration.AnchorPeer)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) obj; boolean result = true; result = result && getHost() .equals(other.getHost()); result = result && (getPort() == other.getPort()); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); hash = (37 * hash) + PORT_FIELD_NUMBER; hash = (53 * hash) + getPort(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /**
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other) { if (other == org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer other) { if (other == org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.getDefaultInstance()) return this; if (!other.getHost().isEmpty()) { host_ = other.host_; onChanged(); } if (other.getPort() != 0) { setPort(other.getPort()); } onChanged(); return this; }
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /**