/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder setId(org.hyperledger.fabric.protos.peer.Peer.PeerID value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional string address = 2;</code> */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder setId( org.hyperledger.fabric.protos.peer.Peer.PeerID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder setAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder setAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); address_ = value; onChanged(); return this; } public final Builder setUnknownFields(
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other) { if (other == org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } onChanged(); return this; }
/** * <code>optional .protos.PeerID id = 1;</code> */ public org.hyperledger.fabric.protos.peer.Peer.PeerID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /**
/** * <code>optional .protos.PeerID id = 1;</code> */ public org.hyperledger.fabric.protos.peer.Peer.PeerID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other) { if (other == org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } onChanged(); return this; }
/** * <code>optional string address = 2;</code> */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); 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; } /**
/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder setId( org.hyperledger.fabric.protos.peer.Peer.PeerID.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * <code>optional .protos.PeerID id = 1;</code> */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { id_ = null; idBuilder_ = null; } return this; } /**
/** * <code>optional string address = 2;</code> */ public Builder clearAddress() { address_ = getDefaultInstance().getAddress(); onChanged(); return this; } /**
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint other) { if (other == org.hyperledger.fabric.protos.peer.Peer.PeerEndpoint.getDefaultInstance()) return this; if (other.hasId()) { mergeId(other.getId()); } if (!other.getAddress().isEmpty()) { address_ = other.address_; onChanged(); } onChanged(); return this; }
/** * <code>optional .protos.PeerID id = 1;</code> */ public org.hyperledger.fabric.protos.peer.Peer.PeerID.Builder getIdBuilder() { onChanged(); return getIdFieldBuilder().getBuilder(); } /**