All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.protos.gossip.GossipMessage 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;

/**
 * 
 * GossipMessage defines the message sent in a gossip network
 * 
* * Protobuf type {@code gossip.GossipMessage} */ public final class GossipMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:gossip.GossipMessage) GossipMessageOrBuilder { 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= */ "", GossipMessage.class.getName()); } // Use GossipMessage.newBuilder() to construct. private GossipMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private GossipMessage() { channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_GossipMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_GossipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.GossipMessage.class, org.hyperledger.fabric.protos.gossip.GossipMessage.Builder.class); } /** * Protobuf enum {@code gossip.GossipMessage.Tag} */ public enum Tag implements com.google.protobuf.ProtocolMessageEnum { /** * UNDEFINED = 0; */ UNDEFINED(0), /** * EMPTY = 1; */ EMPTY(1), /** * ORG_ONLY = 2; */ ORG_ONLY(2), /** * CHAN_ONLY = 3; */ CHAN_ONLY(3), /** * CHAN_AND_ORG = 4; */ CHAN_AND_ORG(4), /** * CHAN_OR_ORG = 5; */ CHAN_OR_ORG(5), UNRECOGNIZED(-1), ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 28, /* patch= */ 2, /* suffix= */ "", Tag.class.getName()); } /** * UNDEFINED = 0; */ public static final int UNDEFINED_VALUE = 0; /** * EMPTY = 1; */ public static final int EMPTY_VALUE = 1; /** * ORG_ONLY = 2; */ public static final int ORG_ONLY_VALUE = 2; /** * CHAN_ONLY = 3; */ public static final int CHAN_ONLY_VALUE = 3; /** * CHAN_AND_ORG = 4; */ public static final int CHAN_AND_ORG_VALUE = 4; /** * CHAN_OR_ORG = 5; */ public static final int CHAN_OR_ORG_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Tag valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Tag forNumber(int value) { switch (value) { case 0: return UNDEFINED; case 1: return EMPTY; case 2: return ORG_ONLY; case 3: return CHAN_ONLY; case 4: return CHAN_AND_ORG; case 5: return CHAN_OR_ORG; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Tag> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Tag findValueByNumber(int number) { return Tag.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.GossipMessage.getDescriptor().getEnumTypes().get(0); } private static final Tag[] VALUES = values(); public static Tag valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Tag(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:gossip.GossipMessage.Tag) } private int contentCase_ = 0; @SuppressWarnings("serial") private java.lang.Object content_; public enum ContentCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ALIVE_MSG(5), MEM_REQ(6), MEM_RES(7), DATA_MSG(8), HELLO(9), DATA_DIG(10), DATA_REQ(11), DATA_UPDATE(12), EMPTY(13), CONN(14), STATE_INFO(15), STATE_SNAPSHOT(16), STATE_INFO_PULL_REQ(17), STATE_REQUEST(18), STATE_RESPONSE(19), LEADERSHIP_MSG(20), PEER_IDENTITY(21), ACK(22), PRIVATEREQ(23), PRIVATERES(24), PRIVATE_DATA(25), CONTENT_NOT_SET(0); private final int value; private ContentCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ContentCase valueOf(int value) { return forNumber(value); } public static ContentCase forNumber(int value) { switch (value) { case 5: return ALIVE_MSG; case 6: return MEM_REQ; case 7: return MEM_RES; case 8: return DATA_MSG; case 9: return HELLO; case 10: return DATA_DIG; case 11: return DATA_REQ; case 12: return DATA_UPDATE; case 13: return EMPTY; case 14: return CONN; case 15: return STATE_INFO; case 16: return STATE_SNAPSHOT; case 17: return STATE_INFO_PULL_REQ; case 18: return STATE_REQUEST; case 19: return STATE_RESPONSE; case 20: return LEADERSHIP_MSG; case 21: return PEER_IDENTITY; case 22: return ACK; case 23: return PRIVATEREQ; case 24: return PRIVATERES; case 25: return PRIVATE_DATA; case 0: return CONTENT_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public static final int NONCE_FIELD_NUMBER = 1; private long nonce_ = 0L; /** *
   * used mainly for testing, but will might be used in the future
   * for ensuring message delivery by acking
   * 
* * uint64 nonce = 1 [json_name = "nonce"]; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } public static final int CHANNEL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** *
   * The channel of the message.
   * Some GossipMessages may set this to nil, because
   * they are cross-channels but some may not
   * 
* * bytes channel = 2 [json_name = "channel"]; * @return The channel. */ @java.lang.Override public com.google.protobuf.ByteString getChannel() { return channel_; } public static final int TAG_FIELD_NUMBER = 3; private int tag_ = 0; /** *
   * determines to which peers it is allowed
   * to forward the message
   * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @return The enum numeric value on the wire for tag. */ @java.lang.Override public int getTagValue() { return tag_; } /** *
   * determines to which peers it is allowed
   * to forward the message
   * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @return The tag. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipMessage.Tag getTag() { org.hyperledger.fabric.protos.gossip.GossipMessage.Tag result = org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.forNumber(tag_); return result == null ? org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.UNRECOGNIZED : result; } public static final int ALIVE_MSG_FIELD_NUMBER = 5; /** *
   * Membership
   * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; * @return Whether the aliveMsg field is set. */ @java.lang.Override public boolean hasAliveMsg() { return contentCase_ == 5; } /** *
   * Membership
   * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; * @return The aliveMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessage getAliveMsg() { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } /** *
   * Membership
   * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder getAliveMsgOrBuilder() { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } public static final int MEM_REQ_FIELD_NUMBER = 6; /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; * @return Whether the memReq field is set. */ @java.lang.Override public boolean hasMemReq() { return contentCase_ == 6; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; * @return The memReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipRequest getMemReq() { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipRequestOrBuilder getMemReqOrBuilder() { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } public static final int MEM_RES_FIELD_NUMBER = 7; /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; * @return Whether the memRes field is set. */ @java.lang.Override public boolean hasMemRes() { return contentCase_ == 7; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; * @return The memRes. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipResponse getMemRes() { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder getMemResOrBuilder() { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } public static final int DATA_MSG_FIELD_NUMBER = 8; /** *
   * Contains a ledger block
   * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; * @return Whether the dataMsg field is set. */ @java.lang.Override public boolean hasDataMsg() { return contentCase_ == 8; } /** *
   * Contains a ledger block
   * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; * @return The dataMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataMessage getDataMsg() { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } /** *
   * Contains a ledger block
   * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataMessageOrBuilder getDataMsgOrBuilder() { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } public static final int HELLO_FIELD_NUMBER = 9; /** *
   * Used for push&pull
   * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; * @return Whether the hello field is set. */ @java.lang.Override public boolean hasHello() { return contentCase_ == 9; } /** *
   * Used for push&pull
   * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; * @return The hello. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipHello getHello() { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } /** *
   * Used for push&pull
   * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipHelloOrBuilder getHelloOrBuilder() { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } public static final int DATA_DIG_FIELD_NUMBER = 10; /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; * @return Whether the dataDig field is set. */ @java.lang.Override public boolean hasDataDig() { return contentCase_ == 10; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; * @return The dataDig. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataDigest getDataDig() { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataDigestOrBuilder getDataDigOrBuilder() { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } public static final int DATA_REQ_FIELD_NUMBER = 11; /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; * @return Whether the dataReq field is set. */ @java.lang.Override public boolean hasDataReq() { return contentCase_ == 11; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; * @return The dataReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataRequest getDataReq() { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataRequestOrBuilder getDataReqOrBuilder() { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } public static final int DATA_UPDATE_FIELD_NUMBER = 12; /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; * @return Whether the dataUpdate field is set. */ @java.lang.Override public boolean hasDataUpdate() { return contentCase_ == 12; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; * @return The dataUpdate. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataUpdate getDataUpdate() { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataUpdateOrBuilder getDataUpdateOrBuilder() { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } public static final int EMPTY_FIELD_NUMBER = 13; /** *
   * Empty message, used for pinging
   * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; * @return Whether the empty field is set. */ @java.lang.Override public boolean hasEmpty() { return contentCase_ == 13; } /** *
   * Empty message, used for pinging
   * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; * @return The empty. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Empty getEmpty() { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } /** *
   * Empty message, used for pinging
   * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.EmptyOrBuilder getEmptyOrBuilder() { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } public static final int CONN_FIELD_NUMBER = 14; /** *
   * ConnEstablish, used for establishing a connection
   * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; * @return Whether the conn field is set. */ @java.lang.Override public boolean hasConn() { return contentCase_ == 14; } /** *
   * ConnEstablish, used for establishing a connection
   * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; * @return The conn. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.ConnEstablish getConn() { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } /** *
   * ConnEstablish, used for establishing a connection
   * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.ConnEstablishOrBuilder getConnOrBuilder() { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } public static final int STATE_INFO_FIELD_NUMBER = 15; /** *
   * Used for relaying information
   * about state
   * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return contentCase_ == 15; } /** *
   * Used for relaying information
   * about state
   * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; * @return The stateInfo. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfo getStateInfo() { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } /** *
   * Used for relaying information
   * about state
   * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoOrBuilder getStateInfoOrBuilder() { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } public static final int STATE_SNAPSHOT_FIELD_NUMBER = 16; /** *
   * Used for sending sets of StateInfo messages
   * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; * @return Whether the stateSnapshot field is set. */ @java.lang.Override public boolean hasStateSnapshot() { return contentCase_ == 16; } /** *
   * Used for sending sets of StateInfo messages
   * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; * @return The stateSnapshot. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoSnapshot getStateSnapshot() { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } /** *
   * Used for sending sets of StateInfo messages
   * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder() { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } public static final int STATE_INFO_PULL_REQ_FIELD_NUMBER = 17; /** *
   * Used for asking for StateInfoSnapshots
   * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; * @return Whether the stateInfoPullReq field is set. */ @java.lang.Override public boolean hasStateInfoPullReq() { return contentCase_ == 17; } /** *
   * Used for asking for StateInfoSnapshots
   * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; * @return The stateInfoPullReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoPullRequest getStateInfoPullReq() { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } /** *
   * Used for asking for StateInfoSnapshots
   * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoPullRequestOrBuilder getStateInfoPullReqOrBuilder() { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } public static final int STATE_REQUEST_FIELD_NUMBER = 18; /** *
   * Used to ask from a remote peer a set of blocks
   * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; * @return Whether the stateRequest field is set. */ @java.lang.Override public boolean hasStateRequest() { return contentCase_ == 18; } /** *
   * Used to ask from a remote peer a set of blocks
   * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; * @return The stateRequest. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateRequest getStateRequest() { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } /** *
   * Used to ask from a remote peer a set of blocks
   * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateRequestOrBuilder getStateRequestOrBuilder() { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } public static final int STATE_RESPONSE_FIELD_NUMBER = 19; /** *
   * Used to send a set of blocks to a remote peer
   * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; * @return Whether the stateResponse field is set. */ @java.lang.Override public boolean hasStateResponse() { return contentCase_ == 19; } /** *
   * Used to send a set of blocks to a remote peer
   * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; * @return The stateResponse. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateResponse getStateResponse() { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } /** *
   * Used to send a set of blocks to a remote peer
   * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateResponseOrBuilder getStateResponseOrBuilder() { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } public static final int LEADERSHIP_MSG_FIELD_NUMBER = 20; /** *
   * Used to indicate intent of peer to become leader
   * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; * @return Whether the leadershipMsg field is set. */ @java.lang.Override public boolean hasLeadershipMsg() { return contentCase_ == 20; } /** *
   * Used to indicate intent of peer to become leader
   * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; * @return The leadershipMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.LeadershipMessage getLeadershipMsg() { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } /** *
   * Used to indicate intent of peer to become leader
   * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder() { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } public static final int PEER_IDENTITY_FIELD_NUMBER = 21; /** *
   * Used to learn of a peer's certificate
   * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; * @return Whether the peerIdentity field is set. */ @java.lang.Override public boolean hasPeerIdentity() { return contentCase_ == 21; } /** *
   * Used to learn of a peer's certificate
   * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; * @return The peerIdentity. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerIdentity getPeerIdentity() { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } /** *
   * Used to learn of a peer's certificate
   * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerIdentityOrBuilder getPeerIdentityOrBuilder() { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } public static final int ACK_FIELD_NUMBER = 22; /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; * @return Whether the ack field is set. */ @java.lang.Override public boolean hasAck() { return contentCase_ == 22; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; * @return The ack. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Acknowledgement getAck() { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AcknowledgementOrBuilder getAckOrBuilder() { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } public static final int PRIVATEREQ_FIELD_NUMBER = 23; /** *
   * Used to request private data
   * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; * @return Whether the privateReq field is set. */ @java.lang.Override public boolean hasPrivateReq() { return contentCase_ == 23; } /** *
   * Used to request private data
   * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; * @return The privateReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest getPrivateReq() { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } /** *
   * Used to request private data
   * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder() { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } public static final int PRIVATERES_FIELD_NUMBER = 24; /** *
   * Used to respond to private data requests
   * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; * @return Whether the privateRes field is set. */ @java.lang.Override public boolean hasPrivateRes() { return contentCase_ == 24; } /** *
   * Used to respond to private data requests
   * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; * @return The privateRes. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse getPrivateRes() { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } /** *
   * Used to respond to private data requests
   * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder() { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } public static final int PRIVATE_DATA_FIELD_NUMBER = 25; /** *
   * Encapsulates private data used to distribute
   * private rwset after the endorsement
   * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; * @return Whether the privateData field is set. */ @java.lang.Override public boolean hasPrivateData() { return contentCase_ == 25; } /** *
   * Encapsulates private data used to distribute
   * private rwset after the endorsement
   * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; * @return The privateData. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PrivateDataMessage getPrivateData() { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } /** *
   * Encapsulates private data used to distribute
   * private rwset after the endorsement
   * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PrivateDataMessageOrBuilder getPrivateDataOrBuilder() { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } 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 (nonce_ != 0L) { output.writeUInt64(1, nonce_); } if (!channel_.isEmpty()) { output.writeBytes(2, channel_); } if (tag_ != org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.UNDEFINED.getNumber()) { output.writeEnum(3, tag_); } if (contentCase_ == 5) { output.writeMessage(5, (org.hyperledger.fabric.protos.gossip.AliveMessage) content_); } if (contentCase_ == 6) { output.writeMessage(6, (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_); } if (contentCase_ == 7) { output.writeMessage(7, (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_); } if (contentCase_ == 8) { output.writeMessage(8, (org.hyperledger.fabric.protos.gossip.DataMessage) content_); } if (contentCase_ == 9) { output.writeMessage(9, (org.hyperledger.fabric.protos.gossip.GossipHello) content_); } if (contentCase_ == 10) { output.writeMessage(10, (org.hyperledger.fabric.protos.gossip.DataDigest) content_); } if (contentCase_ == 11) { output.writeMessage(11, (org.hyperledger.fabric.protos.gossip.DataRequest) content_); } if (contentCase_ == 12) { output.writeMessage(12, (org.hyperledger.fabric.protos.gossip.DataUpdate) content_); } if (contentCase_ == 13) { output.writeMessage(13, (org.hyperledger.fabric.protos.gossip.Empty) content_); } if (contentCase_ == 14) { output.writeMessage(14, (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_); } if (contentCase_ == 15) { output.writeMessage(15, (org.hyperledger.fabric.protos.gossip.StateInfo) content_); } if (contentCase_ == 16) { output.writeMessage(16, (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_); } if (contentCase_ == 17) { output.writeMessage(17, (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_); } if (contentCase_ == 18) { output.writeMessage(18, (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_); } if (contentCase_ == 19) { output.writeMessage(19, (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_); } if (contentCase_ == 20) { output.writeMessage(20, (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_); } if (contentCase_ == 21) { output.writeMessage(21, (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_); } if (contentCase_ == 22) { output.writeMessage(22, (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_); } if (contentCase_ == 23) { output.writeMessage(23, (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_); } if (contentCase_ == 24) { output.writeMessage(24, (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_); } if (contentCase_ == 25) { output.writeMessage(25, (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (nonce_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, nonce_); } if (!channel_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, channel_); } if (tag_ != org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, tag_); } if (contentCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (org.hyperledger.fabric.protos.gossip.AliveMessage) content_); } if (contentCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_); } if (contentCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_); } if (contentCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (org.hyperledger.fabric.protos.gossip.DataMessage) content_); } if (contentCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (org.hyperledger.fabric.protos.gossip.GossipHello) content_); } if (contentCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (org.hyperledger.fabric.protos.gossip.DataDigest) content_); } if (contentCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (org.hyperledger.fabric.protos.gossip.DataRequest) content_); } if (contentCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (org.hyperledger.fabric.protos.gossip.DataUpdate) content_); } if (contentCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (org.hyperledger.fabric.protos.gossip.Empty) content_); } if (contentCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_); } if (contentCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (org.hyperledger.fabric.protos.gossip.StateInfo) content_); } if (contentCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_); } if (contentCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_); } if (contentCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_); } if (contentCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_); } if (contentCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_); } if (contentCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_); } if (contentCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_); } if (contentCase_ == 23) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(23, (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_); } if (contentCase_ == 24) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_); } if (contentCase_ == 25) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(25, (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_); } 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.GossipMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.GossipMessage other = (org.hyperledger.fabric.protos.gossip.GossipMessage) obj; if (getNonce() != other.getNonce()) return false; if (!getChannel() .equals(other.getChannel())) return false; if (tag_ != other.tag_) return false; if (!getContentCase().equals(other.getContentCase())) return false; switch (contentCase_) { case 5: if (!getAliveMsg() .equals(other.getAliveMsg())) return false; break; case 6: if (!getMemReq() .equals(other.getMemReq())) return false; break; case 7: if (!getMemRes() .equals(other.getMemRes())) return false; break; case 8: if (!getDataMsg() .equals(other.getDataMsg())) return false; break; case 9: if (!getHello() .equals(other.getHello())) return false; break; case 10: if (!getDataDig() .equals(other.getDataDig())) return false; break; case 11: if (!getDataReq() .equals(other.getDataReq())) return false; break; case 12: if (!getDataUpdate() .equals(other.getDataUpdate())) return false; break; case 13: if (!getEmpty() .equals(other.getEmpty())) return false; break; case 14: if (!getConn() .equals(other.getConn())) return false; break; case 15: if (!getStateInfo() .equals(other.getStateInfo())) return false; break; case 16: if (!getStateSnapshot() .equals(other.getStateSnapshot())) return false; break; case 17: if (!getStateInfoPullReq() .equals(other.getStateInfoPullReq())) return false; break; case 18: if (!getStateRequest() .equals(other.getStateRequest())) return false; break; case 19: if (!getStateResponse() .equals(other.getStateResponse())) return false; break; case 20: if (!getLeadershipMsg() .equals(other.getLeadershipMsg())) return false; break; case 21: if (!getPeerIdentity() .equals(other.getPeerIdentity())) return false; break; case 22: if (!getAck() .equals(other.getAck())) return false; break; case 23: if (!getPrivateReq() .equals(other.getPrivateReq())) return false; break; case 24: if (!getPrivateRes() .equals(other.getPrivateRes())) return false; break; case 25: if (!getPrivateData() .equals(other.getPrivateData())) return false; break; case 0: default: } 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) + NONCE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getNonce()); hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + getChannel().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + tag_; switch (contentCase_) { case 5: hash = (37 * hash) + ALIVE_MSG_FIELD_NUMBER; hash = (53 * hash) + getAliveMsg().hashCode(); break; case 6: hash = (37 * hash) + MEM_REQ_FIELD_NUMBER; hash = (53 * hash) + getMemReq().hashCode(); break; case 7: hash = (37 * hash) + MEM_RES_FIELD_NUMBER; hash = (53 * hash) + getMemRes().hashCode(); break; case 8: hash = (37 * hash) + DATA_MSG_FIELD_NUMBER; hash = (53 * hash) + getDataMsg().hashCode(); break; case 9: hash = (37 * hash) + HELLO_FIELD_NUMBER; hash = (53 * hash) + getHello().hashCode(); break; case 10: hash = (37 * hash) + DATA_DIG_FIELD_NUMBER; hash = (53 * hash) + getDataDig().hashCode(); break; case 11: hash = (37 * hash) + DATA_REQ_FIELD_NUMBER; hash = (53 * hash) + getDataReq().hashCode(); break; case 12: hash = (37 * hash) + DATA_UPDATE_FIELD_NUMBER; hash = (53 * hash) + getDataUpdate().hashCode(); break; case 13: hash = (37 * hash) + EMPTY_FIELD_NUMBER; hash = (53 * hash) + getEmpty().hashCode(); break; case 14: hash = (37 * hash) + CONN_FIELD_NUMBER; hash = (53 * hash) + getConn().hashCode(); break; case 15: hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); break; case 16: hash = (37 * hash) + STATE_SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getStateSnapshot().hashCode(); break; case 17: hash = (37 * hash) + STATE_INFO_PULL_REQ_FIELD_NUMBER; hash = (53 * hash) + getStateInfoPullReq().hashCode(); break; case 18: hash = (37 * hash) + STATE_REQUEST_FIELD_NUMBER; hash = (53 * hash) + getStateRequest().hashCode(); break; case 19: hash = (37 * hash) + STATE_RESPONSE_FIELD_NUMBER; hash = (53 * hash) + getStateResponse().hashCode(); break; case 20: hash = (37 * hash) + LEADERSHIP_MSG_FIELD_NUMBER; hash = (53 * hash) + getLeadershipMsg().hashCode(); break; case 21: hash = (37 * hash) + PEER_IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getPeerIdentity().hashCode(); break; case 22: hash = (37 * hash) + ACK_FIELD_NUMBER; hash = (53 * hash) + getAck().hashCode(); break; case 23: hash = (37 * hash) + PRIVATEREQ_FIELD_NUMBER; hash = (53 * hash) + getPrivateReq().hashCode(); break; case 24: hash = (37 * hash) + PRIVATERES_FIELD_NUMBER; hash = (53 * hash) + getPrivateRes().hashCode(); break; case 25: hash = (37 * hash) + PRIVATE_DATA_FIELD_NUMBER; hash = (53 * hash) + getPrivateData().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.gossip.GossipMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.GossipMessage 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.GossipMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.GossipMessage 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.GossipMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.GossipMessage 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.GossipMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.GossipMessage 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.GossipMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.GossipMessage 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.GossipMessage 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.GossipMessage 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.GossipMessage 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; } /** *
   * GossipMessage defines the message sent in a gossip network
   * 
* * Protobuf type {@code gossip.GossipMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:gossip.GossipMessage) org.hyperledger.fabric.protos.gossip.GossipMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_GossipMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_GossipMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.GossipMessage.class, org.hyperledger.fabric.protos.gossip.GossipMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.GossipMessage.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; nonce_ = 0L; channel_ = com.google.protobuf.ByteString.EMPTY; tag_ = 0; if (aliveMsgBuilder_ != null) { aliveMsgBuilder_.clear(); } if (memReqBuilder_ != null) { memReqBuilder_.clear(); } if (memResBuilder_ != null) { memResBuilder_.clear(); } if (dataMsgBuilder_ != null) { dataMsgBuilder_.clear(); } if (helloBuilder_ != null) { helloBuilder_.clear(); } if (dataDigBuilder_ != null) { dataDigBuilder_.clear(); } if (dataReqBuilder_ != null) { dataReqBuilder_.clear(); } if (dataUpdateBuilder_ != null) { dataUpdateBuilder_.clear(); } if (emptyBuilder_ != null) { emptyBuilder_.clear(); } if (connBuilder_ != null) { connBuilder_.clear(); } if (stateInfoBuilder_ != null) { stateInfoBuilder_.clear(); } if (stateSnapshotBuilder_ != null) { stateSnapshotBuilder_.clear(); } if (stateInfoPullReqBuilder_ != null) { stateInfoPullReqBuilder_.clear(); } if (stateRequestBuilder_ != null) { stateRequestBuilder_.clear(); } if (stateResponseBuilder_ != null) { stateResponseBuilder_.clear(); } if (leadershipMsgBuilder_ != null) { leadershipMsgBuilder_.clear(); } if (peerIdentityBuilder_ != null) { peerIdentityBuilder_.clear(); } if (ackBuilder_ != null) { ackBuilder_.clear(); } if (privateReqBuilder_ != null) { privateReqBuilder_.clear(); } if (privateResBuilder_ != null) { privateResBuilder_.clear(); } if (privateDataBuilder_ != null) { privateDataBuilder_.clear(); } contentCase_ = 0; content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_GossipMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.GossipMessage.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipMessage build() { org.hyperledger.fabric.protos.gossip.GossipMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipMessage buildPartial() { org.hyperledger.fabric.protos.gossip.GossipMessage result = new org.hyperledger.fabric.protos.gossip.GossipMessage(this); if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.gossip.GossipMessage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.nonce_ = nonce_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.channel_ = channel_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tag_ = tag_; } } private void buildPartialOneofs(org.hyperledger.fabric.protos.gossip.GossipMessage result) { result.contentCase_ = contentCase_; result.content_ = this.content_; if (contentCase_ == 5 && aliveMsgBuilder_ != null) { result.content_ = aliveMsgBuilder_.build(); } if (contentCase_ == 6 && memReqBuilder_ != null) { result.content_ = memReqBuilder_.build(); } if (contentCase_ == 7 && memResBuilder_ != null) { result.content_ = memResBuilder_.build(); } if (contentCase_ == 8 && dataMsgBuilder_ != null) { result.content_ = dataMsgBuilder_.build(); } if (contentCase_ == 9 && helloBuilder_ != null) { result.content_ = helloBuilder_.build(); } if (contentCase_ == 10 && dataDigBuilder_ != null) { result.content_ = dataDigBuilder_.build(); } if (contentCase_ == 11 && dataReqBuilder_ != null) { result.content_ = dataReqBuilder_.build(); } if (contentCase_ == 12 && dataUpdateBuilder_ != null) { result.content_ = dataUpdateBuilder_.build(); } if (contentCase_ == 13 && emptyBuilder_ != null) { result.content_ = emptyBuilder_.build(); } if (contentCase_ == 14 && connBuilder_ != null) { result.content_ = connBuilder_.build(); } if (contentCase_ == 15 && stateInfoBuilder_ != null) { result.content_ = stateInfoBuilder_.build(); } if (contentCase_ == 16 && stateSnapshotBuilder_ != null) { result.content_ = stateSnapshotBuilder_.build(); } if (contentCase_ == 17 && stateInfoPullReqBuilder_ != null) { result.content_ = stateInfoPullReqBuilder_.build(); } if (contentCase_ == 18 && stateRequestBuilder_ != null) { result.content_ = stateRequestBuilder_.build(); } if (contentCase_ == 19 && stateResponseBuilder_ != null) { result.content_ = stateResponseBuilder_.build(); } if (contentCase_ == 20 && leadershipMsgBuilder_ != null) { result.content_ = leadershipMsgBuilder_.build(); } if (contentCase_ == 21 && peerIdentityBuilder_ != null) { result.content_ = peerIdentityBuilder_.build(); } if (contentCase_ == 22 && ackBuilder_ != null) { result.content_ = ackBuilder_.build(); } if (contentCase_ == 23 && privateReqBuilder_ != null) { result.content_ = privateReqBuilder_.build(); } if (contentCase_ == 24 && privateResBuilder_ != null) { result.content_ = privateResBuilder_.build(); } if (contentCase_ == 25 && privateDataBuilder_ != null) { result.content_ = privateDataBuilder_.build(); } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.gossip.GossipMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.GossipMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.GossipMessage other) { if (other == org.hyperledger.fabric.protos.gossip.GossipMessage.getDefaultInstance()) return this; if (other.getNonce() != 0L) { setNonce(other.getNonce()); } if (other.getChannel() != com.google.protobuf.ByteString.EMPTY) { setChannel(other.getChannel()); } if (other.tag_ != 0) { setTagValue(other.getTagValue()); } switch (other.getContentCase()) { case ALIVE_MSG: { mergeAliveMsg(other.getAliveMsg()); break; } case MEM_REQ: { mergeMemReq(other.getMemReq()); break; } case MEM_RES: { mergeMemRes(other.getMemRes()); break; } case DATA_MSG: { mergeDataMsg(other.getDataMsg()); break; } case HELLO: { mergeHello(other.getHello()); break; } case DATA_DIG: { mergeDataDig(other.getDataDig()); break; } case DATA_REQ: { mergeDataReq(other.getDataReq()); break; } case DATA_UPDATE: { mergeDataUpdate(other.getDataUpdate()); break; } case EMPTY: { mergeEmpty(other.getEmpty()); break; } case CONN: { mergeConn(other.getConn()); break; } case STATE_INFO: { mergeStateInfo(other.getStateInfo()); break; } case STATE_SNAPSHOT: { mergeStateSnapshot(other.getStateSnapshot()); break; } case STATE_INFO_PULL_REQ: { mergeStateInfoPullReq(other.getStateInfoPullReq()); break; } case STATE_REQUEST: { mergeStateRequest(other.getStateRequest()); break; } case STATE_RESPONSE: { mergeStateResponse(other.getStateResponse()); break; } case LEADERSHIP_MSG: { mergeLeadershipMsg(other.getLeadershipMsg()); break; } case PEER_IDENTITY: { mergePeerIdentity(other.getPeerIdentity()); break; } case ACK: { mergeAck(other.getAck()); break; } case PRIVATEREQ: { mergePrivateReq(other.getPrivateReq()); break; } case PRIVATERES: { mergePrivateRes(other.getPrivateRes()); break; } case PRIVATE_DATA: { mergePrivateData(other.getPrivateData()); break; } case CONTENT_NOT_SET: { break; } } 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: { nonce_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { channel_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { tag_ = input.readEnum(); bitField0_ |= 0x00000004; break; } // case 24 case 42: { input.readMessage( getAliveMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 5; break; } // case 42 case 50: { input.readMessage( getMemReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 6; break; } // case 50 case 58: { input.readMessage( getMemResFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 7; break; } // case 58 case 66: { input.readMessage( getDataMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 8; break; } // case 66 case 74: { input.readMessage( getHelloFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 9; break; } // case 74 case 82: { input.readMessage( getDataDigFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 10; break; } // case 82 case 90: { input.readMessage( getDataReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 11; break; } // case 90 case 98: { input.readMessage( getDataUpdateFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 12; break; } // case 98 case 106: { input.readMessage( getEmptyFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 13; break; } // case 106 case 114: { input.readMessage( getConnFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 14; break; } // case 114 case 122: { input.readMessage( getStateInfoFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 15; break; } // case 122 case 130: { input.readMessage( getStateSnapshotFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 16; break; } // case 130 case 138: { input.readMessage( getStateInfoPullReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 17; break; } // case 138 case 146: { input.readMessage( getStateRequestFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 18; break; } // case 146 case 154: { input.readMessage( getStateResponseFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 19; break; } // case 154 case 162: { input.readMessage( getLeadershipMsgFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 20; break; } // case 162 case 170: { input.readMessage( getPeerIdentityFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 21; break; } // case 170 case 178: { input.readMessage( getAckFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 22; break; } // case 178 case 186: { input.readMessage( getPrivateReqFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 23; break; } // case 186 case 194: { input.readMessage( getPrivateResFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 24; break; } // case 194 case 202: { input.readMessage( getPrivateDataFieldBuilder().getBuilder(), extensionRegistry); contentCase_ = 25; break; } // case 202 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 contentCase_ = 0; private java.lang.Object content_; public ContentCase getContentCase() { return ContentCase.forNumber( contentCase_); } public Builder clearContent() { contentCase_ = 0; content_ = null; onChanged(); return this; } private int bitField0_; private long nonce_ ; /** *
     * used mainly for testing, but will might be used in the future
     * for ensuring message delivery by acking
     * 
* * uint64 nonce = 1 [json_name = "nonce"]; * @return The nonce. */ @java.lang.Override public long getNonce() { return nonce_; } /** *
     * used mainly for testing, but will might be used in the future
     * for ensuring message delivery by acking
     * 
* * uint64 nonce = 1 [json_name = "nonce"]; * @param value The nonce to set. * @return This builder for chaining. */ public Builder setNonce(long value) { nonce_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * used mainly for testing, but will might be used in the future
     * for ensuring message delivery by acking
     * 
* * uint64 nonce = 1 [json_name = "nonce"]; * @return This builder for chaining. */ public Builder clearNonce() { bitField0_ = (bitField0_ & ~0x00000001); nonce_ = 0L; onChanged(); return this; } private com.google.protobuf.ByteString channel_ = com.google.protobuf.ByteString.EMPTY; /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * bytes channel = 2 [json_name = "channel"]; * @return The channel. */ @java.lang.Override public com.google.protobuf.ByteString getChannel() { return channel_; } /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * bytes channel = 2 [json_name = "channel"]; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } channel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * The channel of the message.
     * Some GossipMessages may set this to nil, because
     * they are cross-channels but some may not
     * 
* * bytes channel = 2 [json_name = "channel"]; * @return This builder for chaining. */ public Builder clearChannel() { bitField0_ = (bitField0_ & ~0x00000002); channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } private int tag_ = 0; /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @return The enum numeric value on the wire for tag. */ @java.lang.Override public int getTagValue() { return tag_; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @param value The enum numeric value on the wire for tag to set. * @return This builder for chaining. */ public Builder setTagValue(int value) { tag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @return The tag. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipMessage.Tag getTag() { org.hyperledger.fabric.protos.gossip.GossipMessage.Tag result = org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.forNumber(tag_); return result == null ? org.hyperledger.fabric.protos.gossip.GossipMessage.Tag.UNRECOGNIZED : result; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(org.hyperledger.fabric.protos.gossip.GossipMessage.Tag value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; tag_ = value.getNumber(); onChanged(); return this; } /** *
     * determines to which peers it is allowed
     * to forward the message
     * 
* * .gossip.GossipMessage.Tag tag = 3 [json_name = "tag"]; * @return This builder for chaining. */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000004); tag_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.AliveMessage, org.hyperledger.fabric.protos.gossip.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder> aliveMsgBuilder_; /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; * @return Whether the aliveMsg field is set. */ @java.lang.Override public boolean hasAliveMsg() { return contentCase_ == 5; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; * @return The aliveMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessage getAliveMsg() { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } else { if (contentCase_ == 5) { return aliveMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ public Builder setAliveMsg(org.hyperledger.fabric.protos.gossip.AliveMessage value) { if (aliveMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { aliveMsgBuilder_.setMessage(value); } contentCase_ = 5; return this; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ public Builder setAliveMsg( org.hyperledger.fabric.protos.gossip.AliveMessage.Builder builderForValue) { if (aliveMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { aliveMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 5; return this; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ public Builder mergeAliveMsg(org.hyperledger.fabric.protos.gossip.AliveMessage value) { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5 && content_ != org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.AliveMessage.newBuilder((org.hyperledger.fabric.protos.gossip.AliveMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 5) { aliveMsgBuilder_.mergeFrom(value); } else { aliveMsgBuilder_.setMessage(value); } } contentCase_ = 5; return this; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ public Builder clearAliveMsg() { if (aliveMsgBuilder_ == null) { if (contentCase_ == 5) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 5) { contentCase_ = 0; content_ = null; } aliveMsgBuilder_.clear(); } return this; } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ public org.hyperledger.fabric.protos.gossip.AliveMessage.Builder getAliveMsgBuilder() { return getAliveMsgFieldBuilder().getBuilder(); } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder getAliveMsgOrBuilder() { if ((contentCase_ == 5) && (aliveMsgBuilder_ != null)) { return aliveMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 5) { return (org.hyperledger.fabric.protos.gossip.AliveMessage) content_; } return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } } /** *
     * Membership
     * 
* * .gossip.AliveMessage alive_msg = 5 [json_name = "aliveMsg"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.AliveMessage, org.hyperledger.fabric.protos.gossip.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder> getAliveMsgFieldBuilder() { if (aliveMsgBuilder_ == null) { if (!(contentCase_ == 5)) { content_ = org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } aliveMsgBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.AliveMessage, org.hyperledger.fabric.protos.gossip.AliveMessage.Builder, org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.AliveMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 5; onChanged(); return aliveMsgBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipRequest, org.hyperledger.fabric.protos.gossip.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.MembershipRequestOrBuilder> memReqBuilder_; /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; * @return Whether the memReq field is set. */ @java.lang.Override public boolean hasMemReq() { return contentCase_ == 6; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; * @return The memReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipRequest getMemReq() { if (memReqBuilder_ == null) { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } else { if (contentCase_ == 6) { return memReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ public Builder setMemReq(org.hyperledger.fabric.protos.gossip.MembershipRequest value) { if (memReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { memReqBuilder_.setMessage(value); } contentCase_ = 6; return this; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ public Builder setMemReq( org.hyperledger.fabric.protos.gossip.MembershipRequest.Builder builderForValue) { if (memReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { memReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 6; return this; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ public Builder mergeMemReq(org.hyperledger.fabric.protos.gossip.MembershipRequest value) { if (memReqBuilder_ == null) { if (contentCase_ == 6 && content_ != org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.MembershipRequest.newBuilder((org.hyperledger.fabric.protos.gossip.MembershipRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 6) { memReqBuilder_.mergeFrom(value); } else { memReqBuilder_.setMessage(value); } } contentCase_ = 6; return this; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ public Builder clearMemReq() { if (memReqBuilder_ == null) { if (contentCase_ == 6) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 6) { contentCase_ = 0; content_ = null; } memReqBuilder_.clear(); } return this; } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ public org.hyperledger.fabric.protos.gossip.MembershipRequest.Builder getMemReqBuilder() { return getMemReqFieldBuilder().getBuilder(); } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipRequestOrBuilder getMemReqOrBuilder() { if ((contentCase_ == 6) && (memReqBuilder_ != null)) { return memReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 6) { return (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_; } return org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } } /** * .gossip.MembershipRequest mem_req = 6 [json_name = "memReq"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipRequest, org.hyperledger.fabric.protos.gossip.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.MembershipRequestOrBuilder> getMemReqFieldBuilder() { if (memReqBuilder_ == null) { if (!(contentCase_ == 6)) { content_ = org.hyperledger.fabric.protos.gossip.MembershipRequest.getDefaultInstance(); } memReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipRequest, org.hyperledger.fabric.protos.gossip.MembershipRequest.Builder, org.hyperledger.fabric.protos.gossip.MembershipRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.MembershipRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 6; onChanged(); return memReqBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipResponse, org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder> memResBuilder_; /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; * @return Whether the memRes field is set. */ @java.lang.Override public boolean hasMemRes() { return contentCase_ == 7; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; * @return The memRes. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipResponse getMemRes() { if (memResBuilder_ == null) { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } else { if (contentCase_ == 7) { return memResBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ public Builder setMemRes(org.hyperledger.fabric.protos.gossip.MembershipResponse value) { if (memResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { memResBuilder_.setMessage(value); } contentCase_ = 7; return this; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ public Builder setMemRes( org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder builderForValue) { if (memResBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { memResBuilder_.setMessage(builderForValue.build()); } contentCase_ = 7; return this; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ public Builder mergeMemRes(org.hyperledger.fabric.protos.gossip.MembershipResponse value) { if (memResBuilder_ == null) { if (contentCase_ == 7 && content_ != org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.MembershipResponse.newBuilder((org.hyperledger.fabric.protos.gossip.MembershipResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 7) { memResBuilder_.mergeFrom(value); } else { memResBuilder_.setMessage(value); } } contentCase_ = 7; return this; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ public Builder clearMemRes() { if (memResBuilder_ == null) { if (contentCase_ == 7) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 7) { contentCase_ = 0; content_ = null; } memResBuilder_.clear(); } return this; } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ public org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder getMemResBuilder() { return getMemResFieldBuilder().getBuilder(); } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder getMemResOrBuilder() { if ((contentCase_ == 7) && (memResBuilder_ != null)) { return memResBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 7) { return (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_; } return org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } } /** * .gossip.MembershipResponse mem_res = 7 [json_name = "memRes"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipResponse, org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder> getMemResFieldBuilder() { if (memResBuilder_ == null) { if (!(contentCase_ == 7)) { content_ = org.hyperledger.fabric.protos.gossip.MembershipResponse.getDefaultInstance(); } memResBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.MembershipResponse, org.hyperledger.fabric.protos.gossip.MembershipResponse.Builder, org.hyperledger.fabric.protos.gossip.MembershipResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.MembershipResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 7; onChanged(); return memResBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataMessage, org.hyperledger.fabric.protos.gossip.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.DataMessageOrBuilder> dataMsgBuilder_; /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; * @return Whether the dataMsg field is set. */ @java.lang.Override public boolean hasDataMsg() { return contentCase_ == 8; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; * @return The dataMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataMessage getDataMsg() { if (dataMsgBuilder_ == null) { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } else { if (contentCase_ == 8) { return dataMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ public Builder setDataMsg(org.hyperledger.fabric.protos.gossip.DataMessage value) { if (dataMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataMsgBuilder_.setMessage(value); } contentCase_ = 8; return this; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ public Builder setDataMsg( org.hyperledger.fabric.protos.gossip.DataMessage.Builder builderForValue) { if (dataMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 8; return this; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ public Builder mergeDataMsg(org.hyperledger.fabric.protos.gossip.DataMessage value) { if (dataMsgBuilder_ == null) { if (contentCase_ == 8 && content_ != org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.DataMessage.newBuilder((org.hyperledger.fabric.protos.gossip.DataMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 8) { dataMsgBuilder_.mergeFrom(value); } else { dataMsgBuilder_.setMessage(value); } } contentCase_ = 8; return this; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ public Builder clearDataMsg() { if (dataMsgBuilder_ == null) { if (contentCase_ == 8) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 8) { contentCase_ = 0; content_ = null; } dataMsgBuilder_.clear(); } return this; } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ public org.hyperledger.fabric.protos.gossip.DataMessage.Builder getDataMsgBuilder() { return getDataMsgFieldBuilder().getBuilder(); } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataMessageOrBuilder getDataMsgOrBuilder() { if ((contentCase_ == 8) && (dataMsgBuilder_ != null)) { return dataMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 8) { return (org.hyperledger.fabric.protos.gossip.DataMessage) content_; } return org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } } /** *
     * Contains a ledger block
     * 
* * .gossip.DataMessage data_msg = 8 [json_name = "dataMsg"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataMessage, org.hyperledger.fabric.protos.gossip.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.DataMessageOrBuilder> getDataMsgFieldBuilder() { if (dataMsgBuilder_ == null) { if (!(contentCase_ == 8)) { content_ = org.hyperledger.fabric.protos.gossip.DataMessage.getDefaultInstance(); } dataMsgBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataMessage, org.hyperledger.fabric.protos.gossip.DataMessage.Builder, org.hyperledger.fabric.protos.gossip.DataMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.DataMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 8; onChanged(); return dataMsgBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.GossipHello, org.hyperledger.fabric.protos.gossip.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.GossipHelloOrBuilder> helloBuilder_; /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; * @return Whether the hello field is set. */ @java.lang.Override public boolean hasHello() { return contentCase_ == 9; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; * @return The hello. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipHello getHello() { if (helloBuilder_ == null) { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } else { if (contentCase_ == 9) { return helloBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ public Builder setHello(org.hyperledger.fabric.protos.gossip.GossipHello value) { if (helloBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { helloBuilder_.setMessage(value); } contentCase_ = 9; return this; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ public Builder setHello( org.hyperledger.fabric.protos.gossip.GossipHello.Builder builderForValue) { if (helloBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { helloBuilder_.setMessage(builderForValue.build()); } contentCase_ = 9; return this; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ public Builder mergeHello(org.hyperledger.fabric.protos.gossip.GossipHello value) { if (helloBuilder_ == null) { if (contentCase_ == 9 && content_ != org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.GossipHello.newBuilder((org.hyperledger.fabric.protos.gossip.GossipHello) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 9) { helloBuilder_.mergeFrom(value); } else { helloBuilder_.setMessage(value); } } contentCase_ = 9; return this; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ public Builder clearHello() { if (helloBuilder_ == null) { if (contentCase_ == 9) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 9) { contentCase_ = 0; content_ = null; } helloBuilder_.clear(); } return this; } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ public org.hyperledger.fabric.protos.gossip.GossipHello.Builder getHelloBuilder() { return getHelloFieldBuilder().getBuilder(); } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.GossipHelloOrBuilder getHelloOrBuilder() { if ((contentCase_ == 9) && (helloBuilder_ != null)) { return helloBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 9) { return (org.hyperledger.fabric.protos.gossip.GossipHello) content_; } return org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } } /** *
     * Used for push&pull
     * 
* * .gossip.GossipHello hello = 9 [json_name = "hello"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.GossipHello, org.hyperledger.fabric.protos.gossip.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.GossipHelloOrBuilder> getHelloFieldBuilder() { if (helloBuilder_ == null) { if (!(contentCase_ == 9)) { content_ = org.hyperledger.fabric.protos.gossip.GossipHello.getDefaultInstance(); } helloBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.GossipHello, org.hyperledger.fabric.protos.gossip.GossipHello.Builder, org.hyperledger.fabric.protos.gossip.GossipHelloOrBuilder>( (org.hyperledger.fabric.protos.gossip.GossipHello) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 9; onChanged(); return helloBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataDigest, org.hyperledger.fabric.protos.gossip.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.DataDigestOrBuilder> dataDigBuilder_; /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; * @return Whether the dataDig field is set. */ @java.lang.Override public boolean hasDataDig() { return contentCase_ == 10; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; * @return The dataDig. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataDigest getDataDig() { if (dataDigBuilder_ == null) { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } else { if (contentCase_ == 10) { return dataDigBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ public Builder setDataDig(org.hyperledger.fabric.protos.gossip.DataDigest value) { if (dataDigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataDigBuilder_.setMessage(value); } contentCase_ = 10; return this; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ public Builder setDataDig( org.hyperledger.fabric.protos.gossip.DataDigest.Builder builderForValue) { if (dataDigBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataDigBuilder_.setMessage(builderForValue.build()); } contentCase_ = 10; return this; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ public Builder mergeDataDig(org.hyperledger.fabric.protos.gossip.DataDigest value) { if (dataDigBuilder_ == null) { if (contentCase_ == 10 && content_ != org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.DataDigest.newBuilder((org.hyperledger.fabric.protos.gossip.DataDigest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 10) { dataDigBuilder_.mergeFrom(value); } else { dataDigBuilder_.setMessage(value); } } contentCase_ = 10; return this; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ public Builder clearDataDig() { if (dataDigBuilder_ == null) { if (contentCase_ == 10) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 10) { contentCase_ = 0; content_ = null; } dataDigBuilder_.clear(); } return this; } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ public org.hyperledger.fabric.protos.gossip.DataDigest.Builder getDataDigBuilder() { return getDataDigFieldBuilder().getBuilder(); } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataDigestOrBuilder getDataDigOrBuilder() { if ((contentCase_ == 10) && (dataDigBuilder_ != null)) { return dataDigBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 10) { return (org.hyperledger.fabric.protos.gossip.DataDigest) content_; } return org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } } /** * .gossip.DataDigest data_dig = 10 [json_name = "dataDig"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataDigest, org.hyperledger.fabric.protos.gossip.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.DataDigestOrBuilder> getDataDigFieldBuilder() { if (dataDigBuilder_ == null) { if (!(contentCase_ == 10)) { content_ = org.hyperledger.fabric.protos.gossip.DataDigest.getDefaultInstance(); } dataDigBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataDigest, org.hyperledger.fabric.protos.gossip.DataDigest.Builder, org.hyperledger.fabric.protos.gossip.DataDigestOrBuilder>( (org.hyperledger.fabric.protos.gossip.DataDigest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 10; onChanged(); return dataDigBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataRequest, org.hyperledger.fabric.protos.gossip.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.DataRequestOrBuilder> dataReqBuilder_; /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; * @return Whether the dataReq field is set. */ @java.lang.Override public boolean hasDataReq() { return contentCase_ == 11; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; * @return The dataReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataRequest getDataReq() { if (dataReqBuilder_ == null) { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } else { if (contentCase_ == 11) { return dataReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ public Builder setDataReq(org.hyperledger.fabric.protos.gossip.DataRequest value) { if (dataReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataReqBuilder_.setMessage(value); } contentCase_ = 11; return this; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ public Builder setDataReq( org.hyperledger.fabric.protos.gossip.DataRequest.Builder builderForValue) { if (dataReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 11; return this; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ public Builder mergeDataReq(org.hyperledger.fabric.protos.gossip.DataRequest value) { if (dataReqBuilder_ == null) { if (contentCase_ == 11 && content_ != org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.DataRequest.newBuilder((org.hyperledger.fabric.protos.gossip.DataRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 11) { dataReqBuilder_.mergeFrom(value); } else { dataReqBuilder_.setMessage(value); } } contentCase_ = 11; return this; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ public Builder clearDataReq() { if (dataReqBuilder_ == null) { if (contentCase_ == 11) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 11) { contentCase_ = 0; content_ = null; } dataReqBuilder_.clear(); } return this; } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ public org.hyperledger.fabric.protos.gossip.DataRequest.Builder getDataReqBuilder() { return getDataReqFieldBuilder().getBuilder(); } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataRequestOrBuilder getDataReqOrBuilder() { if ((contentCase_ == 11) && (dataReqBuilder_ != null)) { return dataReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 11) { return (org.hyperledger.fabric.protos.gossip.DataRequest) content_; } return org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } } /** * .gossip.DataRequest data_req = 11 [json_name = "dataReq"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataRequest, org.hyperledger.fabric.protos.gossip.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.DataRequestOrBuilder> getDataReqFieldBuilder() { if (dataReqBuilder_ == null) { if (!(contentCase_ == 11)) { content_ = org.hyperledger.fabric.protos.gossip.DataRequest.getDefaultInstance(); } dataReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataRequest, org.hyperledger.fabric.protos.gossip.DataRequest.Builder, org.hyperledger.fabric.protos.gossip.DataRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.DataRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 11; onChanged(); return dataReqBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataUpdate, org.hyperledger.fabric.protos.gossip.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.DataUpdateOrBuilder> dataUpdateBuilder_; /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; * @return Whether the dataUpdate field is set. */ @java.lang.Override public boolean hasDataUpdate() { return contentCase_ == 12; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; * @return The dataUpdate. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataUpdate getDataUpdate() { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } else { if (contentCase_ == 12) { return dataUpdateBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ public Builder setDataUpdate(org.hyperledger.fabric.protos.gossip.DataUpdate value) { if (dataUpdateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { dataUpdateBuilder_.setMessage(value); } contentCase_ = 12; return this; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ public Builder setDataUpdate( org.hyperledger.fabric.protos.gossip.DataUpdate.Builder builderForValue) { if (dataUpdateBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { dataUpdateBuilder_.setMessage(builderForValue.build()); } contentCase_ = 12; return this; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ public Builder mergeDataUpdate(org.hyperledger.fabric.protos.gossip.DataUpdate value) { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12 && content_ != org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.DataUpdate.newBuilder((org.hyperledger.fabric.protos.gossip.DataUpdate) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 12) { dataUpdateBuilder_.mergeFrom(value); } else { dataUpdateBuilder_.setMessage(value); } } contentCase_ = 12; return this; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ public Builder clearDataUpdate() { if (dataUpdateBuilder_ == null) { if (contentCase_ == 12) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 12) { contentCase_ = 0; content_ = null; } dataUpdateBuilder_.clear(); } return this; } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ public org.hyperledger.fabric.protos.gossip.DataUpdate.Builder getDataUpdateBuilder() { return getDataUpdateFieldBuilder().getBuilder(); } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.DataUpdateOrBuilder getDataUpdateOrBuilder() { if ((contentCase_ == 12) && (dataUpdateBuilder_ != null)) { return dataUpdateBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 12) { return (org.hyperledger.fabric.protos.gossip.DataUpdate) content_; } return org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } } /** * .gossip.DataUpdate data_update = 12 [json_name = "dataUpdate"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataUpdate, org.hyperledger.fabric.protos.gossip.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.DataUpdateOrBuilder> getDataUpdateFieldBuilder() { if (dataUpdateBuilder_ == null) { if (!(contentCase_ == 12)) { content_ = org.hyperledger.fabric.protos.gossip.DataUpdate.getDefaultInstance(); } dataUpdateBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.DataUpdate, org.hyperledger.fabric.protos.gossip.DataUpdate.Builder, org.hyperledger.fabric.protos.gossip.DataUpdateOrBuilder>( (org.hyperledger.fabric.protos.gossip.DataUpdate) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 12; onChanged(); return dataUpdateBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Empty, org.hyperledger.fabric.protos.gossip.Empty.Builder, org.hyperledger.fabric.protos.gossip.EmptyOrBuilder> emptyBuilder_; /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; * @return Whether the empty field is set. */ @java.lang.Override public boolean hasEmpty() { return contentCase_ == 13; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; * @return The empty. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Empty getEmpty() { if (emptyBuilder_ == null) { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } else { if (contentCase_ == 13) { return emptyBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ public Builder setEmpty(org.hyperledger.fabric.protos.gossip.Empty value) { if (emptyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { emptyBuilder_.setMessage(value); } contentCase_ = 13; return this; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ public Builder setEmpty( org.hyperledger.fabric.protos.gossip.Empty.Builder builderForValue) { if (emptyBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { emptyBuilder_.setMessage(builderForValue.build()); } contentCase_ = 13; return this; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ public Builder mergeEmpty(org.hyperledger.fabric.protos.gossip.Empty value) { if (emptyBuilder_ == null) { if (contentCase_ == 13 && content_ != org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Empty.newBuilder((org.hyperledger.fabric.protos.gossip.Empty) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 13) { emptyBuilder_.mergeFrom(value); } else { emptyBuilder_.setMessage(value); } } contentCase_ = 13; return this; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ public Builder clearEmpty() { if (emptyBuilder_ == null) { if (contentCase_ == 13) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 13) { contentCase_ = 0; content_ = null; } emptyBuilder_.clear(); } return this; } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ public org.hyperledger.fabric.protos.gossip.Empty.Builder getEmptyBuilder() { return getEmptyFieldBuilder().getBuilder(); } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.EmptyOrBuilder getEmptyOrBuilder() { if ((contentCase_ == 13) && (emptyBuilder_ != null)) { return emptyBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 13) { return (org.hyperledger.fabric.protos.gossip.Empty) content_; } return org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } } /** *
     * Empty message, used for pinging
     * 
* * .gossip.Empty empty = 13 [json_name = "empty"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Empty, org.hyperledger.fabric.protos.gossip.Empty.Builder, org.hyperledger.fabric.protos.gossip.EmptyOrBuilder> getEmptyFieldBuilder() { if (emptyBuilder_ == null) { if (!(contentCase_ == 13)) { content_ = org.hyperledger.fabric.protos.gossip.Empty.getDefaultInstance(); } emptyBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Empty, org.hyperledger.fabric.protos.gossip.Empty.Builder, org.hyperledger.fabric.protos.gossip.EmptyOrBuilder>( (org.hyperledger.fabric.protos.gossip.Empty) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 13; onChanged(); return emptyBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.ConnEstablish, org.hyperledger.fabric.protos.gossip.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.ConnEstablishOrBuilder> connBuilder_; /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; * @return Whether the conn field is set. */ @java.lang.Override public boolean hasConn() { return contentCase_ == 14; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; * @return The conn. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.ConnEstablish getConn() { if (connBuilder_ == null) { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } else { if (contentCase_ == 14) { return connBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ public Builder setConn(org.hyperledger.fabric.protos.gossip.ConnEstablish value) { if (connBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { connBuilder_.setMessage(value); } contentCase_ = 14; return this; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ public Builder setConn( org.hyperledger.fabric.protos.gossip.ConnEstablish.Builder builderForValue) { if (connBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { connBuilder_.setMessage(builderForValue.build()); } contentCase_ = 14; return this; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ public Builder mergeConn(org.hyperledger.fabric.protos.gossip.ConnEstablish value) { if (connBuilder_ == null) { if (contentCase_ == 14 && content_ != org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.ConnEstablish.newBuilder((org.hyperledger.fabric.protos.gossip.ConnEstablish) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 14) { connBuilder_.mergeFrom(value); } else { connBuilder_.setMessage(value); } } contentCase_ = 14; return this; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ public Builder clearConn() { if (connBuilder_ == null) { if (contentCase_ == 14) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 14) { contentCase_ = 0; content_ = null; } connBuilder_.clear(); } return this; } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ public org.hyperledger.fabric.protos.gossip.ConnEstablish.Builder getConnBuilder() { return getConnFieldBuilder().getBuilder(); } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.ConnEstablishOrBuilder getConnOrBuilder() { if ((contentCase_ == 14) && (connBuilder_ != null)) { return connBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 14) { return (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_; } return org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } } /** *
     * ConnEstablish, used for establishing a connection
     * 
* * .gossip.ConnEstablish conn = 14 [json_name = "conn"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.ConnEstablish, org.hyperledger.fabric.protos.gossip.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.ConnEstablishOrBuilder> getConnFieldBuilder() { if (connBuilder_ == null) { if (!(contentCase_ == 14)) { content_ = org.hyperledger.fabric.protos.gossip.ConnEstablish.getDefaultInstance(); } connBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.ConnEstablish, org.hyperledger.fabric.protos.gossip.ConnEstablish.Builder, org.hyperledger.fabric.protos.gossip.ConnEstablishOrBuilder>( (org.hyperledger.fabric.protos.gossip.ConnEstablish) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 14; onChanged(); return connBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfo, org.hyperledger.fabric.protos.gossip.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.StateInfoOrBuilder> stateInfoBuilder_; /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return contentCase_ == 15; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; * @return The stateInfo. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfo getStateInfo() { if (stateInfoBuilder_ == null) { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } else { if (contentCase_ == 15) { return stateInfoBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ public Builder setStateInfo(org.hyperledger.fabric.protos.gossip.StateInfo value) { if (stateInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateInfoBuilder_.setMessage(value); } contentCase_ = 15; return this; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ public Builder setStateInfo( org.hyperledger.fabric.protos.gossip.StateInfo.Builder builderForValue) { if (stateInfoBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateInfoBuilder_.setMessage(builderForValue.build()); } contentCase_ = 15; return this; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ public Builder mergeStateInfo(org.hyperledger.fabric.protos.gossip.StateInfo value) { if (stateInfoBuilder_ == null) { if (contentCase_ == 15 && content_ != org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.StateInfo.newBuilder((org.hyperledger.fabric.protos.gossip.StateInfo) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 15) { stateInfoBuilder_.mergeFrom(value); } else { stateInfoBuilder_.setMessage(value); } } contentCase_ = 15; return this; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ public Builder clearStateInfo() { if (stateInfoBuilder_ == null) { if (contentCase_ == 15) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 15) { contentCase_ = 0; content_ = null; } stateInfoBuilder_.clear(); } return this; } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ public org.hyperledger.fabric.protos.gossip.StateInfo.Builder getStateInfoBuilder() { return getStateInfoFieldBuilder().getBuilder(); } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoOrBuilder getStateInfoOrBuilder() { if ((contentCase_ == 15) && (stateInfoBuilder_ != null)) { return stateInfoBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 15) { return (org.hyperledger.fabric.protos.gossip.StateInfo) content_; } return org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } } /** *
     * Used for relaying information
     * about state
     * 
* * .gossip.StateInfo state_info = 15 [json_name = "stateInfo"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfo, org.hyperledger.fabric.protos.gossip.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.StateInfoOrBuilder> getStateInfoFieldBuilder() { if (stateInfoBuilder_ == null) { if (!(contentCase_ == 15)) { content_ = org.hyperledger.fabric.protos.gossip.StateInfo.getDefaultInstance(); } stateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfo, org.hyperledger.fabric.protos.gossip.StateInfo.Builder, org.hyperledger.fabric.protos.gossip.StateInfoOrBuilder>( (org.hyperledger.fabric.protos.gossip.StateInfo) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 15; onChanged(); return stateInfoBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.StateInfoSnapshotOrBuilder> stateSnapshotBuilder_; /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; * @return Whether the stateSnapshot field is set. */ @java.lang.Override public boolean hasStateSnapshot() { return contentCase_ == 16; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; * @return The stateSnapshot. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoSnapshot getStateSnapshot() { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } else { if (contentCase_ == 16) { return stateSnapshotBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ public Builder setStateSnapshot(org.hyperledger.fabric.protos.gossip.StateInfoSnapshot value) { if (stateSnapshotBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateSnapshotBuilder_.setMessage(value); } contentCase_ = 16; return this; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ public Builder setStateSnapshot( org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.Builder builderForValue) { if (stateSnapshotBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateSnapshotBuilder_.setMessage(builderForValue.build()); } contentCase_ = 16; return this; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ public Builder mergeStateSnapshot(org.hyperledger.fabric.protos.gossip.StateInfoSnapshot value) { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16 && content_ != org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.newBuilder((org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 16) { stateSnapshotBuilder_.mergeFrom(value); } else { stateSnapshotBuilder_.setMessage(value); } } contentCase_ = 16; return this; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ public Builder clearStateSnapshot() { if (stateSnapshotBuilder_ == null) { if (contentCase_ == 16) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 16) { contentCase_ = 0; content_ = null; } stateSnapshotBuilder_.clear(); } return this; } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ public org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.Builder getStateSnapshotBuilder() { return getStateSnapshotFieldBuilder().getBuilder(); } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoSnapshotOrBuilder getStateSnapshotOrBuilder() { if ((contentCase_ == 16) && (stateSnapshotBuilder_ != null)) { return stateSnapshotBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 16) { return (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } } /** *
     * Used for sending sets of StateInfo messages
     * 
* * .gossip.StateInfoSnapshot state_snapshot = 16 [json_name = "stateSnapshot"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.StateInfoSnapshotOrBuilder> getStateSnapshotFieldBuilder() { if (stateSnapshotBuilder_ == null) { if (!(contentCase_ == 16)) { content_ = org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.getDefaultInstance(); } stateSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoSnapshot, org.hyperledger.fabric.protos.gossip.StateInfoSnapshot.Builder, org.hyperledger.fabric.protos.gossip.StateInfoSnapshotOrBuilder>( (org.hyperledger.fabric.protos.gossip.StateInfoSnapshot) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 16; onChanged(); return stateSnapshotBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.StateInfoPullRequestOrBuilder> stateInfoPullReqBuilder_; /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; * @return Whether the stateInfoPullReq field is set. */ @java.lang.Override public boolean hasStateInfoPullReq() { return contentCase_ == 17; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; * @return The stateInfoPullReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoPullRequest getStateInfoPullReq() { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } else { if (contentCase_ == 17) { return stateInfoPullReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ public Builder setStateInfoPullReq(org.hyperledger.fabric.protos.gossip.StateInfoPullRequest value) { if (stateInfoPullReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateInfoPullReqBuilder_.setMessage(value); } contentCase_ = 17; return this; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ public Builder setStateInfoPullReq( org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.Builder builderForValue) { if (stateInfoPullReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateInfoPullReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 17; return this; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ public Builder mergeStateInfoPullReq(org.hyperledger.fabric.protos.gossip.StateInfoPullRequest value) { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17 && content_ != org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.newBuilder((org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 17) { stateInfoPullReqBuilder_.mergeFrom(value); } else { stateInfoPullReqBuilder_.setMessage(value); } } contentCase_ = 17; return this; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ public Builder clearStateInfoPullReq() { if (stateInfoPullReqBuilder_ == null) { if (contentCase_ == 17) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 17) { contentCase_ = 0; content_ = null; } stateInfoPullReqBuilder_.clear(); } return this; } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ public org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.Builder getStateInfoPullReqBuilder() { return getStateInfoPullReqFieldBuilder().getBuilder(); } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.StateInfoPullRequestOrBuilder getStateInfoPullReqOrBuilder() { if ((contentCase_ == 17) && (stateInfoPullReqBuilder_ != null)) { return stateInfoPullReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 17) { return (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_; } return org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } } /** *
     * Used for asking for StateInfoSnapshots
     * 
* * .gossip.StateInfoPullRequest state_info_pull_req = 17 [json_name = "stateInfoPullReq"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.StateInfoPullRequestOrBuilder> getStateInfoPullReqFieldBuilder() { if (stateInfoPullReqBuilder_ == null) { if (!(contentCase_ == 17)) { content_ = org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.getDefaultInstance(); } stateInfoPullReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.StateInfoPullRequest, org.hyperledger.fabric.protos.gossip.StateInfoPullRequest.Builder, org.hyperledger.fabric.protos.gossip.StateInfoPullRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.StateInfoPullRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 17; onChanged(); return stateInfoPullReqBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateRequestOrBuilder> stateRequestBuilder_; /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; * @return Whether the stateRequest field is set. */ @java.lang.Override public boolean hasStateRequest() { return contentCase_ == 18; } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; * @return The stateRequest. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateRequest getStateRequest() { if (stateRequestBuilder_ == null) { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } else { if (contentCase_ == 18) { return stateRequestBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ public Builder setStateRequest(org.hyperledger.fabric.protos.gossip.RemoteStateRequest value) { if (stateRequestBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateRequestBuilder_.setMessage(value); } contentCase_ = 18; return this; } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ public Builder setStateRequest( org.hyperledger.fabric.protos.gossip.RemoteStateRequest.Builder builderForValue) { if (stateRequestBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateRequestBuilder_.setMessage(builderForValue.build()); } contentCase_ = 18; return this; } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ public Builder mergeStateRequest(org.hyperledger.fabric.protos.gossip.RemoteStateRequest value) { if (stateRequestBuilder_ == null) { if (contentCase_ == 18 && content_ != org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.RemoteStateRequest.newBuilder((org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 18) { stateRequestBuilder_.mergeFrom(value); } else { stateRequestBuilder_.setMessage(value); } } contentCase_ = 18; return this; } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ public Builder clearStateRequest() { if (stateRequestBuilder_ == null) { if (contentCase_ == 18) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 18) { contentCase_ = 0; content_ = null; } stateRequestBuilder_.clear(); } return this; } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ public org.hyperledger.fabric.protos.gossip.RemoteStateRequest.Builder getStateRequestBuilder() { return getStateRequestFieldBuilder().getBuilder(); } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateRequestOrBuilder getStateRequestOrBuilder() { if ((contentCase_ == 18) && (stateRequestBuilder_ != null)) { return stateRequestBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 18) { return (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } } /** *
     * Used to ask from a remote peer a set of blocks
     * 
* * .gossip.RemoteStateRequest state_request = 18 [json_name = "stateRequest"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateRequestOrBuilder> getStateRequestFieldBuilder() { if (stateRequestBuilder_ == null) { if (!(contentCase_ == 18)) { content_ = org.hyperledger.fabric.protos.gossip.RemoteStateRequest.getDefaultInstance(); } stateRequestBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateRequest, org.hyperledger.fabric.protos.gossip.RemoteStateRequest.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.RemoteStateRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 18; onChanged(); return stateRequestBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateResponseOrBuilder> stateResponseBuilder_; /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; * @return Whether the stateResponse field is set. */ @java.lang.Override public boolean hasStateResponse() { return contentCase_ == 19; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; * @return The stateResponse. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateResponse getStateResponse() { if (stateResponseBuilder_ == null) { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } else { if (contentCase_ == 19) { return stateResponseBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ public Builder setStateResponse(org.hyperledger.fabric.protos.gossip.RemoteStateResponse value) { if (stateResponseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { stateResponseBuilder_.setMessage(value); } contentCase_ = 19; return this; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ public Builder setStateResponse( org.hyperledger.fabric.protos.gossip.RemoteStateResponse.Builder builderForValue) { if (stateResponseBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { stateResponseBuilder_.setMessage(builderForValue.build()); } contentCase_ = 19; return this; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ public Builder mergeStateResponse(org.hyperledger.fabric.protos.gossip.RemoteStateResponse value) { if (stateResponseBuilder_ == null) { if (contentCase_ == 19 && content_ != org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.RemoteStateResponse.newBuilder((org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 19) { stateResponseBuilder_.mergeFrom(value); } else { stateResponseBuilder_.setMessage(value); } } contentCase_ = 19; return this; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ public Builder clearStateResponse() { if (stateResponseBuilder_ == null) { if (contentCase_ == 19) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 19) { contentCase_ = 0; content_ = null; } stateResponseBuilder_.clear(); } return this; } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ public org.hyperledger.fabric.protos.gossip.RemoteStateResponse.Builder getStateResponseBuilder() { return getStateResponseFieldBuilder().getBuilder(); } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemoteStateResponseOrBuilder getStateResponseOrBuilder() { if ((contentCase_ == 19) && (stateResponseBuilder_ != null)) { return stateResponseBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 19) { return (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } } /** *
     * Used to send a set of blocks to a remote peer
     * 
* * .gossip.RemoteStateResponse state_response = 19 [json_name = "stateResponse"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateResponseOrBuilder> getStateResponseFieldBuilder() { if (stateResponseBuilder_ == null) { if (!(contentCase_ == 19)) { content_ = org.hyperledger.fabric.protos.gossip.RemoteStateResponse.getDefaultInstance(); } stateResponseBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemoteStateResponse, org.hyperledger.fabric.protos.gossip.RemoteStateResponse.Builder, org.hyperledger.fabric.protos.gossip.RemoteStateResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.RemoteStateResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 19; onChanged(); return stateResponseBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.LeadershipMessage, org.hyperledger.fabric.protos.gossip.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.LeadershipMessageOrBuilder> leadershipMsgBuilder_; /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; * @return Whether the leadershipMsg field is set. */ @java.lang.Override public boolean hasLeadershipMsg() { return contentCase_ == 20; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; * @return The leadershipMsg. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.LeadershipMessage getLeadershipMsg() { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } else { if (contentCase_ == 20) { return leadershipMsgBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ public Builder setLeadershipMsg(org.hyperledger.fabric.protos.gossip.LeadershipMessage value) { if (leadershipMsgBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { leadershipMsgBuilder_.setMessage(value); } contentCase_ = 20; return this; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ public Builder setLeadershipMsg( org.hyperledger.fabric.protos.gossip.LeadershipMessage.Builder builderForValue) { if (leadershipMsgBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { leadershipMsgBuilder_.setMessage(builderForValue.build()); } contentCase_ = 20; return this; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ public Builder mergeLeadershipMsg(org.hyperledger.fabric.protos.gossip.LeadershipMessage value) { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20 && content_ != org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.LeadershipMessage.newBuilder((org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 20) { leadershipMsgBuilder_.mergeFrom(value); } else { leadershipMsgBuilder_.setMessage(value); } } contentCase_ = 20; return this; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ public Builder clearLeadershipMsg() { if (leadershipMsgBuilder_ == null) { if (contentCase_ == 20) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 20) { contentCase_ = 0; content_ = null; } leadershipMsgBuilder_.clear(); } return this; } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ public org.hyperledger.fabric.protos.gossip.LeadershipMessage.Builder getLeadershipMsgBuilder() { return getLeadershipMsgFieldBuilder().getBuilder(); } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.LeadershipMessageOrBuilder getLeadershipMsgOrBuilder() { if ((contentCase_ == 20) && (leadershipMsgBuilder_ != null)) { return leadershipMsgBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 20) { return (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_; } return org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } } /** *
     * Used to indicate intent of peer to become leader
     * 
* * .gossip.LeadershipMessage leadership_msg = 20 [json_name = "leadershipMsg"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.LeadershipMessage, org.hyperledger.fabric.protos.gossip.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.LeadershipMessageOrBuilder> getLeadershipMsgFieldBuilder() { if (leadershipMsgBuilder_ == null) { if (!(contentCase_ == 20)) { content_ = org.hyperledger.fabric.protos.gossip.LeadershipMessage.getDefaultInstance(); } leadershipMsgBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.LeadershipMessage, org.hyperledger.fabric.protos.gossip.LeadershipMessage.Builder, org.hyperledger.fabric.protos.gossip.LeadershipMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.LeadershipMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 20; onChanged(); return leadershipMsgBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerIdentity, org.hyperledger.fabric.protos.gossip.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.PeerIdentityOrBuilder> peerIdentityBuilder_; /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; * @return Whether the peerIdentity field is set. */ @java.lang.Override public boolean hasPeerIdentity() { return contentCase_ == 21; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; * @return The peerIdentity. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerIdentity getPeerIdentity() { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } else { if (contentCase_ == 21) { return peerIdentityBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ public Builder setPeerIdentity(org.hyperledger.fabric.protos.gossip.PeerIdentity value) { if (peerIdentityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { peerIdentityBuilder_.setMessage(value); } contentCase_ = 21; return this; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ public Builder setPeerIdentity( org.hyperledger.fabric.protos.gossip.PeerIdentity.Builder builderForValue) { if (peerIdentityBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { peerIdentityBuilder_.setMessage(builderForValue.build()); } contentCase_ = 21; return this; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ public Builder mergePeerIdentity(org.hyperledger.fabric.protos.gossip.PeerIdentity value) { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21 && content_ != org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.PeerIdentity.newBuilder((org.hyperledger.fabric.protos.gossip.PeerIdentity) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 21) { peerIdentityBuilder_.mergeFrom(value); } else { peerIdentityBuilder_.setMessage(value); } } contentCase_ = 21; return this; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ public Builder clearPeerIdentity() { if (peerIdentityBuilder_ == null) { if (contentCase_ == 21) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 21) { contentCase_ = 0; content_ = null; } peerIdentityBuilder_.clear(); } return this; } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ public org.hyperledger.fabric.protos.gossip.PeerIdentity.Builder getPeerIdentityBuilder() { return getPeerIdentityFieldBuilder().getBuilder(); } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerIdentityOrBuilder getPeerIdentityOrBuilder() { if ((contentCase_ == 21) && (peerIdentityBuilder_ != null)) { return peerIdentityBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 21) { return (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_; } return org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } } /** *
     * Used to learn of a peer's certificate
     * 
* * .gossip.PeerIdentity peer_identity = 21 [json_name = "peerIdentity"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerIdentity, org.hyperledger.fabric.protos.gossip.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.PeerIdentityOrBuilder> getPeerIdentityFieldBuilder() { if (peerIdentityBuilder_ == null) { if (!(contentCase_ == 21)) { content_ = org.hyperledger.fabric.protos.gossip.PeerIdentity.getDefaultInstance(); } peerIdentityBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerIdentity, org.hyperledger.fabric.protos.gossip.PeerIdentity.Builder, org.hyperledger.fabric.protos.gossip.PeerIdentityOrBuilder>( (org.hyperledger.fabric.protos.gossip.PeerIdentity) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 21; onChanged(); return peerIdentityBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Acknowledgement, org.hyperledger.fabric.protos.gossip.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.AcknowledgementOrBuilder> ackBuilder_; /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; * @return Whether the ack field is set. */ @java.lang.Override public boolean hasAck() { return contentCase_ == 22; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; * @return The ack. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Acknowledgement getAck() { if (ackBuilder_ == null) { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } else { if (contentCase_ == 22) { return ackBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ public Builder setAck(org.hyperledger.fabric.protos.gossip.Acknowledgement value) { if (ackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { ackBuilder_.setMessage(value); } contentCase_ = 22; return this; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ public Builder setAck( org.hyperledger.fabric.protos.gossip.Acknowledgement.Builder builderForValue) { if (ackBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { ackBuilder_.setMessage(builderForValue.build()); } contentCase_ = 22; return this; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ public Builder mergeAck(org.hyperledger.fabric.protos.gossip.Acknowledgement value) { if (ackBuilder_ == null) { if (contentCase_ == 22 && content_ != org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.Acknowledgement.newBuilder((org.hyperledger.fabric.protos.gossip.Acknowledgement) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 22) { ackBuilder_.mergeFrom(value); } else { ackBuilder_.setMessage(value); } } contentCase_ = 22; return this; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ public Builder clearAck() { if (ackBuilder_ == null) { if (contentCase_ == 22) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 22) { contentCase_ = 0; content_ = null; } ackBuilder_.clear(); } return this; } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ public org.hyperledger.fabric.protos.gossip.Acknowledgement.Builder getAckBuilder() { return getAckFieldBuilder().getBuilder(); } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.AcknowledgementOrBuilder getAckOrBuilder() { if ((contentCase_ == 22) && (ackBuilder_ != null)) { return ackBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 22) { return (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_; } return org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } } /** * .gossip.Acknowledgement ack = 22 [json_name = "ack"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Acknowledgement, org.hyperledger.fabric.protos.gossip.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.AcknowledgementOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(contentCase_ == 22)) { content_ = org.hyperledger.fabric.protos.gossip.Acknowledgement.getDefaultInstance(); } ackBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Acknowledgement, org.hyperledger.fabric.protos.gossip.Acknowledgement.Builder, org.hyperledger.fabric.protos.gossip.AcknowledgementOrBuilder>( (org.hyperledger.fabric.protos.gossip.Acknowledgement) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 22; onChanged(); return ackBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequestOrBuilder> privateReqBuilder_; /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; * @return Whether the privateReq field is set. */ @java.lang.Override public boolean hasPrivateReq() { return contentCase_ == 23; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; * @return The privateReq. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest getPrivateReq() { if (privateReqBuilder_ == null) { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } else { if (contentCase_ == 23) { return privateReqBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ public Builder setPrivateReq(org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest value) { if (privateReqBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateReqBuilder_.setMessage(value); } contentCase_ = 23; return this; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ public Builder setPrivateReq( org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.Builder builderForValue) { if (privateReqBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateReqBuilder_.setMessage(builderForValue.build()); } contentCase_ = 23; return this; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ public Builder mergePrivateReq(org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest value) { if (privateReqBuilder_ == null) { if (contentCase_ == 23 && content_ != org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.newBuilder((org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 23) { privateReqBuilder_.mergeFrom(value); } else { privateReqBuilder_.setMessage(value); } } contentCase_ = 23; return this; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ public Builder clearPrivateReq() { if (privateReqBuilder_ == null) { if (contentCase_ == 23) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 23) { contentCase_ = 0; content_ = null; } privateReqBuilder_.clear(); } return this; } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ public org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.Builder getPrivateReqBuilder() { return getPrivateReqFieldBuilder().getBuilder(); } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataRequestOrBuilder getPrivateReqOrBuilder() { if ((contentCase_ == 23) && (privateReqBuilder_ != null)) { return privateReqBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 23) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } } /** *
     * Used to request private data
     * 
* * .gossip.RemotePvtDataRequest privateReq = 23 [json_name = "privateReq"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequestOrBuilder> getPrivateReqFieldBuilder() { if (privateReqBuilder_ == null) { if (!(contentCase_ == 23)) { content_ = org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.getDefaultInstance(); } privateReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataRequestOrBuilder>( (org.hyperledger.fabric.protos.gossip.RemotePvtDataRequest) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 23; onChanged(); return privateReqBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponseOrBuilder> privateResBuilder_; /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; * @return Whether the privateRes field is set. */ @java.lang.Override public boolean hasPrivateRes() { return contentCase_ == 24; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; * @return The privateRes. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse getPrivateRes() { if (privateResBuilder_ == null) { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } else { if (contentCase_ == 24) { return privateResBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ public Builder setPrivateRes(org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse value) { if (privateResBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateResBuilder_.setMessage(value); } contentCase_ = 24; return this; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ public Builder setPrivateRes( org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.Builder builderForValue) { if (privateResBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateResBuilder_.setMessage(builderForValue.build()); } contentCase_ = 24; return this; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ public Builder mergePrivateRes(org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse value) { if (privateResBuilder_ == null) { if (contentCase_ == 24 && content_ != org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.newBuilder((org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 24) { privateResBuilder_.mergeFrom(value); } else { privateResBuilder_.setMessage(value); } } contentCase_ = 24; return this; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ public Builder clearPrivateRes() { if (privateResBuilder_ == null) { if (contentCase_ == 24) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 24) { contentCase_ = 0; content_ = null; } privateResBuilder_.clear(); } return this; } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ public org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.Builder getPrivateResBuilder() { return getPrivateResFieldBuilder().getBuilder(); } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.RemotePvtDataResponseOrBuilder getPrivateResOrBuilder() { if ((contentCase_ == 24) && (privateResBuilder_ != null)) { return privateResBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 24) { return (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_; } return org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } } /** *
     * Used to respond to private data requests
     * 
* * .gossip.RemotePvtDataResponse privateRes = 24 [json_name = "privateRes"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponseOrBuilder> getPrivateResFieldBuilder() { if (privateResBuilder_ == null) { if (!(contentCase_ == 24)) { content_ = org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.getDefaultInstance(); } privateResBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse.Builder, org.hyperledger.fabric.protos.gossip.RemotePvtDataResponseOrBuilder>( (org.hyperledger.fabric.protos.gossip.RemotePvtDataResponse) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 24; onChanged(); return privateResBuilder_; } private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.PrivateDataMessageOrBuilder> privateDataBuilder_; /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; * @return Whether the privateData field is set. */ @java.lang.Override public boolean hasPrivateData() { return contentCase_ == 25; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; * @return The privateData. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PrivateDataMessage getPrivateData() { if (privateDataBuilder_ == null) { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } else { if (contentCase_ == 25) { return privateDataBuilder_.getMessage(); } return org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ public Builder setPrivateData(org.hyperledger.fabric.protos.gossip.PrivateDataMessage value) { if (privateDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } content_ = value; onChanged(); } else { privateDataBuilder_.setMessage(value); } contentCase_ = 25; return this; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ public Builder setPrivateData( org.hyperledger.fabric.protos.gossip.PrivateDataMessage.Builder builderForValue) { if (privateDataBuilder_ == null) { content_ = builderForValue.build(); onChanged(); } else { privateDataBuilder_.setMessage(builderForValue.build()); } contentCase_ = 25; return this; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ public Builder mergePrivateData(org.hyperledger.fabric.protos.gossip.PrivateDataMessage value) { if (privateDataBuilder_ == null) { if (contentCase_ == 25 && content_ != org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance()) { content_ = org.hyperledger.fabric.protos.gossip.PrivateDataMessage.newBuilder((org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_) .mergeFrom(value).buildPartial(); } else { content_ = value; } onChanged(); } else { if (contentCase_ == 25) { privateDataBuilder_.mergeFrom(value); } else { privateDataBuilder_.setMessage(value); } } contentCase_ = 25; return this; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ public Builder clearPrivateData() { if (privateDataBuilder_ == null) { if (contentCase_ == 25) { contentCase_ = 0; content_ = null; onChanged(); } } else { if (contentCase_ == 25) { contentCase_ = 0; content_ = null; } privateDataBuilder_.clear(); } return this; } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ public org.hyperledger.fabric.protos.gossip.PrivateDataMessage.Builder getPrivateDataBuilder() { return getPrivateDataFieldBuilder().getBuilder(); } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PrivateDataMessageOrBuilder getPrivateDataOrBuilder() { if ((contentCase_ == 25) && (privateDataBuilder_ != null)) { return privateDataBuilder_.getMessageOrBuilder(); } else { if (contentCase_ == 25) { return (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_; } return org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } } /** *
     * Encapsulates private data used to distribute
     * private rwset after the endorsement
     * 
* * .gossip.PrivateDataMessage private_data = 25 [json_name = "privateData"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.PrivateDataMessageOrBuilder> getPrivateDataFieldBuilder() { if (privateDataBuilder_ == null) { if (!(contentCase_ == 25)) { content_ = org.hyperledger.fabric.protos.gossip.PrivateDataMessage.getDefaultInstance(); } privateDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PrivateDataMessage, org.hyperledger.fabric.protos.gossip.PrivateDataMessage.Builder, org.hyperledger.fabric.protos.gossip.PrivateDataMessageOrBuilder>( (org.hyperledger.fabric.protos.gossip.PrivateDataMessage) content_, getParentForChildren(), isClean()); content_ = null; } contentCase_ = 25; onChanged(); return privateDataBuilder_; } // @@protoc_insertion_point(builder_scope:gossip.GossipMessage) } // @@protoc_insertion_point(class_scope:gossip.GossipMessage) private static final org.hyperledger.fabric.protos.gossip.GossipMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.GossipMessage(); } public static org.hyperledger.fabric.protos.gossip.GossipMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GossipMessage 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.GossipMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy