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

io.provenance.metadata.v1.p8e.Contract Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: provenance/metadata/v1/p8e/p8e.proto

package io.provenance.metadata.v1.p8e;

/**
 * Protobuf type {@code provenance.metadata.v1.p8e.Contract}
 */
public  final class Contract extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:provenance.metadata.v1.p8e.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();
    timesExecuted_ = 0;
    context_ = com.google.protobuf.ByteString.EMPTY;
  }

  @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.metadata.v1.p8e.DefinitionSpec.Builder subBuilder = null;
            if (definition_ != null) {
              subBuilder = definition_.toBuilder();
            }
            definition_ = input.readMessage(io.provenance.metadata.v1.p8e.DefinitionSpec.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(definition_);
              definition_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            io.provenance.metadata.v1.p8e.Fact.Builder subBuilder = null;
            if (spec_ != null) {
              subBuilder = spec_.toBuilder();
            }
            spec_ = input.readMessage(io.provenance.metadata.v1.p8e.Fact.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(spec_);
              spec_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder subBuilder = null;
            if (invoker_ != null) {
              subBuilder = invoker_.toBuilder();
            }
            invoker_ = input.readMessage(io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(invoker_);
              invoker_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              inputs_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            inputs_.add(
                input.readMessage(io.provenance.metadata.v1.p8e.Fact.parser(), extensionRegistry));
            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
              conditions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            conditions_.add(
                input.readMessage(io.provenance.metadata.v1.p8e.Condition.parser(), extensionRegistry));
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              considerations_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000020;
            }
            considerations_.add(
                input.readMessage(io.provenance.metadata.v1.p8e.Consideration.parser(), extensionRegistry));
            break;
          }
          case 58: {
            if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
              recitals_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000040;
            }
            recitals_.add(
                input.readMessage(io.provenance.metadata.v1.p8e.Recital.parser(), extensionRegistry));
            break;
          }
          case 64: {

            timesExecuted_ = input.readInt32();
            break;
          }
          case 74: {
            io.provenance.metadata.v1.p8e.Timestamp.Builder subBuilder = null;
            if (startTime_ != null) {
              subBuilder = startTime_.toBuilder();
            }
            startTime_ = input.readMessage(io.provenance.metadata.v1.p8e.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(startTime_);
              startTime_ = subBuilder.buildPartial();
            }

            break;
          }
          case 82: {

            context_ = input.readBytes();
            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                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_ & 0x00000008) == 0x00000008)) {
        inputs_ = java.util.Collections.unmodifiableList(inputs_);
      }
      if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
        conditions_ = java.util.Collections.unmodifiableList(conditions_);
      }
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        considerations_ = java.util.Collections.unmodifiableList(considerations_);
      }
      if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
        recitals_ = java.util.Collections.unmodifiableList(recitals_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_Contract_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_Contract_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.provenance.metadata.v1.p8e.Contract.class, io.provenance.metadata.v1.p8e.Contract.Builder.class);
  }

  private int bitField0_;
  public static final int DEFINITION_FIELD_NUMBER = 1;
  private io.provenance.metadata.v1.p8e.DefinitionSpec definition_;
  /**
   * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1;
   */
  public boolean hasDefinition() {
    return definition_ != null;
  }
  /**
   * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1;
   */
  public io.provenance.metadata.v1.p8e.DefinitionSpec getDefinition() {
    return definition_ == null ? io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance() : definition_;
  }
  /**
   * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1;
   */
  public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getDefinitionOrBuilder() {
    return getDefinition();
  }

  public static final int SPEC_FIELD_NUMBER = 2;
  private io.provenance.metadata.v1.p8e.Fact spec_;
  /**
   * 
   * Points to the proto for the contractSpec
   * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public boolean hasSpec() { return spec_ != null; } /** *
   * Points to the proto for the contractSpec
   * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public io.provenance.metadata.v1.p8e.Fact getSpec() { return spec_ == null ? io.provenance.metadata.v1.p8e.Fact.getDefaultInstance() : spec_; } /** *
   * Points to the proto for the contractSpec
   * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public io.provenance.metadata.v1.p8e.FactOrBuilder getSpecOrBuilder() { return getSpec(); } public static final int INVOKER_FIELD_NUMBER = 3; private io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker_; /** *
   * Invoker of this contract
   * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public boolean hasInvoker() { return invoker_ != null; } /** *
   * Invoker of this contract
   * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys getInvoker() { return invoker_ == null ? io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_; } /** *
   * Invoker of this contract
   * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public io.provenance.metadata.v1.p8e.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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public java.util.List getInputsList() { return inputs_; } /** *
   * Constructor arguments.
   * These are always the output of a previously recorded consideration.
   * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public java.util.List getInputsOrBuilderList() { return inputs_; } /** *
   * Constructor arguments.
   * These are always the output of a previously recorded consideration.
   * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public int getInputsCount() { return inputs_.size(); } /** *
   * Constructor arguments.
   * These are always the output of a previously recorded consideration.
   * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.Fact getInputs(int index) { return inputs_.get(index); } /** *
   * Constructor arguments.
   * These are always the output of a previously recorded consideration.
   * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.FactOrBuilder getInputsOrBuilder( int index) { return inputs_.get(index); } public static final int CONDITIONS_FIELD_NUMBER = 5; private java.util.List conditions_; /** *
   * conditions is a deprecated field that is not used at all anymore.
   * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getConditionsList() { return conditions_; } /** *
   * conditions is a deprecated field that is not used at all anymore.
   * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getConditionsOrBuilderList() { return conditions_; } /** *
   * conditions is a deprecated field that is not used at all anymore.
   * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public int getConditionsCount() { return conditions_.size(); } /** *
   * conditions is a deprecated field that is not used at all anymore.
   * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.Condition getConditions(int index) { return conditions_.get(index); } /** *
   * conditions is a deprecated field that is not used at all anymore.
   * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.ConditionOrBuilder getConditionsOrBuilder( int index) { return conditions_.get(index); } public static final int CONSIDERATIONS_FIELD_NUMBER = 6; private java.util.List considerations_; /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public java.util.List getConsiderationsList() { return considerations_; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public java.util.List getConsiderationsOrBuilderList() { return considerations_; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public int getConsiderationsCount() { return considerations_.size(); } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.Consideration getConsiderations(int index) { return considerations_.get(index); } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.ConsiderationOrBuilder getConsiderationsOrBuilder( int index) { return considerations_.get(index); } public static final int RECITALS_FIELD_NUMBER = 7; private java.util.List recitals_; /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public java.util.List getRecitalsList() { return recitals_; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public java.util.List getRecitalsOrBuilderList() { return recitals_; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public int getRecitalsCount() { return recitals_.size(); } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.Recital getRecitals(int index) { return recitals_.get(index); } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.RecitalOrBuilder getRecitalsOrBuilder( int index) { return recitals_.get(index); } public static final int TIMES_EXECUTED_FIELD_NUMBER = 8; private int timesExecuted_; /** * int32 times_executed = 8; */ public int getTimesExecuted() { return timesExecuted_; } public static final int START_TIME_FIELD_NUMBER = 9; private io.provenance.metadata.v1.p8e.Timestamp startTime_; /** *
   * This is only set once when the contract is initially executed
   * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public boolean hasStartTime() { return startTime_ != null; } /** *
   * This is only set once when the contract is initially executed
   * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public io.provenance.metadata.v1.p8e.Timestamp getStartTime() { return startTime_ == null ? io.provenance.metadata.v1.p8e.Timestamp.getDefaultInstance() : startTime_; } /** *
   * This is only set once when the contract is initially executed
   * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public io.provenance.metadata.v1.p8e.TimestampOrBuilder getStartTimeOrBuilder() { return getStartTime(); } public static final int CONTEXT_FIELD_NUMBER = 10; private com.google.protobuf.ByteString context_; /** * bytes context = 10; */ public com.google.protobuf.ByteString getContext() { return context_; } 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()); } if (!context_.isEmpty()) { output.writeBytes(10, context_); } 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()); } if (!context_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, context_); } 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.metadata.v1.p8e.Contract)) { return super.equals(obj); } io.provenance.metadata.v1.p8e.Contract other = (io.provenance.metadata.v1.p8e.Contract) obj; boolean result = true; result = result && (hasDefinition() == other.hasDefinition()); if (hasDefinition()) { result = result && getDefinition() .equals(other.getDefinition()); } result = result && (hasSpec() == other.hasSpec()); if (hasSpec()) { result = result && getSpec() .equals(other.getSpec()); } result = result && (hasInvoker() == other.hasInvoker()); if (hasInvoker()) { result = result && getInvoker() .equals(other.getInvoker()); } result = result && getInputsList() .equals(other.getInputsList()); result = result && getConditionsList() .equals(other.getConditionsList()); result = result && getConsiderationsList() .equals(other.getConsiderationsList()); result = result && getRecitalsList() .equals(other.getRecitalsList()); result = result && (getTimesExecuted() == other.getTimesExecuted()); result = result && (hasStartTime() == other.hasStartTime()); if (hasStartTime()) { result = result && getStartTime() .equals(other.getStartTime()); } result = result && getContext() .equals(other.getContext()); result = result && unknownFields.equals(other.unknownFields); return result; } @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 = (37 * hash) + CONTEXT_FIELD_NUMBER; hash = (53 * hash) + getContext().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.provenance.metadata.v1.p8e.Contract parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.Contract parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.Contract parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.provenance.metadata.v1.p8e.Contract parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.provenance.metadata.v1.p8e.Contract parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.Contract parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.Contract parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.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 provenance.metadata.v1.p8e.Contract} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.p8e.Contract) io.provenance.metadata.v1.p8e.ContractOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_Contract_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_Contract_fieldAccessorTable .ensureFieldAccessorsInitialized( io.provenance.metadata.v1.p8e.Contract.class, io.provenance.metadata.v1.p8e.Contract.Builder.class); } // Construct using io.provenance.metadata.v1.p8e.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_ & ~0x00000008); } else { inputsBuilder_.clear(); } if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); } else { conditionsBuilder_.clear(); } if (considerationsBuilder_ == null) { considerations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { considerationsBuilder_.clear(); } if (recitalsBuilder_ == null) { recitals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { recitalsBuilder_.clear(); } timesExecuted_ = 0; if (startTimeBuilder_ == null) { startTime_ = null; } else { startTime_ = null; startTimeBuilder_ = null; } context_ = com.google.protobuf.ByteString.EMPTY; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_Contract_descriptor; } @java.lang.Override public io.provenance.metadata.v1.p8e.Contract getDefaultInstanceForType() { return io.provenance.metadata.v1.p8e.Contract.getDefaultInstance(); } @java.lang.Override public io.provenance.metadata.v1.p8e.Contract build() { io.provenance.metadata.v1.p8e.Contract result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.provenance.metadata.v1.p8e.Contract buildPartial() { io.provenance.metadata.v1.p8e.Contract result = new io.provenance.metadata.v1.p8e.Contract(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; 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_ & 0x00000008) == 0x00000008)) { inputs_ = java.util.Collections.unmodifiableList(inputs_); bitField0_ = (bitField0_ & ~0x00000008); } result.inputs_ = inputs_; } else { result.inputs_ = inputsBuilder_.build(); } if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000010) == 0x00000010)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000010); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (considerationsBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { considerations_ = java.util.Collections.unmodifiableList(considerations_); bitField0_ = (bitField0_ & ~0x00000020); } result.considerations_ = considerations_; } else { result.considerations_ = considerationsBuilder_.build(); } if (recitalsBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { recitals_ = java.util.Collections.unmodifiableList(recitals_); bitField0_ = (bitField0_ & ~0x00000040); } result.recitals_ = recitals_; } else { result.recitals_ = recitalsBuilder_.build(); } result.timesExecuted_ = timesExecuted_; if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { result.startTime_ = startTimeBuilder_.build(); } result.context_ = context_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return (Builder) super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.provenance.metadata.v1.p8e.Contract) { return mergeFrom((io.provenance.metadata.v1.p8e.Contract)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.provenance.metadata.v1.p8e.Contract other) { if (other == io.provenance.metadata.v1.p8e.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_ & ~0x00000008); } else { ensureInputsIsMutable(); inputs_.addAll(other.inputs_); } onChanged(); } } else { if (!other.inputs_.isEmpty()) { if (inputsBuilder_.isEmpty()) { inputsBuilder_.dispose(); inputsBuilder_ = null; inputs_ = other.inputs_; bitField0_ = (bitField0_ & ~0x00000008); 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_ & ~0x00000010); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000010); 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_ & ~0x00000020); } else { ensureConsiderationsIsMutable(); considerations_.addAll(other.considerations_); } onChanged(); } } else { if (!other.considerations_.isEmpty()) { if (considerationsBuilder_.isEmpty()) { considerationsBuilder_.dispose(); considerationsBuilder_ = null; considerations_ = other.considerations_; bitField0_ = (bitField0_ & ~0x00000020); 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_ & ~0x00000040); } else { ensureRecitalsIsMutable(); recitals_.addAll(other.recitals_); } onChanged(); } } else { if (!other.recitals_.isEmpty()) { if (recitalsBuilder_.isEmpty()) { recitalsBuilder_.dispose(); recitalsBuilder_ = null; recitals_ = other.recitals_; bitField0_ = (bitField0_ & ~0x00000040); 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()); } if (other.getContext() != com.google.protobuf.ByteString.EMPTY) { setContext(other.getContext()); } 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.metadata.v1.p8e.Contract parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.provenance.metadata.v1.p8e.Contract) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private io.provenance.metadata.v1.p8e.DefinitionSpec definition_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder> definitionBuilder_; /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public boolean hasDefinition() { return definitionBuilder_ != null || definition_ != null; } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public io.provenance.metadata.v1.p8e.DefinitionSpec getDefinition() { if (definitionBuilder_ == null) { return definition_ == null ? io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance() : definition_; } else { return definitionBuilder_.getMessage(); } } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public Builder setDefinition(io.provenance.metadata.v1.p8e.DefinitionSpec value) { if (definitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } definition_ = value; onChanged(); } else { definitionBuilder_.setMessage(value); } return this; } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public Builder setDefinition( io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) { if (definitionBuilder_ == null) { definition_ = builderForValue.build(); onChanged(); } else { definitionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public Builder mergeDefinition(io.provenance.metadata.v1.p8e.DefinitionSpec value) { if (definitionBuilder_ == null) { if (definition_ != null) { definition_ = io.provenance.metadata.v1.p8e.DefinitionSpec.newBuilder(definition_).mergeFrom(value).buildPartial(); } else { definition_ = value; } onChanged(); } else { definitionBuilder_.mergeFrom(value); } return this; } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public Builder clearDefinition() { if (definitionBuilder_ == null) { definition_ = null; onChanged(); } else { definition_ = null; definitionBuilder_ = null; } return this; } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder getDefinitionBuilder() { onChanged(); return getDefinitionFieldBuilder().getBuilder(); } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getDefinitionOrBuilder() { if (definitionBuilder_ != null) { return definitionBuilder_.getMessageOrBuilder(); } else { return definition_ == null ? io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance() : definition_; } } /** * .provenance.metadata.v1.p8e.DefinitionSpec definition = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder> getDefinitionFieldBuilder() { if (definitionBuilder_ == null) { definitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>( getDefinition(), getParentForChildren(), isClean()); definition_ = null; } return definitionBuilder_; } private io.provenance.metadata.v1.p8e.Fact spec_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder> specBuilder_; /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public boolean hasSpec() { return specBuilder_ != null || spec_ != null; } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public io.provenance.metadata.v1.p8e.Fact getSpec() { if (specBuilder_ == null) { return spec_ == null ? io.provenance.metadata.v1.p8e.Fact.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public Builder setSpec(io.provenance.metadata.v1.p8e.Fact 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
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public Builder setSpec( io.provenance.metadata.v1.p8e.Fact.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public Builder mergeSpec(io.provenance.metadata.v1.p8e.Fact value) { if (specBuilder_ == null) { if (spec_ != null) { spec_ = io.provenance.metadata.v1.p8e.Fact.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } return this; } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact 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
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public io.provenance.metadata.v1.p8e.Fact.Builder getSpecBuilder() { onChanged(); return getSpecFieldBuilder().getBuilder(); } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ public io.provenance.metadata.v1.p8e.FactOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? io.provenance.metadata.v1.p8e.Fact.getDefaultInstance() : spec_; } } /** *
     * Points to the proto for the contractSpec
     * 
* * .provenance.metadata.v1.p8e.Fact spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } private io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeysOrBuilder> invokerBuilder_; /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public boolean hasInvoker() { return invokerBuilder_ != null || invoker_ != null; } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys getInvoker() { if (invokerBuilder_ == null) { return invoker_ == null ? io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_; } else { return invokerBuilder_.getMessage(); } } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public Builder setInvoker(io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys value) { if (invokerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } invoker_ = value; onChanged(); } else { invokerBuilder_.setMessage(value); } return this; } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public Builder setInvoker( io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder builderForValue) { if (invokerBuilder_ == null) { invoker_ = builderForValue.build(); onChanged(); } else { invokerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public Builder mergeInvoker(io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys value) { if (invokerBuilder_ == null) { if (invoker_ != null) { invoker_ = io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.newBuilder(invoker_).mergeFrom(value).buildPartial(); } else { invoker_ = value; } onChanged(); } else { invokerBuilder_.mergeFrom(value); } return this; } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public Builder clearInvoker() { if (invokerBuilder_ == null) { invoker_ = null; onChanged(); } else { invoker_ = null; invokerBuilder_ = null; } return this; } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder getInvokerBuilder() { onChanged(); return getInvokerFieldBuilder().getBuilder(); } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ public io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeysOrBuilder getInvokerOrBuilder() { if (invokerBuilder_ != null) { return invokerBuilder_.getMessageOrBuilder(); } else { return invoker_ == null ? io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.getDefaultInstance() : invoker_; } } /** *
     * Invoker of this contract
     * 
* * .provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys invoker = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeysOrBuilder> getInvokerFieldBuilder() { if (invokerBuilder_ == null) { invokerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeys.Builder, io.provenance.metadata.v1.p8e.SigningAndEncryptionPublicKeysOrBuilder>( getInvoker(), getParentForChildren(), isClean()); invoker_ = null; } return invokerBuilder_; } private java.util.List inputs_ = java.util.Collections.emptyList(); private void ensureInputsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { inputs_ = new java.util.ArrayList(inputs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder> inputsBuilder_; /** *
     * Constructor arguments.
     * These are always the output of a previously recorded consideration.
     * 
* * repeated .provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder setInputs( int index, io.provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder setInputs( int index, io.provenance.metadata.v1.p8e.Fact.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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder addInputs(io.provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder addInputs( int index, io.provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder addInputs( io.provenance.metadata.v1.p8e.Fact.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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder addInputs( int index, io.provenance.metadata.v1.p8e.Fact.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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder addAllInputs( java.lang.Iterable 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public Builder clearInputs() { if (inputsBuilder_ == null) { inputs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { inputsBuilder_.clear(); } return this; } /** *
     * Constructor arguments.
     * These are always the output of a previously recorded consideration.
     * 
* * repeated .provenance.metadata.v1.p8e.Fact 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.Fact.Builder getInputsBuilder( int index) { return getInputsFieldBuilder().getBuilder(index); } /** *
     * Constructor arguments.
     * These are always the output of a previously recorded consideration.
     * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.FactOrBuilder 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public java.util.List 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 .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.Fact.Builder addInputsBuilder() { return getInputsFieldBuilder().addBuilder( io.provenance.metadata.v1.p8e.Fact.getDefaultInstance()); } /** *
     * Constructor arguments.
     * These are always the output of a previously recorded consideration.
     * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public io.provenance.metadata.v1.p8e.Fact.Builder addInputsBuilder( int index) { return getInputsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.p8e.Fact.getDefaultInstance()); } /** *
     * Constructor arguments.
     * These are always the output of a previously recorded consideration.
     * 
* * repeated .provenance.metadata.v1.p8e.Fact inputs = 4; */ public java.util.List getInputsBuilderList() { return getInputsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder> getInputsFieldBuilder() { if (inputsBuilder_ == null) { inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Fact, io.provenance.metadata.v1.p8e.Fact.Builder, io.provenance.metadata.v1.p8e.FactOrBuilder>( inputs_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); inputs_ = null; } return inputsBuilder_; } private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Condition, io.provenance.metadata.v1.p8e.Condition.Builder, io.provenance.metadata.v1.p8e.ConditionOrBuilder> conditionsBuilder_; /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.Condition getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setConditions( int index, io.provenance.metadata.v1.p8e.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder setConditions( int index, io.provenance.metadata.v1.p8e.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder addConditions(io.provenance.metadata.v1.p8e.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder addConditions( int index, io.provenance.metadata.v1.p8e.Condition value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder addConditions( io.provenance.metadata.v1.p8e.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder addConditions( int index, io.provenance.metadata.v1.p8e.Condition.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.Condition.Builder getConditionsBuilder( int index) { return getConditionsFieldBuilder().getBuilder(index); } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.ConditionOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.Condition.Builder addConditionsBuilder() { return getConditionsFieldBuilder().addBuilder( io.provenance.metadata.v1.p8e.Condition.getDefaultInstance()); } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public io.provenance.metadata.v1.p8e.Condition.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.p8e.Condition.getDefaultInstance()); } /** *
     * conditions is a deprecated field that is not used at all anymore.
     * 
* * repeated .provenance.metadata.v1.p8e.Condition conditions = 5 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Condition, io.provenance.metadata.v1.p8e.Condition.Builder, io.provenance.metadata.v1.p8e.ConditionOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Condition, io.provenance.metadata.v1.p8e.Condition.Builder, io.provenance.metadata.v1.p8e.ConditionOrBuilder>( conditions_, ((bitField0_ & 0x00000010) == 0x00000010), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private java.util.List considerations_ = java.util.Collections.emptyList(); private void ensureConsiderationsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { considerations_ = new java.util.ArrayList(considerations_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Consideration, io.provenance.metadata.v1.p8e.Consideration.Builder, io.provenance.metadata.v1.p8e.ConsiderationOrBuilder> considerationsBuilder_; /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public java.util.List getConsiderationsList() { if (considerationsBuilder_ == null) { return java.util.Collections.unmodifiableList(considerations_); } else { return considerationsBuilder_.getMessageList(); } } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public int getConsiderationsCount() { if (considerationsBuilder_ == null) { return considerations_.size(); } else { return considerationsBuilder_.getCount(); } } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.Consideration getConsiderations(int index) { if (considerationsBuilder_ == null) { return considerations_.get(index); } else { return considerationsBuilder_.getMessage(index); } } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder setConsiderations( int index, io.provenance.metadata.v1.p8e.Consideration value) { if (considerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsiderationsIsMutable(); considerations_.set(index, value); onChanged(); } else { considerationsBuilder_.setMessage(index, value); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder setConsiderations( int index, io.provenance.metadata.v1.p8e.Consideration.Builder builderForValue) { if (considerationsBuilder_ == null) { ensureConsiderationsIsMutable(); considerations_.set(index, builderForValue.build()); onChanged(); } else { considerationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder addConsiderations(io.provenance.metadata.v1.p8e.Consideration value) { if (considerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsiderationsIsMutable(); considerations_.add(value); onChanged(); } else { considerationsBuilder_.addMessage(value); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder addConsiderations( int index, io.provenance.metadata.v1.p8e.Consideration value) { if (considerationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConsiderationsIsMutable(); considerations_.add(index, value); onChanged(); } else { considerationsBuilder_.addMessage(index, value); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder addConsiderations( io.provenance.metadata.v1.p8e.Consideration.Builder builderForValue) { if (considerationsBuilder_ == null) { ensureConsiderationsIsMutable(); considerations_.add(builderForValue.build()); onChanged(); } else { considerationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder addConsiderations( int index, io.provenance.metadata.v1.p8e.Consideration.Builder builderForValue) { if (considerationsBuilder_ == null) { ensureConsiderationsIsMutable(); considerations_.add(index, builderForValue.build()); onChanged(); } else { considerationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder addAllConsiderations( java.lang.Iterable values) { if (considerationsBuilder_ == null) { ensureConsiderationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, considerations_); onChanged(); } else { considerationsBuilder_.addAllMessages(values); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder clearConsiderations() { if (considerationsBuilder_ == null) { considerations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { considerationsBuilder_.clear(); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public Builder removeConsiderations(int index) { if (considerationsBuilder_ == null) { ensureConsiderationsIsMutable(); considerations_.remove(index); onChanged(); } else { considerationsBuilder_.remove(index); } return this; } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.Consideration.Builder getConsiderationsBuilder( int index) { return getConsiderationsFieldBuilder().getBuilder(index); } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.ConsiderationOrBuilder getConsiderationsOrBuilder( int index) { if (considerationsBuilder_ == null) { return considerations_.get(index); } else { return considerationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public java.util.List getConsiderationsOrBuilderList() { if (considerationsBuilder_ != null) { return considerationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(considerations_); } } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.Consideration.Builder addConsiderationsBuilder() { return getConsiderationsFieldBuilder().addBuilder( io.provenance.metadata.v1.p8e.Consideration.getDefaultInstance()); } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public io.provenance.metadata.v1.p8e.Consideration.Builder addConsiderationsBuilder( int index) { return getConsiderationsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.p8e.Consideration.getDefaultInstance()); } /** * repeated .provenance.metadata.v1.p8e.Consideration considerations = 6; */ public java.util.List getConsiderationsBuilderList() { return getConsiderationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Consideration, io.provenance.metadata.v1.p8e.Consideration.Builder, io.provenance.metadata.v1.p8e.ConsiderationOrBuilder> getConsiderationsFieldBuilder() { if (considerationsBuilder_ == null) { considerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Consideration, io.provenance.metadata.v1.p8e.Consideration.Builder, io.provenance.metadata.v1.p8e.ConsiderationOrBuilder>( considerations_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); considerations_ = null; } return considerationsBuilder_; } private java.util.List recitals_ = java.util.Collections.emptyList(); private void ensureRecitalsIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { recitals_ = new java.util.ArrayList(recitals_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Recital, io.provenance.metadata.v1.p8e.Recital.Builder, io.provenance.metadata.v1.p8e.RecitalOrBuilder> recitalsBuilder_; /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public java.util.List getRecitalsList() { if (recitalsBuilder_ == null) { return java.util.Collections.unmodifiableList(recitals_); } else { return recitalsBuilder_.getMessageList(); } } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public int getRecitalsCount() { if (recitalsBuilder_ == null) { return recitals_.size(); } else { return recitalsBuilder_.getCount(); } } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.Recital getRecitals(int index) { if (recitalsBuilder_ == null) { return recitals_.get(index); } else { return recitalsBuilder_.getMessage(index); } } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder setRecitals( int index, io.provenance.metadata.v1.p8e.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 .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder setRecitals( int index, io.provenance.metadata.v1.p8e.Recital.Builder builderForValue) { if (recitalsBuilder_ == null) { ensureRecitalsIsMutable(); recitals_.set(index, builderForValue.build()); onChanged(); } else { recitalsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder addRecitals(io.provenance.metadata.v1.p8e.Recital value) { if (recitalsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRecitalsIsMutable(); recitals_.add(value); onChanged(); } else { recitalsBuilder_.addMessage(value); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder addRecitals( int index, io.provenance.metadata.v1.p8e.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 .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder addRecitals( io.provenance.metadata.v1.p8e.Recital.Builder builderForValue) { if (recitalsBuilder_ == null) { ensureRecitalsIsMutable(); recitals_.add(builderForValue.build()); onChanged(); } else { recitalsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder addRecitals( int index, io.provenance.metadata.v1.p8e.Recital.Builder builderForValue) { if (recitalsBuilder_ == null) { ensureRecitalsIsMutable(); recitals_.add(index, builderForValue.build()); onChanged(); } else { recitalsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder addAllRecitals( java.lang.Iterable values) { if (recitalsBuilder_ == null) { ensureRecitalsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, recitals_); onChanged(); } else { recitalsBuilder_.addAllMessages(values); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder clearRecitals() { if (recitalsBuilder_ == null) { recitals_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { recitalsBuilder_.clear(); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public Builder removeRecitals(int index) { if (recitalsBuilder_ == null) { ensureRecitalsIsMutable(); recitals_.remove(index); onChanged(); } else { recitalsBuilder_.remove(index); } return this; } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.Recital.Builder getRecitalsBuilder( int index) { return getRecitalsFieldBuilder().getBuilder(index); } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.RecitalOrBuilder getRecitalsOrBuilder( int index) { if (recitalsBuilder_ == null) { return recitals_.get(index); } else { return recitalsBuilder_.getMessageOrBuilder(index); } } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public java.util.List getRecitalsOrBuilderList() { if (recitalsBuilder_ != null) { return recitalsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(recitals_); } } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.Recital.Builder addRecitalsBuilder() { return getRecitalsFieldBuilder().addBuilder( io.provenance.metadata.v1.p8e.Recital.getDefaultInstance()); } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public io.provenance.metadata.v1.p8e.Recital.Builder addRecitalsBuilder( int index) { return getRecitalsFieldBuilder().addBuilder( index, io.provenance.metadata.v1.p8e.Recital.getDefaultInstance()); } /** * repeated .provenance.metadata.v1.p8e.Recital recitals = 7; */ public java.util.List getRecitalsBuilderList() { return getRecitalsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Recital, io.provenance.metadata.v1.p8e.Recital.Builder, io.provenance.metadata.v1.p8e.RecitalOrBuilder> getRecitalsFieldBuilder() { if (recitalsBuilder_ == null) { recitalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.provenance.metadata.v1.p8e.Recital, io.provenance.metadata.v1.p8e.Recital.Builder, io.provenance.metadata.v1.p8e.RecitalOrBuilder>( recitals_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); recitals_ = null; } return recitalsBuilder_; } private int timesExecuted_ ; /** * int32 times_executed = 8; */ public int getTimesExecuted() { return timesExecuted_; } /** * int32 times_executed = 8; */ public Builder setTimesExecuted(int value) { timesExecuted_ = value; onChanged(); return this; } /** * int32 times_executed = 8; */ public Builder clearTimesExecuted() { timesExecuted_ = 0; onChanged(); return this; } private io.provenance.metadata.v1.p8e.Timestamp startTime_ = null; private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Timestamp, io.provenance.metadata.v1.p8e.Timestamp.Builder, io.provenance.metadata.v1.p8e.TimestampOrBuilder> startTimeBuilder_; /** *
     * This is only set once when the contract is initially executed
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** *
     * This is only set once when the contract is initially executed
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public io.provenance.metadata.v1.p8e.Timestamp getStartTime() { if (startTimeBuilder_ == null) { return startTime_ == null ? io.provenance.metadata.v1.p8e.Timestamp.getDefaultInstance() : startTime_; } else { return startTimeBuilder_.getMessage(); } } /** *
     * This is only set once when the contract is initially executed
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public Builder setStartTime(io.provenance.metadata.v1.p8e.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
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public Builder setStartTime( io.provenance.metadata.v1.p8e.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
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public Builder mergeStartTime(io.provenance.metadata.v1.p8e.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = io.provenance.metadata.v1.p8e.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
     * 
* * .provenance.metadata.v1.p8e.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
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public io.provenance.metadata.v1.p8e.Timestamp.Builder getStartTimeBuilder() { onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** *
     * This is only set once when the contract is initially executed
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ public io.provenance.metadata.v1.p8e.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { return startTime_ == null ? io.provenance.metadata.v1.p8e.Timestamp.getDefaultInstance() : startTime_; } } /** *
     * This is only set once when the contract is initially executed
     * 
* * .provenance.metadata.v1.p8e.Timestamp start_time = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Timestamp, io.provenance.metadata.v1.p8e.Timestamp.Builder, io.provenance.metadata.v1.p8e.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.provenance.metadata.v1.p8e.Timestamp, io.provenance.metadata.v1.p8e.Timestamp.Builder, io.provenance.metadata.v1.p8e.TimestampOrBuilder>( getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; } private com.google.protobuf.ByteString context_ = com.google.protobuf.ByteString.EMPTY; /** * bytes context = 10; */ public com.google.protobuf.ByteString getContext() { return context_; } /** * bytes context = 10; */ public Builder setContext(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } context_ = value; onChanged(); return this; } /** * bytes context = 10; */ public Builder clearContext() { context_ = getDefaultInstance().getContext(); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFieldsProto3(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:provenance.metadata.v1.p8e.Contract) } // @@protoc_insertion_point(class_scope:provenance.metadata.v1.p8e.Contract) private static final io.provenance.metadata.v1.p8e.Contract DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.provenance.metadata.v1.p8e.Contract(); } public static io.provenance.metadata.v1.p8e.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.metadata.v1.p8e.Contract getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy