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

com.netflix.genie.proto.ExecutionResourceCriteria Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: genie.proto

package com.netflix.genie.proto;

/**
 * Protobuf type {@code com.netflix.genie.proto.ExecutionResourceCriteria}
 */
public final class ExecutionResourceCriteria extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.netflix.genie.proto.ExecutionResourceCriteria)
    ExecutionResourceCriteriaOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExecutionResourceCriteria.newBuilder() to construct.
  private ExecutionResourceCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ExecutionResourceCriteria() {
    clusterCriteria_ = java.util.Collections.emptyList();
    requestedApplicationIdOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ExecutionResourceCriteria();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ExecutionResourceCriteria(
      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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              clusterCriteria_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            clusterCriteria_.add(
                input.readMessage(com.netflix.genie.proto.Criterion.parser(), extensionRegistry));
            break;
          }
          case 18: {
            com.netflix.genie.proto.Criterion.Builder subBuilder = null;
            if (commandCriterion_ != null) {
              subBuilder = commandCriterion_.toBuilder();
            }
            commandCriterion_ = input.readMessage(com.netflix.genie.proto.Criterion.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(commandCriterion_);
              commandCriterion_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              requestedApplicationIdOverrides_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            requestedApplicationIdOverrides_.add(s);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        clusterCriteria_ = java.util.Collections.unmodifiableList(clusterCriteria_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        requestedApplicationIdOverrides_ = requestedApplicationIdOverrides_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResourceCriteria_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResourceCriteria_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.netflix.genie.proto.ExecutionResourceCriteria.class, com.netflix.genie.proto.ExecutionResourceCriteria.Builder.class);
  }

  public static final int CLUSTER_CRITERIA_FIELD_NUMBER = 1;
  private java.util.List clusterCriteria_;
  /**
   * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
   */
  @java.lang.Override
  public java.util.List getClusterCriteriaList() {
    return clusterCriteria_;
  }
  /**
   * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
   */
  @java.lang.Override
  public java.util.List 
      getClusterCriteriaOrBuilderList() {
    return clusterCriteria_;
  }
  /**
   * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
   */
  @java.lang.Override
  public int getClusterCriteriaCount() {
    return clusterCriteria_.size();
  }
  /**
   * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
   */
  @java.lang.Override
  public com.netflix.genie.proto.Criterion getClusterCriteria(int index) {
    return clusterCriteria_.get(index);
  }
  /**
   * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
   */
  @java.lang.Override
  public com.netflix.genie.proto.CriterionOrBuilder getClusterCriteriaOrBuilder(
      int index) {
    return clusterCriteria_.get(index);
  }

  public static final int COMMAND_CRITERION_FIELD_NUMBER = 2;
  private com.netflix.genie.proto.Criterion commandCriterion_;
  /**
   * .com.netflix.genie.proto.Criterion command_criterion = 2;
   * @return Whether the commandCriterion field is set.
   */
  @java.lang.Override
  public boolean hasCommandCriterion() {
    return commandCriterion_ != null;
  }
  /**
   * .com.netflix.genie.proto.Criterion command_criterion = 2;
   * @return The commandCriterion.
   */
  @java.lang.Override
  public com.netflix.genie.proto.Criterion getCommandCriterion() {
    return commandCriterion_ == null ? com.netflix.genie.proto.Criterion.getDefaultInstance() : commandCriterion_;
  }
  /**
   * .com.netflix.genie.proto.Criterion command_criterion = 2;
   */
  @java.lang.Override
  public com.netflix.genie.proto.CriterionOrBuilder getCommandCriterionOrBuilder() {
    return getCommandCriterion();
  }

  public static final int REQUESTED_APPLICATION_ID_OVERRIDES_FIELD_NUMBER = 3;
  private com.google.protobuf.LazyStringList requestedApplicationIdOverrides_;
  /**
   * repeated string requested_application_id_overrides = 3;
   * @return A list containing the requestedApplicationIdOverrides.
   */
  public com.google.protobuf.ProtocolStringList
      getRequestedApplicationIdOverridesList() {
    return requestedApplicationIdOverrides_;
  }
  /**
   * repeated string requested_application_id_overrides = 3;
   * @return The count of requestedApplicationIdOverrides.
   */
  public int getRequestedApplicationIdOverridesCount() {
    return requestedApplicationIdOverrides_.size();
  }
  /**
   * repeated string requested_application_id_overrides = 3;
   * @param index The index of the element to return.
   * @return The requestedApplicationIdOverrides at the given index.
   */
  public java.lang.String getRequestedApplicationIdOverrides(int index) {
    return requestedApplicationIdOverrides_.get(index);
  }
  /**
   * repeated string requested_application_id_overrides = 3;
   * @param index The index of the value to return.
   * @return The bytes of the requestedApplicationIdOverrides at the given index.
   */
  public com.google.protobuf.ByteString
      getRequestedApplicationIdOverridesBytes(int index) {
    return requestedApplicationIdOverrides_.getByteString(index);
  }

  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 {
    for (int i = 0; i < clusterCriteria_.size(); i++) {
      output.writeMessage(1, clusterCriteria_.get(i));
    }
    if (commandCriterion_ != null) {
      output.writeMessage(2, getCommandCriterion());
    }
    for (int i = 0; i < requestedApplicationIdOverrides_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestedApplicationIdOverrides_.getRaw(i));
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < clusterCriteria_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, clusterCriteria_.get(i));
    }
    if (commandCriterion_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getCommandCriterion());
    }
    {
      int dataSize = 0;
      for (int i = 0; i < requestedApplicationIdOverrides_.size(); i++) {
        dataSize += computeStringSizeNoTag(requestedApplicationIdOverrides_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getRequestedApplicationIdOverridesList().size();
    }
    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 com.netflix.genie.proto.ExecutionResourceCriteria)) {
      return super.equals(obj);
    }
    com.netflix.genie.proto.ExecutionResourceCriteria other = (com.netflix.genie.proto.ExecutionResourceCriteria) obj;

    if (!getClusterCriteriaList()
        .equals(other.getClusterCriteriaList())) return false;
    if (hasCommandCriterion() != other.hasCommandCriterion()) return false;
    if (hasCommandCriterion()) {
      if (!getCommandCriterion()
          .equals(other.getCommandCriterion())) return false;
    }
    if (!getRequestedApplicationIdOverridesList()
        .equals(other.getRequestedApplicationIdOverridesList())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getClusterCriteriaCount() > 0) {
      hash = (37 * hash) + CLUSTER_CRITERIA_FIELD_NUMBER;
      hash = (53 * hash) + getClusterCriteriaList().hashCode();
    }
    if (hasCommandCriterion()) {
      hash = (37 * hash) + COMMAND_CRITERION_FIELD_NUMBER;
      hash = (53 * hash) + getCommandCriterion().hashCode();
    }
    if (getRequestedApplicationIdOverridesCount() > 0) {
      hash = (37 * hash) + REQUESTED_APPLICATION_ID_OVERRIDES_FIELD_NUMBER;
      hash = (53 * hash) + getRequestedApplicationIdOverridesList().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria 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 com.netflix.genie.proto.ExecutionResourceCriteria parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria 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 com.netflix.genie.proto.ExecutionResourceCriteria parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.netflix.genie.proto.ExecutionResourceCriteria 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(com.netflix.genie.proto.ExecutionResourceCriteria 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 com.netflix.genie.proto.ExecutionResourceCriteria}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.ExecutionResourceCriteria)
      com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResourceCriteria_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResourceCriteria_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.netflix.genie.proto.ExecutionResourceCriteria.class, com.netflix.genie.proto.ExecutionResourceCriteria.Builder.class);
    }

    // Construct using com.netflix.genie.proto.ExecutionResourceCriteria.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getClusterCriteriaFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (clusterCriteriaBuilder_ == null) {
        clusterCriteria_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        clusterCriteriaBuilder_.clear();
      }
      if (commandCriterionBuilder_ == null) {
        commandCriterion_ = null;
      } else {
        commandCriterion_ = null;
        commandCriterionBuilder_ = null;
      }
      requestedApplicationIdOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ExecutionResourceCriteria_descriptor;
    }

    @java.lang.Override
    public com.netflix.genie.proto.ExecutionResourceCriteria getDefaultInstanceForType() {
      return com.netflix.genie.proto.ExecutionResourceCriteria.getDefaultInstance();
    }

    @java.lang.Override
    public com.netflix.genie.proto.ExecutionResourceCriteria build() {
      com.netflix.genie.proto.ExecutionResourceCriteria result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.netflix.genie.proto.ExecutionResourceCriteria buildPartial() {
      com.netflix.genie.proto.ExecutionResourceCriteria result = new com.netflix.genie.proto.ExecutionResourceCriteria(this);
      int from_bitField0_ = bitField0_;
      if (clusterCriteriaBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          clusterCriteria_ = java.util.Collections.unmodifiableList(clusterCriteria_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.clusterCriteria_ = clusterCriteria_;
      } else {
        result.clusterCriteria_ = clusterCriteriaBuilder_.build();
      }
      if (commandCriterionBuilder_ == null) {
        result.commandCriterion_ = commandCriterion_;
      } else {
        result.commandCriterion_ = commandCriterionBuilder_.build();
      }
      if (((bitField0_ & 0x00000002) != 0)) {
        requestedApplicationIdOverrides_ = requestedApplicationIdOverrides_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000002);
      }
      result.requestedApplicationIdOverrides_ = requestedApplicationIdOverrides_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.netflix.genie.proto.ExecutionResourceCriteria) {
        return mergeFrom((com.netflix.genie.proto.ExecutionResourceCriteria)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.netflix.genie.proto.ExecutionResourceCriteria other) {
      if (other == com.netflix.genie.proto.ExecutionResourceCriteria.getDefaultInstance()) return this;
      if (clusterCriteriaBuilder_ == null) {
        if (!other.clusterCriteria_.isEmpty()) {
          if (clusterCriteria_.isEmpty()) {
            clusterCriteria_ = other.clusterCriteria_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureClusterCriteriaIsMutable();
            clusterCriteria_.addAll(other.clusterCriteria_);
          }
          onChanged();
        }
      } else {
        if (!other.clusterCriteria_.isEmpty()) {
          if (clusterCriteriaBuilder_.isEmpty()) {
            clusterCriteriaBuilder_.dispose();
            clusterCriteriaBuilder_ = null;
            clusterCriteria_ = other.clusterCriteria_;
            bitField0_ = (bitField0_ & ~0x00000001);
            clusterCriteriaBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getClusterCriteriaFieldBuilder() : null;
          } else {
            clusterCriteriaBuilder_.addAllMessages(other.clusterCriteria_);
          }
        }
      }
      if (other.hasCommandCriterion()) {
        mergeCommandCriterion(other.getCommandCriterion());
      }
      if (!other.requestedApplicationIdOverrides_.isEmpty()) {
        if (requestedApplicationIdOverrides_.isEmpty()) {
          requestedApplicationIdOverrides_ = other.requestedApplicationIdOverrides_;
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          ensureRequestedApplicationIdOverridesIsMutable();
          requestedApplicationIdOverrides_.addAll(other.requestedApplicationIdOverrides_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.netflix.genie.proto.ExecutionResourceCriteria parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.netflix.genie.proto.ExecutionResourceCriteria) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List clusterCriteria_ =
      java.util.Collections.emptyList();
    private void ensureClusterCriteriaIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        clusterCriteria_ = new java.util.ArrayList(clusterCriteria_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder> clusterCriteriaBuilder_;

    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public java.util.List getClusterCriteriaList() {
      if (clusterCriteriaBuilder_ == null) {
        return java.util.Collections.unmodifiableList(clusterCriteria_);
      } else {
        return clusterCriteriaBuilder_.getMessageList();
      }
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public int getClusterCriteriaCount() {
      if (clusterCriteriaBuilder_ == null) {
        return clusterCriteria_.size();
      } else {
        return clusterCriteriaBuilder_.getCount();
      }
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public com.netflix.genie.proto.Criterion getClusterCriteria(int index) {
      if (clusterCriteriaBuilder_ == null) {
        return clusterCriteria_.get(index);
      } else {
        return clusterCriteriaBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder setClusterCriteria(
        int index, com.netflix.genie.proto.Criterion value) {
      if (clusterCriteriaBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.set(index, value);
        onChanged();
      } else {
        clusterCriteriaBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder setClusterCriteria(
        int index, com.netflix.genie.proto.Criterion.Builder builderForValue) {
      if (clusterCriteriaBuilder_ == null) {
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.set(index, builderForValue.build());
        onChanged();
      } else {
        clusterCriteriaBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder addClusterCriteria(com.netflix.genie.proto.Criterion value) {
      if (clusterCriteriaBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.add(value);
        onChanged();
      } else {
        clusterCriteriaBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder addClusterCriteria(
        int index, com.netflix.genie.proto.Criterion value) {
      if (clusterCriteriaBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.add(index, value);
        onChanged();
      } else {
        clusterCriteriaBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder addClusterCriteria(
        com.netflix.genie.proto.Criterion.Builder builderForValue) {
      if (clusterCriteriaBuilder_ == null) {
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.add(builderForValue.build());
        onChanged();
      } else {
        clusterCriteriaBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder addClusterCriteria(
        int index, com.netflix.genie.proto.Criterion.Builder builderForValue) {
      if (clusterCriteriaBuilder_ == null) {
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.add(index, builderForValue.build());
        onChanged();
      } else {
        clusterCriteriaBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder addAllClusterCriteria(
        java.lang.Iterable values) {
      if (clusterCriteriaBuilder_ == null) {
        ensureClusterCriteriaIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, clusterCriteria_);
        onChanged();
      } else {
        clusterCriteriaBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder clearClusterCriteria() {
      if (clusterCriteriaBuilder_ == null) {
        clusterCriteria_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        clusterCriteriaBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public Builder removeClusterCriteria(int index) {
      if (clusterCriteriaBuilder_ == null) {
        ensureClusterCriteriaIsMutable();
        clusterCriteria_.remove(index);
        onChanged();
      } else {
        clusterCriteriaBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public com.netflix.genie.proto.Criterion.Builder getClusterCriteriaBuilder(
        int index) {
      return getClusterCriteriaFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public com.netflix.genie.proto.CriterionOrBuilder getClusterCriteriaOrBuilder(
        int index) {
      if (clusterCriteriaBuilder_ == null) {
        return clusterCriteria_.get(index);  } else {
        return clusterCriteriaBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public java.util.List 
         getClusterCriteriaOrBuilderList() {
      if (clusterCriteriaBuilder_ != null) {
        return clusterCriteriaBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(clusterCriteria_);
      }
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public com.netflix.genie.proto.Criterion.Builder addClusterCriteriaBuilder() {
      return getClusterCriteriaFieldBuilder().addBuilder(
          com.netflix.genie.proto.Criterion.getDefaultInstance());
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public com.netflix.genie.proto.Criterion.Builder addClusterCriteriaBuilder(
        int index) {
      return getClusterCriteriaFieldBuilder().addBuilder(
          index, com.netflix.genie.proto.Criterion.getDefaultInstance());
    }
    /**
     * repeated .com.netflix.genie.proto.Criterion cluster_criteria = 1;
     */
    public java.util.List 
         getClusterCriteriaBuilderList() {
      return getClusterCriteriaFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder> 
        getClusterCriteriaFieldBuilder() {
      if (clusterCriteriaBuilder_ == null) {
        clusterCriteriaBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder>(
                clusterCriteria_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        clusterCriteria_ = null;
      }
      return clusterCriteriaBuilder_;
    }

    private com.netflix.genie.proto.Criterion commandCriterion_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder> commandCriterionBuilder_;
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     * @return Whether the commandCriterion field is set.
     */
    public boolean hasCommandCriterion() {
      return commandCriterionBuilder_ != null || commandCriterion_ != null;
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     * @return The commandCriterion.
     */
    public com.netflix.genie.proto.Criterion getCommandCriterion() {
      if (commandCriterionBuilder_ == null) {
        return commandCriterion_ == null ? com.netflix.genie.proto.Criterion.getDefaultInstance() : commandCriterion_;
      } else {
        return commandCriterionBuilder_.getMessage();
      }
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public Builder setCommandCriterion(com.netflix.genie.proto.Criterion value) {
      if (commandCriterionBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        commandCriterion_ = value;
        onChanged();
      } else {
        commandCriterionBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public Builder setCommandCriterion(
        com.netflix.genie.proto.Criterion.Builder builderForValue) {
      if (commandCriterionBuilder_ == null) {
        commandCriterion_ = builderForValue.build();
        onChanged();
      } else {
        commandCriterionBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public Builder mergeCommandCriterion(com.netflix.genie.proto.Criterion value) {
      if (commandCriterionBuilder_ == null) {
        if (commandCriterion_ != null) {
          commandCriterion_ =
            com.netflix.genie.proto.Criterion.newBuilder(commandCriterion_).mergeFrom(value).buildPartial();
        } else {
          commandCriterion_ = value;
        }
        onChanged();
      } else {
        commandCriterionBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public Builder clearCommandCriterion() {
      if (commandCriterionBuilder_ == null) {
        commandCriterion_ = null;
        onChanged();
      } else {
        commandCriterion_ = null;
        commandCriterionBuilder_ = null;
      }

      return this;
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public com.netflix.genie.proto.Criterion.Builder getCommandCriterionBuilder() {
      
      onChanged();
      return getCommandCriterionFieldBuilder().getBuilder();
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    public com.netflix.genie.proto.CriterionOrBuilder getCommandCriterionOrBuilder() {
      if (commandCriterionBuilder_ != null) {
        return commandCriterionBuilder_.getMessageOrBuilder();
      } else {
        return commandCriterion_ == null ?
            com.netflix.genie.proto.Criterion.getDefaultInstance() : commandCriterion_;
      }
    }
    /**
     * .com.netflix.genie.proto.Criterion command_criterion = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder> 
        getCommandCriterionFieldBuilder() {
      if (commandCriterionBuilder_ == null) {
        commandCriterionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.netflix.genie.proto.Criterion, com.netflix.genie.proto.Criterion.Builder, com.netflix.genie.proto.CriterionOrBuilder>(
                getCommandCriterion(),
                getParentForChildren(),
                isClean());
        commandCriterion_ = null;
      }
      return commandCriterionBuilder_;
    }

    private com.google.protobuf.LazyStringList requestedApplicationIdOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureRequestedApplicationIdOverridesIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        requestedApplicationIdOverrides_ = new com.google.protobuf.LazyStringArrayList(requestedApplicationIdOverrides_);
        bitField0_ |= 0x00000002;
       }
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @return A list containing the requestedApplicationIdOverrides.
     */
    public com.google.protobuf.ProtocolStringList
        getRequestedApplicationIdOverridesList() {
      return requestedApplicationIdOverrides_.getUnmodifiableView();
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @return The count of requestedApplicationIdOverrides.
     */
    public int getRequestedApplicationIdOverridesCount() {
      return requestedApplicationIdOverrides_.size();
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param index The index of the element to return.
     * @return The requestedApplicationIdOverrides at the given index.
     */
    public java.lang.String getRequestedApplicationIdOverrides(int index) {
      return requestedApplicationIdOverrides_.get(index);
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param index The index of the value to return.
     * @return The bytes of the requestedApplicationIdOverrides at the given index.
     */
    public com.google.protobuf.ByteString
        getRequestedApplicationIdOverridesBytes(int index) {
      return requestedApplicationIdOverrides_.getByteString(index);
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param index The index to set the value at.
     * @param value The requestedApplicationIdOverrides to set.
     * @return This builder for chaining.
     */
    public Builder setRequestedApplicationIdOverrides(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureRequestedApplicationIdOverridesIsMutable();
      requestedApplicationIdOverrides_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param value The requestedApplicationIdOverrides to add.
     * @return This builder for chaining.
     */
    public Builder addRequestedApplicationIdOverrides(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureRequestedApplicationIdOverridesIsMutable();
      requestedApplicationIdOverrides_.add(value);
      onChanged();
      return this;
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param values The requestedApplicationIdOverrides to add.
     * @return This builder for chaining.
     */
    public Builder addAllRequestedApplicationIdOverrides(
        java.lang.Iterable values) {
      ensureRequestedApplicationIdOverridesIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, requestedApplicationIdOverrides_);
      onChanged();
      return this;
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @return This builder for chaining.
     */
    public Builder clearRequestedApplicationIdOverrides() {
      requestedApplicationIdOverrides_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }
    /**
     * repeated string requested_application_id_overrides = 3;
     * @param value The bytes of the requestedApplicationIdOverrides to add.
     * @return This builder for chaining.
     */
    public Builder addRequestedApplicationIdOverridesBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureRequestedApplicationIdOverridesIsMutable();
      requestedApplicationIdOverrides_.add(value);
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:com.netflix.genie.proto.ExecutionResourceCriteria)
  }

  // @@protoc_insertion_point(class_scope:com.netflix.genie.proto.ExecutionResourceCriteria)
  private static final com.netflix.genie.proto.ExecutionResourceCriteria DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.netflix.genie.proto.ExecutionResourceCriteria();
  }

  public static com.netflix.genie.proto.ExecutionResourceCriteria getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy