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.internal.BatchJobResult Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tracdap/api/internal/runtime.proto
// Protobuf Java Version: 3.25.3
package org.finos.tracdap.api.internal;
/**
* Protobuf type {@code tracdap.api.internal.BatchJobResult}
*/
public final class BatchJobResult extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:tracdap.api.internal.BatchJobResult)
BatchJobResultOrBuilder {
private static final long serialVersionUID = 0L;
// Use BatchJobResult.newBuilder() to construct.
private BatchJobResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BatchJobResult() {
statusCode_ = 0;
statusMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BatchJobResult();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetResults();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.internal.BatchJobResult.class, org.finos.tracdap.api.internal.BatchJobResult.Builder.class);
}
private int bitField0_;
public static final int JOBID_FIELD_NUMBER = 1;
private org.finos.tracdap.metadata.TagHeader jobId_;
/**
* .tracdap.metadata.TagHeader jobId = 1;
* @return Whether the jobId field is set.
*/
@java.lang.Override
public boolean hasJobId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
* @return The jobId.
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader getJobId() {
return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeaderOrBuilder getJobIdOrBuilder() {
return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
}
public static final int STATUSCODE_FIELD_NUMBER = 2;
private int statusCode_ = 0;
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @return The enum numeric value on the wire for statusCode.
*/
@java.lang.Override public int getStatusCodeValue() {
return statusCode_;
}
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @return The statusCode.
*/
@java.lang.Override public org.finos.tracdap.metadata.JobStatusCode getStatusCode() {
org.finos.tracdap.metadata.JobStatusCode result = org.finos.tracdap.metadata.JobStatusCode.forNumber(statusCode_);
return result == null ? org.finos.tracdap.metadata.JobStatusCode.UNRECOGNIZED : result;
}
public static final int STATUSMESSAGE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object statusMessage_ = "";
/**
* string statusMessage = 3;
* @return The statusMessage.
*/
@java.lang.Override
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
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();
statusMessage_ = s;
return s;
}
}
/**
* string statusMessage = 3;
* @return The bytes for statusMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULTS_FIELD_NUMBER = 4;
private static final class ResultsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.metadata.ObjectDefinition> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_ResultsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.metadata.ObjectDefinition.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.metadata.ObjectDefinition> results_;
private com.google.protobuf.MapField
internalGetResults() {
if (results_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResultsDefaultEntryHolder.defaultEntry);
}
return results_;
}
public int getResultsCount() {
return internalGetResults().getMap().size();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public boolean containsResults(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResults().getMap().containsKey(key);
}
/**
* Use {@link #getResultsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResults() {
return getResultsMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public java.util.Map getResultsMap() {
return internalGetResults().getMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.ObjectDefinition getResultsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.ObjectDefinition defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResults().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition getResultsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResults().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getJobId());
}
if (statusCode_ != org.finos.tracdap.metadata.JobStatusCode.JOB_STATUS_CODE_NOT_SET.getNumber()) {
output.writeEnum(2, statusCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, statusMessage_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetResults(),
ResultsDefaultEntryHolder.defaultEntry,
4);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getJobId());
}
if (statusCode_ != org.finos.tracdap.metadata.JobStatusCode.JOB_STATUS_CODE_NOT_SET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, statusCode_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, statusMessage_);
}
for (java.util.Map.Entry entry
: internalGetResults().getMap().entrySet()) {
com.google.protobuf.MapEntry
results__ = ResultsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, results__);
}
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.internal.BatchJobResult)) {
return super.equals(obj);
}
org.finos.tracdap.api.internal.BatchJobResult other = (org.finos.tracdap.api.internal.BatchJobResult) obj;
if (hasJobId() != other.hasJobId()) return false;
if (hasJobId()) {
if (!getJobId()
.equals(other.getJobId())) return false;
}
if (statusCode_ != other.statusCode_) return false;
if (!getStatusMessage()
.equals(other.getStatusMessage())) return false;
if (!internalGetResults().equals(
other.internalGetResults())) 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();
if (hasJobId()) {
hash = (37 * hash) + JOBID_FIELD_NUMBER;
hash = (53 * hash) + getJobId().hashCode();
}
hash = (37 * hash) + STATUSCODE_FIELD_NUMBER;
hash = (53 * hash) + statusCode_;
hash = (37 * hash) + STATUSMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getStatusMessage().hashCode();
if (!internalGetResults().getMap().isEmpty()) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetResults().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.api.internal.BatchJobResult parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.internal.BatchJobResult 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.internal.BatchJobResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.internal.BatchJobResult 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.internal.BatchJobResult parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.api.internal.BatchJobResult parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.api.internal.BatchJobResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.internal.BatchJobResult 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 org.finos.tracdap.api.internal.BatchJobResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.internal.BatchJobResult 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 org.finos.tracdap.api.internal.BatchJobResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.api.internal.BatchJobResult 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(org.finos.tracdap.api.internal.BatchJobResult 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 tracdap.api.internal.BatchJobResult}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.api.internal.BatchJobResult)
org.finos.tracdap.api.internal.BatchJobResultOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetResults();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableResults();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.api.internal.BatchJobResult.class, org.finos.tracdap.api.internal.BatchJobResult.Builder.class);
}
// Construct using org.finos.tracdap.api.internal.BatchJobResult.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getJobIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
jobId_ = null;
if (jobIdBuilder_ != null) {
jobIdBuilder_.dispose();
jobIdBuilder_ = null;
}
statusCode_ = 0;
statusMessage_ = "";
internalGetMutableResults().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.api.internal.Runtime.internal_static_tracdap_api_internal_BatchJobResult_descriptor;
}
@java.lang.Override
public org.finos.tracdap.api.internal.BatchJobResult getDefaultInstanceForType() {
return org.finos.tracdap.api.internal.BatchJobResult.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.api.internal.BatchJobResult build() {
org.finos.tracdap.api.internal.BatchJobResult result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.api.internal.BatchJobResult buildPartial() {
org.finos.tracdap.api.internal.BatchJobResult result = new org.finos.tracdap.api.internal.BatchJobResult(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.finos.tracdap.api.internal.BatchJobResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.jobId_ = jobIdBuilder_ == null
? jobId_
: jobIdBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.statusCode_ = statusCode_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.statusMessage_ = statusMessage_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.results_ = internalGetResults().build(ResultsDefaultEntryHolder.defaultEntry);
}
result.bitField0_ |= to_bitField0_;
}
@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 org.finos.tracdap.api.internal.BatchJobResult) {
return mergeFrom((org.finos.tracdap.api.internal.BatchJobResult)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.api.internal.BatchJobResult other) {
if (other == org.finos.tracdap.api.internal.BatchJobResult.getDefaultInstance()) return this;
if (other.hasJobId()) {
mergeJobId(other.getJobId());
}
if (other.statusCode_ != 0) {
setStatusCodeValue(other.getStatusCodeValue());
}
if (!other.getStatusMessage().isEmpty()) {
statusMessage_ = other.statusMessage_;
bitField0_ |= 0x00000004;
onChanged();
}
internalGetMutableResults().mergeFrom(
other.internalGetResults());
bitField0_ |= 0x00000008;
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: {
input.readMessage(
getJobIdFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
statusCode_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26: {
statusMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
results__ = input.readMessage(
ResultsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableResults().ensureBuilderMap().put(
results__.getKey(), results__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
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 org.finos.tracdap.metadata.TagHeader jobId_;
private com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder> jobIdBuilder_;
/**
* .tracdap.metadata.TagHeader jobId = 1;
* @return Whether the jobId field is set.
*/
public boolean hasJobId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
* @return The jobId.
*/
public org.finos.tracdap.metadata.TagHeader getJobId() {
if (jobIdBuilder_ == null) {
return jobId_ == null ? org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
} else {
return jobIdBuilder_.getMessage();
}
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public Builder setJobId(org.finos.tracdap.metadata.TagHeader value) {
if (jobIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jobId_ = value;
} else {
jobIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public Builder setJobId(
org.finos.tracdap.metadata.TagHeader.Builder builderForValue) {
if (jobIdBuilder_ == null) {
jobId_ = builderForValue.build();
} else {
jobIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public Builder mergeJobId(org.finos.tracdap.metadata.TagHeader value) {
if (jobIdBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
jobId_ != null &&
jobId_ != org.finos.tracdap.metadata.TagHeader.getDefaultInstance()) {
getJobIdBuilder().mergeFrom(value);
} else {
jobId_ = value;
}
} else {
jobIdBuilder_.mergeFrom(value);
}
if (jobId_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public Builder clearJobId() {
bitField0_ = (bitField0_ & ~0x00000001);
jobId_ = null;
if (jobIdBuilder_ != null) {
jobIdBuilder_.dispose();
jobIdBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public org.finos.tracdap.metadata.TagHeader.Builder getJobIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getJobIdFieldBuilder().getBuilder();
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
public org.finos.tracdap.metadata.TagHeaderOrBuilder getJobIdOrBuilder() {
if (jobIdBuilder_ != null) {
return jobIdBuilder_.getMessageOrBuilder();
} else {
return jobId_ == null ?
org.finos.tracdap.metadata.TagHeader.getDefaultInstance() : jobId_;
}
}
/**
* .tracdap.metadata.TagHeader jobId = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder>
getJobIdFieldBuilder() {
if (jobIdBuilder_ == null) {
jobIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder>(
getJobId(),
getParentForChildren(),
isClean());
jobId_ = null;
}
return jobIdBuilder_;
}
private int statusCode_ = 0;
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @return The enum numeric value on the wire for statusCode.
*/
@java.lang.Override public int getStatusCodeValue() {
return statusCode_;
}
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @param value The enum numeric value on the wire for statusCode to set.
* @return This builder for chaining.
*/
public Builder setStatusCodeValue(int value) {
statusCode_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @return The statusCode.
*/
@java.lang.Override
public org.finos.tracdap.metadata.JobStatusCode getStatusCode() {
org.finos.tracdap.metadata.JobStatusCode result = org.finos.tracdap.metadata.JobStatusCode.forNumber(statusCode_);
return result == null ? org.finos.tracdap.metadata.JobStatusCode.UNRECOGNIZED : result;
}
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @param value The statusCode to set.
* @return This builder for chaining.
*/
public Builder setStatusCode(org.finos.tracdap.metadata.JobStatusCode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
statusCode_ = value.getNumber();
onChanged();
return this;
}
/**
* .tracdap.metadata.JobStatusCode statusCode = 2;
* @return This builder for chaining.
*/
public Builder clearStatusCode() {
bitField0_ = (bitField0_ & ~0x00000002);
statusCode_ = 0;
onChanged();
return this;
}
private java.lang.Object statusMessage_ = "";
/**
* string statusMessage = 3;
* @return The statusMessage.
*/
public java.lang.String getStatusMessage() {
java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string statusMessage = 3;
* @return The bytes for statusMessage.
*/
public com.google.protobuf.ByteString
getStatusMessageBytes() {
java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string statusMessage = 3;
* @param value The statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
statusMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string statusMessage = 3;
* @return This builder for chaining.
*/
public Builder clearStatusMessage() {
statusMessage_ = getDefaultInstance().getStatusMessage();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string statusMessage = 3;
* @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
public Builder setStatusMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
statusMessage_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private static final class ResultsConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition build(org.finos.tracdap.metadata.ObjectDefinitionOrBuilder val) {
if (val instanceof org.finos.tracdap.metadata.ObjectDefinition) { return (org.finos.tracdap.metadata.ObjectDefinition) val; }
return ((org.finos.tracdap.metadata.ObjectDefinition.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ResultsDefaultEntryHolder.defaultEntry;
}
};
private static final ResultsConverter resultsConverter = new ResultsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.metadata.ObjectDefinitionOrBuilder, org.finos.tracdap.metadata.ObjectDefinition, org.finos.tracdap.metadata.ObjectDefinition.Builder> results_;
private com.google.protobuf.MapFieldBuilder
internalGetResults() {
if (results_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(resultsConverter);
}
return results_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableResults() {
if (results_ == null) {
results_ = new com.google.protobuf.MapFieldBuilder<>(resultsConverter);
}
bitField0_ |= 0x00000008;
onChanged();
return results_;
}
public int getResultsCount() {
return internalGetResults().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public boolean containsResults(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResults().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getResultsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResults() {
return getResultsMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public java.util.Map getResultsMap() {
return internalGetResults().getImmutableMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.ObjectDefinition getResultsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.ObjectDefinition defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResults().ensureBuilderMap();
return map.containsKey(key) ? resultsConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition getResultsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResults().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return resultsConverter.build(map.get(key));
}
public Builder clearResults() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableResults().clear();
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
public Builder removeResults(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResults().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResults() {
bitField0_ |= 0x00000008;
return internalGetMutableResults().ensureMessageMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
public Builder putResults(
java.lang.String key,
org.finos.tracdap.metadata.ObjectDefinition value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableResults().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
public Builder putAllResults(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableResults().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> results = 4;
*/
public org.finos.tracdap.metadata.ObjectDefinition.Builder putResultsBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableResults().ensureBuilderMap();
org.finos.tracdap.metadata.ObjectDefinitionOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.metadata.ObjectDefinition.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.metadata.ObjectDefinition) {
entry = ((org.finos.tracdap.metadata.ObjectDefinition) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.metadata.ObjectDefinition.Builder) entry;
}
@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:tracdap.api.internal.BatchJobResult)
}
// @@protoc_insertion_point(class_scope:tracdap.api.internal.BatchJobResult)
private static final org.finos.tracdap.api.internal.BatchJobResult DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.api.internal.BatchJobResult();
}
public static org.finos.tracdap.api.internal.BatchJobResult getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BatchJobResult 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.internal.BatchJobResult getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}