org.hyperledger.fabric.protos.gossip.Properties Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: gossip/message.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.gossip;
/**
* Protobuf type {@code gossip.Properties}
*/
public final class Properties extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:gossip.Properties)
PropertiesOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
Properties.class.getName());
}
// Use Properties.newBuilder() to construct.
private Properties(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private Properties() {
chaincodes_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_Properties_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_Properties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.gossip.Properties.class, org.hyperledger.fabric.protos.gossip.Properties.Builder.class);
}
public static final int LEDGER_HEIGHT_FIELD_NUMBER = 1;
private long ledgerHeight_ = 0L;
/**
* uint64 ledger_height = 1 [json_name = "ledgerHeight"];
* @return The ledgerHeight.
*/
@java.lang.Override
public long getLedgerHeight() {
return ledgerHeight_;
}
public static final int LEFT_CHANNEL_FIELD_NUMBER = 2;
private boolean leftChannel_ = false;
/**
* bool left_channel = 2 [json_name = "leftChannel"];
* @return The leftChannel.
*/
@java.lang.Override
public boolean getLeftChannel() {
return leftChannel_;
}
public static final int CHAINCODES_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List chaincodes_;
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
@java.lang.Override
public java.util.List getChaincodesList() {
return chaincodes_;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
@java.lang.Override
public java.util.List extends org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder>
getChaincodesOrBuilderList() {
return chaincodes_;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
@java.lang.Override
public int getChaincodesCount() {
return chaincodes_.size();
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Chaincode getChaincodes(int index) {
return chaincodes_.get(index);
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder getChaincodesOrBuilder(
int index) {
return chaincodes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (ledgerHeight_ != 0L) {
output.writeUInt64(1, ledgerHeight_);
}
if (leftChannel_ != false) {
output.writeBool(2, leftChannel_);
}
for (int i = 0; i < chaincodes_.size(); i++) {
output.writeMessage(3, chaincodes_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ledgerHeight_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, ledgerHeight_);
}
if (leftChannel_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, leftChannel_);
}
for (int i = 0; i < chaincodes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, chaincodes_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.gossip.Properties)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.gossip.Properties other = (org.hyperledger.fabric.protos.gossip.Properties) obj;
if (getLedgerHeight()
!= other.getLedgerHeight()) return false;
if (getLeftChannel()
!= other.getLeftChannel()) return false;
if (!getChaincodesList()
.equals(other.getChaincodesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + LEDGER_HEIGHT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getLedgerHeight());
hash = (37 * hash) + LEFT_CHANNEL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLeftChannel());
if (getChaincodesCount() > 0) {
hash = (37 * hash) + CHAINCODES_FIELD_NUMBER;
hash = (53 * hash) + getChaincodesList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.gossip.Properties parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.gossip.Properties prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code gossip.Properties}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:gossip.Properties)
org.hyperledger.fabric.protos.gossip.PropertiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_Properties_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_Properties_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.gossip.Properties.class, org.hyperledger.fabric.protos.gossip.Properties.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.gossip.Properties.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ledgerHeight_ = 0L;
leftChannel_ = false;
if (chaincodesBuilder_ == null) {
chaincodes_ = java.util.Collections.emptyList();
} else {
chaincodes_ = null;
chaincodesBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_Properties_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Properties getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.gossip.Properties.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Properties build() {
org.hyperledger.fabric.protos.gossip.Properties result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Properties buildPartial() {
org.hyperledger.fabric.protos.gossip.Properties result = new org.hyperledger.fabric.protos.gossip.Properties(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.hyperledger.fabric.protos.gossip.Properties result) {
if (chaincodesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
chaincodes_ = java.util.Collections.unmodifiableList(chaincodes_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.chaincodes_ = chaincodes_;
} else {
result.chaincodes_ = chaincodesBuilder_.build();
}
}
private void buildPartial0(org.hyperledger.fabric.protos.gossip.Properties result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ledgerHeight_ = ledgerHeight_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.leftChannel_ = leftChannel_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.gossip.Properties) {
return mergeFrom((org.hyperledger.fabric.protos.gossip.Properties)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.Properties other) {
if (other == org.hyperledger.fabric.protos.gossip.Properties.getDefaultInstance()) return this;
if (other.getLedgerHeight() != 0L) {
setLedgerHeight(other.getLedgerHeight());
}
if (other.getLeftChannel() != false) {
setLeftChannel(other.getLeftChannel());
}
if (chaincodesBuilder_ == null) {
if (!other.chaincodes_.isEmpty()) {
if (chaincodes_.isEmpty()) {
chaincodes_ = other.chaincodes_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureChaincodesIsMutable();
chaincodes_.addAll(other.chaincodes_);
}
onChanged();
}
} else {
if (!other.chaincodes_.isEmpty()) {
if (chaincodesBuilder_.isEmpty()) {
chaincodesBuilder_.dispose();
chaincodesBuilder_ = null;
chaincodes_ = other.chaincodes_;
bitField0_ = (bitField0_ & ~0x00000004);
chaincodesBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getChaincodesFieldBuilder() : null;
} else {
chaincodesBuilder_.addAllMessages(other.chaincodes_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
ledgerHeight_ = input.readUInt64();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
leftChannel_ = input.readBool();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
org.hyperledger.fabric.protos.gossip.Chaincode m =
input.readMessage(
org.hyperledger.fabric.protos.gossip.Chaincode.parser(),
extensionRegistry);
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
chaincodes_.add(m);
} else {
chaincodesBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private long ledgerHeight_ ;
/**
* uint64 ledger_height = 1 [json_name = "ledgerHeight"];
* @return The ledgerHeight.
*/
@java.lang.Override
public long getLedgerHeight() {
return ledgerHeight_;
}
/**
* uint64 ledger_height = 1 [json_name = "ledgerHeight"];
* @param value The ledgerHeight to set.
* @return This builder for chaining.
*/
public Builder setLedgerHeight(long value) {
ledgerHeight_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* uint64 ledger_height = 1 [json_name = "ledgerHeight"];
* @return This builder for chaining.
*/
public Builder clearLedgerHeight() {
bitField0_ = (bitField0_ & ~0x00000001);
ledgerHeight_ = 0L;
onChanged();
return this;
}
private boolean leftChannel_ ;
/**
* bool left_channel = 2 [json_name = "leftChannel"];
* @return The leftChannel.
*/
@java.lang.Override
public boolean getLeftChannel() {
return leftChannel_;
}
/**
* bool left_channel = 2 [json_name = "leftChannel"];
* @param value The leftChannel to set.
* @return This builder for chaining.
*/
public Builder setLeftChannel(boolean value) {
leftChannel_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* bool left_channel = 2 [json_name = "leftChannel"];
* @return This builder for chaining.
*/
public Builder clearLeftChannel() {
bitField0_ = (bitField0_ & ~0x00000002);
leftChannel_ = false;
onChanged();
return this;
}
private java.util.List chaincodes_ =
java.util.Collections.emptyList();
private void ensureChaincodesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
chaincodes_ = new java.util.ArrayList(chaincodes_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Chaincode, org.hyperledger.fabric.protos.gossip.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder> chaincodesBuilder_;
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public java.util.List getChaincodesList() {
if (chaincodesBuilder_ == null) {
return java.util.Collections.unmodifiableList(chaincodes_);
} else {
return chaincodesBuilder_.getMessageList();
}
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public int getChaincodesCount() {
if (chaincodesBuilder_ == null) {
return chaincodes_.size();
} else {
return chaincodesBuilder_.getCount();
}
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public org.hyperledger.fabric.protos.gossip.Chaincode getChaincodes(int index) {
if (chaincodesBuilder_ == null) {
return chaincodes_.get(index);
} else {
return chaincodesBuilder_.getMessage(index);
}
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder setChaincodes(
int index, org.hyperledger.fabric.protos.gossip.Chaincode value) {
if (chaincodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodesIsMutable();
chaincodes_.set(index, value);
onChanged();
} else {
chaincodesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder setChaincodes(
int index, org.hyperledger.fabric.protos.gossip.Chaincode.Builder builderForValue) {
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
chaincodes_.set(index, builderForValue.build());
onChanged();
} else {
chaincodesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder addChaincodes(org.hyperledger.fabric.protos.gossip.Chaincode value) {
if (chaincodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodesIsMutable();
chaincodes_.add(value);
onChanged();
} else {
chaincodesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder addChaincodes(
int index, org.hyperledger.fabric.protos.gossip.Chaincode value) {
if (chaincodesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureChaincodesIsMutable();
chaincodes_.add(index, value);
onChanged();
} else {
chaincodesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder addChaincodes(
org.hyperledger.fabric.protos.gossip.Chaincode.Builder builderForValue) {
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
chaincodes_.add(builderForValue.build());
onChanged();
} else {
chaincodesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder addChaincodes(
int index, org.hyperledger.fabric.protos.gossip.Chaincode.Builder builderForValue) {
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
chaincodes_.add(index, builderForValue.build());
onChanged();
} else {
chaincodesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder addAllChaincodes(
java.lang.Iterable extends org.hyperledger.fabric.protos.gossip.Chaincode> values) {
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, chaincodes_);
onChanged();
} else {
chaincodesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder clearChaincodes() {
if (chaincodesBuilder_ == null) {
chaincodes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
chaincodesBuilder_.clear();
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public Builder removeChaincodes(int index) {
if (chaincodesBuilder_ == null) {
ensureChaincodesIsMutable();
chaincodes_.remove(index);
onChanged();
} else {
chaincodesBuilder_.remove(index);
}
return this;
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public org.hyperledger.fabric.protos.gossip.Chaincode.Builder getChaincodesBuilder(
int index) {
return getChaincodesFieldBuilder().getBuilder(index);
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder getChaincodesOrBuilder(
int index) {
if (chaincodesBuilder_ == null) {
return chaincodes_.get(index); } else {
return chaincodesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public java.util.List extends org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder>
getChaincodesOrBuilderList() {
if (chaincodesBuilder_ != null) {
return chaincodesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(chaincodes_);
}
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public org.hyperledger.fabric.protos.gossip.Chaincode.Builder addChaincodesBuilder() {
return getChaincodesFieldBuilder().addBuilder(
org.hyperledger.fabric.protos.gossip.Chaincode.getDefaultInstance());
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public org.hyperledger.fabric.protos.gossip.Chaincode.Builder addChaincodesBuilder(
int index) {
return getChaincodesFieldBuilder().addBuilder(
index, org.hyperledger.fabric.protos.gossip.Chaincode.getDefaultInstance());
}
/**
* repeated .gossip.Chaincode chaincodes = 3 [json_name = "chaincodes"];
*/
public java.util.List
getChaincodesBuilderList() {
return getChaincodesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Chaincode, org.hyperledger.fabric.protos.gossip.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder>
getChaincodesFieldBuilder() {
if (chaincodesBuilder_ == null) {
chaincodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.hyperledger.fabric.protos.gossip.Chaincode, org.hyperledger.fabric.protos.gossip.Chaincode.Builder, org.hyperledger.fabric.protos.gossip.ChaincodeOrBuilder>(
chaincodes_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
chaincodes_ = null;
}
return chaincodesBuilder_;
}
// @@protoc_insertion_point(builder_scope:gossip.Properties)
}
// @@protoc_insertion_point(class_scope:gossip.Properties)
private static final org.hyperledger.fabric.protos.gossip.Properties DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.Properties();
}
public static org.hyperledger.fabric.protos.gossip.Properties getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Properties parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.gossip.Properties getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy