/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder addChannels( org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.add(builderForValue.build()); onChanged(); } else { channelsBuilder_.addMessage(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.Query.ChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Query.ChannelInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>optional string channel_id = 1;</code> */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.Query.ChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Query.ChannelInfo) 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.Query.ChannelInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.Query.ChannelInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; }
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder setChannels( int index, org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.set(index, builderForValue.build()); onChanged(); } else { channelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder setChannels( int index, org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.set(index, builderForValue.build()); onChanged(); } else { channelsBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <code>optional string channel_id = 1;</code> */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>optional string channel_id = 1;</code> */ public Builder setChannelIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); channelId_ = value; onChanged(); return this; } public final Builder setUnknownFields(
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder addChannels( int index, org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.add(index, builderForValue.build()); onChanged(); } else { channelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder addChannels( int index, org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.add(index, builderForValue.build()); onChanged(); } else { channelsBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder addChannels( org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.add(builderForValue.build()); onChanged(); } else { channelsBuilder_.addMessage(builderForValue.build()); } return this; } /**
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Query.ChannelInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>repeated .protos.ChannelInfo channels = 1;</code> */ public Builder addChannels( org.hyperledger.fabric.protos.peer.Query.ChannelInfo.Builder builderForValue) { if (channelsBuilder_ == null) { ensureChannelsIsMutable(); channels_.add(builderForValue.build()); onChanged(); } else { channelsBuilder_.addMessage(builderForValue.build()); } return this; } /**
private Builder() { maybeForceBuilderInitialization(); }
/** * <code>optional string channel_id = 1;</code> */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; onChanged(); return this; } /**
public static Builder newBuilder(org.hyperledger.fabric.protos.peer.Query.ChannelInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } public Builder toBuilder() {
/** * <code>optional string channel_id = 1;</code> */ public Builder setChannelId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } channelId_ = value; onChanged(); return this; } /**
private Builder() { maybeForceBuilderInitialization(); }