/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(builderForValue.build()); } return this; } /**
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.openwallet.core.protos.Protos.PeerAddress parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.openwallet.core.protos.Protos.PeerAddress) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
PeerAddress address = it.next(); Protos.PeerAddress proto = Protos.PeerAddress.newBuilder() .setIpAddress(ByteString.copyFrom(address.getAddr().getAddress())) .setPort(address.getPort()) .setServices(address.getServices().longValue()) .build(); confidenceBuilder.addBroadcastBy(proto);
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder setBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.set(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .com.openwallet.core.protos.PeerAddress broadcast_by = 5;</code> */ public Builder addBroadcastBy( int index, com.openwallet.core.protos.Protos.PeerAddress.Builder builderForValue) { if (broadcastByBuilder_ == null) { ensureBroadcastByIsMutable(); broadcastBy_.add(index, builderForValue.build()); onChanged(); } else { broadcastByBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
public Builder clone() { return create().mergeFrom(buildPartial()); }
private static Builder create() { return new Builder(); }
public Builder mergeFrom(com.openwallet.core.protos.Protos.PeerAddress other) { if (other == com.openwallet.core.protos.Protos.PeerAddress.getDefaultInstance()) return this; if (other.hasIpAddress()) { setIpAddress(other.getIpAddress()); } if (other.hasPort()) { setPort(other.getPort()); } if (other.hasServices()) { setServices(other.getServices()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public static Builder newBuilder(com.openwallet.core.protos.Protos.PeerAddress prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); }
public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.openwallet.core.protos.Protos.PeerAddress) { return mergeFrom((com.openwallet.core.protos.Protos.PeerAddress)other); } else { super.mergeFrom(other); return this; } }
private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() {
@java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /**
public final boolean isInitialized() { if (!hasIpAddress()) { return false; } if (!hasPort()) { return false; } if (!hasServices()) { return false; } return true; }
public com.openwallet.core.protos.Protos.PeerAddress build() { com.openwallet.core.protos.Protos.PeerAddress result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }