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

com.hedera.hapi.platform.event.legacy.GossipEvent Maven / Gradle / Ivy

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: event/gossip_event.proto

package com.hedera.hapi.platform.event.legacy;

/**
 * 
 **
 * An event that is sent and received via gossip
 * 
* * Protobuf type {@code com.hedera.hapi.platform.event.GossipEvent} */ public final class GossipEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.platform.event.GossipEvent) GossipEventOrBuilder { private static final long serialVersionUID = 0L; // Use GossipEvent.newBuilder() to construct. private GossipEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private GossipEvent() { signature_ = com.google.protobuf.ByteString.EMPTY; eventTransaction_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new GossipEvent(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private GossipEvent( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hedera.hapi.platform.event.legacy.EventCore.Builder subBuilder = null; if (eventCore_ != null) { subBuilder = eventCore_.toBuilder(); } eventCore_ = input.readMessage(com.hedera.hapi.platform.event.legacy.EventCore.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eventCore_); eventCore_ = subBuilder.buildPartial(); } break; } case 18: { signature_ = input.readBytes(); break; } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { eventTransaction_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } eventTransaction_.add( input.readMessage(com.hedera.hapi.platform.event.legacy.EventTransaction.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { eventTransaction_ = java.util.Collections.unmodifiableList(eventTransaction_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.platform.event.legacy.GossipEventOuterClass.internal_static_com_hedera_hapi_platform_event_GossipEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.platform.event.legacy.GossipEventOuterClass.internal_static_com_hedera_hapi_platform_event_GossipEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.platform.event.legacy.GossipEvent.class, com.hedera.hapi.platform.event.legacy.GossipEvent.Builder.class); } public static final int EVENT_CORE_FIELD_NUMBER = 1; private com.hedera.hapi.platform.event.legacy.EventCore eventCore_; /** *
   **
   * The core event data
   * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; * @return Whether the eventCore field is set. */ @java.lang.Override public boolean hasEventCore() { return eventCore_ != null; } /** *
   **
   * The core event data
   * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; * @return The eventCore. */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventCore getEventCore() { return eventCore_ == null ? com.hedera.hapi.platform.event.legacy.EventCore.getDefaultInstance() : eventCore_; } /** *
   **
   * The core event data
   * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventCoreOrBuilder getEventCoreOrBuilder() { return getEventCore(); } public static final int SIGNATURE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString signature_; /** *
   **
   * A node signature on the event hash.<br/>
   * The signature SHALL be created with the SHA384withRSA algorithm.<br/>
   * The signature MUST verify using the public key belonging to the `event_creator`.<br/>
   * The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/>
   * The signed event hash SHALL be a SHA-384 hash.<br/>
   * The signed event hash SHALL have the following inputs, in the specified order:<br/>
   * 1. The bytes of the `event_core` field<br/>
   * 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
   * 
* * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } public static final int EVENT_TRANSACTION_FIELD_NUMBER = 3; private java.util.List eventTransaction_; /** *
   **
   * The event transaction.
   * <p>
   * This field MAY contain zero transactions.<br/>
   * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
   * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
   * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ @java.lang.Override public java.util.List getEventTransactionList() { return eventTransaction_; } /** *
   **
   * The event transaction.
   * <p>
   * This field MAY contain zero transactions.<br/>
   * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
   * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
   * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ @java.lang.Override public java.util.List getEventTransactionOrBuilderList() { return eventTransaction_; } /** *
   **
   * The event transaction.
   * <p>
   * This field MAY contain zero transactions.<br/>
   * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
   * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
   * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ @java.lang.Override public int getEventTransactionCount() { return eventTransaction_.size(); } /** *
   **
   * The event transaction.
   * <p>
   * This field MAY contain zero transactions.<br/>
   * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
   * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
   * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventTransaction getEventTransaction(int index) { return eventTransaction_.get(index); } /** *
   **
   * The event transaction.
   * <p>
   * This field MAY contain zero transactions.<br/>
   * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
   * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
   * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder getEventTransactionOrBuilder( int index) { return eventTransaction_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (eventCore_ != null) { output.writeMessage(1, getEventCore()); } if (!signature_.isEmpty()) { output.writeBytes(2, signature_); } for (int i = 0; i < eventTransaction_.size(); i++) { output.writeMessage(3, eventTransaction_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (eventCore_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getEventCore()); } if (!signature_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, signature_); } for (int i = 0; i < eventTransaction_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, eventTransaction_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.hapi.platform.event.legacy.GossipEvent)) { return super.equals(obj); } com.hedera.hapi.platform.event.legacy.GossipEvent other = (com.hedera.hapi.platform.event.legacy.GossipEvent) obj; if (hasEventCore() != other.hasEventCore()) return false; if (hasEventCore()) { if (!getEventCore() .equals(other.getEventCore())) return false; } if (!getSignature() .equals(other.getSignature())) return false; if (!getEventTransactionList() .equals(other.getEventTransactionList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEventCore()) { hash = (37 * hash) + EVENT_CORE_FIELD_NUMBER; hash = (53 * hash) + getEventCore().hashCode(); } hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; hash = (53 * hash) + getSignature().hashCode(); if (getEventTransactionCount() > 0) { hash = (37 * hash) + EVENT_TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getEventTransactionList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.hapi.platform.event.legacy.GossipEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.hapi.platform.event.legacy.GossipEvent 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.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * An event that is sent and received via gossip
   * 
* * Protobuf type {@code com.hedera.hapi.platform.event.GossipEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.platform.event.GossipEvent) com.hedera.hapi.platform.event.legacy.GossipEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.platform.event.legacy.GossipEventOuterClass.internal_static_com_hedera_hapi_platform_event_GossipEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.platform.event.legacy.GossipEventOuterClass.internal_static_com_hedera_hapi_platform_event_GossipEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.platform.event.legacy.GossipEvent.class, com.hedera.hapi.platform.event.legacy.GossipEvent.Builder.class); } // Construct using com.hedera.hapi.platform.event.legacy.GossipEvent.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEventTransactionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (eventCoreBuilder_ == null) { eventCore_ = null; } else { eventCore_ = null; eventCoreBuilder_ = null; } signature_ = com.google.protobuf.ByteString.EMPTY; if (eventTransactionBuilder_ == null) { eventTransaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { eventTransactionBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hapi.platform.event.legacy.GossipEventOuterClass.internal_static_com_hedera_hapi_platform_event_GossipEvent_descriptor; } @java.lang.Override public com.hedera.hapi.platform.event.legacy.GossipEvent getDefaultInstanceForType() { return com.hedera.hapi.platform.event.legacy.GossipEvent.getDefaultInstance(); } @java.lang.Override public com.hedera.hapi.platform.event.legacy.GossipEvent build() { com.hedera.hapi.platform.event.legacy.GossipEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hapi.platform.event.legacy.GossipEvent buildPartial() { com.hedera.hapi.platform.event.legacy.GossipEvent result = new com.hedera.hapi.platform.event.legacy.GossipEvent(this); int from_bitField0_ = bitField0_; if (eventCoreBuilder_ == null) { result.eventCore_ = eventCore_; } else { result.eventCore_ = eventCoreBuilder_.build(); } result.signature_ = signature_; if (eventTransactionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { eventTransaction_ = java.util.Collections.unmodifiableList(eventTransaction_); bitField0_ = (bitField0_ & ~0x00000001); } result.eventTransaction_ = eventTransaction_; } else { result.eventTransaction_ = eventTransactionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.hapi.platform.event.legacy.GossipEvent) { return mergeFrom((com.hedera.hapi.platform.event.legacy.GossipEvent)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hapi.platform.event.legacy.GossipEvent other) { if (other == com.hedera.hapi.platform.event.legacy.GossipEvent.getDefaultInstance()) return this; if (other.hasEventCore()) { mergeEventCore(other.getEventCore()); } if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { setSignature(other.getSignature()); } if (eventTransactionBuilder_ == null) { if (!other.eventTransaction_.isEmpty()) { if (eventTransaction_.isEmpty()) { eventTransaction_ = other.eventTransaction_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEventTransactionIsMutable(); eventTransaction_.addAll(other.eventTransaction_); } onChanged(); } } else { if (!other.eventTransaction_.isEmpty()) { if (eventTransactionBuilder_.isEmpty()) { eventTransactionBuilder_.dispose(); eventTransactionBuilder_ = null; eventTransaction_ = other.eventTransaction_; bitField0_ = (bitField0_ & ~0x00000001); eventTransactionBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventTransactionFieldBuilder() : null; } else { eventTransactionBuilder_.addAllMessages(other.eventTransaction_); } } } this.mergeUnknownFields(other.unknownFields); 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 { com.hedera.hapi.platform.event.legacy.GossipEvent parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.hapi.platform.event.legacy.GossipEvent) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hedera.hapi.platform.event.legacy.EventCore eventCore_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventCore, com.hedera.hapi.platform.event.legacy.EventCore.Builder, com.hedera.hapi.platform.event.legacy.EventCoreOrBuilder> eventCoreBuilder_; /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; * @return Whether the eventCore field is set. */ public boolean hasEventCore() { return eventCoreBuilder_ != null || eventCore_ != null; } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; * @return The eventCore. */ public com.hedera.hapi.platform.event.legacy.EventCore getEventCore() { if (eventCoreBuilder_ == null) { return eventCore_ == null ? com.hedera.hapi.platform.event.legacy.EventCore.getDefaultInstance() : eventCore_; } else { return eventCoreBuilder_.getMessage(); } } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public Builder setEventCore(com.hedera.hapi.platform.event.legacy.EventCore value) { if (eventCoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventCore_ = value; onChanged(); } else { eventCoreBuilder_.setMessage(value); } return this; } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public Builder setEventCore( com.hedera.hapi.platform.event.legacy.EventCore.Builder builderForValue) { if (eventCoreBuilder_ == null) { eventCore_ = builderForValue.build(); onChanged(); } else { eventCoreBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public Builder mergeEventCore(com.hedera.hapi.platform.event.legacy.EventCore value) { if (eventCoreBuilder_ == null) { if (eventCore_ != null) { eventCore_ = com.hedera.hapi.platform.event.legacy.EventCore.newBuilder(eventCore_).mergeFrom(value).buildPartial(); } else { eventCore_ = value; } onChanged(); } else { eventCoreBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public Builder clearEventCore() { if (eventCoreBuilder_ == null) { eventCore_ = null; onChanged(); } else { eventCore_ = null; eventCoreBuilder_ = null; } return this; } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public com.hedera.hapi.platform.event.legacy.EventCore.Builder getEventCoreBuilder() { onChanged(); return getEventCoreFieldBuilder().getBuilder(); } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ public com.hedera.hapi.platform.event.legacy.EventCoreOrBuilder getEventCoreOrBuilder() { if (eventCoreBuilder_ != null) { return eventCoreBuilder_.getMessageOrBuilder(); } else { return eventCore_ == null ? com.hedera.hapi.platform.event.legacy.EventCore.getDefaultInstance() : eventCore_; } } /** *
     **
     * The core event data
     * 
* * .com.hedera.hapi.platform.event.EventCore event_core = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventCore, com.hedera.hapi.platform.event.legacy.EventCore.Builder, com.hedera.hapi.platform.event.legacy.EventCoreOrBuilder> getEventCoreFieldBuilder() { if (eventCoreBuilder_ == null) { eventCoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventCore, com.hedera.hapi.platform.event.legacy.EventCore.Builder, com.hedera.hapi.platform.event.legacy.EventCoreOrBuilder>( getEventCore(), getParentForChildren(), isClean()); eventCore_ = null; } return eventCoreBuilder_; } private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; /** *
     **
     * A node signature on the event hash.<br/>
     * The signature SHALL be created with the SHA384withRSA algorithm.<br/>
     * The signature MUST verify using the public key belonging to the `event_creator`.<br/>
     * The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/>
     * The signed event hash SHALL be a SHA-384 hash.<br/>
     * The signed event hash SHALL have the following inputs, in the specified order:<br/>
     * 1. The bytes of the `event_core` field<br/>
     * 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
     * 
* * bytes signature = 2; * @return The signature. */ @java.lang.Override public com.google.protobuf.ByteString getSignature() { return signature_; } /** *
     **
     * A node signature on the event hash.<br/>
     * The signature SHALL be created with the SHA384withRSA algorithm.<br/>
     * The signature MUST verify using the public key belonging to the `event_creator`.<br/>
     * The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/>
     * The signed event hash SHALL be a SHA-384 hash.<br/>
     * The signed event hash SHALL have the following inputs, in the specified order:<br/>
     * 1. The bytes of the `event_core` field<br/>
     * 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
     * 
* * bytes signature = 2; * @param value The signature to set. * @return This builder for chaining. */ public Builder setSignature(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } signature_ = value; onChanged(); return this; } /** *
     **
     * A node signature on the event hash.<br/>
     * The signature SHALL be created with the SHA384withRSA algorithm.<br/>
     * The signature MUST verify using the public key belonging to the `event_creator`.<br/>
     * The `event_creator` public key SHALL be read from the address book that corresponds to the event's birth round.<br/>
     * The signed event hash SHALL be a SHA-384 hash.<br/>
     * The signed event hash SHALL have the following inputs, in the specified order:<br/>
     * 1. The bytes of the `event_core` field<br/>
     * 2. The SHA-384 hash of each individual `EventTransaction`, in the order the transaction appear in the `event_transaction` field
     * 
* * bytes signature = 2; * @return This builder for chaining. */ public Builder clearSignature() { signature_ = getDefaultInstance().getSignature(); onChanged(); return this; } private java.util.List eventTransaction_ = java.util.Collections.emptyList(); private void ensureEventTransactionIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { eventTransaction_ = new java.util.ArrayList(eventTransaction_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventTransaction, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder, com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder> eventTransactionBuilder_; /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public java.util.List getEventTransactionList() { if (eventTransactionBuilder_ == null) { return java.util.Collections.unmodifiableList(eventTransaction_); } else { return eventTransactionBuilder_.getMessageList(); } } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public int getEventTransactionCount() { if (eventTransactionBuilder_ == null) { return eventTransaction_.size(); } else { return eventTransactionBuilder_.getCount(); } } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public com.hedera.hapi.platform.event.legacy.EventTransaction getEventTransaction(int index) { if (eventTransactionBuilder_ == null) { return eventTransaction_.get(index); } else { return eventTransactionBuilder_.getMessage(index); } } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder setEventTransaction( int index, com.hedera.hapi.platform.event.legacy.EventTransaction value) { if (eventTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventTransactionIsMutable(); eventTransaction_.set(index, value); onChanged(); } else { eventTransactionBuilder_.setMessage(index, value); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder setEventTransaction( int index, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder builderForValue) { if (eventTransactionBuilder_ == null) { ensureEventTransactionIsMutable(); eventTransaction_.set(index, builderForValue.build()); onChanged(); } else { eventTransactionBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder addEventTransaction(com.hedera.hapi.platform.event.legacy.EventTransaction value) { if (eventTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventTransactionIsMutable(); eventTransaction_.add(value); onChanged(); } else { eventTransactionBuilder_.addMessage(value); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder addEventTransaction( int index, com.hedera.hapi.platform.event.legacy.EventTransaction value) { if (eventTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEventTransactionIsMutable(); eventTransaction_.add(index, value); onChanged(); } else { eventTransactionBuilder_.addMessage(index, value); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder addEventTransaction( com.hedera.hapi.platform.event.legacy.EventTransaction.Builder builderForValue) { if (eventTransactionBuilder_ == null) { ensureEventTransactionIsMutable(); eventTransaction_.add(builderForValue.build()); onChanged(); } else { eventTransactionBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder addEventTransaction( int index, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder builderForValue) { if (eventTransactionBuilder_ == null) { ensureEventTransactionIsMutable(); eventTransaction_.add(index, builderForValue.build()); onChanged(); } else { eventTransactionBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder addAllEventTransaction( java.lang.Iterable values) { if (eventTransactionBuilder_ == null) { ensureEventTransactionIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, eventTransaction_); onChanged(); } else { eventTransactionBuilder_.addAllMessages(values); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder clearEventTransaction() { if (eventTransactionBuilder_ == null) { eventTransaction_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { eventTransactionBuilder_.clear(); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public Builder removeEventTransaction(int index) { if (eventTransactionBuilder_ == null) { ensureEventTransactionIsMutable(); eventTransaction_.remove(index); onChanged(); } else { eventTransactionBuilder_.remove(index); } return this; } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public com.hedera.hapi.platform.event.legacy.EventTransaction.Builder getEventTransactionBuilder( int index) { return getEventTransactionFieldBuilder().getBuilder(index); } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder getEventTransactionOrBuilder( int index) { if (eventTransactionBuilder_ == null) { return eventTransaction_.get(index); } else { return eventTransactionBuilder_.getMessageOrBuilder(index); } } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public java.util.List getEventTransactionOrBuilderList() { if (eventTransactionBuilder_ != null) { return eventTransactionBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(eventTransaction_); } } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public com.hedera.hapi.platform.event.legacy.EventTransaction.Builder addEventTransactionBuilder() { return getEventTransactionFieldBuilder().addBuilder( com.hedera.hapi.platform.event.legacy.EventTransaction.getDefaultInstance()); } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public com.hedera.hapi.platform.event.legacy.EventTransaction.Builder addEventTransactionBuilder( int index) { return getEventTransactionFieldBuilder().addBuilder( index, com.hedera.hapi.platform.event.legacy.EventTransaction.getDefaultInstance()); } /** *
     **
     * The event transaction.
     * <p>
     * This field MAY contain zero transactions.<br/>
     * This field MUST NOT exceed `maxTransactionCountPerEvent` entries, initially `245760`.<br/>
     * This total size of this field MUST NOT exceed `maxTransactionBytesPerEvent`, initially `245760` bytes.
     * 
* * repeated .com.hedera.hapi.platform.event.EventTransaction event_transaction = 3; */ public java.util.List getEventTransactionBuilderList() { return getEventTransactionFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventTransaction, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder, com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder> getEventTransactionFieldBuilder() { if (eventTransactionBuilder_ == null) { eventTransactionBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.hedera.hapi.platform.event.legacy.EventTransaction, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder, com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder>( eventTransaction_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); eventTransaction_ = null; } return eventTransactionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:com.hedera.hapi.platform.event.GossipEvent) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.platform.event.GossipEvent) private static final com.hedera.hapi.platform.event.legacy.GossipEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hapi.platform.event.legacy.GossipEvent(); } public static com.hedera.hapi.platform.event.legacy.GossipEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public GossipEvent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new GossipEvent(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.hapi.platform.event.legacy.GossipEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy