Class Envelopes.Envelope

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.provenance.scope.contract.proto.Envelopes.Envelope
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Envelopes.EnvelopeOrBuilder, Serializable
Enclosing class:
Envelopes

public static final class Envelopes.Envelope extends com.google.protobuf.GeneratedMessageV3 implements Envelopes.EnvelopeOrBuilder
Protobuf type io.provenance.scope.contract.Envelope
See Also:
  • Field Details

    • REF_FIELD_NUMBER

      public static final int REF_FIELD_NUMBER
      See Also:
    • CONTRACT_FIELD_NUMBER

      public static final int CONTRACT_FIELD_NUMBER
      See Also:
    • SIGNATURES_FIELD_NUMBER

      public static final int SIGNATURES_FIELD_NUMBER
      See Also:
    • EXECUTION_UUID_FIELD_NUMBER

      public static final int EXECUTION_UUID_FIELD_NUMBER
      See Also:
    • PREV_EXECUTION_UUID_FIELD_NUMBER

      public static final int PREV_EXECUTION_UUID_FIELD_NUMBER
      See Also:
    • EXPIRATION_TIME_FIELD_NUMBER

      public static final int EXPIRATION_TIME_FIELD_NUMBER
      See Also:
    • SCOPE_FIELD_NUMBER

      public static final int SCOPE_FIELD_NUMBER
      See Also:
    • STATUS_FIELD_NUMBER

      public static final int STATUS_FIELD_NUMBER
      See Also:
    • SCOPE_SPEC_UUID_FIELD_NUMBER

      public static final int SCOPE_SPEC_UUID_FIELD_NUMBER
      See Also:
    • NEW_SCOPE_FIELD_NUMBER

      public static final int NEW_SCOPE_FIELD_NUMBER
      See Also:
    • NEW_SESSION_FIELD_NUMBER

      public static final int NEW_SESSION_FIELD_NUMBER
      See Also:
    • MAIN_NET_FIELD_NUMBER

      public static final int MAIN_NET_FIELD_NUMBER
      See Also:
    • DATA_ACCESS_FIELD_NUMBER

      public static final int DATA_ACCESS_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasRef

      public boolean hasRef()
       ref contains
       1) the scope of the object being modified on blockchain.
       2) the uuid of the contract execution.
       3) the hash of the contract instance that has been executed.
       
      .io.provenance.scope.contract.ProvenanceReference ref = 1;
      Specified by:
      hasRef in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the ref field is set.
    • getRef

      public Commons.ProvenanceReference getRef()
       ref contains
       1) the scope of the object being modified on blockchain.
       2) the uuid of the contract execution.
       3) the hash of the contract instance that has been executed.
       
      .io.provenance.scope.contract.ProvenanceReference ref = 1;
      Specified by:
      getRef in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The ref.
    • getRefOrBuilder

      public Commons.ProvenanceReferenceOrBuilder getRefOrBuilder()
       ref contains
       1) the scope of the object being modified on blockchain.
       2) the uuid of the contract execution.
       3) the hash of the contract instance that has been executed.
       
      .io.provenance.scope.contract.ProvenanceReference ref = 1;
      Specified by:
      getRefOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • hasContract

      public boolean hasContract()
       The executed contract.
       
      .io.provenance.scope.contract.Contract contract = 2;
      Specified by:
      hasContract in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the contract field is set.
    • getContract

      public Contracts.Contract getContract()
       The executed contract.
       
      .io.provenance.scope.contract.Contract contract = 2;
      Specified by:
      getContract in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The contract.
    • getContractOrBuilder

      public Contracts.ContractOrBuilder getContractOrBuilder()
       The executed contract.
       
      .io.provenance.scope.contract.Contract contract = 2;
      Specified by:
      getContractOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • getSignaturesList

      public List<Common.Signature> getSignaturesList()
       Signatures for the contract.
       
      repeated .io.provenance.scope.Signature signatures = 3;
      Specified by:
      getSignaturesList in interface Envelopes.EnvelopeOrBuilder
    • getSignaturesOrBuilderList

      public List<? extends Common.SignatureOrBuilder> getSignaturesOrBuilderList()
       Signatures for the contract.
       
      repeated .io.provenance.scope.Signature signatures = 3;
      Specified by:
      getSignaturesOrBuilderList in interface Envelopes.EnvelopeOrBuilder
    • getSignaturesCount

      public int getSignaturesCount()
       Signatures for the contract.
       
      repeated .io.provenance.scope.Signature signatures = 3;
      Specified by:
      getSignaturesCount in interface Envelopes.EnvelopeOrBuilder
    • getSignatures

      public Common.Signature getSignatures(int index)
       Signatures for the contract.
       
      repeated .io.provenance.scope.Signature signatures = 3;
      Specified by:
      getSignatures in interface Envelopes.EnvelopeOrBuilder
    • getSignaturesOrBuilder

      public Common.SignatureOrBuilder getSignaturesOrBuilder(int index)
       Signatures for the contract.
       
      repeated .io.provenance.scope.Signature signatures = 3;
      Specified by:
      getSignaturesOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • hasExecutionUuid

      public boolean hasExecutionUuid()
       Unique identifier for determining contract/group execution instance
       
      .io.provenance.scope.UUID execution_uuid = 5;
      Specified by:
      hasExecutionUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the executionUuid field is set.
    • getExecutionUuid

      public Util.UUID getExecutionUuid()
       Unique identifier for determining contract/group execution instance
       
      .io.provenance.scope.UUID execution_uuid = 5;
      Specified by:
      getExecutionUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The executionUuid.
    • getExecutionUuidOrBuilder

      public Util.UUIDOrBuilder getExecutionUuidOrBuilder()
       Unique identifier for determining contract/group execution instance
       
      .io.provenance.scope.UUID execution_uuid = 5;
      Specified by:
      getExecutionUuidOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • hasPrevExecutionUuid

      public boolean hasPrevExecutionUuid()
       Unique identifier for determining previous execution instance
       
      .io.provenance.scope.UUID prev_execution_uuid = 6;
      Specified by:
      hasPrevExecutionUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the prevExecutionUuid field is set.
    • getPrevExecutionUuid

      public Util.UUID getPrevExecutionUuid()
       Unique identifier for determining previous execution instance
       
      .io.provenance.scope.UUID prev_execution_uuid = 6;
      Specified by:
      getPrevExecutionUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The prevExecutionUuid.
    • getPrevExecutionUuidOrBuilder

      public Util.UUIDOrBuilder getPrevExecutionUuidOrBuilder()
       Unique identifier for determining previous execution instance
       
      .io.provenance.scope.UUID prev_execution_uuid = 6;
      Specified by:
      getPrevExecutionUuidOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • hasExpirationTime

      public boolean hasExpirationTime()
       When a contract execution is considered stale and expired
       
      .google.protobuf.Timestamp expiration_time = 7;
      Specified by:
      hasExpirationTime in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the expirationTime field is set.
    • getExpirationTime

      public Timestamp getExpirationTime()
       When a contract execution is considered stale and expired
       
      .google.protobuf.Timestamp expiration_time = 7;
      Specified by:
      getExpirationTime in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The expirationTime.
    • getExpirationTimeOrBuilder

      public TimestampOrBuilder getExpirationTimeOrBuilder()
       When a contract execution is considered stale and expired
       
      .google.protobuf.Timestamp expiration_time = 7;
      Specified by:
      getExpirationTimeOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • hasScope

      public boolean hasScope()
       Scope snapshot for executing
       
      .google.protobuf.Any scope = 8;
      Specified by:
      hasScope in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the scope field is set.
    • getScope

      public Any getScope()
       Scope snapshot for executing
       
      .google.protobuf.Any scope = 8;
      Specified by:
      getScope in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The scope.
    • getScopeOrBuilder

      public AnyOrBuilder getScopeOrBuilder()
       Scope snapshot for executing
       
      .google.protobuf.Any scope = 8;
      Specified by:
      getScopeOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • getStatusValue

      public int getStatusValue()
      .io.provenance.scope.contract.Envelope.Status status = 9;
      Specified by:
      getStatusValue in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • getStatus

      public Envelopes.Envelope.Status getStatus()
      .io.provenance.scope.contract.Envelope.Status status = 9;
      Specified by:
      getStatus in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The status.
    • hasScopeSpecUuid

      public boolean hasScopeSpecUuid()
      .io.provenance.scope.UUID scope_spec_uuid = 10;
      Specified by:
      hasScopeSpecUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      Whether the scopeSpecUuid field is set.
    • getScopeSpecUuid

      public Util.UUID getScopeSpecUuid()
      .io.provenance.scope.UUID scope_spec_uuid = 10;
      Specified by:
      getScopeSpecUuid in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The scopeSpecUuid.
    • getScopeSpecUuidOrBuilder

      public Util.UUIDOrBuilder getScopeSpecUuidOrBuilder()
      .io.provenance.scope.UUID scope_spec_uuid = 10;
      Specified by:
      getScopeSpecUuidOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • getNewScope

      public boolean getNewScope()
      bool new_scope = 11;
      Specified by:
      getNewScope in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The newScope.
    • getNewSession

      public boolean getNewSession()
      bool new_session = 12;
      Specified by:
      getNewSession in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The newSession.
    • getMainNet

      public boolean getMainNet()
      bool main_net = 13;
      Specified by:
      getMainNet in interface Envelopes.EnvelopeOrBuilder
      Returns:
      The mainNet.
    • getDataAccessList

      public List<PK.PublicKey> getDataAccessList()
      repeated .io.provenance.scope.PublicKey data_access = 14;
      Specified by:
      getDataAccessList in interface Envelopes.EnvelopeOrBuilder
    • getDataAccessOrBuilderList

      public List<? extends PK.PublicKeyOrBuilder> getDataAccessOrBuilderList()
      repeated .io.provenance.scope.PublicKey data_access = 14;
      Specified by:
      getDataAccessOrBuilderList in interface Envelopes.EnvelopeOrBuilder
    • getDataAccessCount

      public int getDataAccessCount()
      repeated .io.provenance.scope.PublicKey data_access = 14;
      Specified by:
      getDataAccessCount in interface Envelopes.EnvelopeOrBuilder
    • getDataAccess

      public PK.PublicKey getDataAccess(int index)
      repeated .io.provenance.scope.PublicKey data_access = 14;
      Specified by:
      getDataAccess in interface Envelopes.EnvelopeOrBuilder
    • getDataAccessOrBuilder

      public PK.PublicKeyOrBuilder getDataAccessOrBuilder(int index)
      repeated .io.provenance.scope.PublicKey data_access = 14;
      Specified by:
      getDataAccessOrBuilder in interface Envelopes.EnvelopeOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Envelopes.Envelope parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Envelopes.Envelope parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Envelopes.Envelope parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Envelopes.Envelope parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Envelopes.Envelope parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Envelopes.Envelope parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Envelopes.Envelope parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Envelopes.Envelope.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Envelopes.Envelope.Builder newBuilder()
    • newBuilder

      public static Envelopes.Envelope.Builder newBuilder(Envelopes.Envelope prototype)
    • toBuilder

      public Envelopes.Envelope.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Envelopes.Envelope.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Envelopes.Envelope getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Envelopes.Envelope> parser()
    • getParserForType

      public com.google.protobuf.Parser<Envelopes.Envelope> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Envelopes.Envelope getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder