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

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

/**
 * 
 * AliveMessage is sent to inform remote peers
 * of a peer's existence and activity
 * 
* * Protobuf type {@code gossip.AliveMessage} */ public final class AliveMessage extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:gossip.AliveMessage) AliveMessageOrBuilder { 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= */ "", AliveMessage.class.getName()); } // Use AliveMessage.newBuilder() to construct. private AliveMessage(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } private AliveMessage() { identity_ = com.google.protobuf.ByteString.EMPTY; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_AliveMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_AliveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.AliveMessage.class, org.hyperledger.fabric.protos.gossip.AliveMessage.Builder.class); } private int bitField0_; public static final int MEMBERSHIP_FIELD_NUMBER = 1; private org.hyperledger.fabric.protos.gossip.Member membership_; /** * .gossip.Member membership = 1 [json_name = "membership"]; * @return Whether the membership field is set. */ @java.lang.Override public boolean hasMembership() { return ((bitField0_ & 0x00000001) != 0); } /** * .gossip.Member membership = 1 [json_name = "membership"]; * @return The membership. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.Member getMembership() { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Member.getDefaultInstance() : membership_; } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.MemberOrBuilder getMembershipOrBuilder() { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Member.getDefaultInstance() : membership_; } public static final int TIMESTAMP_FIELD_NUMBER = 2; private org.hyperledger.fabric.protos.gossip.PeerTime timestamp_; /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; * @return Whether the timestamp field is set. */ @java.lang.Override public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; * @return The timestamp. */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerTime getTimestamp() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.PeerTime.getDefaultInstance() : timestamp_; } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ @java.lang.Override public org.hyperledger.fabric.protos.gossip.PeerTimeOrBuilder getTimestampOrBuilder() { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.PeerTime.getDefaultInstance() : timestamp_; } public static final int IDENTITY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** * bytes identity = 4 [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, getMembership()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTimestamp()); } if (!identity_.isEmpty()) { output.writeBytes(4, 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, getMembership()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTimestamp()); } if (!identity_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, 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.gossip.AliveMessage)) { return super.equals(obj); } org.hyperledger.fabric.protos.gossip.AliveMessage other = (org.hyperledger.fabric.protos.gossip.AliveMessage) obj; if (hasMembership() != other.hasMembership()) return false; if (hasMembership()) { if (!getMembership() .equals(other.getMembership())) return false; } if (hasTimestamp() != other.hasTimestamp()) return false; if (hasTimestamp()) { if (!getTimestamp() .equals(other.getTimestamp())) 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 (hasMembership()) { hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; hash = (53 * hash) + getMembership().hashCode(); } if (hasTimestamp()) { hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getTimestamp().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.gossip.AliveMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.AliveMessage 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.AliveMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.AliveMessage 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.AliveMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.hyperledger.fabric.protos.gossip.AliveMessage 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.AliveMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.AliveMessage 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.AliveMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage .parseDelimitedWithIOException(PARSER, input); } public static org.hyperledger.fabric.protos.gossip.AliveMessage 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.AliveMessage 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.AliveMessage 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.AliveMessage 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; } /** *
   * AliveMessage is sent to inform remote peers
   * of a peer's existence and activity
   * 
* * Protobuf type {@code gossip.AliveMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements // @@protoc_insertion_point(builder_implements:gossip.AliveMessage) org.hyperledger.fabric.protos.gossip.AliveMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_AliveMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_AliveMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( org.hyperledger.fabric.protos.gossip.AliveMessage.class, org.hyperledger.fabric.protos.gossip.AliveMessage.Builder.class); } // Construct using org.hyperledger.fabric.protos.gossip.AliveMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage .alwaysUseFieldBuilders) { getMembershipFieldBuilder(); getTimestampFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; membership_ = null; if (membershipBuilder_ != null) { membershipBuilder_.dispose(); membershipBuilder_ = null; } timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } identity_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.hyperledger.fabric.protos.gossip.MessageProto.internal_static_gossip_AliveMessage_descriptor; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessage getDefaultInstanceForType() { return org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance(); } @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessage build() { org.hyperledger.fabric.protos.gossip.AliveMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.hyperledger.fabric.protos.gossip.AliveMessage buildPartial() { org.hyperledger.fabric.protos.gossip.AliveMessage result = new org.hyperledger.fabric.protos.gossip.AliveMessage(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(org.hyperledger.fabric.protos.gossip.AliveMessage result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.membership_ = membershipBuilder_ == null ? membership_ : membershipBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.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.gossip.AliveMessage) { return mergeFrom((org.hyperledger.fabric.protos.gossip.AliveMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.hyperledger.fabric.protos.gossip.AliveMessage other) { if (other == org.hyperledger.fabric.protos.gossip.AliveMessage.getDefaultInstance()) return this; if (other.hasMembership()) { mergeMembership(other.getMembership()); } if (other.hasTimestamp()) { mergeTimestamp(other.getTimestamp()); } 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( getMembershipFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTimestampFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 34: { identity_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 34 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.Member membership_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Member, org.hyperledger.fabric.protos.gossip.Member.Builder, org.hyperledger.fabric.protos.gossip.MemberOrBuilder> membershipBuilder_; /** * .gossip.Member membership = 1 [json_name = "membership"]; * @return Whether the membership field is set. */ public boolean hasMembership() { return ((bitField0_ & 0x00000001) != 0); } /** * .gossip.Member membership = 1 [json_name = "membership"]; * @return The membership. */ public org.hyperledger.fabric.protos.gossip.Member getMembership() { if (membershipBuilder_ == null) { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Member.getDefaultInstance() : membership_; } else { return membershipBuilder_.getMessage(); } } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public Builder setMembership(org.hyperledger.fabric.protos.gossip.Member value) { if (membershipBuilder_ == null) { if (value == null) { throw new NullPointerException(); } membership_ = value; } else { membershipBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public Builder setMembership( org.hyperledger.fabric.protos.gossip.Member.Builder builderForValue) { if (membershipBuilder_ == null) { membership_ = builderForValue.build(); } else { membershipBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public Builder mergeMembership(org.hyperledger.fabric.protos.gossip.Member value) { if (membershipBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && membership_ != null && membership_ != org.hyperledger.fabric.protos.gossip.Member.getDefaultInstance()) { getMembershipBuilder().mergeFrom(value); } else { membership_ = value; } } else { membershipBuilder_.mergeFrom(value); } if (membership_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public Builder clearMembership() { bitField0_ = (bitField0_ & ~0x00000001); membership_ = null; if (membershipBuilder_ != null) { membershipBuilder_.dispose(); membershipBuilder_ = null; } onChanged(); return this; } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public org.hyperledger.fabric.protos.gossip.Member.Builder getMembershipBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMembershipFieldBuilder().getBuilder(); } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ public org.hyperledger.fabric.protos.gossip.MemberOrBuilder getMembershipOrBuilder() { if (membershipBuilder_ != null) { return membershipBuilder_.getMessageOrBuilder(); } else { return membership_ == null ? org.hyperledger.fabric.protos.gossip.Member.getDefaultInstance() : membership_; } } /** * .gossip.Member membership = 1 [json_name = "membership"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Member, org.hyperledger.fabric.protos.gossip.Member.Builder, org.hyperledger.fabric.protos.gossip.MemberOrBuilder> getMembershipFieldBuilder() { if (membershipBuilder_ == null) { membershipBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.Member, org.hyperledger.fabric.protos.gossip.Member.Builder, org.hyperledger.fabric.protos.gossip.MemberOrBuilder>( getMembership(), getParentForChildren(), isClean()); membership_ = null; } return membershipBuilder_; } private org.hyperledger.fabric.protos.gossip.PeerTime timestamp_; private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerTime, org.hyperledger.fabric.protos.gossip.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.PeerTimeOrBuilder> timestampBuilder_; /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; * @return Whether the timestamp field is set. */ public boolean hasTimestamp() { return ((bitField0_ & 0x00000002) != 0); } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; * @return The timestamp. */ public org.hyperledger.fabric.protos.gossip.PeerTime getTimestamp() { if (timestampBuilder_ == null) { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.PeerTime.getDefaultInstance() : timestamp_; } else { return timestampBuilder_.getMessage(); } } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public Builder setTimestamp(org.hyperledger.fabric.protos.gossip.PeerTime value) { if (timestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timestamp_ = value; } else { timestampBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public Builder setTimestamp( org.hyperledger.fabric.protos.gossip.PeerTime.Builder builderForValue) { if (timestampBuilder_ == null) { timestamp_ = builderForValue.build(); } else { timestampBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public Builder mergeTimestamp(org.hyperledger.fabric.protos.gossip.PeerTime value) { if (timestampBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && timestamp_ != null && timestamp_ != org.hyperledger.fabric.protos.gossip.PeerTime.getDefaultInstance()) { getTimestampBuilder().mergeFrom(value); } else { timestamp_ = value; } } else { timestampBuilder_.mergeFrom(value); } if (timestamp_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000002); timestamp_ = null; if (timestampBuilder_ != null) { timestampBuilder_.dispose(); timestampBuilder_ = null; } onChanged(); return this; } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public org.hyperledger.fabric.protos.gossip.PeerTime.Builder getTimestampBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTimestampFieldBuilder().getBuilder(); } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ public org.hyperledger.fabric.protos.gossip.PeerTimeOrBuilder getTimestampOrBuilder() { if (timestampBuilder_ != null) { return timestampBuilder_.getMessageOrBuilder(); } else { return timestamp_ == null ? org.hyperledger.fabric.protos.gossip.PeerTime.getDefaultInstance() : timestamp_; } } /** * .gossip.PeerTime timestamp = 2 [json_name = "timestamp"]; */ private com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerTime, org.hyperledger.fabric.protos.gossip.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.PeerTimeOrBuilder> getTimestampFieldBuilder() { if (timestampBuilder_ == null) { timestampBuilder_ = new com.google.protobuf.SingleFieldBuilder< org.hyperledger.fabric.protos.gossip.PeerTime, org.hyperledger.fabric.protos.gossip.PeerTime.Builder, org.hyperledger.fabric.protos.gossip.PeerTimeOrBuilder>( getTimestamp(), getParentForChildren(), isClean()); timestamp_ = null; } return timestampBuilder_; } private com.google.protobuf.ByteString identity_ = com.google.protobuf.ByteString.EMPTY; /** * bytes identity = 4 [json_name = "identity"]; * @return The identity. */ @java.lang.Override public com.google.protobuf.ByteString getIdentity() { return identity_; } /** * bytes identity = 4 [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; } /** * bytes identity = 4 [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:gossip.AliveMessage) } // @@protoc_insertion_point(class_scope:gossip.AliveMessage) private static final org.hyperledger.fabric.protos.gossip.AliveMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.gossip.AliveMessage(); } public static org.hyperledger.fabric.protos.gossip.AliveMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AliveMessage 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.AliveMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy