public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint buildPartial() { org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint result = new org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.address_ = address_; onBuilt(); 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; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } memoizedSize = size; return size; }
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; }
@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() {
@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 org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint.getDefaultInstance(); }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint.getDefaultInstance(); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (id_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getId()); } if (!getAddressBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, address_); } memoizedSize = size; return size; }
public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint build() { org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint buildPartial() { org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint result = new org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.address_ = address_; onBuilt(); return result; }
public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint build() { org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint buildPartial() { org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint result = new org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint(this); if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } result.address_ = address_; onBuilt(); return result; }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (id_ != null) { output.writeMessage(1, getId()); } if (!getAddressBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, address_); } }