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

io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec}
 */
public  final class ConditionSpec extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:provenance.metadata.v1.p8e.ConditionSpec)
    ConditionSpecOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ConditionSpec.newBuilder() to construct.
  private ConditionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ConditionSpec() {
    funcName_ = "";
    inputSpecs_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ConditionSpec(
      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();

            funcName_ = s;
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              inputSpecs_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            inputSpecs_.add(
                input.readMessage(io.provenance.metadata.v1.p8e.DefinitionSpec.parser(), extensionRegistry));
            break;
          }
          case 26: {
            io.provenance.metadata.v1.p8e.OutputSpec.Builder subBuilder = null;
            if (outputSpec_ != null) {
              subBuilder = outputSpec_.toBuilder();
            }
            outputSpec_ = input.readMessage(io.provenance.metadata.v1.p8e.OutputSpec.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(outputSpec_);
              outputSpec_ = subBuilder.buildPartial();
            }

            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_ & 0x00000002) == 0x00000002)) {
        inputSpecs_ = java.util.Collections.unmodifiableList(inputSpecs_);
      }
      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_ConditionSpec_descriptor;
  }

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

  private int bitField0_;
  public static final int FUNC_NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object funcName_;
  /**
   * string func_name = 1;
   */
  public java.lang.String getFuncName() {
    java.lang.Object ref = funcName_;
    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();
      funcName_ = s;
      return s;
    }
  }
  /**
   * string func_name = 1;
   */
  public com.google.protobuf.ByteString
      getFuncNameBytes() {
    java.lang.Object ref = funcName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      funcName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INPUT_SPECS_FIELD_NUMBER = 2;
  private java.util.List inputSpecs_;
  /**
   * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
   */
  public java.util.List getInputSpecsList() {
    return inputSpecs_;
  }
  /**
   * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
   */
  public java.util.List 
      getInputSpecsOrBuilderList() {
    return inputSpecs_;
  }
  /**
   * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
   */
  public int getInputSpecsCount() {
    return inputSpecs_.size();
  }
  /**
   * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
   */
  public io.provenance.metadata.v1.p8e.DefinitionSpec getInputSpecs(int index) {
    return inputSpecs_.get(index);
  }
  /**
   * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
   */
  public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getInputSpecsOrBuilder(
      int index) {
    return inputSpecs_.get(index);
  }

  public static final int OUTPUT_SPEC_FIELD_NUMBER = 3;
  private io.provenance.metadata.v1.p8e.OutputSpec outputSpec_;
  /**
   * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
   */
  public boolean hasOutputSpec() {
    return outputSpec_ != null;
  }
  /**
   * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
   */
  public io.provenance.metadata.v1.p8e.OutputSpec getOutputSpec() {
    return outputSpec_ == null ? io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
  }
  /**
   * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
   */
  public io.provenance.metadata.v1.p8e.OutputSpecOrBuilder getOutputSpecOrBuilder() {
    return getOutputSpec();
  }

  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 (!getFuncNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, funcName_);
    }
    for (int i = 0; i < inputSpecs_.size(); i++) {
      output.writeMessage(2, inputSpecs_.get(i));
    }
    if (outputSpec_ != null) {
      output.writeMessage(3, getOutputSpec());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getFuncNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, funcName_);
    }
    for (int i = 0; i < inputSpecs_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, inputSpecs_.get(i));
    }
    if (outputSpec_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getOutputSpec());
    }
    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.ConditionSpec)) {
      return super.equals(obj);
    }
    io.provenance.metadata.v1.p8e.ConditionSpec other = (io.provenance.metadata.v1.p8e.ConditionSpec) obj;

    boolean result = true;
    result = result && getFuncName()
        .equals(other.getFuncName());
    result = result && getInputSpecsList()
        .equals(other.getInputSpecsList());
    result = result && (hasOutputSpec() == other.hasOutputSpec());
    if (hasOutputSpec()) {
      result = result && getOutputSpec()
          .equals(other.getOutputSpec());
    }
    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();
    hash = (37 * hash) + FUNC_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getFuncName().hashCode();
    if (getInputSpecsCount() > 0) {
      hash = (37 * hash) + INPUT_SPECS_FIELD_NUMBER;
      hash = (53 * hash) + getInputSpecsList().hashCode();
    }
    if (hasOutputSpec()) {
      hash = (37 * hash) + OUTPUT_SPEC_FIELD_NUMBER;
      hash = (53 * hash) + getOutputSpec().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.provenance.metadata.v1.p8e.ConditionSpec parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static io.provenance.metadata.v1.p8e.ConditionSpec 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.ConditionSpec 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.ConditionSpec 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.ConditionSpec 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.ConditionSpec}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:provenance.metadata.v1.p8e.ConditionSpec)
      io.provenance.metadata.v1.p8e.ConditionSpecOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return io.provenance.metadata.v1.p8e.P8E.internal_static_provenance_metadata_v1_p8e_ConditionSpec_descriptor;
    }

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

    // Construct using io.provenance.metadata.v1.p8e.ConditionSpec.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getInputSpecsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      funcName_ = "";

      if (inputSpecsBuilder_ == null) {
        inputSpecs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        inputSpecsBuilder_.clear();
      }
      if (outputSpecBuilder_ == null) {
        outputSpec_ = null;
      } else {
        outputSpec_ = null;
        outputSpecBuilder_ = null;
      }
      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_ConditionSpec_descriptor;
    }

    @java.lang.Override
    public io.provenance.metadata.v1.p8e.ConditionSpec getDefaultInstanceForType() {
      return io.provenance.metadata.v1.p8e.ConditionSpec.getDefaultInstance();
    }

    @java.lang.Override
    public io.provenance.metadata.v1.p8e.ConditionSpec build() {
      io.provenance.metadata.v1.p8e.ConditionSpec result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.provenance.metadata.v1.p8e.ConditionSpec buildPartial() {
      io.provenance.metadata.v1.p8e.ConditionSpec result = new io.provenance.metadata.v1.p8e.ConditionSpec(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      result.funcName_ = funcName_;
      if (inputSpecsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          inputSpecs_ = java.util.Collections.unmodifiableList(inputSpecs_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.inputSpecs_ = inputSpecs_;
      } else {
        result.inputSpecs_ = inputSpecsBuilder_.build();
      }
      if (outputSpecBuilder_ == null) {
        result.outputSpec_ = outputSpec_;
      } else {
        result.outputSpec_ = outputSpecBuilder_.build();
      }
      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.ConditionSpec) {
        return mergeFrom((io.provenance.metadata.v1.p8e.ConditionSpec)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.provenance.metadata.v1.p8e.ConditionSpec other) {
      if (other == io.provenance.metadata.v1.p8e.ConditionSpec.getDefaultInstance()) return this;
      if (!other.getFuncName().isEmpty()) {
        funcName_ = other.funcName_;
        onChanged();
      }
      if (inputSpecsBuilder_ == null) {
        if (!other.inputSpecs_.isEmpty()) {
          if (inputSpecs_.isEmpty()) {
            inputSpecs_ = other.inputSpecs_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureInputSpecsIsMutable();
            inputSpecs_.addAll(other.inputSpecs_);
          }
          onChanged();
        }
      } else {
        if (!other.inputSpecs_.isEmpty()) {
          if (inputSpecsBuilder_.isEmpty()) {
            inputSpecsBuilder_.dispose();
            inputSpecsBuilder_ = null;
            inputSpecs_ = other.inputSpecs_;
            bitField0_ = (bitField0_ & ~0x00000002);
            inputSpecsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getInputSpecsFieldBuilder() : null;
          } else {
            inputSpecsBuilder_.addAllMessages(other.inputSpecs_);
          }
        }
      }
      if (other.hasOutputSpec()) {
        mergeOutputSpec(other.getOutputSpec());
      }
      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.ConditionSpec parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (io.provenance.metadata.v1.p8e.ConditionSpec) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object funcName_ = "";
    /**
     * string func_name = 1;
     */
    public java.lang.String getFuncName() {
      java.lang.Object ref = funcName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        funcName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * string func_name = 1;
     */
    public com.google.protobuf.ByteString
        getFuncNameBytes() {
      java.lang.Object ref = funcName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        funcName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * string func_name = 1;
     */
    public Builder setFuncName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      funcName_ = value;
      onChanged();
      return this;
    }
    /**
     * string func_name = 1;
     */
    public Builder clearFuncName() {
      
      funcName_ = getDefaultInstance().getFuncName();
      onChanged();
      return this;
    }
    /**
     * string func_name = 1;
     */
    public Builder setFuncNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      funcName_ = value;
      onChanged();
      return this;
    }

    private java.util.List inputSpecs_ =
      java.util.Collections.emptyList();
    private void ensureInputSpecsIsMutable() {
      if (!((bitField0_ & 0x00000002) == 0x00000002)) {
        inputSpecs_ = new java.util.ArrayList(inputSpecs_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder> inputSpecsBuilder_;

    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public java.util.List getInputSpecsList() {
      if (inputSpecsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(inputSpecs_);
      } else {
        return inputSpecsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public int getInputSpecsCount() {
      if (inputSpecsBuilder_ == null) {
        return inputSpecs_.size();
      } else {
        return inputSpecsBuilder_.getCount();
      }
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public io.provenance.metadata.v1.p8e.DefinitionSpec getInputSpecs(int index) {
      if (inputSpecsBuilder_ == null) {
        return inputSpecs_.get(index);
      } else {
        return inputSpecsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder setInputSpecs(
        int index, io.provenance.metadata.v1.p8e.DefinitionSpec value) {
      if (inputSpecsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputSpecsIsMutable();
        inputSpecs_.set(index, value);
        onChanged();
      } else {
        inputSpecsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder setInputSpecs(
        int index, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
      if (inputSpecsBuilder_ == null) {
        ensureInputSpecsIsMutable();
        inputSpecs_.set(index, builderForValue.build());
        onChanged();
      } else {
        inputSpecsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder addInputSpecs(io.provenance.metadata.v1.p8e.DefinitionSpec value) {
      if (inputSpecsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputSpecsIsMutable();
        inputSpecs_.add(value);
        onChanged();
      } else {
        inputSpecsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder addInputSpecs(
        int index, io.provenance.metadata.v1.p8e.DefinitionSpec value) {
      if (inputSpecsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureInputSpecsIsMutable();
        inputSpecs_.add(index, value);
        onChanged();
      } else {
        inputSpecsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder addInputSpecs(
        io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
      if (inputSpecsBuilder_ == null) {
        ensureInputSpecsIsMutable();
        inputSpecs_.add(builderForValue.build());
        onChanged();
      } else {
        inputSpecsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder addInputSpecs(
        int index, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder builderForValue) {
      if (inputSpecsBuilder_ == null) {
        ensureInputSpecsIsMutable();
        inputSpecs_.add(index, builderForValue.build());
        onChanged();
      } else {
        inputSpecsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder addAllInputSpecs(
        java.lang.Iterable values) {
      if (inputSpecsBuilder_ == null) {
        ensureInputSpecsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, inputSpecs_);
        onChanged();
      } else {
        inputSpecsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder clearInputSpecs() {
      if (inputSpecsBuilder_ == null) {
        inputSpecs_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        inputSpecsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public Builder removeInputSpecs(int index) {
      if (inputSpecsBuilder_ == null) {
        ensureInputSpecsIsMutable();
        inputSpecs_.remove(index);
        onChanged();
      } else {
        inputSpecsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder getInputSpecsBuilder(
        int index) {
      return getInputSpecsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder getInputSpecsOrBuilder(
        int index) {
      if (inputSpecsBuilder_ == null) {
        return inputSpecs_.get(index);  } else {
        return inputSpecsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public java.util.List 
         getInputSpecsOrBuilderList() {
      if (inputSpecsBuilder_ != null) {
        return inputSpecsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(inputSpecs_);
      }
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder addInputSpecsBuilder() {
      return getInputSpecsFieldBuilder().addBuilder(
          io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance());
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public io.provenance.metadata.v1.p8e.DefinitionSpec.Builder addInputSpecsBuilder(
        int index) {
      return getInputSpecsFieldBuilder().addBuilder(
          index, io.provenance.metadata.v1.p8e.DefinitionSpec.getDefaultInstance());
    }
    /**
     * repeated .provenance.metadata.v1.p8e.DefinitionSpec input_specs = 2;
     */
    public java.util.List 
         getInputSpecsBuilderList() {
      return getInputSpecsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder> 
        getInputSpecsFieldBuilder() {
      if (inputSpecsBuilder_ == null) {
        inputSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            io.provenance.metadata.v1.p8e.DefinitionSpec, io.provenance.metadata.v1.p8e.DefinitionSpec.Builder, io.provenance.metadata.v1.p8e.DefinitionSpecOrBuilder>(
                inputSpecs_,
                ((bitField0_ & 0x00000002) == 0x00000002),
                getParentForChildren(),
                isClean());
        inputSpecs_ = null;
      }
      return inputSpecsBuilder_;
    }

    private io.provenance.metadata.v1.p8e.OutputSpec outputSpec_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder> outputSpecBuilder_;
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public boolean hasOutputSpec() {
      return outputSpecBuilder_ != null || outputSpec_ != null;
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public io.provenance.metadata.v1.p8e.OutputSpec getOutputSpec() {
      if (outputSpecBuilder_ == null) {
        return outputSpec_ == null ? io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
      } else {
        return outputSpecBuilder_.getMessage();
      }
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public Builder setOutputSpec(io.provenance.metadata.v1.p8e.OutputSpec value) {
      if (outputSpecBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        outputSpec_ = value;
        onChanged();
      } else {
        outputSpecBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public Builder setOutputSpec(
        io.provenance.metadata.v1.p8e.OutputSpec.Builder builderForValue) {
      if (outputSpecBuilder_ == null) {
        outputSpec_ = builderForValue.build();
        onChanged();
      } else {
        outputSpecBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public Builder mergeOutputSpec(io.provenance.metadata.v1.p8e.OutputSpec value) {
      if (outputSpecBuilder_ == null) {
        if (outputSpec_ != null) {
          outputSpec_ =
            io.provenance.metadata.v1.p8e.OutputSpec.newBuilder(outputSpec_).mergeFrom(value).buildPartial();
        } else {
          outputSpec_ = value;
        }
        onChanged();
      } else {
        outputSpecBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public Builder clearOutputSpec() {
      if (outputSpecBuilder_ == null) {
        outputSpec_ = null;
        onChanged();
      } else {
        outputSpec_ = null;
        outputSpecBuilder_ = null;
      }

      return this;
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public io.provenance.metadata.v1.p8e.OutputSpec.Builder getOutputSpecBuilder() {
      
      onChanged();
      return getOutputSpecFieldBuilder().getBuilder();
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    public io.provenance.metadata.v1.p8e.OutputSpecOrBuilder getOutputSpecOrBuilder() {
      if (outputSpecBuilder_ != null) {
        return outputSpecBuilder_.getMessageOrBuilder();
      } else {
        return outputSpec_ == null ?
            io.provenance.metadata.v1.p8e.OutputSpec.getDefaultInstance() : outputSpec_;
      }
    }
    /**
     * .provenance.metadata.v1.p8e.OutputSpec output_spec = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder> 
        getOutputSpecFieldBuilder() {
      if (outputSpecBuilder_ == null) {
        outputSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            io.provenance.metadata.v1.p8e.OutputSpec, io.provenance.metadata.v1.p8e.OutputSpec.Builder, io.provenance.metadata.v1.p8e.OutputSpecOrBuilder>(
                getOutputSpec(),
                getParentForChildren(),
                isClean());
        outputSpec_ = null;
      }
      return outputSpecBuilder_;
    }
    @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.ConditionSpec)
  }

  // @@protoc_insertion_point(class_scope:provenance.metadata.v1.p8e.ConditionSpec)
  private static final io.provenance.metadata.v1.p8e.ConditionSpec DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new io.provenance.metadata.v1.p8e.ConditionSpec();
  }

  public static io.provenance.metadata.v1.p8e.ConditionSpec getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public ConditionSpec parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new ConditionSpec(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.ConditionSpec getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy