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

com.hedera.hapi.platform.event.legacy.EventTransaction 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/event_transaction.proto

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

/**
 * 
 **
 * An Event Transaction gossiped between nodes as part of events.
 * Each node MUST extract this transaction and process according to the type
 * of transaction encoded.<br/>
 * Both the platform and the application built on that platform MAY define event
 * transactions.<br/>
 * The encoded data MUST be a serialized protobuf message.
 * 
* * Protobuf type {@code com.hedera.hapi.platform.event.EventTransaction} */ public final class EventTransaction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:com.hedera.hapi.platform.event.EventTransaction) EventTransactionOrBuilder { private static final long serialVersionUID = 0L; // Use EventTransaction.newBuilder() to construct. private EventTransaction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EventTransaction() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EventTransaction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EventTransaction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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: { transactionCase_ = 1; transaction_ = input.readBytes(); break; } case 18: { com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder subBuilder = null; if (transactionCase_ == 2) { subBuilder = ((com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_).toBuilder(); } transaction_ = input.readMessage(com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_); transaction_ = subBuilder.buildPartial(); } transactionCase_ = 2; 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.platform.event.legacy.EventTransactionOuterClass.internal_static_com_hedera_hapi_platform_event_EventTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.platform.event.legacy.EventTransactionOuterClass.internal_static_com_hedera_hapi_platform_event_EventTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.platform.event.legacy.EventTransaction.class, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder.class); } private int transactionCase_ = 0; private java.lang.Object transaction_; public enum TransactionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { APPLICATION_TRANSACTION(1), STATE_SIGNATURE_TRANSACTION(2), TRANSACTION_NOT_SET(0); private final int value; private TransactionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TransactionCase valueOf(int value) { return forNumber(value); } public static TransactionCase forNumber(int value) { switch (value) { case 1: return APPLICATION_TRANSACTION; case 2: return STATE_SIGNATURE_TRANSACTION; case 0: return TRANSACTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TransactionCase getTransactionCase() { return TransactionCase.forNumber( transactionCase_); } public static final int APPLICATION_TRANSACTION_FIELD_NUMBER = 1; /** *
   **
   * An application transaction.
   * <p>
   * The contents of this transaction SHALL be defined by the application
   * subsystem that created the event.<br/>
   * The contents MUST be a serialized protobuf message.
   * 
* * bytes application_transaction = 1; * @return Whether the applicationTransaction field is set. */ @java.lang.Override public boolean hasApplicationTransaction() { return transactionCase_ == 1; } /** *
   **
   * An application transaction.
   * <p>
   * The contents of this transaction SHALL be defined by the application
   * subsystem that created the event.<br/>
   * The contents MUST be a serialized protobuf message.
   * 
* * bytes application_transaction = 1; * @return The applicationTransaction. */ @java.lang.Override public com.google.protobuf.ByteString getApplicationTransaction() { if (transactionCase_ == 1) { return (com.google.protobuf.ByteString) transaction_; } return com.google.protobuf.ByteString.EMPTY; } public static final int STATE_SIGNATURE_TRANSACTION_FIELD_NUMBER = 2; /** *
   **
   * A state signature.
   * <p>
   * This transaction SHALL be a valid state signature for a state snapshot.
   * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; * @return Whether the stateSignatureTransaction field is set. */ @java.lang.Override public boolean hasStateSignatureTransaction() { return transactionCase_ == 2; } /** *
   **
   * A state signature.
   * <p>
   * This transaction SHALL be a valid state signature for a state snapshot.
   * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; * @return The stateSignatureTransaction. */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.StateSignatureTransaction getStateSignatureTransaction() { if (transactionCase_ == 2) { return (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_; } return com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } /** *
   **
   * A state signature.
   * <p>
   * This transaction SHALL be a valid state signature for a state snapshot.
   * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.StateSignatureTransactionOrBuilder getStateSignatureTransactionOrBuilder() { if (transactionCase_ == 2) { return (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_; } return com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (transactionCase_ == 1) { output.writeBytes( 1, (com.google.protobuf.ByteString) transaction_); } if (transactionCase_ == 2) { output.writeMessage(2, (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (transactionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 1, (com.google.protobuf.ByteString) transaction_); } if (transactionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_); } 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.EventTransaction)) { return super.equals(obj); } com.hedera.hapi.platform.event.legacy.EventTransaction other = (com.hedera.hapi.platform.event.legacy.EventTransaction) obj; if (!getTransactionCase().equals(other.getTransactionCase())) return false; switch (transactionCase_) { case 1: if (!getApplicationTransaction() .equals(other.getApplicationTransaction())) return false; break; case 2: if (!getStateSignatureTransaction() .equals(other.getStateSignatureTransaction())) return false; break; case 0: default: } 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(); switch (transactionCase_) { case 1: hash = (37 * hash) + APPLICATION_TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getApplicationTransaction().hashCode(); break; case 2: hash = (37 * hash) + STATE_SIGNATURE_TRANSACTION_FIELD_NUMBER; hash = (53 * hash) + getStateSignatureTransaction().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.hapi.platform.event.legacy.EventTransaction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.EventTransaction 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.EventTransaction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.EventTransaction 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.EventTransaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.hapi.platform.event.legacy.EventTransaction 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.EventTransaction 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.EventTransaction 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.EventTransaction 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.EventTransaction 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.EventTransaction 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.EventTransaction 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.EventTransaction 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 Transaction gossiped between nodes as part of events.
   * Each node MUST extract this transaction and process according to the type
   * of transaction encoded.<br/>
   * Both the platform and the application built on that platform MAY define event
   * transactions.<br/>
   * The encoded data MUST be a serialized protobuf message.
   * 
* * Protobuf type {@code com.hedera.hapi.platform.event.EventTransaction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.hedera.hapi.platform.event.EventTransaction) com.hedera.hapi.platform.event.legacy.EventTransactionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.hapi.platform.event.legacy.EventTransactionOuterClass.internal_static_com_hedera_hapi_platform_event_EventTransaction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.hapi.platform.event.legacy.EventTransactionOuterClass.internal_static_com_hedera_hapi_platform_event_EventTransaction_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.hapi.platform.event.legacy.EventTransaction.class, com.hedera.hapi.platform.event.legacy.EventTransaction.Builder.class); } // Construct using com.hedera.hapi.platform.event.legacy.EventTransaction.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); transactionCase_ = 0; transaction_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.hapi.platform.event.legacy.EventTransactionOuterClass.internal_static_com_hedera_hapi_platform_event_EventTransaction_descriptor; } @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventTransaction getDefaultInstanceForType() { return com.hedera.hapi.platform.event.legacy.EventTransaction.getDefaultInstance(); } @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventTransaction build() { com.hedera.hapi.platform.event.legacy.EventTransaction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.hapi.platform.event.legacy.EventTransaction buildPartial() { com.hedera.hapi.platform.event.legacy.EventTransaction result = new com.hedera.hapi.platform.event.legacy.EventTransaction(this); if (transactionCase_ == 1) { result.transaction_ = transaction_; } if (transactionCase_ == 2) { if (stateSignatureTransactionBuilder_ == null) { result.transaction_ = transaction_; } else { result.transaction_ = stateSignatureTransactionBuilder_.build(); } } result.transactionCase_ = transactionCase_; 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.EventTransaction) { return mergeFrom((com.hedera.hapi.platform.event.legacy.EventTransaction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.hapi.platform.event.legacy.EventTransaction other) { if (other == com.hedera.hapi.platform.event.legacy.EventTransaction.getDefaultInstance()) return this; switch (other.getTransactionCase()) { case APPLICATION_TRANSACTION: { setApplicationTransaction(other.getApplicationTransaction()); break; } case STATE_SIGNATURE_TRANSACTION: { mergeStateSignatureTransaction(other.getStateSignatureTransaction()); break; } case TRANSACTION_NOT_SET: { break; } } 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.EventTransaction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.hapi.platform.event.legacy.EventTransaction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int transactionCase_ = 0; private java.lang.Object transaction_; public TransactionCase getTransactionCase() { return TransactionCase.forNumber( transactionCase_); } public Builder clearTransaction() { transactionCase_ = 0; transaction_ = null; onChanged(); return this; } /** *
     **
     * An application transaction.
     * <p>
     * The contents of this transaction SHALL be defined by the application
     * subsystem that created the event.<br/>
     * The contents MUST be a serialized protobuf message.
     * 
* * bytes application_transaction = 1; * @return Whether the applicationTransaction field is set. */ public boolean hasApplicationTransaction() { return transactionCase_ == 1; } /** *
     **
     * An application transaction.
     * <p>
     * The contents of this transaction SHALL be defined by the application
     * subsystem that created the event.<br/>
     * The contents MUST be a serialized protobuf message.
     * 
* * bytes application_transaction = 1; * @return The applicationTransaction. */ public com.google.protobuf.ByteString getApplicationTransaction() { if (transactionCase_ == 1) { return (com.google.protobuf.ByteString) transaction_; } return com.google.protobuf.ByteString.EMPTY; } /** *
     **
     * An application transaction.
     * <p>
     * The contents of this transaction SHALL be defined by the application
     * subsystem that created the event.<br/>
     * The contents MUST be a serialized protobuf message.
     * 
* * bytes application_transaction = 1; * @param value The applicationTransaction to set. * @return This builder for chaining. */ public Builder setApplicationTransaction(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } transactionCase_ = 1; transaction_ = value; onChanged(); return this; } /** *
     **
     * An application transaction.
     * <p>
     * The contents of this transaction SHALL be defined by the application
     * subsystem that created the event.<br/>
     * The contents MUST be a serialized protobuf message.
     * 
* * bytes application_transaction = 1; * @return This builder for chaining. */ public Builder clearApplicationTransaction() { if (transactionCase_ == 1) { transactionCase_ = 0; transaction_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.StateSignatureTransaction, com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder, com.hedera.hapi.platform.event.legacy.StateSignatureTransactionOrBuilder> stateSignatureTransactionBuilder_; /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; * @return Whether the stateSignatureTransaction field is set. */ @java.lang.Override public boolean hasStateSignatureTransaction() { return transactionCase_ == 2; } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; * @return The stateSignatureTransaction. */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.StateSignatureTransaction getStateSignatureTransaction() { if (stateSignatureTransactionBuilder_ == null) { if (transactionCase_ == 2) { return (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_; } return com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } else { if (transactionCase_ == 2) { return stateSignatureTransactionBuilder_.getMessage(); } return com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ public Builder setStateSignatureTransaction(com.hedera.hapi.platform.event.legacy.StateSignatureTransaction value) { if (stateSignatureTransactionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } transaction_ = value; onChanged(); } else { stateSignatureTransactionBuilder_.setMessage(value); } transactionCase_ = 2; return this; } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ public Builder setStateSignatureTransaction( com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder builderForValue) { if (stateSignatureTransactionBuilder_ == null) { transaction_ = builderForValue.build(); onChanged(); } else { stateSignatureTransactionBuilder_.setMessage(builderForValue.build()); } transactionCase_ = 2; return this; } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ public Builder mergeStateSignatureTransaction(com.hedera.hapi.platform.event.legacy.StateSignatureTransaction value) { if (stateSignatureTransactionBuilder_ == null) { if (transactionCase_ == 2 && transaction_ != com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance()) { transaction_ = com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.newBuilder((com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_) .mergeFrom(value).buildPartial(); } else { transaction_ = value; } onChanged(); } else { if (transactionCase_ == 2) { stateSignatureTransactionBuilder_.mergeFrom(value); } stateSignatureTransactionBuilder_.setMessage(value); } transactionCase_ = 2; return this; } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ public Builder clearStateSignatureTransaction() { if (stateSignatureTransactionBuilder_ == null) { if (transactionCase_ == 2) { transactionCase_ = 0; transaction_ = null; onChanged(); } } else { if (transactionCase_ == 2) { transactionCase_ = 0; transaction_ = null; } stateSignatureTransactionBuilder_.clear(); } return this; } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ public com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder getStateSignatureTransactionBuilder() { return getStateSignatureTransactionFieldBuilder().getBuilder(); } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ @java.lang.Override public com.hedera.hapi.platform.event.legacy.StateSignatureTransactionOrBuilder getStateSignatureTransactionOrBuilder() { if ((transactionCase_ == 2) && (stateSignatureTransactionBuilder_ != null)) { return stateSignatureTransactionBuilder_.getMessageOrBuilder(); } else { if (transactionCase_ == 2) { return (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_; } return com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } } /** *
     **
     * A state signature.
     * <p>
     * This transaction SHALL be a valid state signature for a state snapshot.
     * 
* * .com.hedera.hapi.platform.event.StateSignatureTransaction state_signature_transaction = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.StateSignatureTransaction, com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder, com.hedera.hapi.platform.event.legacy.StateSignatureTransactionOrBuilder> getStateSignatureTransactionFieldBuilder() { if (stateSignatureTransactionBuilder_ == null) { if (!(transactionCase_ == 2)) { transaction_ = com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.getDefaultInstance(); } stateSignatureTransactionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.hapi.platform.event.legacy.StateSignatureTransaction, com.hedera.hapi.platform.event.legacy.StateSignatureTransaction.Builder, com.hedera.hapi.platform.event.legacy.StateSignatureTransactionOrBuilder>( (com.hedera.hapi.platform.event.legacy.StateSignatureTransaction) transaction_, getParentForChildren(), isClean()); transaction_ = null; } transactionCase_ = 2; onChanged();; return stateSignatureTransactionBuilder_; } @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.EventTransaction) } // @@protoc_insertion_point(class_scope:com.hedera.hapi.platform.event.EventTransaction) private static final com.hedera.hapi.platform.event.legacy.EventTransaction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.hapi.platform.event.legacy.EventTransaction(); } public static com.hedera.hapi.platform.event.legacy.EventTransaction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EventTransaction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new EventTransaction(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.EventTransaction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy