com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest}
*/
public final class ReserveJobIdRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.netflix.genie.proto.ReserveJobIdRequest)
ReserveJobIdRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReserveJobIdRequest.newBuilder() to construct.
private ReserveJobIdRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReserveJobIdRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ReserveJobIdRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ReserveJobIdRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.netflix.genie.proto.JobMetadata.Builder subBuilder = null;
if (metadata_ != null) {
subBuilder = metadata_.toBuilder();
}
metadata_ = input.readMessage(com.netflix.genie.proto.JobMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadata_);
metadata_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.netflix.genie.proto.ExecutionResourceCriteria.Builder subBuilder = null;
if (criteria_ != null) {
subBuilder = criteria_.toBuilder();
}
criteria_ = input.readMessage(com.netflix.genie.proto.ExecutionResourceCriteria.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(criteria_);
criteria_ = subBuilder.buildPartial();
}
break;
}
case 26: {
com.netflix.genie.proto.AgentConfig.Builder subBuilder = null;
if (agentConfig_ != null) {
subBuilder = agentConfig_.toBuilder();
}
agentConfig_ = input.readMessage(com.netflix.genie.proto.AgentConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentConfig_);
agentConfig_ = subBuilder.buildPartial();
}
break;
}
case 34: {
com.netflix.genie.proto.AgentMetadata.Builder subBuilder = null;
if (agentMetadata_ != null) {
subBuilder = agentMetadata_.toBuilder();
}
agentMetadata_ = input.readMessage(com.netflix.genie.proto.AgentMetadata.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(agentMetadata_);
agentMetadata_ = subBuilder.buildPartial();
}
break;
}
case 42: {
com.netflix.genie.proto.JobArchivalData.Builder subBuilder = null;
if (jobArchivalData_ != null) {
subBuilder = jobArchivalData_.toBuilder();
}
jobArchivalData_ = input.readMessage(com.netflix.genie.proto.JobArchivalData.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(jobArchivalData_);
jobArchivalData_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ReserveJobIdRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ReserveJobIdRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ReserveJobIdRequest.class, com.netflix.genie.proto.ReserveJobIdRequest.Builder.class);
}
public static final int METADATA_FIELD_NUMBER = 1;
private com.netflix.genie.proto.JobMetadata metadata_;
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return metadata_ != null;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
* @return The metadata.
*/
@java.lang.Override
public com.netflix.genie.proto.JobMetadata getMetadata() {
return metadata_ == null ? com.netflix.genie.proto.JobMetadata.getDefaultInstance() : metadata_;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
@java.lang.Override
public com.netflix.genie.proto.JobMetadataOrBuilder getMetadataOrBuilder() {
return getMetadata();
}
public static final int CRITERIA_FIELD_NUMBER = 2;
private com.netflix.genie.proto.ExecutionResourceCriteria criteria_;
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
* @return Whether the criteria field is set.
*/
@java.lang.Override
public boolean hasCriteria() {
return criteria_ != null;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
* @return The criteria.
*/
@java.lang.Override
public com.netflix.genie.proto.ExecutionResourceCriteria getCriteria() {
return criteria_ == null ? com.netflix.genie.proto.ExecutionResourceCriteria.getDefaultInstance() : criteria_;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
@java.lang.Override
public com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder getCriteriaOrBuilder() {
return getCriteria();
}
public static final int AGENT_CONFIG_FIELD_NUMBER = 3;
private com.netflix.genie.proto.AgentConfig agentConfig_;
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
* @return Whether the agentConfig field is set.
*/
@java.lang.Override
public boolean hasAgentConfig() {
return agentConfig_ != null;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
* @return The agentConfig.
*/
@java.lang.Override
public com.netflix.genie.proto.AgentConfig getAgentConfig() {
return agentConfig_ == null ? com.netflix.genie.proto.AgentConfig.getDefaultInstance() : agentConfig_;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
@java.lang.Override
public com.netflix.genie.proto.AgentConfigOrBuilder getAgentConfigOrBuilder() {
return getAgentConfig();
}
public static final int AGENT_METADATA_FIELD_NUMBER = 4;
private com.netflix.genie.proto.AgentMetadata agentMetadata_;
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
* @return Whether the agentMetadata field is set.
*/
@java.lang.Override
public boolean hasAgentMetadata() {
return agentMetadata_ != null;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
* @return The agentMetadata.
*/
@java.lang.Override
public com.netflix.genie.proto.AgentMetadata getAgentMetadata() {
return agentMetadata_ == null ? com.netflix.genie.proto.AgentMetadata.getDefaultInstance() : agentMetadata_;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
@java.lang.Override
public com.netflix.genie.proto.AgentMetadataOrBuilder getAgentMetadataOrBuilder() {
return getAgentMetadata();
}
public static final int JOB_ARCHIVAL_DATA_FIELD_NUMBER = 5;
private com.netflix.genie.proto.JobArchivalData jobArchivalData_;
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
* @return Whether the jobArchivalData field is set.
*/
@java.lang.Override
@java.lang.Deprecated public boolean hasJobArchivalData() {
return jobArchivalData_ != null;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
* @return The jobArchivalData.
*/
@java.lang.Override
@java.lang.Deprecated public com.netflix.genie.proto.JobArchivalData getJobArchivalData() {
return jobArchivalData_ == null ? com.netflix.genie.proto.JobArchivalData.getDefaultInstance() : jobArchivalData_;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public com.netflix.genie.proto.JobArchivalDataOrBuilder getJobArchivalDataOrBuilder() {
return getJobArchivalData();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (metadata_ != null) {
output.writeMessage(1, getMetadata());
}
if (criteria_ != null) {
output.writeMessage(2, getCriteria());
}
if (agentConfig_ != null) {
output.writeMessage(3, getAgentConfig());
}
if (agentMetadata_ != null) {
output.writeMessage(4, getAgentMetadata());
}
if (jobArchivalData_ != null) {
output.writeMessage(5, getJobArchivalData());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (metadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMetadata());
}
if (criteria_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCriteria());
}
if (agentConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getAgentConfig());
}
if (agentMetadata_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getAgentMetadata());
}
if (jobArchivalData_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getJobArchivalData());
}
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.ReserveJobIdRequest)) {
return super.equals(obj);
}
com.netflix.genie.proto.ReserveJobIdRequest other = (com.netflix.genie.proto.ReserveJobIdRequest) obj;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (hasCriteria() != other.hasCriteria()) return false;
if (hasCriteria()) {
if (!getCriteria()
.equals(other.getCriteria())) return false;
}
if (hasAgentConfig() != other.hasAgentConfig()) return false;
if (hasAgentConfig()) {
if (!getAgentConfig()
.equals(other.getAgentConfig())) return false;
}
if (hasAgentMetadata() != other.hasAgentMetadata()) return false;
if (hasAgentMetadata()) {
if (!getAgentMetadata()
.equals(other.getAgentMetadata())) return false;
}
if (hasJobArchivalData() != other.hasJobArchivalData()) return false;
if (hasJobArchivalData()) {
if (!getJobArchivalData()
.equals(other.getJobArchivalData())) 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 (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasCriteria()) {
hash = (37 * hash) + CRITERIA_FIELD_NUMBER;
hash = (53 * hash) + getCriteria().hashCode();
}
if (hasAgentConfig()) {
hash = (37 * hash) + AGENT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAgentConfig().hashCode();
}
if (hasAgentMetadata()) {
hash = (37 * hash) + AGENT_METADATA_FIELD_NUMBER;
hash = (53 * hash) + getAgentMetadata().hashCode();
}
if (hasJobArchivalData()) {
hash = (37 * hash) + JOB_ARCHIVAL_DATA_FIELD_NUMBER;
hash = (53 * hash) + getJobArchivalData().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.netflix.genie.proto.ReserveJobIdRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.netflix.genie.proto.ReserveJobIdRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.netflix.genie.proto.ReserveJobIdRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.netflix.genie.proto.ReserveJobIdRequest 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.ReserveJobIdRequest 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.ReserveJobIdRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.netflix.genie.proto.ReserveJobIdRequest)
com.netflix.genie.proto.ReserveJobIdRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ReserveJobIdRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ReserveJobIdRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.netflix.genie.proto.ReserveJobIdRequest.class, com.netflix.genie.proto.ReserveJobIdRequest.Builder.class);
}
// Construct using com.netflix.genie.proto.ReserveJobIdRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
metadata_ = null;
metadataBuilder_ = null;
}
if (criteriaBuilder_ == null) {
criteria_ = null;
} else {
criteria_ = null;
criteriaBuilder_ = null;
}
if (agentConfigBuilder_ == null) {
agentConfig_ = null;
} else {
agentConfig_ = null;
agentConfigBuilder_ = null;
}
if (agentMetadataBuilder_ == null) {
agentMetadata_ = null;
} else {
agentMetadata_ = null;
agentMetadataBuilder_ = null;
}
if (jobArchivalDataBuilder_ == null) {
jobArchivalData_ = null;
} else {
jobArchivalData_ = null;
jobArchivalDataBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.netflix.genie.proto.GenieProto.internal_static_com_netflix_genie_proto_ReserveJobIdRequest_descriptor;
}
@java.lang.Override
public com.netflix.genie.proto.ReserveJobIdRequest getDefaultInstanceForType() {
return com.netflix.genie.proto.ReserveJobIdRequest.getDefaultInstance();
}
@java.lang.Override
public com.netflix.genie.proto.ReserveJobIdRequest build() {
com.netflix.genie.proto.ReserveJobIdRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.netflix.genie.proto.ReserveJobIdRequest buildPartial() {
com.netflix.genie.proto.ReserveJobIdRequest result = new com.netflix.genie.proto.ReserveJobIdRequest(this);
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
result.metadata_ = metadataBuilder_.build();
}
if (criteriaBuilder_ == null) {
result.criteria_ = criteria_;
} else {
result.criteria_ = criteriaBuilder_.build();
}
if (agentConfigBuilder_ == null) {
result.agentConfig_ = agentConfig_;
} else {
result.agentConfig_ = agentConfigBuilder_.build();
}
if (agentMetadataBuilder_ == null) {
result.agentMetadata_ = agentMetadata_;
} else {
result.agentMetadata_ = agentMetadataBuilder_.build();
}
if (jobArchivalDataBuilder_ == null) {
result.jobArchivalData_ = jobArchivalData_;
} else {
result.jobArchivalData_ = jobArchivalDataBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.netflix.genie.proto.ReserveJobIdRequest) {
return mergeFrom((com.netflix.genie.proto.ReserveJobIdRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.netflix.genie.proto.ReserveJobIdRequest other) {
if (other == com.netflix.genie.proto.ReserveJobIdRequest.getDefaultInstance()) return this;
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasCriteria()) {
mergeCriteria(other.getCriteria());
}
if (other.hasAgentConfig()) {
mergeAgentConfig(other.getAgentConfig());
}
if (other.hasAgentMetadata()) {
mergeAgentMetadata(other.getAgentMetadata());
}
if (other.hasJobArchivalData()) {
mergeJobArchivalData(other.getJobArchivalData());
}
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.ReserveJobIdRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.netflix.genie.proto.ReserveJobIdRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.netflix.genie.proto.JobMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobMetadata, com.netflix.genie.proto.JobMetadata.Builder, com.netflix.genie.proto.JobMetadataOrBuilder> metadataBuilder_;
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return metadataBuilder_ != null || metadata_ != null;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
* @return The metadata.
*/
public com.netflix.genie.proto.JobMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? com.netflix.genie.proto.JobMetadata.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public Builder setMetadata(com.netflix.genie.proto.JobMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
onChanged();
} else {
metadataBuilder_.setMessage(value);
}
return this;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public Builder setMetadata(
com.netflix.genie.proto.JobMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
onChanged();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public Builder mergeMetadata(com.netflix.genie.proto.JobMetadata value) {
if (metadataBuilder_ == null) {
if (metadata_ != null) {
metadata_ =
com.netflix.genie.proto.JobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial();
} else {
metadata_ = value;
}
onChanged();
} else {
metadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public Builder clearMetadata() {
if (metadataBuilder_ == null) {
metadata_ = null;
onChanged();
} else {
metadata_ = null;
metadataBuilder_ = null;
}
return this;
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public com.netflix.genie.proto.JobMetadata.Builder getMetadataBuilder() {
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
public com.netflix.genie.proto.JobMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
com.netflix.genie.proto.JobMetadata.getDefaultInstance() : metadata_;
}
}
/**
* .com.netflix.genie.proto.JobMetadata metadata = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobMetadata, com.netflix.genie.proto.JobMetadata.Builder, com.netflix.genie.proto.JobMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobMetadata, com.netflix.genie.proto.JobMetadata.Builder, com.netflix.genie.proto.JobMetadataOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private com.netflix.genie.proto.ExecutionResourceCriteria criteria_;
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ExecutionResourceCriteria, com.netflix.genie.proto.ExecutionResourceCriteria.Builder, com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder> criteriaBuilder_;
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
* @return Whether the criteria field is set.
*/
public boolean hasCriteria() {
return criteriaBuilder_ != null || criteria_ != null;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
* @return The criteria.
*/
public com.netflix.genie.proto.ExecutionResourceCriteria getCriteria() {
if (criteriaBuilder_ == null) {
return criteria_ == null ? com.netflix.genie.proto.ExecutionResourceCriteria.getDefaultInstance() : criteria_;
} else {
return criteriaBuilder_.getMessage();
}
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public Builder setCriteria(com.netflix.genie.proto.ExecutionResourceCriteria value) {
if (criteriaBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
criteria_ = value;
onChanged();
} else {
criteriaBuilder_.setMessage(value);
}
return this;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public Builder setCriteria(
com.netflix.genie.proto.ExecutionResourceCriteria.Builder builderForValue) {
if (criteriaBuilder_ == null) {
criteria_ = builderForValue.build();
onChanged();
} else {
criteriaBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public Builder mergeCriteria(com.netflix.genie.proto.ExecutionResourceCriteria value) {
if (criteriaBuilder_ == null) {
if (criteria_ != null) {
criteria_ =
com.netflix.genie.proto.ExecutionResourceCriteria.newBuilder(criteria_).mergeFrom(value).buildPartial();
} else {
criteria_ = value;
}
onChanged();
} else {
criteriaBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public Builder clearCriteria() {
if (criteriaBuilder_ == null) {
criteria_ = null;
onChanged();
} else {
criteria_ = null;
criteriaBuilder_ = null;
}
return this;
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public com.netflix.genie.proto.ExecutionResourceCriteria.Builder getCriteriaBuilder() {
onChanged();
return getCriteriaFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
public com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder getCriteriaOrBuilder() {
if (criteriaBuilder_ != null) {
return criteriaBuilder_.getMessageOrBuilder();
} else {
return criteria_ == null ?
com.netflix.genie.proto.ExecutionResourceCriteria.getDefaultInstance() : criteria_;
}
}
/**
* .com.netflix.genie.proto.ExecutionResourceCriteria criteria = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ExecutionResourceCriteria, com.netflix.genie.proto.ExecutionResourceCriteria.Builder, com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder>
getCriteriaFieldBuilder() {
if (criteriaBuilder_ == null) {
criteriaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.ExecutionResourceCriteria, com.netflix.genie.proto.ExecutionResourceCriteria.Builder, com.netflix.genie.proto.ExecutionResourceCriteriaOrBuilder>(
getCriteria(),
getParentForChildren(),
isClean());
criteria_ = null;
}
return criteriaBuilder_;
}
private com.netflix.genie.proto.AgentConfig agentConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentConfig, com.netflix.genie.proto.AgentConfig.Builder, com.netflix.genie.proto.AgentConfigOrBuilder> agentConfigBuilder_;
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
* @return Whether the agentConfig field is set.
*/
public boolean hasAgentConfig() {
return agentConfigBuilder_ != null || agentConfig_ != null;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
* @return The agentConfig.
*/
public com.netflix.genie.proto.AgentConfig getAgentConfig() {
if (agentConfigBuilder_ == null) {
return agentConfig_ == null ? com.netflix.genie.proto.AgentConfig.getDefaultInstance() : agentConfig_;
} else {
return agentConfigBuilder_.getMessage();
}
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public Builder setAgentConfig(com.netflix.genie.proto.AgentConfig value) {
if (agentConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentConfig_ = value;
onChanged();
} else {
agentConfigBuilder_.setMessage(value);
}
return this;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public Builder setAgentConfig(
com.netflix.genie.proto.AgentConfig.Builder builderForValue) {
if (agentConfigBuilder_ == null) {
agentConfig_ = builderForValue.build();
onChanged();
} else {
agentConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public Builder mergeAgentConfig(com.netflix.genie.proto.AgentConfig value) {
if (agentConfigBuilder_ == null) {
if (agentConfig_ != null) {
agentConfig_ =
com.netflix.genie.proto.AgentConfig.newBuilder(agentConfig_).mergeFrom(value).buildPartial();
} else {
agentConfig_ = value;
}
onChanged();
} else {
agentConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public Builder clearAgentConfig() {
if (agentConfigBuilder_ == null) {
agentConfig_ = null;
onChanged();
} else {
agentConfig_ = null;
agentConfigBuilder_ = null;
}
return this;
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public com.netflix.genie.proto.AgentConfig.Builder getAgentConfigBuilder() {
onChanged();
return getAgentConfigFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
public com.netflix.genie.proto.AgentConfigOrBuilder getAgentConfigOrBuilder() {
if (agentConfigBuilder_ != null) {
return agentConfigBuilder_.getMessageOrBuilder();
} else {
return agentConfig_ == null ?
com.netflix.genie.proto.AgentConfig.getDefaultInstance() : agentConfig_;
}
}
/**
* .com.netflix.genie.proto.AgentConfig agent_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentConfig, com.netflix.genie.proto.AgentConfig.Builder, com.netflix.genie.proto.AgentConfigOrBuilder>
getAgentConfigFieldBuilder() {
if (agentConfigBuilder_ == null) {
agentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentConfig, com.netflix.genie.proto.AgentConfig.Builder, com.netflix.genie.proto.AgentConfigOrBuilder>(
getAgentConfig(),
getParentForChildren(),
isClean());
agentConfig_ = null;
}
return agentConfigBuilder_;
}
private com.netflix.genie.proto.AgentMetadata agentMetadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentMetadata, com.netflix.genie.proto.AgentMetadata.Builder, com.netflix.genie.proto.AgentMetadataOrBuilder> agentMetadataBuilder_;
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
* @return Whether the agentMetadata field is set.
*/
public boolean hasAgentMetadata() {
return agentMetadataBuilder_ != null || agentMetadata_ != null;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
* @return The agentMetadata.
*/
public com.netflix.genie.proto.AgentMetadata getAgentMetadata() {
if (agentMetadataBuilder_ == null) {
return agentMetadata_ == null ? com.netflix.genie.proto.AgentMetadata.getDefaultInstance() : agentMetadata_;
} else {
return agentMetadataBuilder_.getMessage();
}
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public Builder setAgentMetadata(com.netflix.genie.proto.AgentMetadata value) {
if (agentMetadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
agentMetadata_ = value;
onChanged();
} else {
agentMetadataBuilder_.setMessage(value);
}
return this;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public Builder setAgentMetadata(
com.netflix.genie.proto.AgentMetadata.Builder builderForValue) {
if (agentMetadataBuilder_ == null) {
agentMetadata_ = builderForValue.build();
onChanged();
} else {
agentMetadataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public Builder mergeAgentMetadata(com.netflix.genie.proto.AgentMetadata value) {
if (agentMetadataBuilder_ == null) {
if (agentMetadata_ != null) {
agentMetadata_ =
com.netflix.genie.proto.AgentMetadata.newBuilder(agentMetadata_).mergeFrom(value).buildPartial();
} else {
agentMetadata_ = value;
}
onChanged();
} else {
agentMetadataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public Builder clearAgentMetadata() {
if (agentMetadataBuilder_ == null) {
agentMetadata_ = null;
onChanged();
} else {
agentMetadata_ = null;
agentMetadataBuilder_ = null;
}
return this;
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public com.netflix.genie.proto.AgentMetadata.Builder getAgentMetadataBuilder() {
onChanged();
return getAgentMetadataFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
public com.netflix.genie.proto.AgentMetadataOrBuilder getAgentMetadataOrBuilder() {
if (agentMetadataBuilder_ != null) {
return agentMetadataBuilder_.getMessageOrBuilder();
} else {
return agentMetadata_ == null ?
com.netflix.genie.proto.AgentMetadata.getDefaultInstance() : agentMetadata_;
}
}
/**
* .com.netflix.genie.proto.AgentMetadata agent_metadata = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentMetadata, com.netflix.genie.proto.AgentMetadata.Builder, com.netflix.genie.proto.AgentMetadataOrBuilder>
getAgentMetadataFieldBuilder() {
if (agentMetadataBuilder_ == null) {
agentMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.AgentMetadata, com.netflix.genie.proto.AgentMetadata.Builder, com.netflix.genie.proto.AgentMetadataOrBuilder>(
getAgentMetadata(),
getParentForChildren(),
isClean());
agentMetadata_ = null;
}
return agentMetadataBuilder_;
}
private com.netflix.genie.proto.JobArchivalData jobArchivalData_;
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobArchivalData, com.netflix.genie.proto.JobArchivalData.Builder, com.netflix.genie.proto.JobArchivalDataOrBuilder> jobArchivalDataBuilder_;
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
* @return Whether the jobArchivalData field is set.
*/
@java.lang.Deprecated public boolean hasJobArchivalData() {
return jobArchivalDataBuilder_ != null || jobArchivalData_ != null;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
* @return The jobArchivalData.
*/
@java.lang.Deprecated public com.netflix.genie.proto.JobArchivalData getJobArchivalData() {
if (jobArchivalDataBuilder_ == null) {
return jobArchivalData_ == null ? com.netflix.genie.proto.JobArchivalData.getDefaultInstance() : jobArchivalData_;
} else {
return jobArchivalDataBuilder_.getMessage();
}
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder setJobArchivalData(com.netflix.genie.proto.JobArchivalData value) {
if (jobArchivalDataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jobArchivalData_ = value;
onChanged();
} else {
jobArchivalDataBuilder_.setMessage(value);
}
return this;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder setJobArchivalData(
com.netflix.genie.proto.JobArchivalData.Builder builderForValue) {
if (jobArchivalDataBuilder_ == null) {
jobArchivalData_ = builderForValue.build();
onChanged();
} else {
jobArchivalDataBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder mergeJobArchivalData(com.netflix.genie.proto.JobArchivalData value) {
if (jobArchivalDataBuilder_ == null) {
if (jobArchivalData_ != null) {
jobArchivalData_ =
com.netflix.genie.proto.JobArchivalData.newBuilder(jobArchivalData_).mergeFrom(value).buildPartial();
} else {
jobArchivalData_ = value;
}
onChanged();
} else {
jobArchivalDataBuilder_.mergeFrom(value);
}
return this;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearJobArchivalData() {
if (jobArchivalDataBuilder_ == null) {
jobArchivalData_ = null;
onChanged();
} else {
jobArchivalData_ = null;
jobArchivalDataBuilder_ = null;
}
return this;
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.netflix.genie.proto.JobArchivalData.Builder getJobArchivalDataBuilder() {
onChanged();
return getJobArchivalDataFieldBuilder().getBuilder();
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
@java.lang.Deprecated public com.netflix.genie.proto.JobArchivalDataOrBuilder getJobArchivalDataOrBuilder() {
if (jobArchivalDataBuilder_ != null) {
return jobArchivalDataBuilder_.getMessageOrBuilder();
} else {
return jobArchivalData_ == null ?
com.netflix.genie.proto.JobArchivalData.getDefaultInstance() : jobArchivalData_;
}
}
/**
* .com.netflix.genie.proto.JobArchivalData job_archival_data = 5 [deprecated = true];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobArchivalData, com.netflix.genie.proto.JobArchivalData.Builder, com.netflix.genie.proto.JobArchivalDataOrBuilder>
getJobArchivalDataFieldBuilder() {
if (jobArchivalDataBuilder_ == null) {
jobArchivalDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.netflix.genie.proto.JobArchivalData, com.netflix.genie.proto.JobArchivalData.Builder, com.netflix.genie.proto.JobArchivalDataOrBuilder>(
getJobArchivalData(),
getParentForChildren(),
isClean());
jobArchivalData_ = null;
}
return jobArchivalDataBuilder_;
}
@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.ReserveJobIdRequest)
}
// @@protoc_insertion_point(class_scope:com.netflix.genie.proto.ReserveJobIdRequest)
private static final com.netflix.genie.proto.ReserveJobIdRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.netflix.genie.proto.ReserveJobIdRequest();
}
public static com.netflix.genie.proto.ReserveJobIdRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReserveJobIdRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ReserveJobIdRequest(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.ReserveJobIdRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}