Class Envelopes.Envelope.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Envelopes.EnvelopeOrBuilder, java.lang.Cloneable
    Enclosing class:
    Envelopes.Envelope

    public static final class Envelopes.Envelope.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
    implements Envelopes.EnvelopeOrBuilder
    Protobuf type io.provenance.scope.contract.Envelope
    • Method Detail

      • 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.Builder<Envelopes.Envelope.Builder>
      • clear

        public Envelopes.Envelope.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • getDefaultInstanceForType

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

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

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

        public Envelopes.Envelope.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • setField

        public Envelopes.Envelope.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • clearField

        public Envelopes.Envelope.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • clearOneof

        public Envelopes.Envelope.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • setRepeatedField

        public Envelopes.Envelope.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • addRepeatedField

        public Envelopes.Envelope.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • mergeFrom

        public Envelopes.Envelope.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Envelopes.Envelope.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • mergeFrom

        public Envelopes.Envelope.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Envelopes.Envelope.Builder>
        Throws:
        java.io.IOException
      • 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.
      • setRef

        public Envelopes.Envelope.Builder setRef​(Commons.ProvenanceReference value)
         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;
      • setRef

        public Envelopes.Envelope.Builder setRef​(Commons.ProvenanceReference.Builder builderForValue)
         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;
      • mergeRef

        public Envelopes.Envelope.Builder mergeRef​(Commons.ProvenanceReference value)
         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;
      • clearRef

        public Envelopes.Envelope.Builder clearRef()
         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;
      • getRefBuilder

        public Commons.ProvenanceReference.Builder getRefBuilder()
         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;
      • 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.
      • clearContract

        public Envelopes.Envelope.Builder clearContract()
         The executed contract.
         
        .io.provenance.scope.contract.Contract contract = 2;
      • getContractBuilder

        public Contracts.Contract.Builder getContractBuilder()
         The executed contract.
         
        .io.provenance.scope.contract.Contract contract = 2;
      • addAllSignatures

        public Envelopes.Envelope.Builder addAllSignatures​(java.lang.Iterable<? extends Common.Signature> values)
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • clearSignatures

        public Envelopes.Envelope.Builder clearSignatures()
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • removeSignatures

        public Envelopes.Envelope.Builder removeSignatures​(int index)
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • getSignaturesBuilder

        public Common.Signature.Builder getSignaturesBuilder​(int index)
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • addSignaturesBuilder

        public Common.Signature.Builder addSignaturesBuilder()
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • addSignaturesBuilder

        public Common.Signature.Builder addSignaturesBuilder​(int index)
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • getSignaturesBuilderList

        public java.util.List<Common.Signature.Builder> getSignaturesBuilderList()
         Signatures for the contract.
         
        repeated .io.provenance.scope.Signature signatures = 3;
      • 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.
      • setExecutionUuid

        public Envelopes.Envelope.Builder setExecutionUuid​(Util.UUID value)
         Unique identifier for determining contract/group execution instance
         
        .io.provenance.scope.UUID execution_uuid = 5;
      • setExecutionUuid

        public Envelopes.Envelope.Builder setExecutionUuid​(Util.UUID.Builder builderForValue)
         Unique identifier for determining contract/group execution instance
         
        .io.provenance.scope.UUID execution_uuid = 5;
      • mergeExecutionUuid

        public Envelopes.Envelope.Builder mergeExecutionUuid​(Util.UUID value)
         Unique identifier for determining contract/group execution instance
         
        .io.provenance.scope.UUID execution_uuid = 5;
      • clearExecutionUuid

        public Envelopes.Envelope.Builder clearExecutionUuid()
         Unique identifier for determining contract/group execution instance
         
        .io.provenance.scope.UUID execution_uuid = 5;
      • getExecutionUuidBuilder

        public Util.UUID.Builder getExecutionUuidBuilder()
         Unique identifier for determining contract/group execution instance
         
        .io.provenance.scope.UUID execution_uuid = 5;
      • 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.
      • setPrevExecutionUuid

        public Envelopes.Envelope.Builder setPrevExecutionUuid​(Util.UUID value)
         Unique identifier for determining previous execution instance
         
        .io.provenance.scope.UUID prev_execution_uuid = 6;
      • setPrevExecutionUuid

        public Envelopes.Envelope.Builder setPrevExecutionUuid​(Util.UUID.Builder builderForValue)
         Unique identifier for determining previous execution instance
         
        .io.provenance.scope.UUID prev_execution_uuid = 6;
      • mergePrevExecutionUuid

        public Envelopes.Envelope.Builder mergePrevExecutionUuid​(Util.UUID value)
         Unique identifier for determining previous execution instance
         
        .io.provenance.scope.UUID prev_execution_uuid = 6;
      • clearPrevExecutionUuid

        public Envelopes.Envelope.Builder clearPrevExecutionUuid()
         Unique identifier for determining previous execution instance
         
        .io.provenance.scope.UUID prev_execution_uuid = 6;
      • getPrevExecutionUuidBuilder

        public Util.UUID.Builder getPrevExecutionUuidBuilder()
         Unique identifier for determining previous execution instance
         
        .io.provenance.scope.UUID prev_execution_uuid = 6;
      • 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.
      • setExpirationTime

        public Envelopes.Envelope.Builder setExpirationTime​(Timestamp value)
         When a contract execution is considered stale and expired
         
        .google.protobuf.Timestamp expiration_time = 7;
      • setExpirationTime

        public Envelopes.Envelope.Builder setExpirationTime​(Timestamp.Builder builderForValue)
         When a contract execution is considered stale and expired
         
        .google.protobuf.Timestamp expiration_time = 7;
      • mergeExpirationTime

        public Envelopes.Envelope.Builder mergeExpirationTime​(Timestamp value)
         When a contract execution is considered stale and expired
         
        .google.protobuf.Timestamp expiration_time = 7;
      • clearExpirationTime

        public Envelopes.Envelope.Builder clearExpirationTime()
         When a contract execution is considered stale and expired
         
        .google.protobuf.Timestamp expiration_time = 7;
      • getExpirationTimeBuilder

        public Timestamp.Builder getExpirationTimeBuilder()
         When a contract execution is considered stale and expired
         
        .google.protobuf.Timestamp expiration_time = 7;
      • 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.
      • getScopeBuilder

        public Any.Builder getScopeBuilder()
         Scope snapshot for executing
         
        .google.protobuf.Any scope = 8;
      • 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.
      • setStatusValue

        public Envelopes.Envelope.Builder setStatusValue​(int value)
        .io.provenance.scope.contract.Envelope.Status status = 9;
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public Envelopes.Envelope.Builder clearStatus()
        .io.provenance.scope.contract.Envelope.Status status = 9;
        Returns:
        This builder for chaining.
      • 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.
      • getScopeSpecUuidBuilder

        public Util.UUID.Builder getScopeSpecUuidBuilder()
        .io.provenance.scope.UUID scope_spec_uuid = 10;
      • setNewScope

        public Envelopes.Envelope.Builder setNewScope​(boolean value)
        bool new_scope = 11;
        Parameters:
        value - The newScope to set.
        Returns:
        This builder for chaining.
      • setNewSession

        public Envelopes.Envelope.Builder setNewSession​(boolean value)
        bool new_session = 12;
        Parameters:
        value - The newSession to set.
        Returns:
        This builder for chaining.
      • clearNewSession

        public Envelopes.Envelope.Builder clearNewSession()
        bool new_session = 12;
        Returns:
        This builder for chaining.
      • setMainNet

        public Envelopes.Envelope.Builder setMainNet​(boolean value)
        bool main_net = 13;
        Parameters:
        value - The mainNet to set.
        Returns:
        This builder for chaining.
      • removeDataAccess

        public Envelopes.Envelope.Builder removeDataAccess​(int index)
        repeated .io.provenance.scope.PublicKey data_access = 14;
      • getDataAccessBuilder

        public PK.PublicKey.Builder getDataAccessBuilder​(int index)
        repeated .io.provenance.scope.PublicKey data_access = 14;
      • addDataAccessBuilder

        public PK.PublicKey.Builder addDataAccessBuilder()
        repeated .io.provenance.scope.PublicKey data_access = 14;
      • addDataAccessBuilder

        public PK.PublicKey.Builder addDataAccessBuilder​(int index)
        repeated .io.provenance.scope.PublicKey data_access = 14;
      • getDataAccessBuilderList

        public java.util.List<PK.PublicKey.Builder> getDataAccessBuilderList()
        repeated .io.provenance.scope.PublicKey data_access = 14;
      • setUnknownFields

        public final Envelopes.Envelope.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>
      • mergeUnknownFields

        public final Envelopes.Envelope.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Envelopes.Envelope.Builder>