@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other = (org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getAddress() .equals(other.getAddress()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Peer.PeerID other) { if (other == org.hyperledger.fabric.protos.peer.Peer.PeerID.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } onChanged(); return this; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other = (org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getAddress() .equals(other.getAddress()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other = (org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint) obj; boolean result = true; result = result && (hasId() == other.hasId()); if (hasId()) { result = result && getId() .equals(other.getId()); } result = result && getAddress() .equals(other.getAddress()); return result; }
/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder mergeId(org.hyperledger.fabric.protos.peer.Peer.PeerID value) { if (idBuilder_ == null) { if (id_ != null) { id_ = org.hyperledger.fabric.protos.peer.Peer.PeerID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /**
/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder mergeId(org.hyperledger.fabric.protos.peer.Peer.PeerID value) { if (idBuilder_ == null) { if (id_ != null) { id_ = org.hyperledger.fabric.protos.peer.Peer.PeerID.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } return this; } /**
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Peer.PeerID)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Peer.PeerID other = (org.hyperledger.fabric.protos.peer.Peer.PeerID) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Peer.PeerID)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Peer.PeerID other = (org.hyperledger.fabric.protos.peer.Peer.PeerID) obj; boolean result = true; result = result && getName() .equals(other.getName()); return result; }
public org.hyperledger.fabric.protos.peer.Peer.PeerID getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Peer.PeerID.getDefaultInstance(); }
public org.hyperledger.fabric.protos.peer.Peer.PeerID getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Peer.PeerID.getDefaultInstance(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <code>optional .protos.PeerID id = 1;</code> */ public org.hyperledger.fabric.protos.peer.Peer.PeerIDOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.hyperledger.fabric.protos.peer.Peer.PeerID.getDefaultInstance() : id_; } } /**