/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder setAnchorPeers( int index, org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.set(index, builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /**
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; }
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder setHostBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); host_ = value; onChanged(); return this; }
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder addAnchorPeers( int index, org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.add(index, builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder addAnchorPeers( org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.add(builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder setAnchorPeers( int index, org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.set(index, builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder setHost( java.lang.String value) { if (value == null) { throw new NullPointerException(); } host_ = value; onChanged(); return this; } /**
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder addAnchorPeers( int index, org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.add(index, builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder setAnchorPeers( int index, org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.set(index, builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>repeated .protos.AnchorPeer anchor_peers = 1;</code> */ public Builder addAnchorPeers( org.hyperledger.fabric.protos.peer.Configuration.AnchorPeer.Builder builderForValue) { if (anchorPeersBuilder_ == null) { ensureAnchorPeersIsMutable(); anchorPeers_.add(builderForValue.build()); onChanged(); } else { anchorPeersBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> * The port number * </pre> * * <code>optional int32 port = 2;</code> */ public Builder setPort(int value) { port_ = value; onChanged(); return this; } /**
/** * <pre> * The port number * </pre> * * <code>optional int32 port = 2;</code> */ public Builder clearPort() { port_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * DNS host name of the anchor peer * </pre> * * <code>optional string host = 1;</code> */ public Builder clearHost() { host_ = getDefaultInstance().getHost(); onChanged(); return this; } /**