Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.finos.tracdap.api.JobRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/api/orchestrator.proto
// Protobuf Java Version: 4.28.2
package org.finos.tracdap.api;
/**
*
* *
* Request to submit (or validate) a new job
*
*
* Protobuf type {@code tracdap.api.JobRequest}
*/
public final class JobRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.api.JobRequest)
JobRequestOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
JobRequest.class.getName());
}
// Use JobRequest.newBuilder() to construct.
private JobRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private JobRequest() {
tenant_ = "";
jobAttrs_ = java.util.Collections.emptyList();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Orchestrator.internal_static_tracdap_api_JobRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Orchestrator.internal_static_tracdap_api_JobRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.JobRequest.class, org.finos.tracdap.api.JobRequest.Builder.class);
}
private int bitField0_;
public static final int TENANT_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object tenant_ = "";
/**
* string tenant = 1;
* @return The tenant.
*/
@java.lang.Override
public java.lang.String getTenant() {
java.lang.Object ref = tenant_;
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();
tenant_ = s;
return s;
}
}
/**
* string tenant = 1;
* @return The bytes for tenant.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTenantBytes() {
java.lang.Object ref = tenant_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenant_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int JOB_FIELD_NUMBER = 2;
private org.finos.tracdap.metadata.JobDefinition job_;
/**
* .tracdap.metadata.JobDefinition job = 2;
* @return Whether the job field is set.
*/
@java.lang.Override
public boolean hasJob() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tracdap.metadata.JobDefinition job = 2;
* @return The job.
*/
@java.lang.Override
public org.finos.tracdap.metadata.JobDefinition getJob() {
return job_ == null ? org.finos.tracdap.metadata.JobDefinition.getDefaultInstance() : job_;
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
@java.lang.Override
public org.finos.tracdap.metadata.JobDefinitionOrBuilder getJobOrBuilder() {
return job_ == null ? org.finos.tracdap.metadata.JobDefinition.getDefaultInstance() : job_;
}
public static final int JOBATTRS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private java.util.List jobAttrs_;
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
@java.lang.Override
public java.util.List getJobAttrsList() {
return jobAttrs_;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
@java.lang.Override
public java.util.List extends org.finos.tracdap.metadata.TagUpdateOrBuilder>
getJobAttrsOrBuilderList() {
return jobAttrs_;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
@java.lang.Override
public int getJobAttrsCount() {
return jobAttrs_.size();
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagUpdate getJobAttrs(int index) {
return jobAttrs_.get(index);
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagUpdateOrBuilder getJobAttrsOrBuilder(
int index) {
return jobAttrs_.get(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 {
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, tenant_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getJob());
}
for (int i = 0; i < jobAttrs_.size(); i++) {
output.writeMessage(3, jobAttrs_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tenant_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getJob());
}
for (int i = 0; i < jobAttrs_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, jobAttrs_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.finos.tracdap.api.JobRequest)) {
return super.equals(obj);
}
org.finos.tracdap.api.JobRequest other = (org.finos.tracdap.api.JobRequest) obj;
if (!getTenant()
.equals(other.getTenant())) return false;
if (hasJob() != other.hasJob()) return false;
if (hasJob()) {
if (!getJob()
.equals(other.getJob())) return false;
}
if (!getJobAttrsList()
.equals(other.getJobAttrsList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TENANT_FIELD_NUMBER;
hash = (53 * hash) + getTenant().hashCode();
if (hasJob()) {
hash = (37 * hash) + JOB_FIELD_NUMBER;
hash = (53 * hash) + getJob().hashCode();
}
if (getJobAttrsCount() > 0) {
hash = (37 * hash) + JOBATTRS_FIELD_NUMBER;
hash = (53 * hash) + getJobAttrsList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.api.JobRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.JobRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.JobRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.finos.tracdap.api.JobRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.JobRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.JobRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.finos.tracdap.api.JobRequest 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* *
* Request to submit (or validate) a new job
*
*
* Protobuf type {@code tracdap.api.JobRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.api.JobRequest)
org.finos.tracdap.api.JobRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.Orchestrator.internal_static_tracdap_api_JobRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.Orchestrator.internal_static_tracdap_api_JobRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.JobRequest.class, org.finos.tracdap.api.JobRequest.Builder.class);
}
// Construct using org.finos.tracdap.api.JobRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getJobFieldBuilder();
getJobAttrsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
tenant_ = "";
job_ = null;
if (jobBuilder_ != null) {
jobBuilder_.dispose();
jobBuilder_ = null;
}
if (jobAttrsBuilder_ == null) {
jobAttrs_ = java.util.Collections.emptyList();
} else {
jobAttrs_ = null;
jobAttrsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.api.Orchestrator.internal_static_tracdap_api_JobRequest_descriptor;
}
@java.lang.Override
public org.finos.tracdap.api.JobRequest getDefaultInstanceForType() {
return org.finos.tracdap.api.JobRequest.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.api.JobRequest build() {
org.finos.tracdap.api.JobRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.api.JobRequest buildPartial() {
org.finos.tracdap.api.JobRequest result = new org.finos.tracdap.api.JobRequest(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(org.finos.tracdap.api.JobRequest result) {
if (jobAttrsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
jobAttrs_ = java.util.Collections.unmodifiableList(jobAttrs_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.jobAttrs_ = jobAttrs_;
} else {
result.jobAttrs_ = jobAttrsBuilder_.build();
}
}
private void buildPartial0(org.finos.tracdap.api.JobRequest result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.tenant_ = tenant_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.job_ = jobBuilder_ == null
? job_
: jobBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.api.JobRequest) {
return mergeFrom((org.finos.tracdap.api.JobRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.api.JobRequest other) {
if (other == org.finos.tracdap.api.JobRequest.getDefaultInstance()) return this;
if (!other.getTenant().isEmpty()) {
tenant_ = other.tenant_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasJob()) {
mergeJob(other.getJob());
}
if (jobAttrsBuilder_ == null) {
if (!other.jobAttrs_.isEmpty()) {
if (jobAttrs_.isEmpty()) {
jobAttrs_ = other.jobAttrs_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureJobAttrsIsMutable();
jobAttrs_.addAll(other.jobAttrs_);
}
onChanged();
}
} else {
if (!other.jobAttrs_.isEmpty()) {
if (jobAttrsBuilder_.isEmpty()) {
jobAttrsBuilder_.dispose();
jobAttrsBuilder_ = null;
jobAttrs_ = other.jobAttrs_;
bitField0_ = (bitField0_ & ~0x00000004);
jobAttrsBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getJobAttrsFieldBuilder() : null;
} else {
jobAttrsBuilder_.addAllMessages(other.jobAttrs_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
tenant_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getJobFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
org.finos.tracdap.metadata.TagUpdate m =
input.readMessage(
org.finos.tracdap.metadata.TagUpdate.parser(),
extensionRegistry);
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
jobAttrs_.add(m);
} else {
jobAttrsBuilder_.addMessage(m);
}
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object tenant_ = "";
/**
* string tenant = 1;
* @return The tenant.
*/
public java.lang.String getTenant() {
java.lang.Object ref = tenant_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
tenant_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string tenant = 1;
* @return The bytes for tenant.
*/
public com.google.protobuf.ByteString
getTenantBytes() {
java.lang.Object ref = tenant_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenant_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string tenant = 1;
* @param value The tenant to set.
* @return This builder for chaining.
*/
public Builder setTenant(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
tenant_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string tenant = 1;
* @return This builder for chaining.
*/
public Builder clearTenant() {
tenant_ = getDefaultInstance().getTenant();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string tenant = 1;
* @param value The bytes for tenant to set.
* @return This builder for chaining.
*/
public Builder setTenantBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
tenant_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private org.finos.tracdap.metadata.JobDefinition job_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.metadata.JobDefinition, org.finos.tracdap.metadata.JobDefinition.Builder, org.finos.tracdap.metadata.JobDefinitionOrBuilder> jobBuilder_;
/**
* .tracdap.metadata.JobDefinition job = 2;
* @return Whether the job field is set.
*/
public boolean hasJob() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .tracdap.metadata.JobDefinition job = 2;
* @return The job.
*/
public org.finos.tracdap.metadata.JobDefinition getJob() {
if (jobBuilder_ == null) {
return job_ == null ? org.finos.tracdap.metadata.JobDefinition.getDefaultInstance() : job_;
} else {
return jobBuilder_.getMessage();
}
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public Builder setJob(org.finos.tracdap.metadata.JobDefinition value) {
if (jobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
job_ = value;
} else {
jobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public Builder setJob(
org.finos.tracdap.metadata.JobDefinition.Builder builderForValue) {
if (jobBuilder_ == null) {
job_ = builderForValue.build();
} else {
jobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public Builder mergeJob(org.finos.tracdap.metadata.JobDefinition value) {
if (jobBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
job_ != null &&
job_ != org.finos.tracdap.metadata.JobDefinition.getDefaultInstance()) {
getJobBuilder().mergeFrom(value);
} else {
job_ = value;
}
} else {
jobBuilder_.mergeFrom(value);
}
if (job_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public Builder clearJob() {
bitField0_ = (bitField0_ & ~0x00000002);
job_ = null;
if (jobBuilder_ != null) {
jobBuilder_.dispose();
jobBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public org.finos.tracdap.metadata.JobDefinition.Builder getJobBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getJobFieldBuilder().getBuilder();
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
public org.finos.tracdap.metadata.JobDefinitionOrBuilder getJobOrBuilder() {
if (jobBuilder_ != null) {
return jobBuilder_.getMessageOrBuilder();
} else {
return job_ == null ?
org.finos.tracdap.metadata.JobDefinition.getDefaultInstance() : job_;
}
}
/**
* .tracdap.metadata.JobDefinition job = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.metadata.JobDefinition, org.finos.tracdap.metadata.JobDefinition.Builder, org.finos.tracdap.metadata.JobDefinitionOrBuilder>
getJobFieldBuilder() {
if (jobBuilder_ == null) {
jobBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.metadata.JobDefinition, org.finos.tracdap.metadata.JobDefinition.Builder, org.finos.tracdap.metadata.JobDefinitionOrBuilder>(
getJob(),
getParentForChildren(),
isClean());
job_ = null;
}
return jobBuilder_;
}
private java.util.List jobAttrs_ =
java.util.Collections.emptyList();
private void ensureJobAttrsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
jobAttrs_ = new java.util.ArrayList(jobAttrs_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder> jobAttrsBuilder_;
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public java.util.List getJobAttrsList() {
if (jobAttrsBuilder_ == null) {
return java.util.Collections.unmodifiableList(jobAttrs_);
} else {
return jobAttrsBuilder_.getMessageList();
}
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public int getJobAttrsCount() {
if (jobAttrsBuilder_ == null) {
return jobAttrs_.size();
} else {
return jobAttrsBuilder_.getCount();
}
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public org.finos.tracdap.metadata.TagUpdate getJobAttrs(int index) {
if (jobAttrsBuilder_ == null) {
return jobAttrs_.get(index);
} else {
return jobAttrsBuilder_.getMessage(index);
}
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder setJobAttrs(
int index, org.finos.tracdap.metadata.TagUpdate value) {
if (jobAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJobAttrsIsMutable();
jobAttrs_.set(index, value);
onChanged();
} else {
jobAttrsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder setJobAttrs(
int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) {
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
jobAttrs_.set(index, builderForValue.build());
onChanged();
} else {
jobAttrsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder addJobAttrs(org.finos.tracdap.metadata.TagUpdate value) {
if (jobAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJobAttrsIsMutable();
jobAttrs_.add(value);
onChanged();
} else {
jobAttrsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder addJobAttrs(
int index, org.finos.tracdap.metadata.TagUpdate value) {
if (jobAttrsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureJobAttrsIsMutable();
jobAttrs_.add(index, value);
onChanged();
} else {
jobAttrsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder addJobAttrs(
org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) {
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
jobAttrs_.add(builderForValue.build());
onChanged();
} else {
jobAttrsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder addJobAttrs(
int index, org.finos.tracdap.metadata.TagUpdate.Builder builderForValue) {
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
jobAttrs_.add(index, builderForValue.build());
onChanged();
} else {
jobAttrsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder addAllJobAttrs(
java.lang.Iterable extends org.finos.tracdap.metadata.TagUpdate> values) {
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, jobAttrs_);
onChanged();
} else {
jobAttrsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder clearJobAttrs() {
if (jobAttrsBuilder_ == null) {
jobAttrs_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
jobAttrsBuilder_.clear();
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public Builder removeJobAttrs(int index) {
if (jobAttrsBuilder_ == null) {
ensureJobAttrsIsMutable();
jobAttrs_.remove(index);
onChanged();
} else {
jobAttrsBuilder_.remove(index);
}
return this;
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public org.finos.tracdap.metadata.TagUpdate.Builder getJobAttrsBuilder(
int index) {
return getJobAttrsFieldBuilder().getBuilder(index);
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public org.finos.tracdap.metadata.TagUpdateOrBuilder getJobAttrsOrBuilder(
int index) {
if (jobAttrsBuilder_ == null) {
return jobAttrs_.get(index); } else {
return jobAttrsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public java.util.List extends org.finos.tracdap.metadata.TagUpdateOrBuilder>
getJobAttrsOrBuilderList() {
if (jobAttrsBuilder_ != null) {
return jobAttrsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(jobAttrs_);
}
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public org.finos.tracdap.metadata.TagUpdate.Builder addJobAttrsBuilder() {
return getJobAttrsFieldBuilder().addBuilder(
org.finos.tracdap.metadata.TagUpdate.getDefaultInstance());
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public org.finos.tracdap.metadata.TagUpdate.Builder addJobAttrsBuilder(
int index) {
return getJobAttrsFieldBuilder().addBuilder(
index, org.finos.tracdap.metadata.TagUpdate.getDefaultInstance());
}
/**
* repeated .tracdap.metadata.TagUpdate jobAttrs = 3;
*/
public java.util.List
getJobAttrsBuilderList() {
return getJobAttrsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder>
getJobAttrsFieldBuilder() {
if (jobAttrsBuilder_ == null) {
jobAttrsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.finos.tracdap.metadata.TagUpdate, org.finos.tracdap.metadata.TagUpdate.Builder, org.finos.tracdap.metadata.TagUpdateOrBuilder>(
jobAttrs_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
jobAttrs_ = null;
}
return jobAttrsBuilder_;
}
// @@protoc_insertion_point(builder_scope:tracdap.api.JobRequest)
}
// @@protoc_insertion_point(class_scope:tracdap.api.JobRequest)
private static final org.finos.tracdap.api.JobRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.api.JobRequest();
}
public static org.finos.tracdap.api.JobRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.finos.tracdap.api.JobRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}