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

org.hyperledger.fabric.protos.discovery.Peer Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: discovery/protocol.proto
// Protobuf Java Version: 4.28.2

package org.hyperledger.fabric.protos.discovery;

/**
 * 
 * Peer contains information about the peer such as its channel specific
 * state, and membership information.
 * 
* * Protobuf type {@code discovery.Peer} */ public final class Peer extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:discovery.Peer) PeerOrBuilder { 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= */ "", Peer.class.getName()); } // Use Peer.newBuilder() to construct. private Peer(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private Peer() { identity_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Peer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Peer.class, org.hyperledger.fabric.protos.discovery.Peer.Builder.class); } private int bitField0_; public static final int STATE_INFO_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Envelope stateInfo_; /** *
   * This is an Envelope of a GossipMessage with a gossip.StateInfo message
   * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; * @return Whether the stateInfo field is set. */ @java.lang.Override public boolean hasStateInfo() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * This is an Envelope of a GossipMessage with a gossip.StateInfo message
   * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; * @return The stateInfo. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Envelope getStateInfo() { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : stateInfo_; } /** *
   * This is an Envelope of a GossipMessage with a gossip.StateInfo message
   * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getStateInfoOrBuilder() { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : stateInfo_; } public static final int MEMBERSHIP_INFO_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.Envelope membershipInfo_; /** *
   * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
   * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; * @return Whether the membershipInfo field is set. */ @java.lang.Override public boolean hasMembershipInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
   * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; * @return The membershipInfo. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Envelope getMembershipInfo() { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : membershipInfo_; } /** *
   * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
   * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getMembershipInfoOrBuilder() { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : membershipInfo_; } public static final int IDENTITY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** *
   * This is the msp.SerializedIdentity of the peer, represented in bytes.
   * 
* * bytes identity = 3 [json_name = "identity"]; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getStateInfo()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMembershipInfo()); } if (!identity_.isEmpty()) { output.writeBytes(3, identity_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getStateInfo()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMembershipInfo()); } if (!identity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, identity_); } 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.discovery.Peer)) { return super.equals(obj); } org.hyperledger.fabric.protos.discovery.Peer other = (org.hyperledger.fabric.protos.discovery.Peer) obj; if (hasStateInfo() != other.hasStateInfo()) return false; if (hasStateInfo()) { if (!getStateInfo() .equals(other.getStateInfo())) return false; } if (hasMembershipInfo() != other.hasMembershipInfo()) return false; if (hasMembershipInfo()) { if (!getMembershipInfo() .equals(other.getMembershipInfo())) return false; } if (!getIdentity() .equals(other.getIdentity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasStateInfo()) { hash = (37 * hash) + STATE_INFO_FIELD_NUMBER; hash = (53 * hash) + getStateInfo().hashCode(); } if (hasMembershipInfo()) { hash = (37 * hash) + MEMBERSHIP_INFO_FIELD_NUMBER; hash = (53 * hash) + getMembershipInfo().hashCode(); } hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static org.hyperledger.fabric.protos.discovery.Peer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Peer 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.discovery.Peer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Peer 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.discovery.Peer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.discovery.Peer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.hyperledger.fabric.protos.discovery.Peer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Peer 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.discovery.Peer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Peer 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.discovery.Peer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.discovery.Peer 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.discovery.Peer 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; } /** *
   * Peer contains information about the peer such as its channel specific
   * state, and membership information.
   * 
* * Protobuf type {@code discovery.Peer} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:discovery.Peer) org.hyperledger.fabric.protos.discovery.PeerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Peer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Peer_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.discovery.Peer.class, org.hyperledger.fabric.protos.discovery.Peer.Builder.class); } // Construct using org.hyperledger.fabric.protos.discovery.Peer.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getStateInfoFieldBuilder(); getMembershipInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; stateInfo_ = null; if (stateInfoBuilder_ != null) { stateInfoBuilder_.dispose(); stateInfoBuilder_ = null; } membershipInfo_ = null; if (membershipInfoBuilder_ != null) { membershipInfoBuilder_.dispose(); membershipInfoBuilder_ = null; } identity_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.discovery.ProtocolProto.internal_static_discovery_Peer_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Peer getDefaultInstanceForType() { return org.hyperledger.fabric.protos.discovery.Peer.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Peer build() { org.hyperledger.fabric.protos.discovery.Peer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.discovery.Peer buildPartial() { org.hyperledger.fabric.protos.discovery.Peer result = new org.hyperledger.fabric.protos.discovery.Peer(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.discovery.Peer result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.stateInfo_ = stateInfoBuilder_ == null ? stateInfo_ : stateInfoBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.membershipInfo_ = membershipInfoBuilder_ == null ? membershipInfo_ : membershipInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.identity_ = identity_; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof org.hyperledger.fabric.protos.discovery.Peer) { return mergeFrom((org.hyperledger.fabric.protos.discovery.Peer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.discovery.Peer other) { if (other == org.hyperledger.fabric.protos.discovery.Peer.getDefaultInstance()) return this; if (other.hasStateInfo()) { mergeStateInfo(other.getStateInfo()); } if (other.hasMembershipInfo()) { mergeMembershipInfo(other.getMembershipInfo()); } if (other.getIdentity() != com.google.protobuf.ByteString.EMPTY) { setIdentity(other.getIdentity()); } 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 10: { input.readMessage( getStateInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMembershipInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { identity_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private org.hyperledger.fabric.protos.gossip.Envelope stateInfo_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> stateInfoBuilder_; /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; * @return Whether the stateInfo field is set. */ public boolean hasStateInfo() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; * @return The stateInfo. */ public org.hyperledger.fabric.protos.gossip.Envelope getStateInfo() { if (stateInfoBuilder_ == null) { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : stateInfo_; } else { return stateInfoBuilder_.getMessage(); } } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public Builder setStateInfo(org.hyperledger.fabric.protos.gossip.Envelope value) { if (stateInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } stateInfo_ = value; } else { stateInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public Builder setStateInfo( org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) { if (stateInfoBuilder_ == null) { stateInfo_ = builderForValue.build(); } else { stateInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public Builder mergeStateInfo(org.hyperledger.fabric.protos.gossip.Envelope value) { if (stateInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && stateInfo_ != null && stateInfo_ != org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance()) { getStateInfoBuilder().mergeFrom(value); } else { stateInfo_ = value; } } else { stateInfoBuilder_.mergeFrom(value); } if (stateInfo_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public Builder clearStateInfo() { bitField0_ = (bitField0_ & ~0x00000001); stateInfo_ = null; if (stateInfoBuilder_ != null) { stateInfoBuilder_.dispose(); stateInfoBuilder_ = null; } onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public org.hyperledger.fabric.protos.gossip.Envelope.Builder getStateInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getStateInfoFieldBuilder().getBuilder(); } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getStateInfoOrBuilder() { if (stateInfoBuilder_ != null) { return stateInfoBuilder_.getMessageOrBuilder(); } else { return stateInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : stateInfo_; } } /** *
     * This is an Envelope of a GossipMessage with a gossip.StateInfo message
     * 
* * .gossip.Envelope state_info = 1 [json_name = "stateInfo"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> getStateInfoFieldBuilder() { if (stateInfoBuilder_ == null) { stateInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>( getStateInfo(), getParentForChildren(), isClean()); stateInfo_ = null; } return stateInfoBuilder_; } private org.hyperledger.fabric.protos.gossip.Envelope membershipInfo_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> membershipInfoBuilder_; /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; * @return Whether the membershipInfo field is set. */ public boolean hasMembershipInfo() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; * @return The membershipInfo. */ public org.hyperledger.fabric.protos.gossip.Envelope getMembershipInfo() { if (membershipInfoBuilder_ == null) { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : membershipInfo_; } else { return membershipInfoBuilder_.getMessage(); } } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public Builder setMembershipInfo(org.hyperledger.fabric.protos.gossip.Envelope value) { if (membershipInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } membershipInfo_ = value; } else { membershipInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public Builder setMembershipInfo( org.hyperledger.fabric.protos.gossip.Envelope.Builder builderForValue) { if (membershipInfoBuilder_ == null) { membershipInfo_ = builderForValue.build(); } else { membershipInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public Builder mergeMembershipInfo(org.hyperledger.fabric.protos.gossip.Envelope value) { if (membershipInfoBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && membershipInfo_ != null && membershipInfo_ != org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance()) { getMembershipInfoBuilder().mergeFrom(value); } else { membershipInfo_ = value; } } else { membershipInfoBuilder_.mergeFrom(value); } if (membershipInfo_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public Builder clearMembershipInfo() { bitField0_ = (bitField0_ & ~0x00000002); membershipInfo_ = null; if (membershipInfoBuilder_ != null) { membershipInfoBuilder_.dispose(); membershipInfoBuilder_ = null; } onChanged(); return this; } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public org.hyperledger.fabric.protos.gossip.Envelope.Builder getMembershipInfoBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMembershipInfoFieldBuilder().getBuilder(); } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ public org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder getMembershipInfoOrBuilder() { if (membershipInfoBuilder_ != null) { return membershipInfoBuilder_.getMessageOrBuilder(); } else { return membershipInfo_ == null ? org.hyperledger.fabric.protos.gossip.Envelope.getDefaultInstance() : membershipInfo_; } } /** *
     * This is an Envelope of a GossipMessage with a gossip.AliveMessage message
     * 
* * .gossip.Envelope membership_info = 2 [json_name = "membershipInfo"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder> getMembershipInfoFieldBuilder() { if (membershipInfoBuilder_ == null) { membershipInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Envelope, org.hyperledger.fabric.protos.gossip.Envelope.Builder, org.hyperledger.fabric.protos.gossip.EnvelopeOrBuilder>( getMembershipInfo(), getParentForChildren(), isClean()); membershipInfo_ = null; } return membershipInfoBuilder_; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * bytes identity = 3 [json_name = "identity"]; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * bytes identity = 3 [json_name = "identity"]; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } identity_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * This is the msp.SerializedIdentity of the peer, represented in bytes.
     * 
* * bytes identity = 3 [json_name = "identity"]; * @return This builder for chaining. */ public Builder clearIdentity() { bitField0_ = (bitField0_ & ~0x00000004); identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:discovery.Peer) } // @@protoc_insertion_point(class_scope:discovery.Peer) private static final org.hyperledger.fabric.protos.discovery.Peer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.discovery.Peer(); } public static org.hyperledger.fabric.protos.discovery.Peer getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Peer 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.discovery.Peer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy