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

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

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

package com.netflix.genie.proto;

/**
 * Protobuf type {@code com.netflix.genie.proto.JobSpecification}
 */
public final class JobSpecification extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:com.netflix.genie.proto.JobSpecification)
    JobSpecificationOrBuilder {
private static final long serialVersionUID = 0L;
  // Use JobSpecification.newBuilder() to construct.
  private JobSpecification(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private JobSpecification() {
    commandArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    applications_ = java.util.Collections.emptyList();
    jobDirectoryLocation_ = "";
    archiveLocation_ = "";
    executableAndArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    jobArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

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

            break;
          }
          case 26: {
            com.netflix.genie.proto.ExecutionResource.Builder subBuilder = null;
            if (cluster_ != null) {
              subBuilder = cluster_.toBuilder();
            }
            cluster_ = input.readMessage(com.netflix.genie.proto.ExecutionResource.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(cluster_);
              cluster_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            com.netflix.genie.proto.ExecutionResource.Builder subBuilder = null;
            if (command_ != null) {
              subBuilder = command_.toBuilder();
            }
            command_ = input.readMessage(com.netflix.genie.proto.ExecutionResource.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(command_);
              command_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              applications_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            applications_.add(
                input.readMessage(com.netflix.genie.proto.ExecutionResource.parser(), extensionRegistry));
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              environmentVariables_ = com.google.protobuf.MapField.newMapField(
                  EnvironmentVariablesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000004;
            }
            com.google.protobuf.MapEntry
            environmentVariables__ = input.readMessage(
                EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            environmentVariables_.getMutableMap().put(
                environmentVariables__.getKey(), environmentVariables__.getValue());
            break;
          }
          case 56: {

            isInteractive_ = input.readBool();
            break;
          }
          case 66: {
            java.lang.String s = input.readStringRequireUtf8();

            jobDirectoryLocation_ = s;
            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            archiveLocation_ = s;
            break;
          }
          case 82: {
            com.google.protobuf.Int32Value.Builder subBuilder = null;
            if (timeout_ != null) {
              subBuilder = timeout_.toBuilder();
            }
            timeout_ = input.readMessage(com.google.protobuf.Int32Value.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(timeout_);
              timeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 90: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000008) != 0)) {
              executableAndArgs_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            executableAndArgs_.add(s);
            break;
          }
          case 98: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000010) != 0)) {
              jobArgs_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000010;
            }
            jobArgs_.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)) {
        commandArgs_ = commandArgs_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        applications_ = java.util.Collections.unmodifiableList(applications_);
      }
      if (((mutable_bitField0_ & 0x00000008) != 0)) {
        executableAndArgs_ = executableAndArgs_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000010) != 0)) {
        jobArgs_ = jobArgs_.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_JobSpecification_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetEnvironmentVariables();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_JobSpecification_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.netflix.genie.proto.JobSpecification.class, com.netflix.genie.proto.JobSpecification.Builder.class);
  }

  public static final int COMMAND_ARGS_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList commandArgs_;
  /**
   * 
   * Deprecated by fields 11 & 12. Populated for backward compatibility.
   * 
* * repeated string command_args = 1 [deprecated = true]; * @return A list containing the commandArgs. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCommandArgsList() { return commandArgs_; } /** *
   * Deprecated by fields 11 & 12. Populated for backward compatibility.
   * 
* * repeated string command_args = 1 [deprecated = true]; * @return The count of commandArgs. */ @java.lang.Deprecated public int getCommandArgsCount() { return commandArgs_.size(); } /** *
   * Deprecated by fields 11 & 12. Populated for backward compatibility.
   * 
* * repeated string command_args = 1 [deprecated = true]; * @param index The index of the element to return. * @return The commandArgs at the given index. */ @java.lang.Deprecated public java.lang.String getCommandArgs(int index) { return commandArgs_.get(index); } /** *
   * Deprecated by fields 11 & 12. Populated for backward compatibility.
   * 
* * repeated string command_args = 1 [deprecated = true]; * @param index The index of the value to return. * @return The bytes of the commandArgs at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getCommandArgsBytes(int index) { return commandArgs_.getByteString(index); } public static final int JOB_FIELD_NUMBER = 2; private com.netflix.genie.proto.ExecutionResource job_; /** * .com.netflix.genie.proto.ExecutionResource job = 2; * @return Whether the job field is set. */ @java.lang.Override public boolean hasJob() { return job_ != null; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; * @return The job. */ @java.lang.Override public com.netflix.genie.proto.ExecutionResource getJob() { return job_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : job_; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ @java.lang.Override public com.netflix.genie.proto.ExecutionResourceOrBuilder getJobOrBuilder() { return getJob(); } public static final int CLUSTER_FIELD_NUMBER = 3; private com.netflix.genie.proto.ExecutionResource cluster_; /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; * @return Whether the cluster field is set. */ @java.lang.Override public boolean hasCluster() { return cluster_ != null; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; * @return The cluster. */ @java.lang.Override public com.netflix.genie.proto.ExecutionResource getCluster() { return cluster_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : cluster_; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ @java.lang.Override public com.netflix.genie.proto.ExecutionResourceOrBuilder getClusterOrBuilder() { return getCluster(); } public static final int COMMAND_FIELD_NUMBER = 4; private com.netflix.genie.proto.ExecutionResource command_; /** * .com.netflix.genie.proto.ExecutionResource command = 4; * @return Whether the command field is set. */ @java.lang.Override public boolean hasCommand() { return command_ != null; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; * @return The command. */ @java.lang.Override public com.netflix.genie.proto.ExecutionResource getCommand() { return command_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : command_; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ @java.lang.Override public com.netflix.genie.proto.ExecutionResourceOrBuilder getCommandOrBuilder() { return getCommand(); } public static final int APPLICATIONS_FIELD_NUMBER = 5; private java.util.List applications_; /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ @java.lang.Override public java.util.List getApplicationsList() { return applications_; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ @java.lang.Override public java.util.List getApplicationsOrBuilderList() { return applications_; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ @java.lang.Override public int getApplicationsCount() { return applications_.size(); } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ @java.lang.Override public com.netflix.genie.proto.ExecutionResource getApplications(int index) { return applications_.get(index); } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ @java.lang.Override public com.netflix.genie.proto.ExecutionResourceOrBuilder getApplicationsOrBuilder( int index) { return applications_.get(index); } public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; private static final class EnvironmentVariablesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_JobSpecification_EnvironmentVariablesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public boolean containsEnvironmentVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetEnvironmentVariables().getMap().containsKey(key); } /** * Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.lang.String getEnvironmentVariablesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int IS_INTERACTIVE_FIELD_NUMBER = 7; private boolean isInteractive_; /** * bool is_interactive = 7; * @return The isInteractive. */ @java.lang.Override public boolean getIsInteractive() { return isInteractive_; } public static final int JOB_DIRECTORY_LOCATION_FIELD_NUMBER = 8; private volatile java.lang.Object jobDirectoryLocation_; /** * string job_directory_location = 8; * @return The jobDirectoryLocation. */ @java.lang.Override public java.lang.String getJobDirectoryLocation() { java.lang.Object ref = jobDirectoryLocation_; 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(); jobDirectoryLocation_ = s; return s; } } /** * string job_directory_location = 8; * @return The bytes for jobDirectoryLocation. */ @java.lang.Override public com.google.protobuf.ByteString getJobDirectoryLocationBytes() { java.lang.Object ref = jobDirectoryLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobDirectoryLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ARCHIVE_LOCATION_FIELD_NUMBER = 9; private volatile java.lang.Object archiveLocation_; /** * string archive_location = 9; * @return The archiveLocation. */ @java.lang.Override public java.lang.String getArchiveLocation() { java.lang.Object ref = archiveLocation_; 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(); archiveLocation_ = s; return s; } } /** * string archive_location = 9; * @return The bytes for archiveLocation. */ @java.lang.Override public com.google.protobuf.ByteString getArchiveLocationBytes() { java.lang.Object ref = archiveLocation_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); archiveLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TIMEOUT_FIELD_NUMBER = 10; private com.google.protobuf.Int32Value timeout_; /** *
   * Optional number of seconds from start when the job should timeout
   * 
* * .google.protobuf.Int32Value timeout = 10; * @return Whether the timeout field is set. */ @java.lang.Override public boolean hasTimeout() { return timeout_ != null; } /** *
   * Optional number of seconds from start when the job should timeout
   * 
* * .google.protobuf.Int32Value timeout = 10; * @return The timeout. */ @java.lang.Override public com.google.protobuf.Int32Value getTimeout() { return timeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : timeout_; } /** *
   * Optional number of seconds from start when the job should timeout
   * 
* * .google.protobuf.Int32Value timeout = 10; */ @java.lang.Override public com.google.protobuf.Int32ValueOrBuilder getTimeoutOrBuilder() { return getTimeout(); } public static final int EXECUTABLE_AND_ARGS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList executableAndArgs_; /** * repeated string executable_and_args = 11; * @return A list containing the executableAndArgs. */ public com.google.protobuf.ProtocolStringList getExecutableAndArgsList() { return executableAndArgs_; } /** * repeated string executable_and_args = 11; * @return The count of executableAndArgs. */ public int getExecutableAndArgsCount() { return executableAndArgs_.size(); } /** * repeated string executable_and_args = 11; * @param index The index of the element to return. * @return The executableAndArgs at the given index. */ public java.lang.String getExecutableAndArgs(int index) { return executableAndArgs_.get(index); } /** * repeated string executable_and_args = 11; * @param index The index of the value to return. * @return The bytes of the executableAndArgs at the given index. */ public com.google.protobuf.ByteString getExecutableAndArgsBytes(int index) { return executableAndArgs_.getByteString(index); } public static final int JOB_ARGS_FIELD_NUMBER = 12; private com.google.protobuf.LazyStringList jobArgs_; /** * repeated string job_args = 12; * @return A list containing the jobArgs. */ public com.google.protobuf.ProtocolStringList getJobArgsList() { return jobArgs_; } /** * repeated string job_args = 12; * @return The count of jobArgs. */ public int getJobArgsCount() { return jobArgs_.size(); } /** * repeated string job_args = 12; * @param index The index of the element to return. * @return The jobArgs at the given index. */ public java.lang.String getJobArgs(int index) { return jobArgs_.get(index); } /** * repeated string job_args = 12; * @param index The index of the value to return. * @return The bytes of the jobArgs at the given index. */ public com.google.protobuf.ByteString getJobArgsBytes(int index) { return jobArgs_.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 < commandArgs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, commandArgs_.getRaw(i)); } if (job_ != null) { output.writeMessage(2, getJob()); } if (cluster_ != null) { output.writeMessage(3, getCluster()); } if (command_ != null) { output.writeMessage(4, getCommand()); } for (int i = 0; i < applications_.size(); i++) { output.writeMessage(5, applications_.get(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetEnvironmentVariables(), EnvironmentVariablesDefaultEntryHolder.defaultEntry, 6); if (isInteractive_ != false) { output.writeBool(7, isInteractive_); } if (!getJobDirectoryLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, jobDirectoryLocation_); } if (!getArchiveLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, archiveLocation_); } if (timeout_ != null) { output.writeMessage(10, getTimeout()); } for (int i = 0; i < executableAndArgs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, executableAndArgs_.getRaw(i)); } for (int i = 0; i < jobArgs_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, jobArgs_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < commandArgs_.size(); i++) { dataSize += computeStringSizeNoTag(commandArgs_.getRaw(i)); } size += dataSize; size += 1 * getCommandArgsList().size(); } if (job_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getJob()); } if (cluster_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getCluster()); } if (command_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getCommand()); } for (int i = 0; i < applications_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, applications_.get(i)); } for (java.util.Map.Entry entry : internalGetEnvironmentVariables().getMap().entrySet()) { com.google.protobuf.MapEntry environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, environmentVariables__); } if (isInteractive_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, isInteractive_); } if (!getJobDirectoryLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, jobDirectoryLocation_); } if (!getArchiveLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, archiveLocation_); } if (timeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getTimeout()); } { int dataSize = 0; for (int i = 0; i < executableAndArgs_.size(); i++) { dataSize += computeStringSizeNoTag(executableAndArgs_.getRaw(i)); } size += dataSize; size += 1 * getExecutableAndArgsList().size(); } { int dataSize = 0; for (int i = 0; i < jobArgs_.size(); i++) { dataSize += computeStringSizeNoTag(jobArgs_.getRaw(i)); } size += dataSize; size += 1 * getJobArgsList().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.JobSpecification)) { return super.equals(obj); } com.netflix.genie.proto.JobSpecification other = (com.netflix.genie.proto.JobSpecification) obj; if (!getCommandArgsList() .equals(other.getCommandArgsList())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { if (!getJob() .equals(other.getJob())) return false; } if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { if (!getCluster() .equals(other.getCluster())) return false; } if (hasCommand() != other.hasCommand()) return false; if (hasCommand()) { if (!getCommand() .equals(other.getCommand())) return false; } if (!getApplicationsList() .equals(other.getApplicationsList())) return false; if (!internalGetEnvironmentVariables().equals( other.internalGetEnvironmentVariables())) return false; if (getIsInteractive() != other.getIsInteractive()) return false; if (!getJobDirectoryLocation() .equals(other.getJobDirectoryLocation())) return false; if (!getArchiveLocation() .equals(other.getArchiveLocation())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { if (!getTimeout() .equals(other.getTimeout())) return false; } if (!getExecutableAndArgsList() .equals(other.getExecutableAndArgsList())) return false; if (!getJobArgsList() .equals(other.getJobArgsList())) 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 (getCommandArgsCount() > 0) { hash = (37 * hash) + COMMAND_ARGS_FIELD_NUMBER; hash = (53 * hash) + getCommandArgsList().hashCode(); } if (hasJob()) { hash = (37 * hash) + JOB_FIELD_NUMBER; hash = (53 * hash) + getJob().hashCode(); } if (hasCluster()) { hash = (37 * hash) + CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getCluster().hashCode(); } if (hasCommand()) { hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); } if (getApplicationsCount() > 0) { hash = (37 * hash) + APPLICATIONS_FIELD_NUMBER; hash = (53 * hash) + getApplicationsList().hashCode(); } if (!internalGetEnvironmentVariables().getMap().isEmpty()) { hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); } hash = (37 * hash) + IS_INTERACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsInteractive()); hash = (37 * hash) + JOB_DIRECTORY_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getJobDirectoryLocation().hashCode(); hash = (37 * hash) + ARCHIVE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getArchiveLocation().hashCode(); if (hasTimeout()) { hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getTimeout().hashCode(); } if (getExecutableAndArgsCount() > 0) { hash = (37 * hash) + EXECUTABLE_AND_ARGS_FIELD_NUMBER; hash = (53 * hash) + getExecutableAndArgsList().hashCode(); } if (getJobArgsCount() > 0) { hash = (37 * hash) + JOB_ARGS_FIELD_NUMBER; hash = (53 * hash) + getJobArgsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.netflix.genie.proto.JobSpecification parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.JobSpecification 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.JobSpecification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.JobSpecification 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.JobSpecification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.netflix.genie.proto.JobSpecification parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.netflix.genie.proto.JobSpecification parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.netflix.genie.proto.JobSpecification 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.JobSpecification parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.netflix.genie.proto.JobSpecification 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.JobSpecification parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.netflix.genie.proto.JobSpecification 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.JobSpecification 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.JobSpecification} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.JobSpecification) com.netflix.genie.proto.JobSpecificationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_JobSpecification_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 6: return internalGetEnvironmentVariables(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 6: return internalGetMutableEnvironmentVariables(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_JobSpecification_fieldAccessorTable .ensureFieldAccessorsInitialized( com.netflix.genie.proto.JobSpecification.class, com.netflix.genie.proto.JobSpecification.Builder.class); } // Construct using com.netflix.genie.proto.JobSpecification.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getApplicationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); commandArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (jobBuilder_ == null) { job_ = null; } else { job_ = null; jobBuilder_ = null; } if (clusterBuilder_ == null) { cluster_ = null; } else { cluster_ = null; clusterBuilder_ = null; } if (commandBuilder_ == null) { command_ = null; } else { command_ = null; commandBuilder_ = null; } if (applicationsBuilder_ == null) { applications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { applicationsBuilder_.clear(); } internalGetMutableEnvironmentVariables().clear(); isInteractive_ = false; jobDirectoryLocation_ = ""; archiveLocation_ = ""; if (timeoutBuilder_ == null) { timeout_ = null; } else { timeout_ = null; timeoutBuilder_ = null; } executableAndArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); jobArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_JobSpecification_descriptor; } @java.lang.Override public com.netflix.genie.proto.JobSpecification getDefaultInstanceForType() { return com.netflix.genie.proto.JobSpecification.getDefaultInstance(); } @java.lang.Override public com.netflix.genie.proto.JobSpecification build() { com.netflix.genie.proto.JobSpecification result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.netflix.genie.proto.JobSpecification buildPartial() { com.netflix.genie.proto.JobSpecification result = new com.netflix.genie.proto.JobSpecification(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { commandArgs_ = commandArgs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.commandArgs_ = commandArgs_; if (jobBuilder_ == null) { result.job_ = job_; } else { result.job_ = jobBuilder_.build(); } if (clusterBuilder_ == null) { result.cluster_ = cluster_; } else { result.cluster_ = clusterBuilder_.build(); } if (commandBuilder_ == null) { result.command_ = command_; } else { result.command_ = commandBuilder_.build(); } if (applicationsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { applications_ = java.util.Collections.unmodifiableList(applications_); bitField0_ = (bitField0_ & ~0x00000002); } result.applications_ = applications_; } else { result.applications_ = applicationsBuilder_.build(); } result.environmentVariables_ = internalGetEnvironmentVariables(); result.environmentVariables_.makeImmutable(); result.isInteractive_ = isInteractive_; result.jobDirectoryLocation_ = jobDirectoryLocation_; result.archiveLocation_ = archiveLocation_; if (timeoutBuilder_ == null) { result.timeout_ = timeout_; } else { result.timeout_ = timeoutBuilder_.build(); } if (((bitField0_ & 0x00000008) != 0)) { executableAndArgs_ = executableAndArgs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000008); } result.executableAndArgs_ = executableAndArgs_; if (((bitField0_ & 0x00000010) != 0)) { jobArgs_ = jobArgs_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000010); } result.jobArgs_ = jobArgs_; 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.JobSpecification) { return mergeFrom((com.netflix.genie.proto.JobSpecification)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.netflix.genie.proto.JobSpecification other) { if (other == com.netflix.genie.proto.JobSpecification.getDefaultInstance()) return this; if (!other.commandArgs_.isEmpty()) { if (commandArgs_.isEmpty()) { commandArgs_ = other.commandArgs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCommandArgsIsMutable(); commandArgs_.addAll(other.commandArgs_); } onChanged(); } if (other.hasJob()) { mergeJob(other.getJob()); } if (other.hasCluster()) { mergeCluster(other.getCluster()); } if (other.hasCommand()) { mergeCommand(other.getCommand()); } if (applicationsBuilder_ == null) { if (!other.applications_.isEmpty()) { if (applications_.isEmpty()) { applications_ = other.applications_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureApplicationsIsMutable(); applications_.addAll(other.applications_); } onChanged(); } } else { if (!other.applications_.isEmpty()) { if (applicationsBuilder_.isEmpty()) { applicationsBuilder_.dispose(); applicationsBuilder_ = null; applications_ = other.applications_; bitField0_ = (bitField0_ & ~0x00000002); applicationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getApplicationsFieldBuilder() : null; } else { applicationsBuilder_.addAllMessages(other.applications_); } } } internalGetMutableEnvironmentVariables().mergeFrom( other.internalGetEnvironmentVariables()); if (other.getIsInteractive() != false) { setIsInteractive(other.getIsInteractive()); } if (!other.getJobDirectoryLocation().isEmpty()) { jobDirectoryLocation_ = other.jobDirectoryLocation_; onChanged(); } if (!other.getArchiveLocation().isEmpty()) { archiveLocation_ = other.archiveLocation_; onChanged(); } if (other.hasTimeout()) { mergeTimeout(other.getTimeout()); } if (!other.executableAndArgs_.isEmpty()) { if (executableAndArgs_.isEmpty()) { executableAndArgs_ = other.executableAndArgs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureExecutableAndArgsIsMutable(); executableAndArgs_.addAll(other.executableAndArgs_); } onChanged(); } if (!other.jobArgs_.isEmpty()) { if (jobArgs_.isEmpty()) { jobArgs_ = other.jobArgs_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureJobArgsIsMutable(); jobArgs_.addAll(other.jobArgs_); } 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.JobSpecification parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.netflix.genie.proto.JobSpecification) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList commandArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommandArgsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { commandArgs_ = new com.google.protobuf.LazyStringArrayList(commandArgs_); bitField0_ |= 0x00000001; } } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @return A list containing the commandArgs. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getCommandArgsList() { return commandArgs_.getUnmodifiableView(); } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @return The count of commandArgs. */ @java.lang.Deprecated public int getCommandArgsCount() { return commandArgs_.size(); } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param index The index of the element to return. * @return The commandArgs at the given index. */ @java.lang.Deprecated public java.lang.String getCommandArgs(int index) { return commandArgs_.get(index); } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param index The index of the value to return. * @return The bytes of the commandArgs at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getCommandArgsBytes(int index) { return commandArgs_.getByteString(index); } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param index The index to set the value at. * @param value The commandArgs to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setCommandArgs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandArgsIsMutable(); commandArgs_.set(index, value); onChanged(); return this; } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param value The commandArgs to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addCommandArgs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCommandArgsIsMutable(); commandArgs_.add(value); onChanged(); return this; } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param values The commandArgs to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllCommandArgs( java.lang.Iterable values) { ensureCommandArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commandArgs_); onChanged(); return this; } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearCommandArgs() { commandArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Deprecated by fields 11 & 12. Populated for backward compatibility.
     * 
* * repeated string command_args = 1 [deprecated = true]; * @param value The bytes of the commandArgs to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addCommandArgsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCommandArgsIsMutable(); commandArgs_.add(value); onChanged(); return this; } private com.netflix.genie.proto.ExecutionResource job_; private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> jobBuilder_; /** * .com.netflix.genie.proto.ExecutionResource job = 2; * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; * @return The job. */ public com.netflix.genie.proto.ExecutionResource getJob() { if (jobBuilder_ == null) { return job_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : job_; } else { return jobBuilder_.getMessage(); } } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public Builder setJob(com.netflix.genie.proto.ExecutionResource value) { if (jobBuilder_ == null) { if (value == null) { throw new NullPointerException(); } job_ = value; onChanged(); } else { jobBuilder_.setMessage(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public Builder setJob( com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (jobBuilder_ == null) { job_ = builderForValue.build(); onChanged(); } else { jobBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public Builder mergeJob(com.netflix.genie.proto.ExecutionResource value) { if (jobBuilder_ == null) { if (job_ != null) { job_ = com.netflix.genie.proto.ExecutionResource.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } onChanged(); } else { jobBuilder_.mergeFrom(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public Builder clearJob() { if (jobBuilder_ == null) { job_ = null; onChanged(); } else { job_ = null; jobBuilder_ = null; } return this; } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public com.netflix.genie.proto.ExecutionResource.Builder getJobBuilder() { onChanged(); return getJobFieldBuilder().getBuilder(); } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ public com.netflix.genie.proto.ExecutionResourceOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { return job_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : job_; } } /** * .com.netflix.genie.proto.ExecutionResource job = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder>( getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; } private com.netflix.genie.proto.ExecutionResource cluster_; private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> clusterBuilder_; /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; * @return The cluster. */ public com.netflix.genie.proto.ExecutionResource getCluster() { if (clusterBuilder_ == null) { return cluster_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public Builder setCluster(com.netflix.genie.proto.ExecutionResource value) { if (clusterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } cluster_ = value; onChanged(); } else { clusterBuilder_.setMessage(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public Builder setCluster( com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); } else { clusterBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public Builder mergeCluster(com.netflix.genie.proto.ExecutionResource value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = com.netflix.genie.proto.ExecutionResource.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } onChanged(); } else { clusterBuilder_.mergeFrom(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public Builder clearCluster() { if (clusterBuilder_ == null) { cluster_ = null; onChanged(); } else { cluster_ = null; clusterBuilder_ = null; } return this; } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public com.netflix.genie.proto.ExecutionResource.Builder getClusterBuilder() { onChanged(); return getClusterFieldBuilder().getBuilder(); } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ public com.netflix.genie.proto.ExecutionResourceOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { return cluster_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : cluster_; } } /** * .com.netflix.genie.proto.ExecutionResource cluster = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder>( getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } private com.netflix.genie.proto.ExecutionResource command_; private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> commandBuilder_; /** * .com.netflix.genie.proto.ExecutionResource command = 4; * @return Whether the command field is set. */ public boolean hasCommand() { return commandBuilder_ != null || command_ != null; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; * @return The command. */ public com.netflix.genie.proto.ExecutionResource getCommand() { if (commandBuilder_ == null) { return command_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : command_; } else { return commandBuilder_.getMessage(); } } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public Builder setCommand(com.netflix.genie.proto.ExecutionResource value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public Builder setCommand( com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (commandBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } return this; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public Builder mergeCommand(com.netflix.genie.proto.ExecutionResource value) { if (commandBuilder_ == null) { if (command_ != null) { command_ = com.netflix.genie.proto.ExecutionResource.newBuilder(command_).mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { commandBuilder_.mergeFrom(value); } return this; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public Builder clearCommand() { if (commandBuilder_ == null) { command_ = null; onChanged(); } else { command_ = null; commandBuilder_ = null; } return this; } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public com.netflix.genie.proto.ExecutionResource.Builder getCommandBuilder() { onChanged(); return getCommandFieldBuilder().getBuilder(); } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ public com.netflix.genie.proto.ExecutionResourceOrBuilder getCommandOrBuilder() { if (commandBuilder_ != null) { return commandBuilder_.getMessageOrBuilder(); } else { return command_ == null ? com.netflix.genie.proto.ExecutionResource.getDefaultInstance() : command_; } } /** * .com.netflix.genie.proto.ExecutionResource command = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder>( getCommand(), getParentForChildren(), isClean()); command_ = null; } return commandBuilder_; } private java.util.List applications_ = java.util.Collections.emptyList(); private void ensureApplicationsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { applications_ = new java.util.ArrayList(applications_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> applicationsBuilder_; /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public java.util.List getApplicationsList() { if (applicationsBuilder_ == null) { return java.util.Collections.unmodifiableList(applications_); } else { return applicationsBuilder_.getMessageList(); } } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public int getApplicationsCount() { if (applicationsBuilder_ == null) { return applications_.size(); } else { return applicationsBuilder_.getCount(); } } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public com.netflix.genie.proto.ExecutionResource getApplications(int index) { if (applicationsBuilder_ == null) { return applications_.get(index); } else { return applicationsBuilder_.getMessage(index); } } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder setApplications( int index, com.netflix.genie.proto.ExecutionResource value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.set(index, value); onChanged(); } else { applicationsBuilder_.setMessage(index, value); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder setApplications( int index, com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.set(index, builderForValue.build()); onChanged(); } else { applicationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder addApplications(com.netflix.genie.proto.ExecutionResource value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.add(value); onChanged(); } else { applicationsBuilder_.addMessage(value); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder addApplications( int index, com.netflix.genie.proto.ExecutionResource value) { if (applicationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureApplicationsIsMutable(); applications_.add(index, value); onChanged(); } else { applicationsBuilder_.addMessage(index, value); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder addApplications( com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.add(builderForValue.build()); onChanged(); } else { applicationsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder addApplications( int index, com.netflix.genie.proto.ExecutionResource.Builder builderForValue) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.add(index, builderForValue.build()); onChanged(); } else { applicationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder addAllApplications( java.lang.Iterable values) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, applications_); onChanged(); } else { applicationsBuilder_.addAllMessages(values); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder clearApplications() { if (applicationsBuilder_ == null) { applications_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { applicationsBuilder_.clear(); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public Builder removeApplications(int index) { if (applicationsBuilder_ == null) { ensureApplicationsIsMutable(); applications_.remove(index); onChanged(); } else { applicationsBuilder_.remove(index); } return this; } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public com.netflix.genie.proto.ExecutionResource.Builder getApplicationsBuilder( int index) { return getApplicationsFieldBuilder().getBuilder(index); } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public com.netflix.genie.proto.ExecutionResourceOrBuilder getApplicationsOrBuilder( int index) { if (applicationsBuilder_ == null) { return applications_.get(index); } else { return applicationsBuilder_.getMessageOrBuilder(index); } } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public java.util.List getApplicationsOrBuilderList() { if (applicationsBuilder_ != null) { return applicationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(applications_); } } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public com.netflix.genie.proto.ExecutionResource.Builder addApplicationsBuilder() { return getApplicationsFieldBuilder().addBuilder( com.netflix.genie.proto.ExecutionResource.getDefaultInstance()); } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public com.netflix.genie.proto.ExecutionResource.Builder addApplicationsBuilder( int index) { return getApplicationsFieldBuilder().addBuilder( index, com.netflix.genie.proto.ExecutionResource.getDefaultInstance()); } /** * repeated .com.netflix.genie.proto.ExecutionResource applications = 5; */ public java.util.List getApplicationsBuilderList() { return getApplicationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder> getApplicationsFieldBuilder() { if (applicationsBuilder_ == null) { applicationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.netflix.genie.proto.ExecutionResource, com.netflix.genie.proto.ExecutionResource.Builder, com.netflix.genie.proto.ExecutionResourceOrBuilder>( applications_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); applications_ = null; } return applicationsBuilder_; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> environmentVariables_; private com.google.protobuf.MapField internalGetEnvironmentVariables() { if (environmentVariables_ == null) { return com.google.protobuf.MapField.emptyMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } return environmentVariables_; } private com.google.protobuf.MapField internalGetMutableEnvironmentVariables() { onChanged();; if (environmentVariables_ == null) { environmentVariables_ = com.google.protobuf.MapField.newMapField( EnvironmentVariablesDefaultEntryHolder.defaultEntry); } if (!environmentVariables_.isMutable()) { environmentVariables_ = environmentVariables_.copy(); } return environmentVariables_; } public int getEnvironmentVariablesCount() { return internalGetEnvironmentVariables().getMap().size(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public boolean containsEnvironmentVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetEnvironmentVariables().getMap().containsKey(key); } /** * Use {@link #getEnvironmentVariablesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getEnvironmentVariables() { return getEnvironmentVariablesMap(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.util.Map getEnvironmentVariablesMap() { return internalGetEnvironmentVariables().getMap(); } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.lang.String getEnvironmentVariablesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEnvironmentVariables().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, string> environment_variables = 6; */ @java.lang.Override public java.lang.String getEnvironmentVariablesOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetEnvironmentVariables().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearEnvironmentVariables() { internalGetMutableEnvironmentVariables().getMutableMap() .clear(); return this; } /** * map<string, string> environment_variables = 6; */ public Builder removeEnvironmentVariables( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } internalGetMutableEnvironmentVariables().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableEnvironmentVariables() { return internalGetMutableEnvironmentVariables().getMutableMap(); } /** * map<string, string> environment_variables = 6; */ public Builder putEnvironmentVariables( java.lang.String key, java.lang.String value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } internalGetMutableEnvironmentVariables().getMutableMap() .put(key, value); return this; } /** * map<string, string> environment_variables = 6; */ public Builder putAllEnvironmentVariables( java.util.Map values) { internalGetMutableEnvironmentVariables().getMutableMap() .putAll(values); return this; } private boolean isInteractive_ ; /** * bool is_interactive = 7; * @return The isInteractive. */ @java.lang.Override public boolean getIsInteractive() { return isInteractive_; } /** * bool is_interactive = 7; * @param value The isInteractive to set. * @return This builder for chaining. */ public Builder setIsInteractive(boolean value) { isInteractive_ = value; onChanged(); return this; } /** * bool is_interactive = 7; * @return This builder for chaining. */ public Builder clearIsInteractive() { isInteractive_ = false; onChanged(); return this; } private java.lang.Object jobDirectoryLocation_ = ""; /** * string job_directory_location = 8; * @return The jobDirectoryLocation. */ public java.lang.String getJobDirectoryLocation() { java.lang.Object ref = jobDirectoryLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobDirectoryLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string job_directory_location = 8; * @return The bytes for jobDirectoryLocation. */ public com.google.protobuf.ByteString getJobDirectoryLocationBytes() { java.lang.Object ref = jobDirectoryLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); jobDirectoryLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string job_directory_location = 8; * @param value The jobDirectoryLocation to set. * @return This builder for chaining. */ public Builder setJobDirectoryLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } jobDirectoryLocation_ = value; onChanged(); return this; } /** * string job_directory_location = 8; * @return This builder for chaining. */ public Builder clearJobDirectoryLocation() { jobDirectoryLocation_ = getDefaultInstance().getJobDirectoryLocation(); onChanged(); return this; } /** * string job_directory_location = 8; * @param value The bytes for jobDirectoryLocation to set. * @return This builder for chaining. */ public Builder setJobDirectoryLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); jobDirectoryLocation_ = value; onChanged(); return this; } private java.lang.Object archiveLocation_ = ""; /** * string archive_location = 9; * @return The archiveLocation. */ public java.lang.String getArchiveLocation() { java.lang.Object ref = archiveLocation_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); archiveLocation_ = s; return s; } else { return (java.lang.String) ref; } } /** * string archive_location = 9; * @return The bytes for archiveLocation. */ public com.google.protobuf.ByteString getArchiveLocationBytes() { java.lang.Object ref = archiveLocation_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); archiveLocation_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string archive_location = 9; * @param value The archiveLocation to set. * @return This builder for chaining. */ public Builder setArchiveLocation( java.lang.String value) { if (value == null) { throw new NullPointerException(); } archiveLocation_ = value; onChanged(); return this; } /** * string archive_location = 9; * @return This builder for chaining. */ public Builder clearArchiveLocation() { archiveLocation_ = getDefaultInstance().getArchiveLocation(); onChanged(); return this; } /** * string archive_location = 9; * @param value The bytes for archiveLocation to set. * @return This builder for chaining. */ public Builder setArchiveLocationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); archiveLocation_ = value; onChanged(); return this; } private com.google.protobuf.Int32Value timeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> timeoutBuilder_; /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; * @return The timeout. */ public com.google.protobuf.Int32Value getTimeout() { if (timeoutBuilder_ == null) { return timeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : timeout_; } else { return timeoutBuilder_.getMessage(); } } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public Builder setTimeout(com.google.protobuf.Int32Value value) { if (timeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeout_ = value; onChanged(); } else { timeoutBuilder_.setMessage(value); } return this; } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public Builder setTimeout( com.google.protobuf.Int32Value.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public Builder mergeTimeout(com.google.protobuf.Int32Value value) { if (timeoutBuilder_ == null) { if (timeout_ != null) { timeout_ = com.google.protobuf.Int32Value.newBuilder(timeout_).mergeFrom(value).buildPartial(); } else { timeout_ = value; } onChanged(); } else { timeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public Builder clearTimeout() { if (timeoutBuilder_ == null) { timeout_ = null; onChanged(); } else { timeout_ = null; timeoutBuilder_ = null; } return this; } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public com.google.protobuf.Int32Value.Builder getTimeoutBuilder() { onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ public com.google.protobuf.Int32ValueOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { return timeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : timeout_; } } /** *
     * Optional number of seconds from start when the job should timeout
     * 
* * .google.protobuf.Int32Value timeout = 10; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } private com.google.protobuf.LazyStringList executableAndArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureExecutableAndArgsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { executableAndArgs_ = new com.google.protobuf.LazyStringArrayList(executableAndArgs_); bitField0_ |= 0x00000008; } } /** * repeated string executable_and_args = 11; * @return A list containing the executableAndArgs. */ public com.google.protobuf.ProtocolStringList getExecutableAndArgsList() { return executableAndArgs_.getUnmodifiableView(); } /** * repeated string executable_and_args = 11; * @return The count of executableAndArgs. */ public int getExecutableAndArgsCount() { return executableAndArgs_.size(); } /** * repeated string executable_and_args = 11; * @param index The index of the element to return. * @return The executableAndArgs at the given index. */ public java.lang.String getExecutableAndArgs(int index) { return executableAndArgs_.get(index); } /** * repeated string executable_and_args = 11; * @param index The index of the value to return. * @return The bytes of the executableAndArgs at the given index. */ public com.google.protobuf.ByteString getExecutableAndArgsBytes(int index) { return executableAndArgs_.getByteString(index); } /** * repeated string executable_and_args = 11; * @param index The index to set the value at. * @param value The executableAndArgs to set. * @return This builder for chaining. */ public Builder setExecutableAndArgs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExecutableAndArgsIsMutable(); executableAndArgs_.set(index, value); onChanged(); return this; } /** * repeated string executable_and_args = 11; * @param value The executableAndArgs to add. * @return This builder for chaining. */ public Builder addExecutableAndArgs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureExecutableAndArgsIsMutable(); executableAndArgs_.add(value); onChanged(); return this; } /** * repeated string executable_and_args = 11; * @param values The executableAndArgs to add. * @return This builder for chaining. */ public Builder addAllExecutableAndArgs( java.lang.Iterable values) { ensureExecutableAndArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, executableAndArgs_); onChanged(); return this; } /** * repeated string executable_and_args = 11; * @return This builder for chaining. */ public Builder clearExecutableAndArgs() { executableAndArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * repeated string executable_and_args = 11; * @param value The bytes of the executableAndArgs to add. * @return This builder for chaining. */ public Builder addExecutableAndArgsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureExecutableAndArgsIsMutable(); executableAndArgs_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList jobArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureJobArgsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { jobArgs_ = new com.google.protobuf.LazyStringArrayList(jobArgs_); bitField0_ |= 0x00000010; } } /** * repeated string job_args = 12; * @return A list containing the jobArgs. */ public com.google.protobuf.ProtocolStringList getJobArgsList() { return jobArgs_.getUnmodifiableView(); } /** * repeated string job_args = 12; * @return The count of jobArgs. */ public int getJobArgsCount() { return jobArgs_.size(); } /** * repeated string job_args = 12; * @param index The index of the element to return. * @return The jobArgs at the given index. */ public java.lang.String getJobArgs(int index) { return jobArgs_.get(index); } /** * repeated string job_args = 12; * @param index The index of the value to return. * @return The bytes of the jobArgs at the given index. */ public com.google.protobuf.ByteString getJobArgsBytes(int index) { return jobArgs_.getByteString(index); } /** * repeated string job_args = 12; * @param index The index to set the value at. * @param value The jobArgs to set. * @return This builder for chaining. */ public Builder setJobArgs( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureJobArgsIsMutable(); jobArgs_.set(index, value); onChanged(); return this; } /** * repeated string job_args = 12; * @param value The jobArgs to add. * @return This builder for chaining. */ public Builder addJobArgs( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureJobArgsIsMutable(); jobArgs_.add(value); onChanged(); return this; } /** * repeated string job_args = 12; * @param values The jobArgs to add. * @return This builder for chaining. */ public Builder addAllJobArgs( java.lang.Iterable values) { ensureJobArgsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, jobArgs_); onChanged(); return this; } /** * repeated string job_args = 12; * @return This builder for chaining. */ public Builder clearJobArgs() { jobArgs_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * repeated string job_args = 12; * @param value The bytes of the jobArgs to add. * @return This builder for chaining. */ public Builder addJobArgsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureJobArgsIsMutable(); jobArgs_.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.JobSpecification) } // @@protoc_insertion_point(class_scope:com.netflix.genie.proto.JobSpecification) private static final com.netflix.genie.proto.JobSpecification DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.netflix.genie.proto.JobSpecification(); } public static com.netflix.genie.proto.JobSpecification getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public JobSpecification parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new JobSpecification(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.JobSpecification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy