org.finos.tracdap.config.StorageConfig 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/common.proto
// Protobuf Java Version: 4.28.2
package org.finos.tracdap.config;
/**
* Protobuf type {@code tracdap.config.StorageConfig}
*/
public final class StorageConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.config.StorageConfig)
StorageConfigOrBuilder {
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= */ "",
StorageConfig.class.getName());
}
// Use StorageConfig.newBuilder() to construct.
private StorageConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private StorageConfig() {
defaultBucket_ = "";
defaultFormat_ = "";
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetBuckets();
case 4:
return internalGetExternal();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.StorageConfig.class, org.finos.tracdap.config.StorageConfig.Builder.class);
}
public static final int BUCKETS_FIELD_NUMBER = 1;
private static final class BucketsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.config.PluginConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_BucketsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.config.PluginConfig.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.config.PluginConfig> buckets_;
private com.google.protobuf.MapField
internalGetBuckets() {
if (buckets_ == null) {
return com.google.protobuf.MapField.emptyMapField(
BucketsDefaultEntryHolder.defaultEntry);
}
return buckets_;
}
public int getBucketsCount() {
return internalGetBuckets().getMap().size();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public boolean containsBuckets(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetBuckets().getMap().containsKey(key);
}
/**
* Use {@link #getBucketsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getBuckets() {
return getBucketsMap();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public java.util.Map getBucketsMap() {
return internalGetBuckets().getMap();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getBucketsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetBuckets().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getBucketsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetBuckets().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int EXTERNAL_FIELD_NUMBER = 4;
private static final class ExternalDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.config.PluginConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_ExternalEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.config.PluginConfig.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.config.PluginConfig> external_;
private com.google.protobuf.MapField
internalGetExternal() {
if (external_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ExternalDefaultEntryHolder.defaultEntry);
}
return external_;
}
public int getExternalCount() {
return internalGetExternal().getMap().size();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public boolean containsExternal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetExternal().getMap().containsKey(key);
}
/**
* Use {@link #getExternalMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getExternal() {
return getExternalMap();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public java.util.Map getExternalMap() {
return internalGetExternal().getMap();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getExternalOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExternal().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getExternalOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExternal().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DEFAULTBUCKET_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultBucket_ = "";
/**
* string defaultBucket = 2;
* @return The defaultBucket.
*/
@java.lang.Override
public java.lang.String getDefaultBucket() {
java.lang.Object ref = defaultBucket_;
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();
defaultBucket_ = s;
return s;
}
}
/**
* string defaultBucket = 2;
* @return The bytes for defaultBucket.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultBucketBytes() {
java.lang.Object ref = defaultBucket_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultBucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULTFORMAT_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object defaultFormat_ = "";
/**
* string defaultFormat = 3;
* @return The defaultFormat.
*/
@java.lang.Override
public java.lang.String getDefaultFormat() {
java.lang.Object ref = defaultFormat_;
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();
defaultFormat_ = s;
return s;
}
}
/**
* string defaultFormat = 3;
* @return The bytes for defaultFormat.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultFormatBytes() {
java.lang.Object ref = defaultFormat_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 {
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetBuckets(),
BucketsDefaultEntryHolder.defaultEntry,
1);
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultBucket_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultBucket_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultFormat_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 3, defaultFormat_);
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetExternal(),
ExternalDefaultEntryHolder.defaultEntry,
4);
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (java.util.Map.Entry entry
: internalGetBuckets().getMap().entrySet()) {
com.google.protobuf.MapEntry
buckets__ = BucketsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, buckets__);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultBucket_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultBucket_);
}
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultFormat_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(3, defaultFormat_);
}
for (java.util.Map.Entry entry
: internalGetExternal().getMap().entrySet()) {
com.google.protobuf.MapEntry
external__ = ExternalDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, external__);
}
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.StorageConfig)) {
return super.equals(obj);
}
org.finos.tracdap.config.StorageConfig other = (org.finos.tracdap.config.StorageConfig) obj;
if (!internalGetBuckets().equals(
other.internalGetBuckets())) return false;
if (!internalGetExternal().equals(
other.internalGetExternal())) return false;
if (!getDefaultBucket()
.equals(other.getDefaultBucket())) return false;
if (!getDefaultFormat()
.equals(other.getDefaultFormat())) 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 (!internalGetBuckets().getMap().isEmpty()) {
hash = (37 * hash) + BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + internalGetBuckets().hashCode();
}
if (!internalGetExternal().getMap().isEmpty()) {
hash = (37 * hash) + EXTERNAL_FIELD_NUMBER;
hash = (53 * hash) + internalGetExternal().hashCode();
}
hash = (37 * hash) + DEFAULTBUCKET_FIELD_NUMBER;
hash = (53 * hash) + getDefaultBucket().hashCode();
hash = (37 * hash) + DEFAULTFORMAT_FIELD_NUMBER;
hash = (53 * hash) + getDefaultFormat().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.config.StorageConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.StorageConfig 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.StorageConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.StorageConfig 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.StorageConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.StorageConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.config.StorageConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.StorageConfig 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.StorageConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.StorageConfig 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.StorageConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.StorageConfig 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.StorageConfig 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.StorageConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.config.StorageConfig)
org.finos.tracdap.config.StorageConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetBuckets();
case 4:
return internalGetExternal();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableBuckets();
case 4:
return internalGetMutableExternal();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.StorageConfig.class, org.finos.tracdap.config.StorageConfig.Builder.class);
}
// Construct using org.finos.tracdap.config.StorageConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableBuckets().clear();
internalGetMutableExternal().clear();
defaultBucket_ = "";
defaultFormat_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.config.Common.internal_static_tracdap_config_StorageConfig_descriptor;
}
@java.lang.Override
public org.finos.tracdap.config.StorageConfig getDefaultInstanceForType() {
return org.finos.tracdap.config.StorageConfig.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.config.StorageConfig build() {
org.finos.tracdap.config.StorageConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.config.StorageConfig buildPartial() {
org.finos.tracdap.config.StorageConfig result = new org.finos.tracdap.config.StorageConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.finos.tracdap.config.StorageConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.buckets_ = internalGetBuckets().build(BucketsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.external_ = internalGetExternal().build(ExternalDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.defaultBucket_ = defaultBucket_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.defaultFormat_ = defaultFormat_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.config.StorageConfig) {
return mergeFrom((org.finos.tracdap.config.StorageConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.config.StorageConfig other) {
if (other == org.finos.tracdap.config.StorageConfig.getDefaultInstance()) return this;
internalGetMutableBuckets().mergeFrom(
other.internalGetBuckets());
bitField0_ |= 0x00000001;
internalGetMutableExternal().mergeFrom(
other.internalGetExternal());
bitField0_ |= 0x00000002;
if (!other.getDefaultBucket().isEmpty()) {
defaultBucket_ = other.defaultBucket_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDefaultFormat().isEmpty()) {
defaultFormat_ = other.defaultFormat_;
bitField0_ |= 0x00000008;
onChanged();
}
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: {
com.google.protobuf.MapEntry
buckets__ = input.readMessage(
BucketsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableBuckets().ensureBuilderMap().put(
buckets__.getKey(), buckets__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
defaultBucket_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 18
case 26: {
defaultFormat_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 26
case 34: {
com.google.protobuf.MapEntry
external__ = input.readMessage(
ExternalDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableExternal().ensureBuilderMap().put(
external__.getKey(), external__.getValue());
bitField0_ |= 0x00000002;
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 static final class BucketsConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.config.PluginConfig build(org.finos.tracdap.config.PluginConfigOrBuilder val) {
if (val instanceof org.finos.tracdap.config.PluginConfig) { return (org.finos.tracdap.config.PluginConfig) val; }
return ((org.finos.tracdap.config.PluginConfig.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return BucketsDefaultEntryHolder.defaultEntry;
}
};
private static final BucketsConverter bucketsConverter = new BucketsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.config.PluginConfigOrBuilder, org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder> buckets_;
private com.google.protobuf.MapFieldBuilder
internalGetBuckets() {
if (buckets_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(bucketsConverter);
}
return buckets_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableBuckets() {
if (buckets_ == null) {
buckets_ = new com.google.protobuf.MapFieldBuilder<>(bucketsConverter);
}
bitField0_ |= 0x00000001;
onChanged();
return buckets_;
}
public int getBucketsCount() {
return internalGetBuckets().ensureBuilderMap().size();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public boolean containsBuckets(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetBuckets().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getBucketsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getBuckets() {
return getBucketsMap();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public java.util.Map getBucketsMap() {
return internalGetBuckets().getImmutableMap();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getBucketsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableBuckets().ensureBuilderMap();
return map.containsKey(key) ? bucketsConverter.build(map.get(key)) : defaultValue;
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getBucketsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableBuckets().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return bucketsConverter.build(map.get(key));
}
public Builder clearBuckets() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableBuckets().clear();
return this;
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
public Builder removeBuckets(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableBuckets().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableBuckets() {
bitField0_ |= 0x00000001;
return internalGetMutableBuckets().ensureMessageMap();
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
public Builder putBuckets(
java.lang.String key,
org.finos.tracdap.config.PluginConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableBuckets().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
public Builder putAllBuckets(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableBuckets().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
/**
*
* TODO: Rename "buckets" as "internal" for 0.7
*
*
* map<string, .tracdap.config.PluginConfig> buckets = 1;
*/
public org.finos.tracdap.config.PluginConfig.Builder putBucketsBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableBuckets().ensureBuilderMap();
org.finos.tracdap.config.PluginConfigOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.config.PluginConfig.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.config.PluginConfig) {
entry = ((org.finos.tracdap.config.PluginConfig) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.config.PluginConfig.Builder) entry;
}
private static final class ExternalConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.config.PluginConfig build(org.finos.tracdap.config.PluginConfigOrBuilder val) {
if (val instanceof org.finos.tracdap.config.PluginConfig) { return (org.finos.tracdap.config.PluginConfig) val; }
return ((org.finos.tracdap.config.PluginConfig.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ExternalDefaultEntryHolder.defaultEntry;
}
};
private static final ExternalConverter externalConverter = new ExternalConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.config.PluginConfigOrBuilder, org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder> external_;
private com.google.protobuf.MapFieldBuilder
internalGetExternal() {
if (external_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(externalConverter);
}
return external_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableExternal() {
if (external_ == null) {
external_ = new com.google.protobuf.MapFieldBuilder<>(externalConverter);
}
bitField0_ |= 0x00000002;
onChanged();
return external_;
}
public int getExternalCount() {
return internalGetExternal().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public boolean containsExternal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetExternal().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getExternalMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getExternal() {
return getExternalMap();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public java.util.Map getExternalMap() {
return internalGetExternal().getImmutableMap();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getExternalOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableExternal().ensureBuilderMap();
return map.containsKey(key) ? externalConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getExternalOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableExternal().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return externalConverter.build(map.get(key));
}
public Builder clearExternal() {
bitField0_ = (bitField0_ & ~0x00000002);
internalGetMutableExternal().clear();
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
public Builder removeExternal(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableExternal().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableExternal() {
bitField0_ |= 0x00000002;
return internalGetMutableExternal().ensureMessageMap();
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
public Builder putExternal(
java.lang.String key,
org.finos.tracdap.config.PluginConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableExternal().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000002;
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
public Builder putAllExternal(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableExternal().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000002;
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> external = 4;
*/
public org.finos.tracdap.config.PluginConfig.Builder putExternalBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableExternal().ensureBuilderMap();
org.finos.tracdap.config.PluginConfigOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.config.PluginConfig.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.config.PluginConfig) {
entry = ((org.finos.tracdap.config.PluginConfig) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.config.PluginConfig.Builder) entry;
}
private java.lang.Object defaultBucket_ = "";
/**
* string defaultBucket = 2;
* @return The defaultBucket.
*/
public java.lang.String getDefaultBucket() {
java.lang.Object ref = defaultBucket_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultBucket_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string defaultBucket = 2;
* @return The bytes for defaultBucket.
*/
public com.google.protobuf.ByteString
getDefaultBucketBytes() {
java.lang.Object ref = defaultBucket_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultBucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string defaultBucket = 2;
* @param value The defaultBucket to set.
* @return This builder for chaining.
*/
public Builder setDefaultBucket(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultBucket_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* string defaultBucket = 2;
* @return This builder for chaining.
*/
public Builder clearDefaultBucket() {
defaultBucket_ = getDefaultInstance().getDefaultBucket();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* string defaultBucket = 2;
* @param value The bytes for defaultBucket to set.
* @return This builder for chaining.
*/
public Builder setDefaultBucketBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
defaultBucket_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object defaultFormat_ = "";
/**
* string defaultFormat = 3;
* @return The defaultFormat.
*/
public java.lang.String getDefaultFormat() {
java.lang.Object ref = defaultFormat_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
defaultFormat_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string defaultFormat = 3;
* @return The bytes for defaultFormat.
*/
public com.google.protobuf.ByteString
getDefaultFormatBytes() {
java.lang.Object ref = defaultFormat_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultFormat_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string defaultFormat = 3;
* @param value The defaultFormat to set.
* @return This builder for chaining.
*/
public Builder setDefaultFormat(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
defaultFormat_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* string defaultFormat = 3;
* @return This builder for chaining.
*/
public Builder clearDefaultFormat() {
defaultFormat_ = getDefaultInstance().getDefaultFormat();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* string defaultFormat = 3;
* @param value The bytes for defaultFormat to set.
* @return This builder for chaining.
*/
public Builder setDefaultFormatBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
defaultFormat_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:tracdap.config.StorageConfig)
}
// @@protoc_insertion_point(class_scope:tracdap.config.StorageConfig)
private static final org.finos.tracdap.config.StorageConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.config.StorageConfig();
}
public static org.finos.tracdap.config.StorageConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StorageConfig 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.StorageConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}