org.finos.tracdap.config.JobConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracdap-api-config Show documentation
Show all versions of tracdap-api-config Show documentation
TRAC D.A.P. config library, contains data structures used for config files (and other config sources)
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: tracdap/config/job.proto
// Protobuf Java Version: 4.28.2
package org.finos.tracdap.config;
/**
* Protobuf type {@code tracdap.config.JobConfig}
*/
public final class JobConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.config.JobConfig)
JobConfigOrBuilder {
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= */ "",
JobConfig.class.getName());
}
// Use JobConfig.newBuilder() to construct.
private JobConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private JobConfig() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetResources();
case 4:
return internalGetResourceMapping();
case 5:
return internalGetResultMapping();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.JobConfig.class, org.finos.tracdap.config.JobConfig.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 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_ & 0x00000002) != 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 RESOURCES_FIELD_NUMBER = 3;
private static final class ResourcesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.metadata.ObjectDefinition> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_ResourcesEntry_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> resources_;
private com.google.protobuf.MapField
internalGetResources() {
if (resources_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourcesDefaultEntryHolder.defaultEntry);
}
return resources_;
}
public int getResourcesCount() {
return internalGetResources().getMap().size();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public boolean containsResources(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResources().getMap().containsKey(key);
}
/**
* Use {@link #getResourcesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResources() {
return getResourcesMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public java.util.Map getResourcesMap() {
return internalGetResources().getMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.ObjectDefinition getResourcesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.ObjectDefinition defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResources().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition getResourcesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResources().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESOURCEMAPPING_FIELD_NUMBER = 4;
private static final class ResourceMappingDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.metadata.TagHeader> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_ResourceMappingEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.metadata.TagHeader.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.metadata.TagHeader> resourceMapping_;
private com.google.protobuf.MapField
internalGetResourceMapping() {
if (resourceMapping_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResourceMappingDefaultEntryHolder.defaultEntry);
}
return resourceMapping_;
}
public int getResourceMappingCount() {
return internalGetResourceMapping().getMap().size();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public boolean containsResourceMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceMapping().getMap().containsKey(key);
}
/**
* Use {@link #getResourceMappingMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceMapping() {
return getResourceMappingMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public java.util.Map getResourceMappingMap() {
return internalGetResourceMapping().getMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.TagHeader getResourceMappingOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.TagHeader defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceMapping().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader getResourceMappingOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResourceMapping().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int RESULTMAPPING_FIELD_NUMBER = 5;
private static final class ResultMappingDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.metadata.TagHeader> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_ResultMappingEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.metadata.TagHeader.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.metadata.TagHeader> resultMapping_;
private com.google.protobuf.MapField
internalGetResultMapping() {
if (resultMapping_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ResultMappingDefaultEntryHolder.defaultEntry);
}
return resultMapping_;
}
public int getResultMappingCount() {
return internalGetResultMapping().getMap().size();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public boolean containsResultMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResultMapping().getMap().containsKey(key);
}
/**
* Use {@link #getResultMappingMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResultMapping() {
return getResultMappingMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public java.util.Map getResultMappingMap() {
return internalGetResultMapping().getMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.TagHeader getResultMappingOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.TagHeader defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResultMapping().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader getResultMappingOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetResultMapping().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 (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getJob());
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetResources(),
ResourcesDefaultEntryHolder.defaultEntry,
3);
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetResourceMapping(),
ResourceMappingDefaultEntryHolder.defaultEntry,
4);
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetResultMapping(),
ResultMappingDefaultEntryHolder.defaultEntry,
5);
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 (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getJob());
}
for (java.util.Map.Entry entry
: internalGetResources().getMap().entrySet()) {
com.google.protobuf.MapEntry
resources__ = ResourcesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, resources__);
}
for (java.util.Map.Entry entry
: internalGetResourceMapping().getMap().entrySet()) {
com.google.protobuf.MapEntry
resourceMapping__ = ResourceMappingDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, resourceMapping__);
}
for (java.util.Map.Entry entry
: internalGetResultMapping().getMap().entrySet()) {
com.google.protobuf.MapEntry
resultMapping__ = ResultMappingDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, resultMapping__);
}
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.config.JobConfig)) {
return super.equals(obj);
}
org.finos.tracdap.config.JobConfig other = (org.finos.tracdap.config.JobConfig) obj;
if (hasJobId() != other.hasJobId()) return false;
if (hasJobId()) {
if (!getJobId()
.equals(other.getJobId())) return false;
}
if (hasJob() != other.hasJob()) return false;
if (hasJob()) {
if (!getJob()
.equals(other.getJob())) return false;
}
if (!internalGetResources().equals(
other.internalGetResources())) return false;
if (!internalGetResourceMapping().equals(
other.internalGetResourceMapping())) return false;
if (!internalGetResultMapping().equals(
other.internalGetResultMapping())) 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();
}
if (hasJob()) {
hash = (37 * hash) + JOB_FIELD_NUMBER;
hash = (53 * hash) + getJob().hashCode();
}
if (!internalGetResources().getMap().isEmpty()) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + internalGetResources().hashCode();
}
if (!internalGetResourceMapping().getMap().isEmpty()) {
hash = (37 * hash) + RESOURCEMAPPING_FIELD_NUMBER;
hash = (53 * hash) + internalGetResourceMapping().hashCode();
}
if (!internalGetResultMapping().getMap().isEmpty()) {
hash = (37 * hash) + RESULTMAPPING_FIELD_NUMBER;
hash = (53 * hash) + internalGetResultMapping().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.config.JobConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.JobConfig 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.config.JobConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.JobConfig 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.config.JobConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.JobConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.config.JobConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.JobConfig 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.config.JobConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.JobConfig 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.config.JobConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.JobConfig 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.config.JobConfig 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;
}
/**
* Protobuf type {@code tracdap.config.JobConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.config.JobConfig)
org.finos.tracdap.config.JobConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetResources();
case 4:
return internalGetResourceMapping();
case 5:
return internalGetResultMapping();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 3:
return internalGetMutableResources();
case 4:
return internalGetMutableResourceMapping();
case 5:
return internalGetMutableResultMapping();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.JobConfig.class, org.finos.tracdap.config.JobConfig.Builder.class);
}
// Construct using org.finos.tracdap.config.JobConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getJobIdFieldBuilder();
getJobFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
jobId_ = null;
if (jobIdBuilder_ != null) {
jobIdBuilder_.dispose();
jobIdBuilder_ = null;
}
job_ = null;
if (jobBuilder_ != null) {
jobBuilder_.dispose();
jobBuilder_ = null;
}
internalGetMutableResources().clear();
internalGetMutableResourceMapping().clear();
internalGetMutableResultMapping().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.config.Job.internal_static_tracdap_config_JobConfig_descriptor;
}
@java.lang.Override
public org.finos.tracdap.config.JobConfig getDefaultInstanceForType() {
return org.finos.tracdap.config.JobConfig.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.config.JobConfig build() {
org.finos.tracdap.config.JobConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.config.JobConfig buildPartial() {
org.finos.tracdap.config.JobConfig result = new org.finos.tracdap.config.JobConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.finos.tracdap.config.JobConfig 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.job_ = jobBuilder_ == null
? job_
: jobBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.resources_ = internalGetResources().build(ResourcesDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.resourceMapping_ = internalGetResourceMapping().build(ResourceMappingDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.resultMapping_ = internalGetResultMapping().build(ResultMappingDefaultEntryHolder.defaultEntry);
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.config.JobConfig) {
return mergeFrom((org.finos.tracdap.config.JobConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.config.JobConfig other) {
if (other == org.finos.tracdap.config.JobConfig.getDefaultInstance()) return this;
if (other.hasJobId()) {
mergeJobId(other.getJobId());
}
if (other.hasJob()) {
mergeJob(other.getJob());
}
internalGetMutableResources().mergeFrom(
other.internalGetResources());
bitField0_ |= 0x00000004;
internalGetMutableResourceMapping().mergeFrom(
other.internalGetResourceMapping());
bitField0_ |= 0x00000008;
internalGetMutableResultMapping().mergeFrom(
other.internalGetResultMapping());
bitField0_ |= 0x00000010;
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 18: {
input.readMessage(
getJobFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26: {
com.google.protobuf.MapEntry
resources__ = input.readMessage(
ResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableResources().ensureBuilderMap().put(
resources__.getKey(), resources__.getValue());
bitField0_ |= 0x00000004;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
resourceMapping__ = input.readMessage(
ResourceMappingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableResourceMapping().ensureBuilderMap().put(
resourceMapping__.getKey(), resourceMapping__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42: {
com.google.protobuf.MapEntry
resultMapping__ = input.readMessage(
ResultMappingDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableResultMapping().ensureBuilderMap().put(
resultMapping__.getKey(), resultMapping__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
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.SingleFieldBuilder<
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.SingleFieldBuilder<
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.SingleFieldBuilder<
org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder, org.finos.tracdap.metadata.TagHeaderOrBuilder>(
getJobId(),
getParentForChildren(),
isClean());
jobId_ = null;
}
return jobIdBuilder_;
}
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 static final class ResourcesConverter 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 ResourcesDefaultEntryHolder.defaultEntry;
}
};
private static final ResourcesConverter resourcesConverter = new ResourcesConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.metadata.ObjectDefinitionOrBuilder, org.finos.tracdap.metadata.ObjectDefinition, org.finos.tracdap.metadata.ObjectDefinition.Builder> resources_;
private com.google.protobuf.MapFieldBuilder
internalGetResources() {
if (resources_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(resourcesConverter);
}
return resources_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableResources() {
if (resources_ == null) {
resources_ = new com.google.protobuf.MapFieldBuilder<>(resourcesConverter);
}
bitField0_ |= 0x00000004;
onChanged();
return resources_;
}
public int getResourcesCount() {
return internalGetResources().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public boolean containsResources(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResources().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getResourcesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResources() {
return getResourcesMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public java.util.Map getResourcesMap() {
return internalGetResources().getImmutableMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.ObjectDefinition getResourcesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.ObjectDefinition defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResources().ensureBuilderMap();
return map.containsKey(key) ? resourcesConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
@java.lang.Override
public org.finos.tracdap.metadata.ObjectDefinition getResourcesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResources().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return resourcesConverter.build(map.get(key));
}
public Builder clearResources() {
bitField0_ = (bitField0_ & ~0x00000004);
internalGetMutableResources().clear();
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
public Builder removeResources(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResources().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResources() {
bitField0_ |= 0x00000004;
return internalGetMutableResources().ensureMessageMap();
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
public Builder putResources(
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"); }
internalGetMutableResources().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000004;
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
public Builder putAllResources(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableResources().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000004;
return this;
}
/**
* map<string, .tracdap.metadata.ObjectDefinition> resources = 3;
*/
public org.finos.tracdap.metadata.ObjectDefinition.Builder putResourcesBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableResources().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;
}
private static final class ResourceMappingConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader build(org.finos.tracdap.metadata.TagHeaderOrBuilder val) {
if (val instanceof org.finos.tracdap.metadata.TagHeader) { return (org.finos.tracdap.metadata.TagHeader) val; }
return ((org.finos.tracdap.metadata.TagHeader.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ResourceMappingDefaultEntryHolder.defaultEntry;
}
};
private static final ResourceMappingConverter resourceMappingConverter = new ResourceMappingConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.metadata.TagHeaderOrBuilder, org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder> resourceMapping_;
private com.google.protobuf.MapFieldBuilder
internalGetResourceMapping() {
if (resourceMapping_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(resourceMappingConverter);
}
return resourceMapping_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableResourceMapping() {
if (resourceMapping_ == null) {
resourceMapping_ = new com.google.protobuf.MapFieldBuilder<>(resourceMappingConverter);
}
bitField0_ |= 0x00000008;
onChanged();
return resourceMapping_;
}
public int getResourceMappingCount() {
return internalGetResourceMapping().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public boolean containsResourceMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResourceMapping().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getResourceMappingMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResourceMapping() {
return getResourceMappingMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public java.util.Map getResourceMappingMap() {
return internalGetResourceMapping().getImmutableMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.TagHeader getResourceMappingOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.TagHeader defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResourceMapping().ensureBuilderMap();
return map.containsKey(key) ? resourceMappingConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader getResourceMappingOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResourceMapping().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return resourceMappingConverter.build(map.get(key));
}
public Builder clearResourceMapping() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableResourceMapping().clear();
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
public Builder removeResourceMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResourceMapping().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResourceMapping() {
bitField0_ |= 0x00000008;
return internalGetMutableResourceMapping().ensureMessageMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
public Builder putResourceMapping(
java.lang.String key,
org.finos.tracdap.metadata.TagHeader value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableResourceMapping().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
public Builder putAllResourceMapping(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableResourceMapping().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000008;
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resourceMapping = 4;
*/
public org.finos.tracdap.metadata.TagHeader.Builder putResourceMappingBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableResourceMapping().ensureBuilderMap();
org.finos.tracdap.metadata.TagHeaderOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.metadata.TagHeader.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.metadata.TagHeader) {
entry = ((org.finos.tracdap.metadata.TagHeader) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.metadata.TagHeader.Builder) entry;
}
private static final class ResultMappingConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader build(org.finos.tracdap.metadata.TagHeaderOrBuilder val) {
if (val instanceof org.finos.tracdap.metadata.TagHeader) { return (org.finos.tracdap.metadata.TagHeader) val; }
return ((org.finos.tracdap.metadata.TagHeader.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ResultMappingDefaultEntryHolder.defaultEntry;
}
};
private static final ResultMappingConverter resultMappingConverter = new ResultMappingConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.metadata.TagHeaderOrBuilder, org.finos.tracdap.metadata.TagHeader, org.finos.tracdap.metadata.TagHeader.Builder> resultMapping_;
private com.google.protobuf.MapFieldBuilder
internalGetResultMapping() {
if (resultMapping_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(resultMappingConverter);
}
return resultMapping_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableResultMapping() {
if (resultMapping_ == null) {
resultMapping_ = new com.google.protobuf.MapFieldBuilder<>(resultMappingConverter);
}
bitField0_ |= 0x00000010;
onChanged();
return resultMapping_;
}
public int getResultMappingCount() {
return internalGetResultMapping().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public boolean containsResultMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetResultMapping().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getResultMappingMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getResultMapping() {
return getResultMappingMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public java.util.Map getResultMappingMap() {
return internalGetResultMapping().getImmutableMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.metadata.TagHeader getResultMappingOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.metadata.TagHeader defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResultMapping().ensureBuilderMap();
return map.containsKey(key) ? resultMappingConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
@java.lang.Override
public org.finos.tracdap.metadata.TagHeader getResultMappingOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableResultMapping().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return resultMappingConverter.build(map.get(key));
}
public Builder clearResultMapping() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableResultMapping().clear();
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
public Builder removeResultMapping(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableResultMapping().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableResultMapping() {
bitField0_ |= 0x00000010;
return internalGetMutableResultMapping().ensureMessageMap();
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
public Builder putResultMapping(
java.lang.String key,
org.finos.tracdap.metadata.TagHeader value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableResultMapping().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
public Builder putAllResultMapping(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableResultMapping().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000010;
return this;
}
/**
* map<string, .tracdap.metadata.TagHeader> resultMapping = 5;
*/
public org.finos.tracdap.metadata.TagHeader.Builder putResultMappingBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableResultMapping().ensureBuilderMap();
org.finos.tracdap.metadata.TagHeaderOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.metadata.TagHeader.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.metadata.TagHeader) {
entry = ((org.finos.tracdap.metadata.TagHeader) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.metadata.TagHeader.Builder) entry;
}
// @@protoc_insertion_point(builder_scope:tracdap.config.JobConfig)
}
// @@protoc_insertion_point(class_scope:tracdap.config.JobConfig)
private static final org.finos.tracdap.config.JobConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.config.JobConfig();
}
public static org.finos.tracdap.config.JobConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JobConfig 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.config.JobConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}