io.provenance.scope.contract.proto.Contracts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of contract-proto Show documentation
Show all versions of contract-proto Show documentation
A collection of libraries that interact and run Provenance Java based contracts.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: io/provenance/scope/contract/contract.proto
package io.provenance.scope.contract.proto;
public final class Contracts {
private Contracts() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface ContractOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Contract)
com.google.protobuf.MessageOrBuilder {
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return Whether the definition field is set.
*/
boolean hasDefinition();
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return The definition.
*/
io.provenance.scope.contract.proto.Commons.DefinitionSpec getDefinition();
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getDefinitionOrBuilder();
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return Whether the spec field is set.
*/
boolean hasSpec();
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return The spec.
*/
io.provenance.scope.contract.proto.Contracts.Record getSpec();
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getSpecOrBuilder();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return Whether the invoker field is set.
*/
boolean hasInvoker();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return The invoker.
*/
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getInvoker();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getInvokerOrBuilder();
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
java.util.List
getInputsList();
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
io.provenance.scope.contract.proto.Contracts.Record getInputs(int index);
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
int getInputsCount();
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
java.util.List extends io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>
getInputsOrBuilderList();
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getInputsOrBuilder(
int index);
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
java.util.List
getConditionsList();
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
io.provenance.scope.contract.proto.Contracts.ConditionProto getConditions(int index);
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
int getConditionsCount();
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
java.util.List extends io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder>
getConditionsOrBuilderList();
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder getConditionsOrBuilder(
int index);
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
java.util.List
getConsiderationsList();
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
io.provenance.scope.contract.proto.Contracts.ConsiderationProto getConsiderations(int index);
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
int getConsiderationsCount();
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
java.util.List extends io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder>
getConsiderationsOrBuilderList();
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder getConsiderationsOrBuilder(
int index);
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
java.util.List
getRecitalsList();
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
io.provenance.scope.contract.proto.Contracts.Recital getRecitals(int index);
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
int getRecitalsCount();
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
java.util.List extends io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder>
getRecitalsOrBuilderList();
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder getRecitalsOrBuilder(
int index);
/**
* int32 times_executed = 8;
* @return The timesExecuted.
*/
int getTimesExecuted();
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return Whether the startTime field is set.
*/
boolean hasStartTime();
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return The startTime.
*/
com.google.protobuf.Timestamp getStartTime();
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
}
/**
* Protobuf type {@code io.provenance.scope.contract.Contract}
*/
public static final class Contract extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Contract)
ContractOrBuilder {
private static final long serialVersionUID = 0L;
// Use Contract.newBuilder() to construct.
private Contract(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Contract() {
inputs_ = java.util.Collections.emptyList();
conditions_ = java.util.Collections.emptyList();
considerations_ = java.util.Collections.emptyList();
recitals_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Contract();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Contract(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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: {
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder subBuilder = null;
if (definition_ != null) {
subBuilder = definition_.toBuilder();
}
definition_ = input.readMessage(io.provenance.scope.contract.proto.Commons.DefinitionSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(definition_);
definition_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.provenance.scope.contract.proto.Contracts.Record.Builder subBuilder = null;
if (spec_ != null) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.provenance.scope.contract.proto.Contracts.Record.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder subBuilder = null;
if (invoker_ != null) {
subBuilder = invoker_.toBuilder();
}
invoker_ = input.readMessage(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(invoker_);
invoker_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inputs_.add(
input.readMessage(io.provenance.scope.contract.proto.Contracts.Record.parser(), extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
conditions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
conditions_.add(
input.readMessage(io.provenance.scope.contract.proto.Contracts.ConditionProto.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
considerations_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
considerations_.add(
input.readMessage(io.provenance.scope.contract.proto.Contracts.ConsiderationProto.parser(), extensionRegistry));
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
recitals_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
recitals_.add(
input.readMessage(io.provenance.scope.contract.proto.Contracts.Recital.parser(), extensionRegistry));
break;
}
case 64: {
timesExecuted_ = input.readInt32();
break;
}
case 74: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (startTime_ != null) {
subBuilder = startTime_.toBuilder();
}
startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTime_);
startTime_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
considerations_ = java.util.Collections.unmodifiableList(considerations_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
recitals_ = java.util.Collections.unmodifiableList(recitals_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Contract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Contract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Contract.class, io.provenance.scope.contract.proto.Contracts.Contract.Builder.class);
}
public static final int DEFINITION_FIELD_NUMBER = 1;
private io.provenance.scope.contract.proto.Commons.DefinitionSpec definition_;
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return Whether the definition field is set.
*/
@java.lang.Override
public boolean hasDefinition() {
return definition_ != null;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return The definition.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpec getDefinition() {
return definition_ == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : definition_;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getDefinitionOrBuilder() {
return getDefinition();
}
public static final int SPEC_FIELD_NUMBER = 2;
private io.provenance.scope.contract.proto.Contracts.Record spec_;
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return Whether the spec field is set.
*/
@java.lang.Override
public boolean hasSpec() {
return spec_ != null;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return The spec.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Record getSpec() {
return spec_ == null ? io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance() : spec_;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getSpecOrBuilder() {
return getSpec();
}
public static final int INVOKER_FIELD_NUMBER = 3;
private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys invoker_;
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return Whether the invoker field is set.
*/
@java.lang.Override
public boolean hasInvoker() {
return invoker_ != null;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return The invoker.
*/
@java.lang.Override
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getInvoker() {
return invoker_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
@java.lang.Override
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getInvokerOrBuilder() {
return getInvoker();
}
public static final int INPUTS_FIELD_NUMBER = 4;
private java.util.List inputs_;
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
@java.lang.Override
public java.util.List getInputsList() {
return inputs_;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>
getInputsOrBuilderList() {
return inputs_;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
@java.lang.Override
public int getInputsCount() {
return inputs_.size();
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Record getInputs(int index) {
return inputs_.get(index);
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int CONDITIONS_FIELD_NUMBER = 5;
private java.util.List conditions_;
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
@java.lang.Override
public java.util.List getConditionsList() {
return conditions_;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder>
getConditionsOrBuilderList() {
return conditions_;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
@java.lang.Override
public int getConditionsCount() {
return conditions_.size();
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConditionProto getConditions(int index) {
return conditions_.get(index);
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder getConditionsOrBuilder(
int index) {
return conditions_.get(index);
}
public static final int CONSIDERATIONS_FIELD_NUMBER = 6;
private java.util.List considerations_;
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
@java.lang.Override
public java.util.List getConsiderationsList() {
return considerations_;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder>
getConsiderationsOrBuilderList() {
return considerations_;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
@java.lang.Override
public int getConsiderationsCount() {
return considerations_.size();
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto getConsiderations(int index) {
return considerations_.get(index);
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder getConsiderationsOrBuilder(
int index) {
return considerations_.get(index);
}
public static final int RECITALS_FIELD_NUMBER = 7;
private java.util.List recitals_;
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
@java.lang.Override
public java.util.List getRecitalsList() {
return recitals_;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder>
getRecitalsOrBuilderList() {
return recitals_;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
@java.lang.Override
public int getRecitalsCount() {
return recitals_.size();
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Recital getRecitals(int index) {
return recitals_.get(index);
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder getRecitalsOrBuilder(
int index) {
return recitals_.get(index);
}
public static final int TIMES_EXECUTED_FIELD_NUMBER = 8;
private int timesExecuted_;
/**
* int32 times_executed = 8;
* @return The timesExecuted.
*/
@java.lang.Override
public int getTimesExecuted() {
return timesExecuted_;
}
public static final int START_TIME_FIELD_NUMBER = 9;
private com.google.protobuf.Timestamp startTime_;
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return startTime_ != null;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return getStartTime();
}
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 (definition_ != null) {
output.writeMessage(1, getDefinition());
}
if (spec_ != null) {
output.writeMessage(2, getSpec());
}
if (invoker_ != null) {
output.writeMessage(3, getInvoker());
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(4, inputs_.get(i));
}
for (int i = 0; i < conditions_.size(); i++) {
output.writeMessage(5, conditions_.get(i));
}
for (int i = 0; i < considerations_.size(); i++) {
output.writeMessage(6, considerations_.get(i));
}
for (int i = 0; i < recitals_.size(); i++) {
output.writeMessage(7, recitals_.get(i));
}
if (timesExecuted_ != 0) {
output.writeInt32(8, timesExecuted_);
}
if (startTime_ != null) {
output.writeMessage(9, getStartTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (definition_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getDefinition());
}
if (spec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSpec());
}
if (invoker_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getInvoker());
}
for (int i = 0; i < inputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, inputs_.get(i));
}
for (int i = 0; i < conditions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, conditions_.get(i));
}
for (int i = 0; i < considerations_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, considerations_.get(i));
}
for (int i = 0; i < recitals_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, recitals_.get(i));
}
if (timesExecuted_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, timesExecuted_);
}
if (startTime_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getStartTime());
}
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 io.provenance.scope.contract.proto.Contracts.Contract)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.Contract other = (io.provenance.scope.contract.proto.Contracts.Contract) obj;
if (hasDefinition() != other.hasDefinition()) return false;
if (hasDefinition()) {
if (!getDefinition()
.equals(other.getDefinition())) return false;
}
if (hasSpec() != other.hasSpec()) return false;
if (hasSpec()) {
if (!getSpec()
.equals(other.getSpec())) return false;
}
if (hasInvoker() != other.hasInvoker()) return false;
if (hasInvoker()) {
if (!getInvoker()
.equals(other.getInvoker())) return false;
}
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (!getConditionsList()
.equals(other.getConditionsList())) return false;
if (!getConsiderationsList()
.equals(other.getConsiderationsList())) return false;
if (!getRecitalsList()
.equals(other.getRecitalsList())) return false;
if (getTimesExecuted()
!= other.getTimesExecuted()) return false;
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime()
.equals(other.getStartTime())) return false;
}
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 (hasDefinition()) {
hash = (37 * hash) + DEFINITION_FIELD_NUMBER;
hash = (53 * hash) + getDefinition().hashCode();
}
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasInvoker()) {
hash = (37 * hash) + INVOKER_FIELD_NUMBER;
hash = (53 * hash) + getInvoker().hashCode();
}
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
if (getConditionsCount() > 0) {
hash = (37 * hash) + CONDITIONS_FIELD_NUMBER;
hash = (53 * hash) + getConditionsList().hashCode();
}
if (getConsiderationsCount() > 0) {
hash = (37 * hash) + CONSIDERATIONS_FIELD_NUMBER;
hash = (53 * hash) + getConsiderationsList().hashCode();
}
if (getRecitalsCount() > 0) {
hash = (37 * hash) + RECITALS_FIELD_NUMBER;
hash = (53 * hash) + getRecitalsList().hashCode();
}
hash = (37 * hash) + TIMES_EXECUTED_FIELD_NUMBER;
hash = (53 * hash) + getTimesExecuted();
if (hasStartTime()) {
hash = (37 * hash) + START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Contract parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Contract 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 io.provenance.scope.contract.proto.Contracts.Contract parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Contract 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 io.provenance.scope.contract.proto.Contracts.Contract parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Contract 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(io.provenance.scope.contract.proto.Contracts.Contract 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.Contract}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Contract)
io.provenance.scope.contract.proto.Contracts.ContractOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Contract_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Contract_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Contract.class, io.provenance.scope.contract.proto.Contracts.Contract.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.Contract.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInputsFieldBuilder();
getConditionsFieldBuilder();
getConsiderationsFieldBuilder();
getRecitalsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (definitionBuilder_ == null) {
definition_ = null;
} else {
definition_ = null;
definitionBuilder_ = null;
}
if (specBuilder_ == null) {
spec_ = null;
} else {
spec_ = null;
specBuilder_ = null;
}
if (invokerBuilder_ == null) {
invoker_ = null;
} else {
invoker_ = null;
invokerBuilder_ = null;
}
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inputsBuilder_.clear();
}
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
conditionsBuilder_.clear();
}
if (considerationsBuilder_ == null) {
considerations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
considerationsBuilder_.clear();
}
if (recitalsBuilder_ == null) {
recitals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
recitalsBuilder_.clear();
}
timesExecuted_ = 0;
if (startTimeBuilder_ == null) {
startTime_ = null;
} else {
startTime_ = null;
startTimeBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Contract_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Contract getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.Contract.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Contract build() {
io.provenance.scope.contract.proto.Contracts.Contract result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Contract buildPartial() {
io.provenance.scope.contract.proto.Contracts.Contract result = new io.provenance.scope.contract.proto.Contracts.Contract(this);
int from_bitField0_ = bitField0_;
if (definitionBuilder_ == null) {
result.definition_ = definition_;
} else {
result.definition_ = definitionBuilder_.build();
}
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (invokerBuilder_ == null) {
result.invoker_ = invoker_;
} else {
result.invoker_ = invokerBuilder_.build();
}
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (conditionsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
conditions_ = java.util.Collections.unmodifiableList(conditions_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.conditions_ = conditions_;
} else {
result.conditions_ = conditionsBuilder_.build();
}
if (considerationsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
considerations_ = java.util.Collections.unmodifiableList(considerations_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.considerations_ = considerations_;
} else {
result.considerations_ = considerationsBuilder_.build();
}
if (recitalsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
recitals_ = java.util.Collections.unmodifiableList(recitals_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.recitals_ = recitals_;
} else {
result.recitals_ = recitalsBuilder_.build();
}
result.timesExecuted_ = timesExecuted_;
if (startTimeBuilder_ == null) {
result.startTime_ = startTime_;
} else {
result.startTime_ = startTimeBuilder_.build();
}
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 io.provenance.scope.contract.proto.Contracts.Contract) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.Contract)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.Contract other) {
if (other == io.provenance.scope.contract.proto.Contracts.Contract.getDefaultInstance()) return this;
if (other.hasDefinition()) {
mergeDefinition(other.getDefinition());
}
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasInvoker()) {
mergeInvoker(other.getInvoker());
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
inputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputsFieldBuilder() : null;
} else {
inputsBuilder_.addAllMessages(other.inputs_);
}
}
}
if (conditionsBuilder_ == null) {
if (!other.conditions_.isEmpty()) {
if (conditions_.isEmpty()) {
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureConditionsIsMutable();
conditions_.addAll(other.conditions_);
}
onChanged();
}
} else {
if (!other.conditions_.isEmpty()) {
if (conditionsBuilder_.isEmpty()) {
conditionsBuilder_.dispose();
conditionsBuilder_ = null;
conditions_ = other.conditions_;
bitField0_ = (bitField0_ & ~0x00000002);
conditionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConditionsFieldBuilder() : null;
} else {
conditionsBuilder_.addAllMessages(other.conditions_);
}
}
}
if (considerationsBuilder_ == null) {
if (!other.considerations_.isEmpty()) {
if (considerations_.isEmpty()) {
considerations_ = other.considerations_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureConsiderationsIsMutable();
considerations_.addAll(other.considerations_);
}
onChanged();
}
} else {
if (!other.considerations_.isEmpty()) {
if (considerationsBuilder_.isEmpty()) {
considerationsBuilder_.dispose();
considerationsBuilder_ = null;
considerations_ = other.considerations_;
bitField0_ = (bitField0_ & ~0x00000004);
considerationsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConsiderationsFieldBuilder() : null;
} else {
considerationsBuilder_.addAllMessages(other.considerations_);
}
}
}
if (recitalsBuilder_ == null) {
if (!other.recitals_.isEmpty()) {
if (recitals_.isEmpty()) {
recitals_ = other.recitals_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRecitalsIsMutable();
recitals_.addAll(other.recitals_);
}
onChanged();
}
} else {
if (!other.recitals_.isEmpty()) {
if (recitalsBuilder_.isEmpty()) {
recitalsBuilder_.dispose();
recitalsBuilder_ = null;
recitals_ = other.recitals_;
bitField0_ = (bitField0_ & ~0x00000008);
recitalsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecitalsFieldBuilder() : null;
} else {
recitalsBuilder_.addAllMessages(other.recitals_);
}
}
}
if (other.getTimesExecuted() != 0) {
setTimesExecuted(other.getTimesExecuted());
}
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
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 {
io.provenance.scope.contract.proto.Contracts.Contract parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.Contract) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.provenance.scope.contract.proto.Commons.DefinitionSpec definition_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder> definitionBuilder_;
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return Whether the definition field is set.
*/
public boolean hasDefinition() {
return definitionBuilder_ != null || definition_ != null;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
* @return The definition.
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpec getDefinition() {
if (definitionBuilder_ == null) {
return definition_ == null ? io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : definition_;
} else {
return definitionBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public Builder setDefinition(io.provenance.scope.contract.proto.Commons.DefinitionSpec value) {
if (definitionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
definition_ = value;
onChanged();
} else {
definitionBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public Builder setDefinition(
io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder builderForValue) {
if (definitionBuilder_ == null) {
definition_ = builderForValue.build();
onChanged();
} else {
definitionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public Builder mergeDefinition(io.provenance.scope.contract.proto.Commons.DefinitionSpec value) {
if (definitionBuilder_ == null) {
if (definition_ != null) {
definition_ =
io.provenance.scope.contract.proto.Commons.DefinitionSpec.newBuilder(definition_).mergeFrom(value).buildPartial();
} else {
definition_ = value;
}
onChanged();
} else {
definitionBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public Builder clearDefinition() {
if (definitionBuilder_ == null) {
definition_ = null;
onChanged();
} else {
definition_ = null;
definitionBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder getDefinitionBuilder() {
onChanged();
return getDefinitionFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
public io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder getDefinitionOrBuilder() {
if (definitionBuilder_ != null) {
return definitionBuilder_.getMessageOrBuilder();
} else {
return definition_ == null ?
io.provenance.scope.contract.proto.Commons.DefinitionSpec.getDefaultInstance() : definition_;
}
}
/**
* .io.provenance.scope.contract.DefinitionSpec definition = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder>
getDefinitionFieldBuilder() {
if (definitionBuilder_ == null) {
definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.DefinitionSpec, io.provenance.scope.contract.proto.Commons.DefinitionSpec.Builder, io.provenance.scope.contract.proto.Commons.DefinitionSpecOrBuilder>(
getDefinition(),
getParentForChildren(),
isClean());
definition_ = null;
}
return definitionBuilder_;
}
private io.provenance.scope.contract.proto.Contracts.Record spec_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder> specBuilder_;
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return specBuilder_ != null || spec_ != null;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
* @return The spec.
*/
public io.provenance.scope.contract.proto.Contracts.Record getSpec() {
if (specBuilder_ == null) {
return spec_ == null ? io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance() : spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public Builder setSpec(io.provenance.scope.contract.proto.Contracts.Record value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
return this;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public Builder setSpec(
io.provenance.scope.contract.proto.Contracts.Record.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public Builder mergeSpec(io.provenance.scope.contract.proto.Contracts.Record value) {
if (specBuilder_ == null) {
if (spec_ != null) {
spec_ =
io.provenance.scope.contract.proto.Contracts.Record.newBuilder(spec_).mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
spec_ = null;
specBuilder_ = null;
}
return this;
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public io.provenance.scope.contract.proto.Contracts.Record.Builder getSpecBuilder() {
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
public io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null ?
io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance() : spec_;
}
}
/**
*
* Points to the proto for the contractSpec
*
*
* .io.provenance.scope.contract.Record spec = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>(
getSpec(),
getParentForChildren(),
isClean());
spec_ = null;
}
return specBuilder_;
}
private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys invoker_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder> invokerBuilder_;
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return Whether the invoker field is set.
*/
public boolean hasInvoker() {
return invokerBuilder_ != null || invoker_ != null;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
* @return The invoker.
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getInvoker() {
if (invokerBuilder_ == null) {
return invoker_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_;
} else {
return invokerBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public Builder setInvoker(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) {
if (invokerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
invoker_ = value;
onChanged();
} else {
invokerBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public Builder setInvoker(
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder builderForValue) {
if (invokerBuilder_ == null) {
invoker_ = builderForValue.build();
onChanged();
} else {
invokerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public Builder mergeInvoker(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) {
if (invokerBuilder_ == null) {
if (invoker_ != null) {
invoker_ =
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.newBuilder(invoker_).mergeFrom(value).buildPartial();
} else {
invoker_ = value;
}
onChanged();
} else {
invokerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public Builder clearInvoker() {
if (invokerBuilder_ == null) {
invoker_ = null;
onChanged();
} else {
invoker_ = null;
invokerBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder getInvokerBuilder() {
onChanged();
return getInvokerFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getInvokerOrBuilder() {
if (invokerBuilder_ != null) {
return invokerBuilder_.getMessageOrBuilder();
} else {
return invoker_ == null ?
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_;
}
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys invoker = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder>
getInvokerFieldBuilder() {
if (invokerBuilder_ == null) {
invokerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder>(
getInvoker(),
getParentForChildren(),
isClean());
invoker_ = null;
}
return invokerBuilder_;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder> inputsBuilder_;
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public java.util.List getInputsList() {
if (inputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputs_);
} else {
return inputsBuilder_.getMessageList();
}
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public io.provenance.scope.contract.proto.Contracts.Record getInputs(int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index);
} else {
return inputsBuilder_.getMessage(index);
}
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder setInputs(
int index, io.provenance.scope.contract.proto.Contracts.Record value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.set(index, value);
onChanged();
} else {
inputsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder setInputs(
int index, io.provenance.scope.contract.proto.Contracts.Record.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.set(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder addInputs(io.provenance.scope.contract.proto.Contracts.Record value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(value);
onChanged();
} else {
inputsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder addInputs(
int index, io.provenance.scope.contract.proto.Contracts.Record value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(index, value);
onChanged();
} else {
inputsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder addInputs(
io.provenance.scope.contract.proto.Contracts.Record.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder addInputs(
int index, io.provenance.scope.contract.proto.Contracts.Record.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder addAllInputs(
java.lang.Iterable extends io.provenance.scope.contract.proto.Contracts.Record> values) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputs_);
onChanged();
} else {
inputsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public Builder removeInputs(int index) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.remove(index);
onChanged();
} else {
inputsBuilder_.remove(index);
}
return this;
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public io.provenance.scope.contract.proto.Contracts.Record.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public io.provenance.scope.contract.proto.Contracts.RecordOrBuilder getInputsOrBuilder(
int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index); } else {
return inputsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public java.util.List extends io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>
getInputsOrBuilderList() {
if (inputsBuilder_ != null) {
return inputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputs_);
}
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public io.provenance.scope.contract.proto.Contracts.Record.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance());
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public io.provenance.scope.contract.proto.Contracts.Record.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance());
}
/**
*
* Constructor arguments.
* These are always the output of a previously recorded consideration.
*
*
* repeated .io.provenance.scope.contract.Record inputs = 4;
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Record, io.provenance.scope.contract.proto.Contracts.Record.Builder, io.provenance.scope.contract.proto.Contracts.RecordOrBuilder>(
inputs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private java.util.List conditions_ =
java.util.Collections.emptyList();
private void ensureConditionsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
conditions_ = new java.util.ArrayList(conditions_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConditionProto, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder, io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder> conditionsBuilder_;
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public java.util.List getConditionsList() {
if (conditionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(conditions_);
} else {
return conditionsBuilder_.getMessageList();
}
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public int getConditionsCount() {
if (conditionsBuilder_ == null) {
return conditions_.size();
} else {
return conditionsBuilder_.getCount();
}
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public io.provenance.scope.contract.proto.Contracts.ConditionProto getConditions(int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index);
} else {
return conditionsBuilder_.getMessage(index);
}
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder setConditions(
int index, io.provenance.scope.contract.proto.Contracts.ConditionProto value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.set(index, value);
onChanged();
} else {
conditionsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder setConditions(
int index, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.set(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder addConditions(io.provenance.scope.contract.proto.Contracts.ConditionProto value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(value);
onChanged();
} else {
conditionsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder addConditions(
int index, io.provenance.scope.contract.proto.Contracts.ConditionProto value) {
if (conditionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConditionsIsMutable();
conditions_.add(index, value);
onChanged();
} else {
conditionsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder addConditions(
io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder addConditions(
int index, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder builderForValue) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.add(index, builderForValue.build());
onChanged();
} else {
conditionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder addAllConditions(
java.lang.Iterable extends io.provenance.scope.contract.proto.Contracts.ConditionProto> values) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, conditions_);
onChanged();
} else {
conditionsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder clearConditions() {
if (conditionsBuilder_ == null) {
conditions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
conditionsBuilder_.clear();
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public Builder removeConditions(int index) {
if (conditionsBuilder_ == null) {
ensureConditionsIsMutable();
conditions_.remove(index);
onChanged();
} else {
conditionsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder getConditionsBuilder(
int index) {
return getConditionsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder getConditionsOrBuilder(
int index) {
if (conditionsBuilder_ == null) {
return conditions_.get(index); } else {
return conditionsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder>
getConditionsOrBuilderList() {
if (conditionsBuilder_ != null) {
return conditionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(conditions_);
}
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder addConditionsBuilder() {
return getConditionsFieldBuilder().addBuilder(
io.provenance.scope.contract.proto.Contracts.ConditionProto.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder addConditionsBuilder(
int index) {
return getConditionsFieldBuilder().addBuilder(
index, io.provenance.scope.contract.proto.Contracts.ConditionProto.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.ConditionProto conditions = 5;
*/
public java.util.List
getConditionsBuilderList() {
return getConditionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConditionProto, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder, io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder>
getConditionsFieldBuilder() {
if (conditionsBuilder_ == null) {
conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConditionProto, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder, io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder>(
conditions_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
conditions_ = null;
}
return conditionsBuilder_;
}
private java.util.List considerations_ =
java.util.Collections.emptyList();
private void ensureConsiderationsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
considerations_ = new java.util.ArrayList(considerations_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConsiderationProto, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder, io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder> considerationsBuilder_;
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public java.util.List getConsiderationsList() {
if (considerationsBuilder_ == null) {
return java.util.Collections.unmodifiableList(considerations_);
} else {
return considerationsBuilder_.getMessageList();
}
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public int getConsiderationsCount() {
if (considerationsBuilder_ == null) {
return considerations_.size();
} else {
return considerationsBuilder_.getCount();
}
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto getConsiderations(int index) {
if (considerationsBuilder_ == null) {
return considerations_.get(index);
} else {
return considerationsBuilder_.getMessage(index);
}
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder setConsiderations(
int index, io.provenance.scope.contract.proto.Contracts.ConsiderationProto value) {
if (considerationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsiderationsIsMutable();
considerations_.set(index, value);
onChanged();
} else {
considerationsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder setConsiderations(
int index, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder builderForValue) {
if (considerationsBuilder_ == null) {
ensureConsiderationsIsMutable();
considerations_.set(index, builderForValue.build());
onChanged();
} else {
considerationsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder addConsiderations(io.provenance.scope.contract.proto.Contracts.ConsiderationProto value) {
if (considerationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsiderationsIsMutable();
considerations_.add(value);
onChanged();
} else {
considerationsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder addConsiderations(
int index, io.provenance.scope.contract.proto.Contracts.ConsiderationProto value) {
if (considerationsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConsiderationsIsMutable();
considerations_.add(index, value);
onChanged();
} else {
considerationsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder addConsiderations(
io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder builderForValue) {
if (considerationsBuilder_ == null) {
ensureConsiderationsIsMutable();
considerations_.add(builderForValue.build());
onChanged();
} else {
considerationsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder addConsiderations(
int index, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder builderForValue) {
if (considerationsBuilder_ == null) {
ensureConsiderationsIsMutable();
considerations_.add(index, builderForValue.build());
onChanged();
} else {
considerationsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder addAllConsiderations(
java.lang.Iterable extends io.provenance.scope.contract.proto.Contracts.ConsiderationProto> values) {
if (considerationsBuilder_ == null) {
ensureConsiderationsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, considerations_);
onChanged();
} else {
considerationsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder clearConsiderations() {
if (considerationsBuilder_ == null) {
considerations_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
considerationsBuilder_.clear();
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public Builder removeConsiderations(int index) {
if (considerationsBuilder_ == null) {
ensureConsiderationsIsMutable();
considerations_.remove(index);
onChanged();
} else {
considerationsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder getConsiderationsBuilder(
int index) {
return getConsiderationsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder getConsiderationsOrBuilder(
int index) {
if (considerationsBuilder_ == null) {
return considerations_.get(index); } else {
return considerationsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder>
getConsiderationsOrBuilderList() {
if (considerationsBuilder_ != null) {
return considerationsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(considerations_);
}
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder addConsiderationsBuilder() {
return getConsiderationsFieldBuilder().addBuilder(
io.provenance.scope.contract.proto.Contracts.ConsiderationProto.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder addConsiderationsBuilder(
int index) {
return getConsiderationsFieldBuilder().addBuilder(
index, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.ConsiderationProto considerations = 6;
*/
public java.util.List
getConsiderationsBuilderList() {
return getConsiderationsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConsiderationProto, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder, io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder>
getConsiderationsFieldBuilder() {
if (considerationsBuilder_ == null) {
considerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ConsiderationProto, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder, io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder>(
considerations_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
considerations_ = null;
}
return considerationsBuilder_;
}
private java.util.List recitals_ =
java.util.Collections.emptyList();
private void ensureRecitalsIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
recitals_ = new java.util.ArrayList(recitals_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Recital, io.provenance.scope.contract.proto.Contracts.Recital.Builder, io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder> recitalsBuilder_;
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public java.util.List getRecitalsList() {
if (recitalsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recitals_);
} else {
return recitalsBuilder_.getMessageList();
}
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public int getRecitalsCount() {
if (recitalsBuilder_ == null) {
return recitals_.size();
} else {
return recitalsBuilder_.getCount();
}
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public io.provenance.scope.contract.proto.Contracts.Recital getRecitals(int index) {
if (recitalsBuilder_ == null) {
return recitals_.get(index);
} else {
return recitalsBuilder_.getMessage(index);
}
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder setRecitals(
int index, io.provenance.scope.contract.proto.Contracts.Recital value) {
if (recitalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecitalsIsMutable();
recitals_.set(index, value);
onChanged();
} else {
recitalsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder setRecitals(
int index, io.provenance.scope.contract.proto.Contracts.Recital.Builder builderForValue) {
if (recitalsBuilder_ == null) {
ensureRecitalsIsMutable();
recitals_.set(index, builderForValue.build());
onChanged();
} else {
recitalsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder addRecitals(io.provenance.scope.contract.proto.Contracts.Recital value) {
if (recitalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecitalsIsMutable();
recitals_.add(value);
onChanged();
} else {
recitalsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder addRecitals(
int index, io.provenance.scope.contract.proto.Contracts.Recital value) {
if (recitalsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecitalsIsMutable();
recitals_.add(index, value);
onChanged();
} else {
recitalsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder addRecitals(
io.provenance.scope.contract.proto.Contracts.Recital.Builder builderForValue) {
if (recitalsBuilder_ == null) {
ensureRecitalsIsMutable();
recitals_.add(builderForValue.build());
onChanged();
} else {
recitalsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder addRecitals(
int index, io.provenance.scope.contract.proto.Contracts.Recital.Builder builderForValue) {
if (recitalsBuilder_ == null) {
ensureRecitalsIsMutable();
recitals_.add(index, builderForValue.build());
onChanged();
} else {
recitalsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder addAllRecitals(
java.lang.Iterable extends io.provenance.scope.contract.proto.Contracts.Recital> values) {
if (recitalsBuilder_ == null) {
ensureRecitalsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recitals_);
onChanged();
} else {
recitalsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder clearRecitals() {
if (recitalsBuilder_ == null) {
recitals_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
recitalsBuilder_.clear();
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public Builder removeRecitals(int index) {
if (recitalsBuilder_ == null) {
ensureRecitalsIsMutable();
recitals_.remove(index);
onChanged();
} else {
recitalsBuilder_.remove(index);
}
return this;
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public io.provenance.scope.contract.proto.Contracts.Recital.Builder getRecitalsBuilder(
int index) {
return getRecitalsFieldBuilder().getBuilder(index);
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder getRecitalsOrBuilder(
int index) {
if (recitalsBuilder_ == null) {
return recitals_.get(index); } else {
return recitalsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public java.util.List extends io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder>
getRecitalsOrBuilderList() {
if (recitalsBuilder_ != null) {
return recitalsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recitals_);
}
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public io.provenance.scope.contract.proto.Contracts.Recital.Builder addRecitalsBuilder() {
return getRecitalsFieldBuilder().addBuilder(
io.provenance.scope.contract.proto.Contracts.Recital.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public io.provenance.scope.contract.proto.Contracts.Recital.Builder addRecitalsBuilder(
int index) {
return getRecitalsFieldBuilder().addBuilder(
index, io.provenance.scope.contract.proto.Contracts.Recital.getDefaultInstance());
}
/**
* repeated .io.provenance.scope.contract.Recital recitals = 7;
*/
public java.util.List
getRecitalsBuilderList() {
return getRecitalsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Recital, io.provenance.scope.contract.proto.Contracts.Recital.Builder, io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder>
getRecitalsFieldBuilder() {
if (recitalsBuilder_ == null) {
recitalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.Recital, io.provenance.scope.contract.proto.Contracts.Recital.Builder, io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder>(
recitals_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
recitals_ = null;
}
return recitalsBuilder_;
}
private int timesExecuted_ ;
/**
* int32 times_executed = 8;
* @return The timesExecuted.
*/
@java.lang.Override
public int getTimesExecuted() {
return timesExecuted_;
}
/**
* int32 times_executed = 8;
* @param value The timesExecuted to set.
* @return This builder for chaining.
*/
public Builder setTimesExecuted(int value) {
timesExecuted_ = value;
onChanged();
return this;
}
/**
* int32 times_executed = 8;
* @return This builder for chaining.
*/
public Builder clearTimesExecuted() {
timesExecuted_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return startTimeBuilder_ != null || startTime_ != null;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
return this;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public Builder setStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (startTime_ != null) {
startTime_ =
com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
} else {
startTime_ = value;
}
onChanged();
} else {
startTimeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public Builder clearStartTime() {
if (startTimeBuilder_ == null) {
startTime_ = null;
onChanged();
} else {
startTime_ = null;
startTimeBuilder_ = null;
}
return this;
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
* This is only set once when the contract is initially executed
*
*
* .google.protobuf.Timestamp start_time = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStartTime(),
getParentForChildren(),
isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
@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:io.provenance.scope.contract.Contract)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Contract)
private static final io.provenance.scope.contract.proto.Contracts.Contract DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.Contract();
}
public static io.provenance.scope.contract.proto.Contracts.Contract getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Contract parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Contract(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 io.provenance.scope.contract.proto.Contracts.Contract getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecitalOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Recital)
com.google.protobuf.MessageOrBuilder {
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The enum numeric value on the wire for signerRole.
*/
int getSignerRoleValue();
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The signerRole.
*/
io.provenance.scope.contract.proto.Specifications.PartyType getSignerRole();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return Whether the signer field is set.
*/
boolean hasSigner();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return The signer.
*/
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner();
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder();
/**
* bytes address = 3;
* @return The address.
*/
com.google.protobuf.ByteString getAddress();
}
/**
* Protobuf type {@code io.provenance.scope.contract.Recital}
*/
public static final class Recital extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Recital)
RecitalOrBuilder {
private static final long serialVersionUID = 0L;
// Use Recital.newBuilder() to construct.
private Recital(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Recital() {
signerRole_ = 0;
address_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Recital();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Recital(
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 8: {
int rawValue = input.readEnum();
signerRole_ = rawValue;
break;
}
case 18: {
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder subBuilder = null;
if (signer_ != null) {
subBuilder = signer_.toBuilder();
}
signer_ = input.readMessage(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(signer_);
signer_ = subBuilder.buildPartial();
}
break;
}
case 26: {
address_ = input.readBytes();
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 io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Recital_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Recital_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Recital.class, io.provenance.scope.contract.proto.Contracts.Recital.Builder.class);
}
public static final int SIGNER_ROLE_FIELD_NUMBER = 1;
private int signerRole_;
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The enum numeric value on the wire for signerRole.
*/
@java.lang.Override public int getSignerRoleValue() {
return signerRole_;
}
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The signerRole.
*/
@java.lang.Override public io.provenance.scope.contract.proto.Specifications.PartyType getSignerRole() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Specifications.PartyType result = io.provenance.scope.contract.proto.Specifications.PartyType.valueOf(signerRole_);
return result == null ? io.provenance.scope.contract.proto.Specifications.PartyType.UNRECOGNIZED : result;
}
public static final int SIGNER_FIELD_NUMBER = 2;
private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys signer_;
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return Whether the signer field is set.
*/
@java.lang.Override
public boolean hasSigner() {
return signer_ != null;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return The signer.
*/
@java.lang.Override
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner() {
return signer_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
@java.lang.Override
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder() {
return getSigner();
}
public static final int ADDRESS_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString address_;
/**
* bytes address = 3;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
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 (signerRole_ != io.provenance.scope.contract.proto.Specifications.PartyType.NONE.getNumber()) {
output.writeEnum(1, signerRole_);
}
if (signer_ != null) {
output.writeMessage(2, getSigner());
}
if (!address_.isEmpty()) {
output.writeBytes(3, address_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (signerRole_ != io.provenance.scope.contract.proto.Specifications.PartyType.NONE.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, signerRole_);
}
if (signer_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSigner());
}
if (!address_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, address_);
}
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 io.provenance.scope.contract.proto.Contracts.Recital)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.Recital other = (io.provenance.scope.contract.proto.Contracts.Recital) obj;
if (signerRole_ != other.signerRole_) return false;
if (hasSigner() != other.hasSigner()) return false;
if (hasSigner()) {
if (!getSigner()
.equals(other.getSigner())) return false;
}
if (!getAddress()
.equals(other.getAddress())) return false;
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();
hash = (37 * hash) + SIGNER_ROLE_FIELD_NUMBER;
hash = (53 * hash) + signerRole_;
if (hasSigner()) {
hash = (37 * hash) + SIGNER_FIELD_NUMBER;
hash = (53 * hash) + getSigner().hashCode();
}
hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getAddress().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Recital parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Recital 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 io.provenance.scope.contract.proto.Contracts.Recital parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Recital 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 io.provenance.scope.contract.proto.Contracts.Recital parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Recital 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(io.provenance.scope.contract.proto.Contracts.Recital 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.Recital}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Recital)
io.provenance.scope.contract.proto.Contracts.RecitalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Recital_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Recital_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Recital.class, io.provenance.scope.contract.proto.Contracts.Recital.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.Recital.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();
signerRole_ = 0;
if (signerBuilder_ == null) {
signer_ = null;
} else {
signer_ = null;
signerBuilder_ = null;
}
address_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Recital_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Recital getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.Recital.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Recital build() {
io.provenance.scope.contract.proto.Contracts.Recital result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Recital buildPartial() {
io.provenance.scope.contract.proto.Contracts.Recital result = new io.provenance.scope.contract.proto.Contracts.Recital(this);
result.signerRole_ = signerRole_;
if (signerBuilder_ == null) {
result.signer_ = signer_;
} else {
result.signer_ = signerBuilder_.build();
}
result.address_ = address_;
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 io.provenance.scope.contract.proto.Contracts.Recital) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.Recital)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.Recital other) {
if (other == io.provenance.scope.contract.proto.Contracts.Recital.getDefaultInstance()) return this;
if (other.signerRole_ != 0) {
setSignerRoleValue(other.getSignerRoleValue());
}
if (other.hasSigner()) {
mergeSigner(other.getSigner());
}
if (other.getAddress() != com.google.protobuf.ByteString.EMPTY) {
setAddress(other.getAddress());
}
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 {
io.provenance.scope.contract.proto.Contracts.Recital parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.Recital) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int signerRole_ = 0;
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The enum numeric value on the wire for signerRole.
*/
@java.lang.Override public int getSignerRoleValue() {
return signerRole_;
}
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @param value The enum numeric value on the wire for signerRole to set.
* @return This builder for chaining.
*/
public Builder setSignerRoleValue(int value) {
signerRole_ = value;
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return The signerRole.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Specifications.PartyType getSignerRole() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Specifications.PartyType result = io.provenance.scope.contract.proto.Specifications.PartyType.valueOf(signerRole_);
return result == null ? io.provenance.scope.contract.proto.Specifications.PartyType.UNRECOGNIZED : result;
}
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @param value The signerRole to set.
* @return This builder for chaining.
*/
public Builder setSignerRole(io.provenance.scope.contract.proto.Specifications.PartyType value) {
if (value == null) {
throw new NullPointerException();
}
signerRole_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.PartyType signer_role = 1;
* @return This builder for chaining.
*/
public Builder clearSignerRole() {
signerRole_ = 0;
onChanged();
return this;
}
private io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys signer_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder> signerBuilder_;
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return Whether the signer field is set.
*/
public boolean hasSigner() {
return signerBuilder_ != null || signer_ != null;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
* @return The signer.
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys getSigner() {
if (signerBuilder_ == null) {
return signer_ == null ? io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_;
} else {
return signerBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public Builder setSigner(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) {
if (signerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
signer_ = value;
onChanged();
} else {
signerBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public Builder setSigner(
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder builderForValue) {
if (signerBuilder_ == null) {
signer_ = builderForValue.build();
onChanged();
} else {
signerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public Builder mergeSigner(io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys value) {
if (signerBuilder_ == null) {
if (signer_ != null) {
signer_ =
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.newBuilder(signer_).mergeFrom(value).buildPartial();
} else {
signer_ = value;
}
onChanged();
} else {
signerBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public Builder clearSigner() {
if (signerBuilder_ == null) {
signer_ = null;
onChanged();
} else {
signer_ = null;
signerBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder getSignerBuilder() {
onChanged();
return getSignerFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
public io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder getSignerOrBuilder() {
if (signerBuilder_ != null) {
return signerBuilder_.getMessageOrBuilder();
} else {
return signer_ == null ?
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.getDefaultInstance() : signer_;
}
}
/**
* .io.provenance.scope.SigningAndEncryptionPublicKeys signer = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder>
getSignerFieldBuilder() {
if (signerBuilder_ == null) {
signerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeys.Builder, io.provenance.scope.proto.PK.SigningAndEncryptionPublicKeysOrBuilder>(
getSigner(),
getParentForChildren(),
isClean());
signer_ = null;
}
return signerBuilder_;
}
private com.google.protobuf.ByteString address_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes address = 3;
* @return The address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAddress() {
return address_;
}
/**
* bytes address = 3;
* @param value The address to set.
* @return This builder for chaining.
*/
public Builder setAddress(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
address_ = value;
onChanged();
return this;
}
/**
* bytes address = 3;
* @return This builder for chaining.
*/
public Builder clearAddress() {
address_ = getDefaultInstance().getAddress();
onChanged();
return this;
}
@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:io.provenance.scope.contract.Recital)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Recital)
private static final io.provenance.scope.contract.proto.Contracts.Recital DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.Recital();
}
public static io.provenance.scope.contract.proto.Contracts.Recital getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Recital parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Recital(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 io.provenance.scope.contract.proto.Contracts.Recital getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface RecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.Record)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return Whether the dataLocation field is set.
*/
boolean hasDataLocation();
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return The dataLocation.
*/
io.provenance.scope.contract.proto.Commons.Location getDataLocation();
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
io.provenance.scope.contract.proto.Commons.LocationOrBuilder getDataLocationOrBuilder();
}
/**
* Protobuf type {@code io.provenance.scope.contract.Record}
*/
public static final class Record extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.Record)
RecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use Record.newBuilder() to construct.
private Record(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Record() {
name_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Record();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Record(
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
io.provenance.scope.contract.proto.Commons.Location.Builder subBuilder = null;
if (dataLocation_ != null) {
subBuilder = dataLocation_.toBuilder();
}
dataLocation_ = input.readMessage(io.provenance.scope.contract.proto.Commons.Location.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataLocation_);
dataLocation_ = subBuilder.buildPartial();
}
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 io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Record.class, io.provenance.scope.contract.proto.Contracts.Record.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATA_LOCATION_FIELD_NUMBER = 2;
private io.provenance.scope.contract.proto.Commons.Location dataLocation_;
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return Whether the dataLocation field is set.
*/
@java.lang.Override
public boolean hasDataLocation() {
return dataLocation_ != null;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return The dataLocation.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.Location getDataLocation() {
return dataLocation_ == null ? io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : dataLocation_;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.LocationOrBuilder getDataLocationOrBuilder() {
return getDataLocation();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (dataLocation_ != null) {
output.writeMessage(2, getDataLocation());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (dataLocation_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataLocation());
}
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 io.provenance.scope.contract.proto.Contracts.Record)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.Record other = (io.provenance.scope.contract.proto.Contracts.Record) obj;
if (!getName()
.equals(other.getName())) return false;
if (hasDataLocation() != other.hasDataLocation()) return false;
if (hasDataLocation()) {
if (!getDataLocation()
.equals(other.getDataLocation())) return false;
}
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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (hasDataLocation()) {
hash = (37 * hash) + DATA_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getDataLocation().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.Record parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Record 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 io.provenance.scope.contract.proto.Contracts.Record parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Record 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 io.provenance.scope.contract.proto.Contracts.Record parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.Record 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(io.provenance.scope.contract.proto.Contracts.Record 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.Record}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.Record)
io.provenance.scope.contract.proto.Contracts.RecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Record_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Record_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.Record.class, io.provenance.scope.contract.proto.Contracts.Record.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.Record.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();
name_ = "";
if (dataLocationBuilder_ == null) {
dataLocation_ = null;
} else {
dataLocation_ = null;
dataLocationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_Record_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Record getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Record build() {
io.provenance.scope.contract.proto.Contracts.Record result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.Record buildPartial() {
io.provenance.scope.contract.proto.Contracts.Record result = new io.provenance.scope.contract.proto.Contracts.Record(this);
result.name_ = name_;
if (dataLocationBuilder_ == null) {
result.dataLocation_ = dataLocation_;
} else {
result.dataLocation_ = dataLocationBuilder_.build();
}
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 io.provenance.scope.contract.proto.Contracts.Record) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.Record)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.Record other) {
if (other == io.provenance.scope.contract.proto.Contracts.Record.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (other.hasDataLocation()) {
mergeDataLocation(other.getDataLocation());
}
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 {
io.provenance.scope.contract.proto.Contracts.Record parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.Record) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private io.provenance.scope.contract.proto.Commons.Location dataLocation_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder> dataLocationBuilder_;
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return Whether the dataLocation field is set.
*/
public boolean hasDataLocation() {
return dataLocationBuilder_ != null || dataLocation_ != null;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
* @return The dataLocation.
*/
public io.provenance.scope.contract.proto.Commons.Location getDataLocation() {
if (dataLocationBuilder_ == null) {
return dataLocation_ == null ? io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : dataLocation_;
} else {
return dataLocationBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public Builder setDataLocation(io.provenance.scope.contract.proto.Commons.Location value) {
if (dataLocationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataLocation_ = value;
onChanged();
} else {
dataLocationBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public Builder setDataLocation(
io.provenance.scope.contract.proto.Commons.Location.Builder builderForValue) {
if (dataLocationBuilder_ == null) {
dataLocation_ = builderForValue.build();
onChanged();
} else {
dataLocationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public Builder mergeDataLocation(io.provenance.scope.contract.proto.Commons.Location value) {
if (dataLocationBuilder_ == null) {
if (dataLocation_ != null) {
dataLocation_ =
io.provenance.scope.contract.proto.Commons.Location.newBuilder(dataLocation_).mergeFrom(value).buildPartial();
} else {
dataLocation_ = value;
}
onChanged();
} else {
dataLocationBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public Builder clearDataLocation() {
if (dataLocationBuilder_ == null) {
dataLocation_ = null;
onChanged();
} else {
dataLocation_ = null;
dataLocationBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public io.provenance.scope.contract.proto.Commons.Location.Builder getDataLocationBuilder() {
onChanged();
return getDataLocationFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
public io.provenance.scope.contract.proto.Commons.LocationOrBuilder getDataLocationOrBuilder() {
if (dataLocationBuilder_ != null) {
return dataLocationBuilder_.getMessageOrBuilder();
} else {
return dataLocation_ == null ?
io.provenance.scope.contract.proto.Commons.Location.getDefaultInstance() : dataLocation_;
}
}
/**
* .io.provenance.scope.contract.Location data_location = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder>
getDataLocationFieldBuilder() {
if (dataLocationBuilder_ == null) {
dataLocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.Location, io.provenance.scope.contract.proto.Commons.Location.Builder, io.provenance.scope.contract.proto.Commons.LocationOrBuilder>(
getDataLocation(),
getParentForChildren(),
isClean());
dataLocation_ = null;
}
return dataLocationBuilder_;
}
@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:io.provenance.scope.contract.Record)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.Record)
private static final io.provenance.scope.contract.proto.Contracts.Record DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.Record();
}
public static io.provenance.scope.contract.proto.Contracts.Record getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Record parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Record(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 io.provenance.scope.contract.proto.Contracts.Record getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConditionProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.ConditionProto)
com.google.protobuf.MessageOrBuilder {
/**
* string condition_name = 1;
* @return The conditionName.
*/
java.lang.String getConditionName();
/**
* string condition_name = 1;
* @return The bytes for conditionName.
*/
com.google.protobuf.ByteString
getConditionNameBytes();
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return The result.
*/
io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult();
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder();
}
/**
* Protobuf type {@code io.provenance.scope.contract.ConditionProto}
*/
public static final class ConditionProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.ConditionProto)
ConditionProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConditionProto.newBuilder() to construct.
private ConditionProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConditionProto() {
conditionName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConditionProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConditionProto(
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: {
java.lang.String s = input.readStringRequireUtf8();
conditionName_ = s;
break;
}
case 18: {
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(io.provenance.scope.contract.proto.Contracts.ExecutionResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConditionProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConditionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ConditionProto.class, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder.class);
}
public static final int CONDITION_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object conditionName_;
/**
* string condition_name = 1;
* @return The conditionName.
*/
@java.lang.Override
public java.lang.String getConditionName() {
java.lang.Object ref = conditionName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conditionName_ = s;
return s;
}
}
/**
* string condition_name = 1;
* @return The bytes for conditionName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConditionNameBytes() {
java.lang.Object ref = conditionName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conditionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULT_FIELD_NUMBER = 2;
private io.provenance.scope.contract.proto.Contracts.ExecutionResult result_;
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return The result.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult() {
return result_ == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder() {
return getResult();
}
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 (!getConditionNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, conditionName_);
}
if (result_ != null) {
output.writeMessage(2, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConditionNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, conditionName_);
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getResult());
}
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 io.provenance.scope.contract.proto.Contracts.ConditionProto)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.ConditionProto other = (io.provenance.scope.contract.proto.Contracts.ConditionProto) obj;
if (!getConditionName()
.equals(other.getConditionName())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
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();
hash = (37 * hash) + CONDITION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getConditionName().hashCode();
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto 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 io.provenance.scope.contract.proto.Contracts.ConditionProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto 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 io.provenance.scope.contract.proto.Contracts.ConditionProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto 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(io.provenance.scope.contract.proto.Contracts.ConditionProto 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.ConditionProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.ConditionProto)
io.provenance.scope.contract.proto.Contracts.ConditionProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConditionProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConditionProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ConditionProto.class, io.provenance.scope.contract.proto.Contracts.ConditionProto.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.ConditionProto.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();
conditionName_ = "";
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConditionProto_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConditionProto getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.ConditionProto.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConditionProto build() {
io.provenance.scope.contract.proto.Contracts.ConditionProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConditionProto buildPartial() {
io.provenance.scope.contract.proto.Contracts.ConditionProto result = new io.provenance.scope.contract.proto.Contracts.ConditionProto(this);
result.conditionName_ = conditionName_;
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
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 io.provenance.scope.contract.proto.Contracts.ConditionProto) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.ConditionProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.ConditionProto other) {
if (other == io.provenance.scope.contract.proto.Contracts.ConditionProto.getDefaultInstance()) return this;
if (!other.getConditionName().isEmpty()) {
conditionName_ = other.conditionName_;
onChanged();
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
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 {
io.provenance.scope.contract.proto.Contracts.ConditionProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.ConditionProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object conditionName_ = "";
/**
* string condition_name = 1;
* @return The conditionName.
*/
public java.lang.String getConditionName() {
java.lang.Object ref = conditionName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
conditionName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string condition_name = 1;
* @return The bytes for conditionName.
*/
public com.google.protobuf.ByteString
getConditionNameBytes() {
java.lang.Object ref = conditionName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
conditionName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string condition_name = 1;
* @param value The conditionName to set.
* @return This builder for chaining.
*/
public Builder setConditionName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
conditionName_ = value;
onChanged();
return this;
}
/**
* string condition_name = 1;
* @return This builder for chaining.
*/
public Builder clearConditionName() {
conditionName_ = getDefaultInstance().getConditionName();
onChanged();
return this;
}
/**
* string condition_name = 1;
* @param value The bytes for conditionName to set.
* @return This builder for chaining.
*/
public Builder setConditionNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
conditionName_ = value;
onChanged();
return this;
}
private io.provenance.scope.contract.proto.Contracts.ExecutionResult result_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder> resultBuilder_;
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
* @return The result.
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public Builder setResult(io.provenance.scope.contract.proto.Contracts.ExecutionResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public Builder setResult(
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public Builder mergeResult(io.provenance.scope.contract.proto.Contracts.ExecutionResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
io.provenance.scope.contract.proto.Contracts.ExecutionResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
}
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@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:io.provenance.scope.contract.ConditionProto)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.ConditionProto)
private static final io.provenance.scope.contract.proto.Contracts.ConditionProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.ConditionProto();
}
public static io.provenance.scope.contract.proto.Contracts.ConditionProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConditionProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConditionProto(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 io.provenance.scope.contract.proto.Contracts.ConditionProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ConsiderationProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.ConsiderationProto)
com.google.protobuf.MessageOrBuilder {
/**
* string consideration_name = 1;
* @return The considerationName.
*/
java.lang.String getConsiderationName();
/**
* string consideration_name = 1;
* @return The bytes for considerationName.
*/
com.google.protobuf.ByteString
getConsiderationNameBytes();
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
java.util.List
getInputsList();
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
io.provenance.scope.contract.proto.Contracts.ProposedRecord getInputs(int index);
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
int getInputsCount();
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
java.util.List extends io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>
getInputsOrBuilderList();
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getInputsOrBuilder(
int index);
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return Whether the result field is set.
*/
boolean hasResult();
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return The result.
*/
io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult();
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder();
}
/**
* Protobuf type {@code io.provenance.scope.contract.ConsiderationProto}
*/
public static final class ConsiderationProto extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.ConsiderationProto)
ConsiderationProtoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ConsiderationProto.newBuilder() to construct.
private ConsiderationProto(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ConsiderationProto() {
considerationName_ = "";
inputs_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ConsiderationProto();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ConsiderationProto(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
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: {
java.lang.String s = input.readStringRequireUtf8();
considerationName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
inputs_.add(
input.readMessage(io.provenance.scope.contract.proto.Contracts.ProposedRecord.parser(), extensionRegistry));
break;
}
case 26: {
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder subBuilder = null;
if (result_ != null) {
subBuilder = result_.toBuilder();
}
result_ = input.readMessage(io.provenance.scope.contract.proto.Contracts.ExecutionResult.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(result_);
result_ = subBuilder.buildPartial();
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConsiderationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ConsiderationProto.class, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder.class);
}
public static final int CONSIDERATION_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object considerationName_;
/**
* string consideration_name = 1;
* @return The considerationName.
*/
@java.lang.Override
public java.lang.String getConsiderationName() {
java.lang.Object ref = considerationName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
considerationName_ = s;
return s;
}
}
/**
* string consideration_name = 1;
* @return The bytes for considerationName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getConsiderationNameBytes() {
java.lang.Object ref = considerationName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
considerationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INPUTS_FIELD_NUMBER = 2;
private java.util.List inputs_;
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
@java.lang.Override
public java.util.List getInputsList() {
return inputs_;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
@java.lang.Override
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>
getInputsOrBuilderList() {
return inputs_;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
@java.lang.Override
public int getInputsCount() {
return inputs_.size();
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecord getInputs(int index) {
return inputs_.get(index);
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getInputsOrBuilder(
int index) {
return inputs_.get(index);
}
public static final int RESULT_FIELD_NUMBER = 3;
private io.provenance.scope.contract.proto.Contracts.ExecutionResult result_;
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return Whether the result field is set.
*/
@java.lang.Override
public boolean hasResult() {
return result_ != null;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return The result.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult() {
return result_ == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder() {
return getResult();
}
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 (!getConsiderationNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, considerationName_);
}
for (int i = 0; i < inputs_.size(); i++) {
output.writeMessage(2, inputs_.get(i));
}
if (result_ != null) {
output.writeMessage(3, getResult());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getConsiderationNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, considerationName_);
}
for (int i = 0; i < inputs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, inputs_.get(i));
}
if (result_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getResult());
}
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 io.provenance.scope.contract.proto.Contracts.ConsiderationProto)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.ConsiderationProto other = (io.provenance.scope.contract.proto.Contracts.ConsiderationProto) obj;
if (!getConsiderationName()
.equals(other.getConsiderationName())) return false;
if (!getInputsList()
.equals(other.getInputsList())) return false;
if (hasResult() != other.hasResult()) return false;
if (hasResult()) {
if (!getResult()
.equals(other.getResult())) return false;
}
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();
hash = (37 * hash) + CONSIDERATION_NAME_FIELD_NUMBER;
hash = (53 * hash) + getConsiderationName().hashCode();
if (getInputsCount() > 0) {
hash = (37 * hash) + INPUTS_FIELD_NUMBER;
hash = (53 * hash) + getInputsList().hashCode();
}
if (hasResult()) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResult().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto 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 io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto 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 io.provenance.scope.contract.proto.Contracts.ConsiderationProto parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto 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(io.provenance.scope.contract.proto.Contracts.ConsiderationProto 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.ConsiderationProto}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.ConsiderationProto)
io.provenance.scope.contract.proto.Contracts.ConsiderationProtoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConsiderationProto_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ConsiderationProto.class, io.provenance.scope.contract.proto.Contracts.ConsiderationProto.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.ConsiderationProto.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getInputsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
considerationName_ = "";
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
inputsBuilder_.clear();
}
if (resultBuilder_ == null) {
result_ = null;
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.ConsiderationProto.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto build() {
io.provenance.scope.contract.proto.Contracts.ConsiderationProto result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ConsiderationProto buildPartial() {
io.provenance.scope.contract.proto.Contracts.ConsiderationProto result = new io.provenance.scope.contract.proto.Contracts.ConsiderationProto(this);
int from_bitField0_ = bitField0_;
result.considerationName_ = considerationName_;
if (inputsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
inputs_ = java.util.Collections.unmodifiableList(inputs_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.inputs_ = inputs_;
} else {
result.inputs_ = inputsBuilder_.build();
}
if (resultBuilder_ == null) {
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
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 io.provenance.scope.contract.proto.Contracts.ConsiderationProto) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.ConsiderationProto)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.ConsiderationProto other) {
if (other == io.provenance.scope.contract.proto.Contracts.ConsiderationProto.getDefaultInstance()) return this;
if (!other.getConsiderationName().isEmpty()) {
considerationName_ = other.considerationName_;
onChanged();
}
if (inputsBuilder_ == null) {
if (!other.inputs_.isEmpty()) {
if (inputs_.isEmpty()) {
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureInputsIsMutable();
inputs_.addAll(other.inputs_);
}
onChanged();
}
} else {
if (!other.inputs_.isEmpty()) {
if (inputsBuilder_.isEmpty()) {
inputsBuilder_.dispose();
inputsBuilder_ = null;
inputs_ = other.inputs_;
bitField0_ = (bitField0_ & ~0x00000001);
inputsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getInputsFieldBuilder() : null;
} else {
inputsBuilder_.addAllMessages(other.inputs_);
}
}
}
if (other.hasResult()) {
mergeResult(other.getResult());
}
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 {
io.provenance.scope.contract.proto.Contracts.ConsiderationProto parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.ConsiderationProto) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object considerationName_ = "";
/**
* string consideration_name = 1;
* @return The considerationName.
*/
public java.lang.String getConsiderationName() {
java.lang.Object ref = considerationName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
considerationName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string consideration_name = 1;
* @return The bytes for considerationName.
*/
public com.google.protobuf.ByteString
getConsiderationNameBytes() {
java.lang.Object ref = considerationName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
considerationName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string consideration_name = 1;
* @param value The considerationName to set.
* @return This builder for chaining.
*/
public Builder setConsiderationName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
considerationName_ = value;
onChanged();
return this;
}
/**
* string consideration_name = 1;
* @return This builder for chaining.
*/
public Builder clearConsiderationName() {
considerationName_ = getDefaultInstance().getConsiderationName();
onChanged();
return this;
}
/**
* string consideration_name = 1;
* @param value The bytes for considerationName to set.
* @return This builder for chaining.
*/
public Builder setConsiderationNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
considerationName_ = value;
onChanged();
return this;
}
private java.util.List inputs_ =
java.util.Collections.emptyList();
private void ensureInputsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
inputs_ = new java.util.ArrayList(inputs_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder> inputsBuilder_;
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public java.util.List getInputsList() {
if (inputsBuilder_ == null) {
return java.util.Collections.unmodifiableList(inputs_);
} else {
return inputsBuilder_.getMessageList();
}
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public int getInputsCount() {
if (inputsBuilder_ == null) {
return inputs_.size();
} else {
return inputsBuilder_.getCount();
}
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord getInputs(int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index);
} else {
return inputsBuilder_.getMessage(index);
}
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder setInputs(
int index, io.provenance.scope.contract.proto.Contracts.ProposedRecord value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.set(index, value);
onChanged();
} else {
inputsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder setInputs(
int index, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.set(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder addInputs(io.provenance.scope.contract.proto.Contracts.ProposedRecord value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(value);
onChanged();
} else {
inputsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder addInputs(
int index, io.provenance.scope.contract.proto.Contracts.ProposedRecord value) {
if (inputsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureInputsIsMutable();
inputs_.add(index, value);
onChanged();
} else {
inputsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder addInputs(
io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder addInputs(
int index, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder builderForValue) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.add(index, builderForValue.build());
onChanged();
} else {
inputsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder addAllInputs(
java.lang.Iterable extends io.provenance.scope.contract.proto.Contracts.ProposedRecord> values) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, inputs_);
onChanged();
} else {
inputsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder clearInputs() {
if (inputsBuilder_ == null) {
inputs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
inputsBuilder_.clear();
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public Builder removeInputs(int index) {
if (inputsBuilder_ == null) {
ensureInputsIsMutable();
inputs_.remove(index);
onChanged();
} else {
inputsBuilder_.remove(index);
}
return this;
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder getInputsBuilder(
int index) {
return getInputsFieldBuilder().getBuilder(index);
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getInputsOrBuilder(
int index) {
if (inputsBuilder_ == null) {
return inputs_.get(index); } else {
return inputsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public java.util.List extends io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>
getInputsOrBuilderList() {
if (inputsBuilder_ != null) {
return inputsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(inputs_);
}
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder addInputsBuilder() {
return getInputsFieldBuilder().addBuilder(
io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance());
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder addInputsBuilder(
int index) {
return getInputsFieldBuilder().addBuilder(
index, io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance());
}
/**
*
* Data pushed to a consideration that will ultimately match the output_spec of the consideration
*
*
* repeated .io.provenance.scope.contract.ProposedRecord inputs = 2;
*/
public java.util.List
getInputsBuilderList() {
return getInputsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>
getInputsFieldBuilder() {
if (inputsBuilder_ == null) {
inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>(
inputs_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
inputs_ = null;
}
return inputsBuilder_;
}
private io.provenance.scope.contract.proto.Contracts.ExecutionResult result_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder> resultBuilder_;
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return Whether the result field is set.
*/
public boolean hasResult() {
return resultBuilder_ != null || result_ != null;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
* @return The result.
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResult getResult() {
if (resultBuilder_ == null) {
return result_ == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
} else {
return resultBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public Builder setResult(io.provenance.scope.contract.proto.Contracts.ExecutionResult value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
result_ = value;
onChanged();
} else {
resultBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public Builder setResult(
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder builderForValue) {
if (resultBuilder_ == null) {
result_ = builderForValue.build();
onChanged();
} else {
resultBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public Builder mergeResult(io.provenance.scope.contract.proto.Contracts.ExecutionResult value) {
if (resultBuilder_ == null) {
if (result_ != null) {
result_ =
io.provenance.scope.contract.proto.Contracts.ExecutionResult.newBuilder(result_).mergeFrom(value).buildPartial();
} else {
result_ = value;
}
onChanged();
} else {
resultBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = null;
onChanged();
} else {
result_ = null;
resultBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder getResultBuilder() {
onChanged();
return getResultFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
public io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder getResultOrBuilder() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilder();
} else {
return result_ == null ?
io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance() : result_;
}
}
/**
* .io.provenance.scope.contract.ExecutionResult result = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ExecutionResult, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder, io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder>(
getResult(),
getParentForChildren(),
isClean());
result_ = null;
}
return resultBuilder_;
}
@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:io.provenance.scope.contract.ConsiderationProto)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.ConsiderationProto)
private static final io.provenance.scope.contract.proto.Contracts.ConsiderationProto DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.ConsiderationProto();
}
public static io.provenance.scope.contract.proto.Contracts.ConsiderationProto getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ConsiderationProto parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ConsiderationProto(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 io.provenance.scope.contract.proto.Contracts.ConsiderationProto getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ProposedRecordOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.ProposedRecord)
com.google.protobuf.MessageOrBuilder {
/**
* string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* string hash = 2;
* @return The hash.
*/
java.lang.String getHash();
/**
* string hash = 2;
* @return The bytes for hash.
*/
com.google.protobuf.ByteString
getHashBytes();
/**
* string classname = 3;
* @return The classname.
*/
java.lang.String getClassname();
/**
* string classname = 3;
* @return The bytes for classname.
*/
com.google.protobuf.ByteString
getClassnameBytes();
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return Whether the ancestor field is set.
*/
boolean hasAncestor();
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return The ancestor.
*/
io.provenance.scope.contract.proto.Commons.ProvenanceReference getAncestor();
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getAncestorOrBuilder();
}
/**
*
* Input to a consideration defined at runtime, and emitted as a proposed fact for inclusion on the blockchain.
*
*
* Protobuf type {@code io.provenance.scope.contract.ProposedRecord}
*/
public static final class ProposedRecord extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.ProposedRecord)
ProposedRecordOrBuilder {
private static final long serialVersionUID = 0L;
// Use ProposedRecord.newBuilder() to construct.
private ProposedRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ProposedRecord() {
name_ = "";
hash_ = "";
classname_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ProposedRecord();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ProposedRecord(
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: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
hash_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
classname_ = s;
break;
}
case 34: {
io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder subBuilder = null;
if (ancestor_ != null) {
subBuilder = ancestor_.toBuilder();
}
ancestor_ = input.readMessage(io.provenance.scope.contract.proto.Commons.ProvenanceReference.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ancestor_);
ancestor_ = subBuilder.buildPartial();
}
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 io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ProposedRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ProposedRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ProposedRecord.class, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HASH_FIELD_NUMBER = 2;
private volatile java.lang.Object hash_;
/**
* string hash = 2;
* @return The hash.
*/
@java.lang.Override
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
}
}
/**
* string hash = 2;
* @return The bytes for hash.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLASSNAME_FIELD_NUMBER = 3;
private volatile java.lang.Object classname_;
/**
* string classname = 3;
* @return The classname.
*/
@java.lang.Override
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classname_ = s;
return s;
}
}
/**
* string classname = 3;
* @return The bytes for classname.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANCESTOR_FIELD_NUMBER = 4;
private io.provenance.scope.contract.proto.Commons.ProvenanceReference ancestor_;
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return Whether the ancestor field is set.
*/
@java.lang.Override
public boolean hasAncestor() {
return ancestor_ != null;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return The ancestor.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReference getAncestor() {
return ancestor_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ancestor_;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getAncestorOrBuilder() {
return getAncestor();
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getHashBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, hash_);
}
if (!getClassnameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, classname_);
}
if (ancestor_ != null) {
output.writeMessage(4, getAncestor());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getHashBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, hash_);
}
if (!getClassnameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, classname_);
}
if (ancestor_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAncestor());
}
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 io.provenance.scope.contract.proto.Contracts.ProposedRecord)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.ProposedRecord other = (io.provenance.scope.contract.proto.Contracts.ProposedRecord) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getHash()
.equals(other.getHash())) return false;
if (!getClassname()
.equals(other.getClassname())) return false;
if (hasAncestor() != other.hasAncestor()) return false;
if (hasAncestor()) {
if (!getAncestor()
.equals(other.getAncestor())) return false;
}
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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + HASH_FIELD_NUMBER;
hash = (53 * hash) + getHash().hashCode();
hash = (37 * hash) + CLASSNAME_FIELD_NUMBER;
hash = (53 * hash) + getClassname().hashCode();
if (hasAncestor()) {
hash = (37 * hash) + ANCESTOR_FIELD_NUMBER;
hash = (53 * hash) + getAncestor().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord 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 io.provenance.scope.contract.proto.Contracts.ProposedRecord parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord 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 io.provenance.scope.contract.proto.Contracts.ProposedRecord parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord 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(io.provenance.scope.contract.proto.Contracts.ProposedRecord 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;
}
/**
*
* Input to a consideration defined at runtime, and emitted as a proposed fact for inclusion on the blockchain.
*
*
* Protobuf type {@code io.provenance.scope.contract.ProposedRecord}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.ProposedRecord)
io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ProposedRecord_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ProposedRecord_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ProposedRecord.class, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.ProposedRecord.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();
name_ = "";
hash_ = "";
classname_ = "";
if (ancestorBuilder_ == null) {
ancestor_ = null;
} else {
ancestor_ = null;
ancestorBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ProposedRecord_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecord getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecord build() {
io.provenance.scope.contract.proto.Contracts.ProposedRecord result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecord buildPartial() {
io.provenance.scope.contract.proto.Contracts.ProposedRecord result = new io.provenance.scope.contract.proto.Contracts.ProposedRecord(this);
result.name_ = name_;
result.hash_ = hash_;
result.classname_ = classname_;
if (ancestorBuilder_ == null) {
result.ancestor_ = ancestor_;
} else {
result.ancestor_ = ancestorBuilder_.build();
}
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 io.provenance.scope.contract.proto.Contracts.ProposedRecord) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.ProposedRecord)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.ProposedRecord other) {
if (other == io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getHash().isEmpty()) {
hash_ = other.hash_;
onChanged();
}
if (!other.getClassname().isEmpty()) {
classname_ = other.classname_;
onChanged();
}
if (other.hasAncestor()) {
mergeAncestor(other.getAncestor());
}
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 {
io.provenance.scope.contract.proto.Contracts.ProposedRecord parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.ProposedRecord) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object hash_ = "";
/**
* string hash = 2;
* @return The hash.
*/
public java.lang.String getHash() {
java.lang.Object ref = hash_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
hash_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string hash = 2;
* @return The bytes for hash.
*/
public com.google.protobuf.ByteString
getHashBytes() {
java.lang.Object ref = hash_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
hash_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string hash = 2;
* @param value The hash to set.
* @return This builder for chaining.
*/
public Builder setHash(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
hash_ = value;
onChanged();
return this;
}
/**
* string hash = 2;
* @return This builder for chaining.
*/
public Builder clearHash() {
hash_ = getDefaultInstance().getHash();
onChanged();
return this;
}
/**
* string hash = 2;
* @param value The bytes for hash to set.
* @return This builder for chaining.
*/
public Builder setHashBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
hash_ = value;
onChanged();
return this;
}
private java.lang.Object classname_ = "";
/**
* string classname = 3;
* @return The classname.
*/
public java.lang.String getClassname() {
java.lang.Object ref = classname_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
classname_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string classname = 3;
* @return The bytes for classname.
*/
public com.google.protobuf.ByteString
getClassnameBytes() {
java.lang.Object ref = classname_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
classname_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string classname = 3;
* @param value The classname to set.
* @return This builder for chaining.
*/
public Builder setClassname(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
classname_ = value;
onChanged();
return this;
}
/**
* string classname = 3;
* @return This builder for chaining.
*/
public Builder clearClassname() {
classname_ = getDefaultInstance().getClassname();
onChanged();
return this;
}
/**
* string classname = 3;
* @param value The bytes for classname to set.
* @return This builder for chaining.
*/
public Builder setClassnameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
classname_ = value;
onChanged();
return this;
}
private io.provenance.scope.contract.proto.Commons.ProvenanceReference ancestor_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder> ancestorBuilder_;
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return Whether the ancestor field is set.
*/
public boolean hasAncestor() {
return ancestorBuilder_ != null || ancestor_ != null;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
* @return The ancestor.
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReference getAncestor() {
if (ancestorBuilder_ == null) {
return ancestor_ == null ? io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ancestor_;
} else {
return ancestorBuilder_.getMessage();
}
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public Builder setAncestor(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) {
if (ancestorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ancestor_ = value;
onChanged();
} else {
ancestorBuilder_.setMessage(value);
}
return this;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public Builder setAncestor(
io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder builderForValue) {
if (ancestorBuilder_ == null) {
ancestor_ = builderForValue.build();
onChanged();
} else {
ancestorBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public Builder mergeAncestor(io.provenance.scope.contract.proto.Commons.ProvenanceReference value) {
if (ancestorBuilder_ == null) {
if (ancestor_ != null) {
ancestor_ =
io.provenance.scope.contract.proto.Commons.ProvenanceReference.newBuilder(ancestor_).mergeFrom(value).buildPartial();
} else {
ancestor_ = value;
}
onChanged();
} else {
ancestorBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public Builder clearAncestor() {
if (ancestorBuilder_ == null) {
ancestor_ = null;
onChanged();
} else {
ancestor_ = null;
ancestorBuilder_ = null;
}
return this;
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder getAncestorBuilder() {
onChanged();
return getAncestorFieldBuilder().getBuilder();
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
public io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder getAncestorOrBuilder() {
if (ancestorBuilder_ != null) {
return ancestorBuilder_.getMessageOrBuilder();
} else {
return ancestor_ == null ?
io.provenance.scope.contract.proto.Commons.ProvenanceReference.getDefaultInstance() : ancestor_;
}
}
/**
*
* TODO do we need this?
*
*
* .io.provenance.scope.contract.ProvenanceReference ancestor = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder>
getAncestorFieldBuilder() {
if (ancestorBuilder_ == null) {
ancestorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Commons.ProvenanceReference, io.provenance.scope.contract.proto.Commons.ProvenanceReference.Builder, io.provenance.scope.contract.proto.Commons.ProvenanceReferenceOrBuilder>(
getAncestor(),
getParentForChildren(),
isClean());
ancestor_ = null;
}
return ancestorBuilder_;
}
@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:io.provenance.scope.contract.ProposedRecord)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.ProposedRecord)
private static final io.provenance.scope.contract.proto.Contracts.ProposedRecord DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.ProposedRecord();
}
public static io.provenance.scope.contract.proto.Contracts.ProposedRecord getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ProposedRecord parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ProposedRecord(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 io.provenance.scope.contract.proto.Contracts.ProposedRecord getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ExecutionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:io.provenance.scope.contract.ExecutionResult)
com.google.protobuf.MessageOrBuilder {
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return Whether the output field is set.
*/
boolean hasOutput();
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return The output.
*/
io.provenance.scope.contract.proto.Contracts.ProposedRecord getOutput();
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getOutputOrBuilder();
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The enum numeric value on the wire for result.
*/
int getResultValue();
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The result.
*/
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result getResult();
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return Whether the recordedAt field is set.
*/
boolean hasRecordedAt();
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return The recordedAt.
*/
com.google.protobuf.Timestamp getRecordedAt();
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
com.google.protobuf.TimestampOrBuilder getRecordedAtOrBuilder();
/**
* string error_message = 4;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
* string error_message = 4;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code io.provenance.scope.contract.ExecutionResult}
*/
public static final class ExecutionResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.provenance.scope.contract.ExecutionResult)
ExecutionResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExecutionResult.newBuilder() to construct.
private ExecutionResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExecutionResult() {
result_ = 0;
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ExecutionResult();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExecutionResult(
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: {
io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder subBuilder = null;
if (output_ != null) {
subBuilder = output_.toBuilder();
}
output_ = input.readMessage(io.provenance.scope.contract.proto.Contracts.ProposedRecord.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(output_);
output_ = subBuilder.buildPartial();
}
break;
}
case 16: {
int rawValue = input.readEnum();
result_ = rawValue;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (recordedAt_ != null) {
subBuilder = recordedAt_.toBuilder();
}
recordedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(recordedAt_);
recordedAt_ = subBuilder.buildPartial();
}
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
errorMessage_ = s;
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 io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ExecutionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ExecutionResult.class, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder.class);
}
/**
* Protobuf enum {@code io.provenance.scope.contract.ExecutionResult.Result}
*/
public enum Result
implements com.google.protobuf.ProtocolMessageEnum {
/**
* UNKNOWN = 0;
*/
UNKNOWN(0),
/**
* PASS = 1;
*/
PASS(1),
/**
*
* Couldn't process the condition/consideration due to missing facts being generated by other considerations.
*
*
* SKIP = 2;
*/
SKIP(2),
/**
* FAIL = 3;
*/
FAIL(3),
UNRECOGNIZED(-1),
;
/**
* UNKNOWN = 0;
*/
public static final int UNKNOWN_VALUE = 0;
/**
* PASS = 1;
*/
public static final int PASS_VALUE = 1;
/**
*
* Couldn't process the condition/consideration due to missing facts being generated by other considerations.
*
*
* SKIP = 2;
*/
public static final int SKIP_VALUE = 2;
/**
* FAIL = 3;
*/
public static final int FAIL_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Result valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Result forNumber(int value) {
switch (value) {
case 0: return UNKNOWN;
case 1: return PASS;
case 2: return SKIP;
case 3: return FAIL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Result> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Result findValueByNumber(int number) {
return Result.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDescriptor().getEnumTypes().get(0);
}
private static final Result[] VALUES = values();
public static Result valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Result(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.provenance.scope.contract.ExecutionResult.Result)
}
public static final int OUTPUT_FIELD_NUMBER = 1;
private io.provenance.scope.contract.proto.Contracts.ProposedRecord output_;
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return Whether the output field is set.
*/
@java.lang.Override
public boolean hasOutput() {
return output_ != null;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return The output.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecord getOutput() {
return output_ == null ? io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance() : output_;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getOutputOrBuilder() {
return getOutput();
}
public static final int RESULT_FIELD_NUMBER = 2;
private int result_;
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The result.
*/
@java.lang.Override public io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result getResult() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result result = io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.valueOf(result_);
return result == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.UNRECOGNIZED : result;
}
public static final int RECORDED_AT_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp recordedAt_;
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return Whether the recordedAt field is set.
*/
@java.lang.Override
public boolean hasRecordedAt() {
return recordedAt_ != null;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return The recordedAt.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRecordedAt() {
return recordedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : recordedAt_;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRecordedAtOrBuilder() {
return getRecordedAt();
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 4;
private volatile java.lang.Object errorMessage_;
/**
* string error_message = 4;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
/**
* string error_message = 4;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (output_ != null) {
output.writeMessage(1, getOutput());
}
if (result_ != io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.UNKNOWN.getNumber()) {
output.writeEnum(2, result_);
}
if (recordedAt_ != null) {
output.writeMessage(3, getRecordedAt());
}
if (!getErrorMessageBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errorMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (output_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getOutput());
}
if (result_ != io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.UNKNOWN.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, result_);
}
if (recordedAt_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getRecordedAt());
}
if (!getErrorMessageBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errorMessage_);
}
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 io.provenance.scope.contract.proto.Contracts.ExecutionResult)) {
return super.equals(obj);
}
io.provenance.scope.contract.proto.Contracts.ExecutionResult other = (io.provenance.scope.contract.proto.Contracts.ExecutionResult) obj;
if (hasOutput() != other.hasOutput()) return false;
if (hasOutput()) {
if (!getOutput()
.equals(other.getOutput())) return false;
}
if (result_ != other.result_) return false;
if (hasRecordedAt() != other.hasRecordedAt()) return false;
if (hasRecordedAt()) {
if (!getRecordedAt()
.equals(other.getRecordedAt())) return false;
}
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
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 (hasOutput()) {
hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
hash = (53 * hash) + getOutput().hashCode();
}
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + result_;
if (hasRecordedAt()) {
hash = (37 * hash) + RECORDED_AT_FIELD_NUMBER;
hash = (53 * hash) + getRecordedAt().hashCode();
}
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult 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 io.provenance.scope.contract.proto.Contracts.ExecutionResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult 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 io.provenance.scope.contract.proto.Contracts.ExecutionResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult 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(io.provenance.scope.contract.proto.Contracts.ExecutionResult 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;
}
/**
* Protobuf type {@code io.provenance.scope.contract.ExecutionResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.provenance.scope.contract.ExecutionResult)
io.provenance.scope.contract.proto.Contracts.ExecutionResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ExecutionResult_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ExecutionResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.provenance.scope.contract.proto.Contracts.ExecutionResult.class, io.provenance.scope.contract.proto.Contracts.ExecutionResult.Builder.class);
}
// Construct using io.provenance.scope.contract.proto.Contracts.ExecutionResult.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 (outputBuilder_ == null) {
output_ = null;
} else {
output_ = null;
outputBuilder_ = null;
}
result_ = 0;
if (recordedAtBuilder_ == null) {
recordedAt_ = null;
} else {
recordedAt_ = null;
recordedAtBuilder_ = null;
}
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.provenance.scope.contract.proto.Contracts.internal_static_io_provenance_scope_contract_ExecutionResult_descriptor;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult getDefaultInstanceForType() {
return io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance();
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult build() {
io.provenance.scope.contract.proto.Contracts.ExecutionResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult buildPartial() {
io.provenance.scope.contract.proto.Contracts.ExecutionResult result = new io.provenance.scope.contract.proto.Contracts.ExecutionResult(this);
if (outputBuilder_ == null) {
result.output_ = output_;
} else {
result.output_ = outputBuilder_.build();
}
result.result_ = result_;
if (recordedAtBuilder_ == null) {
result.recordedAt_ = recordedAt_;
} else {
result.recordedAt_ = recordedAtBuilder_.build();
}
result.errorMessage_ = errorMessage_;
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 io.provenance.scope.contract.proto.Contracts.ExecutionResult) {
return mergeFrom((io.provenance.scope.contract.proto.Contracts.ExecutionResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.provenance.scope.contract.proto.Contracts.ExecutionResult other) {
if (other == io.provenance.scope.contract.proto.Contracts.ExecutionResult.getDefaultInstance()) return this;
if (other.hasOutput()) {
mergeOutput(other.getOutput());
}
if (other.result_ != 0) {
setResultValue(other.getResultValue());
}
if (other.hasRecordedAt()) {
mergeRecordedAt(other.getRecordedAt());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
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 {
io.provenance.scope.contract.proto.Contracts.ExecutionResult parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.provenance.scope.contract.proto.Contracts.ExecutionResult) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private io.provenance.scope.contract.proto.Contracts.ProposedRecord output_;
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder> outputBuilder_;
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return Whether the output field is set.
*/
public boolean hasOutput() {
return outputBuilder_ != null || output_ != null;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
* @return The output.
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord getOutput() {
if (outputBuilder_ == null) {
return output_ == null ? io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance() : output_;
} else {
return outputBuilder_.getMessage();
}
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public Builder setOutput(io.provenance.scope.contract.proto.Contracts.ProposedRecord value) {
if (outputBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
output_ = value;
onChanged();
} else {
outputBuilder_.setMessage(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public Builder setOutput(
io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder builderForValue) {
if (outputBuilder_ == null) {
output_ = builderForValue.build();
onChanged();
} else {
outputBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public Builder mergeOutput(io.provenance.scope.contract.proto.Contracts.ProposedRecord value) {
if (outputBuilder_ == null) {
if (output_ != null) {
output_ =
io.provenance.scope.contract.proto.Contracts.ProposedRecord.newBuilder(output_).mergeFrom(value).buildPartial();
} else {
output_ = value;
}
onChanged();
} else {
outputBuilder_.mergeFrom(value);
}
return this;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public Builder clearOutput() {
if (outputBuilder_ == null) {
output_ = null;
onChanged();
} else {
output_ = null;
outputBuilder_ = null;
}
return this;
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder getOutputBuilder() {
onChanged();
return getOutputFieldBuilder().getBuilder();
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
public io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder getOutputOrBuilder() {
if (outputBuilder_ != null) {
return outputBuilder_.getMessageOrBuilder();
} else {
return output_ == null ?
io.provenance.scope.contract.proto.Contracts.ProposedRecord.getDefaultInstance() : output_;
}
}
/**
* .io.provenance.scope.contract.ProposedRecord output = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>
getOutputFieldBuilder() {
if (outputBuilder_ == null) {
outputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.provenance.scope.contract.proto.Contracts.ProposedRecord, io.provenance.scope.contract.proto.Contracts.ProposedRecord.Builder, io.provenance.scope.contract.proto.Contracts.ProposedRecordOrBuilder>(
getOutput(),
getParentForChildren(),
isClean());
output_ = null;
}
return outputBuilder_;
}
private int result_ = 0;
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The enum numeric value on the wire for result.
*/
@java.lang.Override public int getResultValue() {
return result_;
}
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @param value The enum numeric value on the wire for result to set.
* @return This builder for chaining.
*/
public Builder setResultValue(int value) {
result_ = value;
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return The result.
*/
@java.lang.Override
public io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result getResult() {
@SuppressWarnings("deprecation")
io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result result = io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.valueOf(result_);
return result == null ? io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result.UNRECOGNIZED : result;
}
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @param value The result to set.
* @return This builder for chaining.
*/
public Builder setResult(io.provenance.scope.contract.proto.Contracts.ExecutionResult.Result value) {
if (value == null) {
throw new NullPointerException();
}
result_ = value.getNumber();
onChanged();
return this;
}
/**
* .io.provenance.scope.contract.ExecutionResult.Result result = 2;
* @return This builder for chaining.
*/
public Builder clearResult() {
result_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp recordedAt_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> recordedAtBuilder_;
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return Whether the recordedAt field is set.
*/
public boolean hasRecordedAt() {
return recordedAtBuilder_ != null || recordedAt_ != null;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
* @return The recordedAt.
*/
public com.google.protobuf.Timestamp getRecordedAt() {
if (recordedAtBuilder_ == null) {
return recordedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : recordedAt_;
} else {
return recordedAtBuilder_.getMessage();
}
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public Builder setRecordedAt(com.google.protobuf.Timestamp value) {
if (recordedAtBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
recordedAt_ = value;
onChanged();
} else {
recordedAtBuilder_.setMessage(value);
}
return this;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public Builder setRecordedAt(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (recordedAtBuilder_ == null) {
recordedAt_ = builderForValue.build();
onChanged();
} else {
recordedAtBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public Builder mergeRecordedAt(com.google.protobuf.Timestamp value) {
if (recordedAtBuilder_ == null) {
if (recordedAt_ != null) {
recordedAt_ =
com.google.protobuf.Timestamp.newBuilder(recordedAt_).mergeFrom(value).buildPartial();
} else {
recordedAt_ = value;
}
onChanged();
} else {
recordedAtBuilder_.mergeFrom(value);
}
return this;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public Builder clearRecordedAt() {
if (recordedAtBuilder_ == null) {
recordedAt_ = null;
onChanged();
} else {
recordedAt_ = null;
recordedAtBuilder_ = null;
}
return this;
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public com.google.protobuf.Timestamp.Builder getRecordedAtBuilder() {
onChanged();
return getRecordedAtFieldBuilder().getBuilder();
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
public com.google.protobuf.TimestampOrBuilder getRecordedAtOrBuilder() {
if (recordedAtBuilder_ != null) {
return recordedAtBuilder_.getMessageOrBuilder();
} else {
return recordedAt_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : recordedAt_;
}
}
/**
* .google.protobuf.Timestamp recorded_at = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getRecordedAtFieldBuilder() {
if (recordedAtBuilder_ == null) {
recordedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getRecordedAt(),
getParentForChildren(),
isClean());
recordedAt_ = null;
}
return recordedAtBuilder_;
}
private java.lang.Object errorMessage_ = "";
/**
* string error_message = 4;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string error_message = 4;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string error_message = 4;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
* string error_message = 4;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
* string error_message = 4;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
@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:io.provenance.scope.contract.ExecutionResult)
}
// @@protoc_insertion_point(class_scope:io.provenance.scope.contract.ExecutionResult)
private static final io.provenance.scope.contract.proto.Contracts.ExecutionResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.provenance.scope.contract.proto.Contracts.ExecutionResult();
}
public static io.provenance.scope.contract.proto.Contracts.ExecutionResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExecutionResult parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExecutionResult(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 io.provenance.scope.contract.proto.Contracts.ExecutionResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_Contract_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_Contract_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_Recital_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_Recital_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_Record_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_Record_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_ConditionProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_ConditionProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_ConsiderationProto_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_ProposedRecord_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_ProposedRecord_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_io_provenance_scope_contract_ExecutionResult_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_io_provenance_scope_contract_ExecutionResult_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n+io/provenance/scope/contract/contract." +
"proto\022\034io.provenance.scope.contract\032\037goo" +
"gle/protobuf/timestamp.proto\032)io/provena" +
"nce/scope/contract/common.proto\0320io/prov" +
"enance/scope/contract/specification.prot" +
"o\032\020public_key.proto\"\225\004\n\010Contract\022@\n\ndefi" +
"nition\030\001 \001(\0132,.io.provenance.scope.contr" +
"act.DefinitionSpec\0222\n\004spec\030\002 \001(\0132$.io.pr" +
"ovenance.scope.contract.Record\022D\n\007invoke" +
"r\030\003 \001(\01323.io.provenance.scope.SigningAnd" +
"EncryptionPublicKeys\0224\n\006inputs\030\004 \003(\0132$.i" +
"o.provenance.scope.contract.Record\022@\n\nco" +
"nditions\030\005 \003(\0132,.io.provenance.scope.con" +
"tract.ConditionProto\022H\n\016considerations\030\006" +
" \003(\01320.io.provenance.scope.contract.Cons" +
"iderationProto\0227\n\010recitals\030\007 \003(\0132%.io.pr" +
"ovenance.scope.contract.Recital\022\026\n\016times" +
"_executed\030\010 \001(\005\022.\n\nstart_time\030\t \001(\0132\032.go" +
"ogle.protobuf.TimestampJ\004\010\n\020\013R\004type\"\235\001\n\007" +
"Recital\022<\n\013signer_role\030\001 \001(\0162\'.io.proven" +
"ance.scope.contract.PartyType\022C\n\006signer\030" +
"\002 \001(\01323.io.provenance.scope.SigningAndEn" +
"cryptionPublicKeys\022\017\n\007address\030\003 \001(\014\"U\n\006R" +
"ecord\022\014\n\004name\030\001 \001(\t\022=\n\rdata_location\030\002 \001" +
"(\0132&.io.provenance.scope.contract.Locati" +
"on\"g\n\016ConditionProto\022\026\n\016condition_name\030\001" +
" \001(\t\022=\n\006result\030\002 \001(\0132-.io.provenance.sco" +
"pe.contract.ExecutionResult\"\255\001\n\022Consider" +
"ationProto\022\032\n\022consideration_name\030\001 \001(\t\022<" +
"\n\006inputs\030\002 \003(\0132,.io.provenance.scope.con" +
"tract.ProposedRecord\022=\n\006result\030\003 \001(\0132-.i" +
"o.provenance.scope.contract.ExecutionRes" +
"ult\"\204\001\n\016ProposedRecord\022\014\n\004name\030\001 \001(\t\022\014\n\004" +
"hash\030\002 \001(\t\022\021\n\tclassname\030\003 \001(\t\022C\n\010ancesto" +
"r\030\004 \001(\01321.io.provenance.scope.contract.P" +
"rovenanceReference\"\222\002\n\017ExecutionResult\022<" +
"\n\006output\030\001 \001(\0132,.io.provenance.scope.con" +
"tract.ProposedRecord\022D\n\006result\030\002 \001(\01624.i" +
"o.provenance.scope.contract.ExecutionRes" +
"ult.Result\022/\n\013recorded_at\030\003 \001(\0132\032.google" +
".protobuf.Timestamp\022\025\n\rerror_message\030\004 \001" +
"(\t\"3\n\006Result\022\013\n\007UNKNOWN\020\000\022\010\n\004PASS\020\001\022\010\n\004S" +
"KIP\020\002\022\010\n\004FAIL\020\003B/\n\"io.provenance.scope.c" +
"ontract.protoB\tContractsb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
io.provenance.scope.contract.proto.Commons.getDescriptor(),
io.provenance.scope.contract.proto.Specifications.getDescriptor(),
io.provenance.scope.proto.PK.getDescriptor(),
});
internal_static_io_provenance_scope_contract_Contract_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_io_provenance_scope_contract_Contract_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_Contract_descriptor,
new java.lang.String[] { "Definition", "Spec", "Invoker", "Inputs", "Conditions", "Considerations", "Recitals", "TimesExecuted", "StartTime", });
internal_static_io_provenance_scope_contract_Recital_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_io_provenance_scope_contract_Recital_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_Recital_descriptor,
new java.lang.String[] { "SignerRole", "Signer", "Address", });
internal_static_io_provenance_scope_contract_Record_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_io_provenance_scope_contract_Record_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_Record_descriptor,
new java.lang.String[] { "Name", "DataLocation", });
internal_static_io_provenance_scope_contract_ConditionProto_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_io_provenance_scope_contract_ConditionProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_ConditionProto_descriptor,
new java.lang.String[] { "ConditionName", "Result", });
internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_io_provenance_scope_contract_ConsiderationProto_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_ConsiderationProto_descriptor,
new java.lang.String[] { "ConsiderationName", "Inputs", "Result", });
internal_static_io_provenance_scope_contract_ProposedRecord_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_io_provenance_scope_contract_ProposedRecord_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_ProposedRecord_descriptor,
new java.lang.String[] { "Name", "Hash", "Classname", "Ancestor", });
internal_static_io_provenance_scope_contract_ExecutionResult_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_io_provenance_scope_contract_ExecutionResult_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_io_provenance_scope_contract_ExecutionResult_descriptor,
new java.lang.String[] { "Output", "Result", "RecordedAt", "ErrorMessage", });
com.google.protobuf.TimestampProto.getDescriptor();
io.provenance.scope.contract.proto.Commons.getDescriptor();
io.provenance.scope.contract.proto.Specifications.getDescriptor();
io.provenance.scope.proto.PK.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}