Class Contracts.Contract
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.provenance.scope.contract.proto.Contracts.Contract
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Contracts.ContractOrBuilder,Serializable
- Enclosing class:
- Contracts
public static final class Contracts.Contract
extends com.google.protobuf.GeneratedMessageV3
implements Contracts.ContractOrBuilder
Protobuf type
io.provenance.scope.contract.Contract- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeio.provenance.scope.contract.ContractNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetConditions(int index) repeated .io.provenance.scope.contract.ConditionProto conditions = 5;intrepeated .io.provenance.scope.contract.ConditionProto conditions = 5;repeated .io.provenance.scope.contract.ConditionProto conditions = 5;getConditionsOrBuilder(int index) repeated .io.provenance.scope.contract.ConditionProto conditions = 5;List<? extends Contracts.ConditionProtoOrBuilder>repeated .io.provenance.scope.contract.ConditionProto conditions = 5;getConsiderations(int index) repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;intrepeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;getConsiderationsOrBuilder(int index) repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;List<? extends Contracts.ConsiderationProtoOrBuilder>repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;static Contracts.Contract.io.provenance.scope.contract.DefinitionSpec definition = 1;.io.provenance.scope.contract.DefinitionSpec definition = 1;static final com.google.protobuf.Descriptors.DescriptorgetInputs(int index) Constructor arguments.intConstructor arguments.Constructor arguments.getInputsOrBuilder(int index) Constructor arguments.List<? extends Contracts.RecordOrBuilder>Constructor arguments..io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;.io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;com.google.protobuf.Parser<Contracts.Contract>getRecitals(int index) repeated .io.provenance.scope.contract.Recital recitals = 7;intrepeated .io.provenance.scope.contract.Recital recitals = 7;repeated .io.provenance.scope.contract.Recital recitals = 7;getRecitalsOrBuilder(int index) repeated .io.provenance.scope.contract.Recital recitals = 7;List<? extends Contracts.RecitalOrBuilder>repeated .io.provenance.scope.contract.Recital recitals = 7;intgetSpec()Points to the proto for the contractSpecPoints to the proto for the contractSpecThis is only set once when the contract is initially executedThis is only set once when the contract is initially executedintint32 times_executed = 8;boolean.io.provenance.scope.contract.DefinitionSpec definition = 1;inthashCode()boolean.io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;booleanhasSpec()Points to the proto for the contractSpecbooleanThis is only set once when the contract is initially executedprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Contracts.Contract.Builderstatic Contracts.Contract.BuildernewBuilder(Contracts.Contract prototype) protected Contracts.Contract.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Contracts.ContractparseDelimitedFrom(InputStream input) static Contracts.ContractparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Contracts.ContractparseFrom(byte[] data) static Contracts.ContractparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Contracts.ContractparseFrom(com.google.protobuf.ByteString data) static Contracts.ContractparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Contracts.ContractparseFrom(com.google.protobuf.CodedInputStream input) static Contracts.ContractparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Contracts.ContractparseFrom(InputStream input) static Contracts.ContractparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Contracts.ContractparseFrom(ByteBuffer data) static Contracts.ContractparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Contracts.Contract>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DEFINITION_FIELD_NUMBER
public static final int DEFINITION_FIELD_NUMBER- See Also:
-
SPEC_FIELD_NUMBER
public static final int SPEC_FIELD_NUMBER- See Also:
-
INVOKER_FIELD_NUMBER
public static final int INVOKER_FIELD_NUMBER- See Also:
-
INPUTS_FIELD_NUMBER
public static final int INPUTS_FIELD_NUMBER- See Also:
-
CONDITIONS_FIELD_NUMBER
public static final int CONDITIONS_FIELD_NUMBER- See Also:
-
CONSIDERATIONS_FIELD_NUMBER
public static final int CONSIDERATIONS_FIELD_NUMBER- See Also:
-
RECITALS_FIELD_NUMBER
public static final int RECITALS_FIELD_NUMBER- See Also:
-
TIMES_EXECUTED_FIELD_NUMBER
public static final int TIMES_EXECUTED_FIELD_NUMBER- See Also:
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasDefinition
public boolean hasDefinition().io.provenance.scope.contract.DefinitionSpec definition = 1;- Specified by:
hasDefinitionin interfaceContracts.ContractOrBuilder- Returns:
- Whether the definition field is set.
-
getDefinition
.io.provenance.scope.contract.DefinitionSpec definition = 1;- Specified by:
getDefinitionin interfaceContracts.ContractOrBuilder- Returns:
- The definition.
-
getDefinitionOrBuilder
.io.provenance.scope.contract.DefinitionSpec definition = 1;- Specified by:
getDefinitionOrBuilderin interfaceContracts.ContractOrBuilder
-
hasSpec
public boolean hasSpec()Points to the proto for the contractSpec
.io.provenance.scope.contract.Record spec = 2;- Specified by:
hasSpecin interfaceContracts.ContractOrBuilder- Returns:
- Whether the spec field is set.
-
getSpec
Points to the proto for the contractSpec
.io.provenance.scope.contract.Record spec = 2;- Specified by:
getSpecin interfaceContracts.ContractOrBuilder- Returns:
- The spec.
-
getSpecOrBuilder
Points to the proto for the contractSpec
.io.provenance.scope.contract.Record spec = 2;- Specified by:
getSpecOrBuilderin interfaceContracts.ContractOrBuilder
-
hasInvoker
public boolean hasInvoker().io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;- Specified by:
hasInvokerin interfaceContracts.ContractOrBuilder- Returns:
- Whether the invoker field is set.
-
getInvoker
.io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;- Specified by:
getInvokerin interfaceContracts.ContractOrBuilder- Returns:
- The invoker.
-
getInvokerOrBuilder
.io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;- Specified by:
getInvokerOrBuilderin interfaceContracts.ContractOrBuilder
-
getInputsList
Constructor arguments. These are always the output of a previously recorded consideration.
repeated .io.provenance.scope.contract.Record inputs = 4;- Specified by:
getInputsListin interfaceContracts.ContractOrBuilder
-
getInputsOrBuilderList
Constructor arguments. These are always the output of a previously recorded consideration.
repeated .io.provenance.scope.contract.Record inputs = 4;- Specified by:
getInputsOrBuilderListin interfaceContracts.ContractOrBuilder
-
getInputsCount
public int getInputsCount()Constructor arguments. These are always the output of a previously recorded consideration.
repeated .io.provenance.scope.contract.Record inputs = 4;- Specified by:
getInputsCountin interfaceContracts.ContractOrBuilder
-
getInputs
Constructor arguments. These are always the output of a previously recorded consideration.
repeated .io.provenance.scope.contract.Record inputs = 4;- Specified by:
getInputsin interfaceContracts.ContractOrBuilder
-
getInputsOrBuilder
Constructor arguments. These are always the output of a previously recorded consideration.
repeated .io.provenance.scope.contract.Record inputs = 4;- Specified by:
getInputsOrBuilderin interfaceContracts.ContractOrBuilder
-
getConditionsList
repeated .io.provenance.scope.contract.ConditionProto conditions = 5;- Specified by:
getConditionsListin interfaceContracts.ContractOrBuilder
-
getConditionsOrBuilderList
repeated .io.provenance.scope.contract.ConditionProto conditions = 5;- Specified by:
getConditionsOrBuilderListin interfaceContracts.ContractOrBuilder
-
getConditionsCount
public int getConditionsCount()repeated .io.provenance.scope.contract.ConditionProto conditions = 5;- Specified by:
getConditionsCountin interfaceContracts.ContractOrBuilder
-
getConditions
repeated .io.provenance.scope.contract.ConditionProto conditions = 5;- Specified by:
getConditionsin interfaceContracts.ContractOrBuilder
-
getConditionsOrBuilder
repeated .io.provenance.scope.contract.ConditionProto conditions = 5;- Specified by:
getConditionsOrBuilderin interfaceContracts.ContractOrBuilder
-
getConsiderationsList
repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;- Specified by:
getConsiderationsListin interfaceContracts.ContractOrBuilder
-
getConsiderationsOrBuilderList
repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;- Specified by:
getConsiderationsOrBuilderListin interfaceContracts.ContractOrBuilder
-
getConsiderationsCount
public int getConsiderationsCount()repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;- Specified by:
getConsiderationsCountin interfaceContracts.ContractOrBuilder
-
getConsiderations
repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;- Specified by:
getConsiderationsin interfaceContracts.ContractOrBuilder
-
getConsiderationsOrBuilder
repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;- Specified by:
getConsiderationsOrBuilderin interfaceContracts.ContractOrBuilder
-
getRecitalsList
repeated .io.provenance.scope.contract.Recital recitals = 7;- Specified by:
getRecitalsListin interfaceContracts.ContractOrBuilder
-
getRecitalsOrBuilderList
repeated .io.provenance.scope.contract.Recital recitals = 7;- Specified by:
getRecitalsOrBuilderListin interfaceContracts.ContractOrBuilder
-
getRecitalsCount
public int getRecitalsCount()repeated .io.provenance.scope.contract.Recital recitals = 7;- Specified by:
getRecitalsCountin interfaceContracts.ContractOrBuilder
-
getRecitals
repeated .io.provenance.scope.contract.Recital recitals = 7;- Specified by:
getRecitalsin interfaceContracts.ContractOrBuilder
-
getRecitalsOrBuilder
repeated .io.provenance.scope.contract.Recital recitals = 7;- Specified by:
getRecitalsOrBuilderin interfaceContracts.ContractOrBuilder
-
getTimesExecuted
public int getTimesExecuted()int32 times_executed = 8;- Specified by:
getTimesExecutedin interfaceContracts.ContractOrBuilder- Returns:
- The timesExecuted.
-
hasStartTime
public boolean hasStartTime()This is only set once when the contract is initially executed
.google.protobuf.Timestamp start_time = 9;- Specified by:
hasStartTimein interfaceContracts.ContractOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
This is only set once when the contract is initially executed
.google.protobuf.Timestamp start_time = 9;- Specified by:
getStartTimein interfaceContracts.ContractOrBuilder- Returns:
- The startTime.
-
getStartTimeOrBuilder
This is only set once when the contract is initially executed
.google.protobuf.Timestamp start_time = 9;- Specified by:
getStartTimeOrBuilderin interfaceContracts.ContractOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Contracts.Contract parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contracts.Contract parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contracts.Contract parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contracts.Contract parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contracts.Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Contracts.Contract parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Contracts.Contract parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Contracts.Contract parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Contracts.Contract parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Contracts.Contract parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Contracts.Contract.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-