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

com.hedera.services.stream.proto.TransactionSidecarRecord Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: sidecar_file.proto

package com.hedera.services.stream.proto;

/**
 * 
 **
 * TransactionSidecarRecord is used to create sidecar records complementing
 * TransactionRecord and storing additional information about a transaction's execution.
 * 
* * Protobuf type {@code proto.TransactionSidecarRecord} */ public final class TransactionSidecarRecord extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.TransactionSidecarRecord) TransactionSidecarRecordOrBuilder { private static final long serialVersionUID = 0L; // Use TransactionSidecarRecord.newBuilder() to construct. private TransactionSidecarRecord(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransactionSidecarRecord() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TransactionSidecarRecord(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TransactionSidecarRecord( 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: { com.hederahashgraph.api.proto.java.Timestamp.Builder subBuilder = null; if (consensusTimestamp_ != null) { subBuilder = consensusTimestamp_.toBuilder(); } consensusTimestamp_ = input.readMessage(com.hederahashgraph.api.proto.java.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(consensusTimestamp_); consensusTimestamp_ = subBuilder.buildPartial(); } break; } case 16: { migration_ = input.readBool(); break; } case 26: { com.hedera.services.stream.proto.ContractStateChanges.Builder subBuilder = null; if (sidecarRecordsCase_ == 3) { subBuilder = ((com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_).toBuilder(); } sidecarRecords_ = input.readMessage(com.hedera.services.stream.proto.ContractStateChanges.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_); sidecarRecords_ = subBuilder.buildPartial(); } sidecarRecordsCase_ = 3; break; } case 34: { com.hedera.services.stream.proto.ContractActions.Builder subBuilder = null; if (sidecarRecordsCase_ == 4) { subBuilder = ((com.hedera.services.stream.proto.ContractActions) sidecarRecords_).toBuilder(); } sidecarRecords_ = input.readMessage(com.hedera.services.stream.proto.ContractActions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hedera.services.stream.proto.ContractActions) sidecarRecords_); sidecarRecords_ = subBuilder.buildPartial(); } sidecarRecordsCase_ = 4; break; } case 42: { com.hedera.services.stream.proto.ContractBytecode.Builder subBuilder = null; if (sidecarRecordsCase_ == 5) { subBuilder = ((com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_).toBuilder(); } sidecarRecords_ = input.readMessage(com.hedera.services.stream.proto.ContractBytecode.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_); sidecarRecords_ = subBuilder.buildPartial(); } sidecarRecordsCase_ = 5; 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.services.stream.proto.SidecarFileOuterClass.internal_static_proto_TransactionSidecarRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_TransactionSidecarRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.TransactionSidecarRecord.class, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder.class); } private int sidecarRecordsCase_ = 0; private java.lang.Object sidecarRecords_; public enum SidecarRecordsCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STATE_CHANGES(3), ACTIONS(4), BYTECODE(5), SIDECARRECORDS_NOT_SET(0); private final int value; private SidecarRecordsCase(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 SidecarRecordsCase valueOf(int value) { return forNumber(value); } public static SidecarRecordsCase forNumber(int value) { switch (value) { case 3: return STATE_CHANGES; case 4: return ACTIONS; case 5: return BYTECODE; case 0: return SIDECARRECORDS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public SidecarRecordsCase getSidecarRecordsCase() { return SidecarRecordsCase.forNumber( sidecarRecordsCase_); } public static final int CONSENSUS_TIMESTAMP_FIELD_NUMBER = 1; private com.hederahashgraph.api.proto.java.Timestamp consensusTimestamp_; /** *
   **
   * Consensus timestamp will be the same as the consensus timestamp of the
   * transaction the side car is related to. This offers a convenient
   * way to match record to sidecar.
   * 
* * .proto.Timestamp consensus_timestamp = 1; * @return Whether the consensusTimestamp field is set. */ @java.lang.Override public boolean hasConsensusTimestamp() { return consensusTimestamp_ != null; } /** *
   **
   * Consensus timestamp will be the same as the consensus timestamp of the
   * transaction the side car is related to. This offers a convenient
   * way to match record to sidecar.
   * 
* * .proto.Timestamp consensus_timestamp = 1; * @return The consensusTimestamp. */ @java.lang.Override public com.hederahashgraph.api.proto.java.Timestamp getConsensusTimestamp() { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } /** *
   **
   * Consensus timestamp will be the same as the consensus timestamp of the
   * transaction the side car is related to. This offers a convenient
   * way to match record to sidecar.
   * 
* * .proto.Timestamp consensus_timestamp = 1; */ @java.lang.Override public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsensusTimestampOrBuilder() { return getConsensusTimestamp(); } public static final int MIGRATION_FIELD_NUMBER = 2; private boolean migration_; /** *
   **
   * Whether sidecar is from migration.
   * 
* * bool migration = 2; * @return The migration. */ @java.lang.Override public boolean getMigration() { return migration_; } public static final int STATE_CHANGES_FIELD_NUMBER = 3; /** * .proto.ContractStateChanges state_changes = 3; * @return Whether the stateChanges field is set. */ @java.lang.Override public boolean hasStateChanges() { return sidecarRecordsCase_ == 3; } /** * .proto.ContractStateChanges state_changes = 3; * @return The stateChanges. */ @java.lang.Override public com.hedera.services.stream.proto.ContractStateChanges getStateChanges() { if (sidecarRecordsCase_ == 3) { return (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_; } return com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } /** * .proto.ContractStateChanges state_changes = 3; */ @java.lang.Override public com.hedera.services.stream.proto.ContractStateChangesOrBuilder getStateChangesOrBuilder() { if (sidecarRecordsCase_ == 3) { return (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_; } return com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } public static final int ACTIONS_FIELD_NUMBER = 4; /** * .proto.ContractActions actions = 4; * @return Whether the actions field is set. */ @java.lang.Override public boolean hasActions() { return sidecarRecordsCase_ == 4; } /** * .proto.ContractActions actions = 4; * @return The actions. */ @java.lang.Override public com.hedera.services.stream.proto.ContractActions getActions() { if (sidecarRecordsCase_ == 4) { return (com.hedera.services.stream.proto.ContractActions) sidecarRecords_; } return com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } /** * .proto.ContractActions actions = 4; */ @java.lang.Override public com.hedera.services.stream.proto.ContractActionsOrBuilder getActionsOrBuilder() { if (sidecarRecordsCase_ == 4) { return (com.hedera.services.stream.proto.ContractActions) sidecarRecords_; } return com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } public static final int BYTECODE_FIELD_NUMBER = 5; /** * .proto.ContractBytecode bytecode = 5; * @return Whether the bytecode field is set. */ @java.lang.Override public boolean hasBytecode() { return sidecarRecordsCase_ == 5; } /** * .proto.ContractBytecode bytecode = 5; * @return The bytecode. */ @java.lang.Override public com.hedera.services.stream.proto.ContractBytecode getBytecode() { if (sidecarRecordsCase_ == 5) { return (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_; } return com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance(); } /** * .proto.ContractBytecode bytecode = 5; */ @java.lang.Override public com.hedera.services.stream.proto.ContractBytecodeOrBuilder getBytecodeOrBuilder() { if (sidecarRecordsCase_ == 5) { return (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_; } return com.hedera.services.stream.proto.ContractBytecode.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 (consensusTimestamp_ != null) { output.writeMessage(1, getConsensusTimestamp()); } if (migration_ != false) { output.writeBool(2, migration_); } if (sidecarRecordsCase_ == 3) { output.writeMessage(3, (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_); } if (sidecarRecordsCase_ == 4) { output.writeMessage(4, (com.hedera.services.stream.proto.ContractActions) sidecarRecords_); } if (sidecarRecordsCase_ == 5) { output.writeMessage(5, (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (consensusTimestamp_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConsensusTimestamp()); } if (migration_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, migration_); } if (sidecarRecordsCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_); } if (sidecarRecordsCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (com.hedera.services.stream.proto.ContractActions) sidecarRecords_); } if (sidecarRecordsCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_); } 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.services.stream.proto.TransactionSidecarRecord)) { return super.equals(obj); } com.hedera.services.stream.proto.TransactionSidecarRecord other = (com.hedera.services.stream.proto.TransactionSidecarRecord) obj; if (hasConsensusTimestamp() != other.hasConsensusTimestamp()) return false; if (hasConsensusTimestamp()) { if (!getConsensusTimestamp() .equals(other.getConsensusTimestamp())) return false; } if (getMigration() != other.getMigration()) return false; if (!getSidecarRecordsCase().equals(other.getSidecarRecordsCase())) return false; switch (sidecarRecordsCase_) { case 3: if (!getStateChanges() .equals(other.getStateChanges())) return false; break; case 4: if (!getActions() .equals(other.getActions())) return false; break; case 5: if (!getBytecode() .equals(other.getBytecode())) 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(); if (hasConsensusTimestamp()) { hash = (37 * hash) + CONSENSUS_TIMESTAMP_FIELD_NUMBER; hash = (53 * hash) + getConsensusTimestamp().hashCode(); } hash = (37 * hash) + MIGRATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getMigration()); switch (sidecarRecordsCase_) { case 3: hash = (37 * hash) + STATE_CHANGES_FIELD_NUMBER; hash = (53 * hash) + getStateChanges().hashCode(); break; case 4: hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActions().hashCode(); break; case 5: hash = (37 * hash) + BYTECODE_FIELD_NUMBER; hash = (53 * hash) + getBytecode().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.TransactionSidecarRecord parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.TransactionSidecarRecord parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.TransactionSidecarRecord parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.TransactionSidecarRecord 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.services.stream.proto.TransactionSidecarRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.TransactionSidecarRecord parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.TransactionSidecarRecord parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.TransactionSidecarRecord 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.services.stream.proto.TransactionSidecarRecord parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.TransactionSidecarRecord 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.services.stream.proto.TransactionSidecarRecord parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.TransactionSidecarRecord 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.services.stream.proto.TransactionSidecarRecord 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; } /** *
   **
   * TransactionSidecarRecord is used to create sidecar records complementing
   * TransactionRecord and storing additional information about a transaction's execution.
   * 
* * Protobuf type {@code proto.TransactionSidecarRecord} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.TransactionSidecarRecord) com.hedera.services.stream.proto.TransactionSidecarRecordOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_TransactionSidecarRecord_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_TransactionSidecarRecord_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.TransactionSidecarRecord.class, com.hedera.services.stream.proto.TransactionSidecarRecord.Builder.class); } // Construct using com.hedera.services.stream.proto.TransactionSidecarRecord.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(); if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = null; } else { consensusTimestamp_ = null; consensusTimestampBuilder_ = null; } migration_ = false; sidecarRecordsCase_ = 0; sidecarRecords_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.SidecarFileOuterClass.internal_static_proto_TransactionSidecarRecord_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.TransactionSidecarRecord getDefaultInstanceForType() { return com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.TransactionSidecarRecord build() { com.hedera.services.stream.proto.TransactionSidecarRecord result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.TransactionSidecarRecord buildPartial() { com.hedera.services.stream.proto.TransactionSidecarRecord result = new com.hedera.services.stream.proto.TransactionSidecarRecord(this); if (consensusTimestampBuilder_ == null) { result.consensusTimestamp_ = consensusTimestamp_; } else { result.consensusTimestamp_ = consensusTimestampBuilder_.build(); } result.migration_ = migration_; if (sidecarRecordsCase_ == 3) { if (stateChangesBuilder_ == null) { result.sidecarRecords_ = sidecarRecords_; } else { result.sidecarRecords_ = stateChangesBuilder_.build(); } } if (sidecarRecordsCase_ == 4) { if (actionsBuilder_ == null) { result.sidecarRecords_ = sidecarRecords_; } else { result.sidecarRecords_ = actionsBuilder_.build(); } } if (sidecarRecordsCase_ == 5) { if (bytecodeBuilder_ == null) { result.sidecarRecords_ = sidecarRecords_; } else { result.sidecarRecords_ = bytecodeBuilder_.build(); } } result.sidecarRecordsCase_ = sidecarRecordsCase_; 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.services.stream.proto.TransactionSidecarRecord) { return mergeFrom((com.hedera.services.stream.proto.TransactionSidecarRecord)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.TransactionSidecarRecord other) { if (other == com.hedera.services.stream.proto.TransactionSidecarRecord.getDefaultInstance()) return this; if (other.hasConsensusTimestamp()) { mergeConsensusTimestamp(other.getConsensusTimestamp()); } if (other.getMigration() != false) { setMigration(other.getMigration()); } switch (other.getSidecarRecordsCase()) { case STATE_CHANGES: { mergeStateChanges(other.getStateChanges()); break; } case ACTIONS: { mergeActions(other.getActions()); break; } case BYTECODE: { mergeBytecode(other.getBytecode()); break; } case SIDECARRECORDS_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.services.stream.proto.TransactionSidecarRecord parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.TransactionSidecarRecord) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sidecarRecordsCase_ = 0; private java.lang.Object sidecarRecords_; public SidecarRecordsCase getSidecarRecordsCase() { return SidecarRecordsCase.forNumber( sidecarRecordsCase_); } public Builder clearSidecarRecords() { sidecarRecordsCase_ = 0; sidecarRecords_ = null; onChanged(); return this; } private com.hederahashgraph.api.proto.java.Timestamp consensusTimestamp_; private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> consensusTimestampBuilder_; /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; * @return Whether the consensusTimestamp field is set. */ public boolean hasConsensusTimestamp() { return consensusTimestampBuilder_ != null || consensusTimestamp_ != null; } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; * @return The consensusTimestamp. */ public com.hederahashgraph.api.proto.java.Timestamp getConsensusTimestamp() { if (consensusTimestampBuilder_ == null) { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } else { return consensusTimestampBuilder_.getMessage(); } } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public Builder setConsensusTimestamp(com.hederahashgraph.api.proto.java.Timestamp value) { if (consensusTimestampBuilder_ == null) { if (value == null) { throw new NullPointerException(); } consensusTimestamp_ = value; onChanged(); } else { consensusTimestampBuilder_.setMessage(value); } return this; } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public Builder setConsensusTimestamp( com.hederahashgraph.api.proto.java.Timestamp.Builder builderForValue) { if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = builderForValue.build(); onChanged(); } else { consensusTimestampBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public Builder mergeConsensusTimestamp(com.hederahashgraph.api.proto.java.Timestamp value) { if (consensusTimestampBuilder_ == null) { if (consensusTimestamp_ != null) { consensusTimestamp_ = com.hederahashgraph.api.proto.java.Timestamp.newBuilder(consensusTimestamp_).mergeFrom(value).buildPartial(); } else { consensusTimestamp_ = value; } onChanged(); } else { consensusTimestampBuilder_.mergeFrom(value); } return this; } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public Builder clearConsensusTimestamp() { if (consensusTimestampBuilder_ == null) { consensusTimestamp_ = null; onChanged(); } else { consensusTimestamp_ = null; consensusTimestampBuilder_ = null; } return this; } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public com.hederahashgraph.api.proto.java.Timestamp.Builder getConsensusTimestampBuilder() { onChanged(); return getConsensusTimestampFieldBuilder().getBuilder(); } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ public com.hederahashgraph.api.proto.java.TimestampOrBuilder getConsensusTimestampOrBuilder() { if (consensusTimestampBuilder_ != null) { return consensusTimestampBuilder_.getMessageOrBuilder(); } else { return consensusTimestamp_ == null ? com.hederahashgraph.api.proto.java.Timestamp.getDefaultInstance() : consensusTimestamp_; } } /** *
     **
     * Consensus timestamp will be the same as the consensus timestamp of the
     * transaction the side car is related to. This offers a convenient
     * way to match record to sidecar.
     * 
* * .proto.Timestamp consensus_timestamp = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder> getConsensusTimestampFieldBuilder() { if (consensusTimestampBuilder_ == null) { consensusTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hederahashgraph.api.proto.java.Timestamp, com.hederahashgraph.api.proto.java.Timestamp.Builder, com.hederahashgraph.api.proto.java.TimestampOrBuilder>( getConsensusTimestamp(), getParentForChildren(), isClean()); consensusTimestamp_ = null; } return consensusTimestampBuilder_; } private boolean migration_ ; /** *
     **
     * Whether sidecar is from migration.
     * 
* * bool migration = 2; * @return The migration. */ @java.lang.Override public boolean getMigration() { return migration_; } /** *
     **
     * Whether sidecar is from migration.
     * 
* * bool migration = 2; * @param value The migration to set. * @return This builder for chaining. */ public Builder setMigration(boolean value) { migration_ = value; onChanged(); return this; } /** *
     **
     * Whether sidecar is from migration.
     * 
* * bool migration = 2; * @return This builder for chaining. */ public Builder clearMigration() { migration_ = false; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractStateChanges, com.hedera.services.stream.proto.ContractStateChanges.Builder, com.hedera.services.stream.proto.ContractStateChangesOrBuilder> stateChangesBuilder_; /** * .proto.ContractStateChanges state_changes = 3; * @return Whether the stateChanges field is set. */ @java.lang.Override public boolean hasStateChanges() { return sidecarRecordsCase_ == 3; } /** * .proto.ContractStateChanges state_changes = 3; * @return The stateChanges. */ @java.lang.Override public com.hedera.services.stream.proto.ContractStateChanges getStateChanges() { if (stateChangesBuilder_ == null) { if (sidecarRecordsCase_ == 3) { return (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_; } return com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } else { if (sidecarRecordsCase_ == 3) { return stateChangesBuilder_.getMessage(); } return com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } } /** * .proto.ContractStateChanges state_changes = 3; */ public Builder setStateChanges(com.hedera.services.stream.proto.ContractStateChanges value) { if (stateChangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sidecarRecords_ = value; onChanged(); } else { stateChangesBuilder_.setMessage(value); } sidecarRecordsCase_ = 3; return this; } /** * .proto.ContractStateChanges state_changes = 3; */ public Builder setStateChanges( com.hedera.services.stream.proto.ContractStateChanges.Builder builderForValue) { if (stateChangesBuilder_ == null) { sidecarRecords_ = builderForValue.build(); onChanged(); } else { stateChangesBuilder_.setMessage(builderForValue.build()); } sidecarRecordsCase_ = 3; return this; } /** * .proto.ContractStateChanges state_changes = 3; */ public Builder mergeStateChanges(com.hedera.services.stream.proto.ContractStateChanges value) { if (stateChangesBuilder_ == null) { if (sidecarRecordsCase_ == 3 && sidecarRecords_ != com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance()) { sidecarRecords_ = com.hedera.services.stream.proto.ContractStateChanges.newBuilder((com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_) .mergeFrom(value).buildPartial(); } else { sidecarRecords_ = value; } onChanged(); } else { if (sidecarRecordsCase_ == 3) { stateChangesBuilder_.mergeFrom(value); } stateChangesBuilder_.setMessage(value); } sidecarRecordsCase_ = 3; return this; } /** * .proto.ContractStateChanges state_changes = 3; */ public Builder clearStateChanges() { if (stateChangesBuilder_ == null) { if (sidecarRecordsCase_ == 3) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; onChanged(); } } else { if (sidecarRecordsCase_ == 3) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; } stateChangesBuilder_.clear(); } return this; } /** * .proto.ContractStateChanges state_changes = 3; */ public com.hedera.services.stream.proto.ContractStateChanges.Builder getStateChangesBuilder() { return getStateChangesFieldBuilder().getBuilder(); } /** * .proto.ContractStateChanges state_changes = 3; */ @java.lang.Override public com.hedera.services.stream.proto.ContractStateChangesOrBuilder getStateChangesOrBuilder() { if ((sidecarRecordsCase_ == 3) && (stateChangesBuilder_ != null)) { return stateChangesBuilder_.getMessageOrBuilder(); } else { if (sidecarRecordsCase_ == 3) { return (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_; } return com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } } /** * .proto.ContractStateChanges state_changes = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractStateChanges, com.hedera.services.stream.proto.ContractStateChanges.Builder, com.hedera.services.stream.proto.ContractStateChangesOrBuilder> getStateChangesFieldBuilder() { if (stateChangesBuilder_ == null) { if (!(sidecarRecordsCase_ == 3)) { sidecarRecords_ = com.hedera.services.stream.proto.ContractStateChanges.getDefaultInstance(); } stateChangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractStateChanges, com.hedera.services.stream.proto.ContractStateChanges.Builder, com.hedera.services.stream.proto.ContractStateChangesOrBuilder>( (com.hedera.services.stream.proto.ContractStateChanges) sidecarRecords_, getParentForChildren(), isClean()); sidecarRecords_ = null; } sidecarRecordsCase_ = 3; onChanged();; return stateChangesBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractActions, com.hedera.services.stream.proto.ContractActions.Builder, com.hedera.services.stream.proto.ContractActionsOrBuilder> actionsBuilder_; /** * .proto.ContractActions actions = 4; * @return Whether the actions field is set. */ @java.lang.Override public boolean hasActions() { return sidecarRecordsCase_ == 4; } /** * .proto.ContractActions actions = 4; * @return The actions. */ @java.lang.Override public com.hedera.services.stream.proto.ContractActions getActions() { if (actionsBuilder_ == null) { if (sidecarRecordsCase_ == 4) { return (com.hedera.services.stream.proto.ContractActions) sidecarRecords_; } return com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } else { if (sidecarRecordsCase_ == 4) { return actionsBuilder_.getMessage(); } return com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } } /** * .proto.ContractActions actions = 4; */ public Builder setActions(com.hedera.services.stream.proto.ContractActions value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sidecarRecords_ = value; onChanged(); } else { actionsBuilder_.setMessage(value); } sidecarRecordsCase_ = 4; return this; } /** * .proto.ContractActions actions = 4; */ public Builder setActions( com.hedera.services.stream.proto.ContractActions.Builder builderForValue) { if (actionsBuilder_ == null) { sidecarRecords_ = builderForValue.build(); onChanged(); } else { actionsBuilder_.setMessage(builderForValue.build()); } sidecarRecordsCase_ = 4; return this; } /** * .proto.ContractActions actions = 4; */ public Builder mergeActions(com.hedera.services.stream.proto.ContractActions value) { if (actionsBuilder_ == null) { if (sidecarRecordsCase_ == 4 && sidecarRecords_ != com.hedera.services.stream.proto.ContractActions.getDefaultInstance()) { sidecarRecords_ = com.hedera.services.stream.proto.ContractActions.newBuilder((com.hedera.services.stream.proto.ContractActions) sidecarRecords_) .mergeFrom(value).buildPartial(); } else { sidecarRecords_ = value; } onChanged(); } else { if (sidecarRecordsCase_ == 4) { actionsBuilder_.mergeFrom(value); } actionsBuilder_.setMessage(value); } sidecarRecordsCase_ = 4; return this; } /** * .proto.ContractActions actions = 4; */ public Builder clearActions() { if (actionsBuilder_ == null) { if (sidecarRecordsCase_ == 4) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; onChanged(); } } else { if (sidecarRecordsCase_ == 4) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; } actionsBuilder_.clear(); } return this; } /** * .proto.ContractActions actions = 4; */ public com.hedera.services.stream.proto.ContractActions.Builder getActionsBuilder() { return getActionsFieldBuilder().getBuilder(); } /** * .proto.ContractActions actions = 4; */ @java.lang.Override public com.hedera.services.stream.proto.ContractActionsOrBuilder getActionsOrBuilder() { if ((sidecarRecordsCase_ == 4) && (actionsBuilder_ != null)) { return actionsBuilder_.getMessageOrBuilder(); } else { if (sidecarRecordsCase_ == 4) { return (com.hedera.services.stream.proto.ContractActions) sidecarRecords_; } return com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } } /** * .proto.ContractActions actions = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractActions, com.hedera.services.stream.proto.ContractActions.Builder, com.hedera.services.stream.proto.ContractActionsOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { if (!(sidecarRecordsCase_ == 4)) { sidecarRecords_ = com.hedera.services.stream.proto.ContractActions.getDefaultInstance(); } actionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractActions, com.hedera.services.stream.proto.ContractActions.Builder, com.hedera.services.stream.proto.ContractActionsOrBuilder>( (com.hedera.services.stream.proto.ContractActions) sidecarRecords_, getParentForChildren(), isClean()); sidecarRecords_ = null; } sidecarRecordsCase_ = 4; onChanged();; return actionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractBytecode, com.hedera.services.stream.proto.ContractBytecode.Builder, com.hedera.services.stream.proto.ContractBytecodeOrBuilder> bytecodeBuilder_; /** * .proto.ContractBytecode bytecode = 5; * @return Whether the bytecode field is set. */ @java.lang.Override public boolean hasBytecode() { return sidecarRecordsCase_ == 5; } /** * .proto.ContractBytecode bytecode = 5; * @return The bytecode. */ @java.lang.Override public com.hedera.services.stream.proto.ContractBytecode getBytecode() { if (bytecodeBuilder_ == null) { if (sidecarRecordsCase_ == 5) { return (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_; } return com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance(); } else { if (sidecarRecordsCase_ == 5) { return bytecodeBuilder_.getMessage(); } return com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance(); } } /** * .proto.ContractBytecode bytecode = 5; */ public Builder setBytecode(com.hedera.services.stream.proto.ContractBytecode value) { if (bytecodeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } sidecarRecords_ = value; onChanged(); } else { bytecodeBuilder_.setMessage(value); } sidecarRecordsCase_ = 5; return this; } /** * .proto.ContractBytecode bytecode = 5; */ public Builder setBytecode( com.hedera.services.stream.proto.ContractBytecode.Builder builderForValue) { if (bytecodeBuilder_ == null) { sidecarRecords_ = builderForValue.build(); onChanged(); } else { bytecodeBuilder_.setMessage(builderForValue.build()); } sidecarRecordsCase_ = 5; return this; } /** * .proto.ContractBytecode bytecode = 5; */ public Builder mergeBytecode(com.hedera.services.stream.proto.ContractBytecode value) { if (bytecodeBuilder_ == null) { if (sidecarRecordsCase_ == 5 && sidecarRecords_ != com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance()) { sidecarRecords_ = com.hedera.services.stream.proto.ContractBytecode.newBuilder((com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_) .mergeFrom(value).buildPartial(); } else { sidecarRecords_ = value; } onChanged(); } else { if (sidecarRecordsCase_ == 5) { bytecodeBuilder_.mergeFrom(value); } bytecodeBuilder_.setMessage(value); } sidecarRecordsCase_ = 5; return this; } /** * .proto.ContractBytecode bytecode = 5; */ public Builder clearBytecode() { if (bytecodeBuilder_ == null) { if (sidecarRecordsCase_ == 5) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; onChanged(); } } else { if (sidecarRecordsCase_ == 5) { sidecarRecordsCase_ = 0; sidecarRecords_ = null; } bytecodeBuilder_.clear(); } return this; } /** * .proto.ContractBytecode bytecode = 5; */ public com.hedera.services.stream.proto.ContractBytecode.Builder getBytecodeBuilder() { return getBytecodeFieldBuilder().getBuilder(); } /** * .proto.ContractBytecode bytecode = 5; */ @java.lang.Override public com.hedera.services.stream.proto.ContractBytecodeOrBuilder getBytecodeOrBuilder() { if ((sidecarRecordsCase_ == 5) && (bytecodeBuilder_ != null)) { return bytecodeBuilder_.getMessageOrBuilder(); } else { if (sidecarRecordsCase_ == 5) { return (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_; } return com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance(); } } /** * .proto.ContractBytecode bytecode = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractBytecode, com.hedera.services.stream.proto.ContractBytecode.Builder, com.hedera.services.stream.proto.ContractBytecodeOrBuilder> getBytecodeFieldBuilder() { if (bytecodeBuilder_ == null) { if (!(sidecarRecordsCase_ == 5)) { sidecarRecords_ = com.hedera.services.stream.proto.ContractBytecode.getDefaultInstance(); } bytecodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.ContractBytecode, com.hedera.services.stream.proto.ContractBytecode.Builder, com.hedera.services.stream.proto.ContractBytecodeOrBuilder>( (com.hedera.services.stream.proto.ContractBytecode) sidecarRecords_, getParentForChildren(), isClean()); sidecarRecords_ = null; } sidecarRecordsCase_ = 5; onChanged();; return bytecodeBuilder_; } @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:proto.TransactionSidecarRecord) } // @@protoc_insertion_point(class_scope:proto.TransactionSidecarRecord) private static final com.hedera.services.stream.proto.TransactionSidecarRecord DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.TransactionSidecarRecord(); } public static com.hedera.services.stream.proto.TransactionSidecarRecord getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransactionSidecarRecord parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TransactionSidecarRecord(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.services.stream.proto.TransactionSidecarRecord getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy