org.finos.tracdap.config.PlatformConfig 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/platform.proto
// Protobuf Java Version: 4.28.2
package org.finos.tracdap.config;
/**
* Protobuf type {@code tracdap.config.PlatformConfig}
*/
public final class PlatformConfig extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:tracdap.config.PlatformConfig)
PlatformConfigOrBuilder {
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= */ "",
PlatformConfig.class.getName());
}
// Use PlatformConfig.newBuilder() to construct.
private PlatformConfig(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private PlatformConfig() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetConfig();
case 8:
return internalGetRepositories();
case 10:
return internalGetTenants();
case 4:
return internalGetServices();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.PlatformConfig.class, org.finos.tracdap.config.PlatformConfig.Builder.class);
}
private int bitField0_;
public static final int CONFIG_FIELD_NUMBER = 1;
private static final class ConfigDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.String> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_ConfigEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, java.lang.String> config_;
private com.google.protobuf.MapField
internalGetConfig() {
if (config_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
return config_;
}
public int getConfigCount() {
return internalGetConfig().getMap().size();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().getMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getMap();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public /* nullable */
java.lang.String getConfigOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public java.lang.String getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int PLATFORMINFO_FIELD_NUMBER = 2;
private org.finos.tracdap.config.PlatformInfo platformInfo_;
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
* @return Whether the platformInfo field is set.
*/
@java.lang.Override
public boolean hasPlatformInfo() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
* @return The platformInfo.
*/
@java.lang.Override
public org.finos.tracdap.config.PlatformInfo getPlatformInfo() {
return platformInfo_ == null ? org.finos.tracdap.config.PlatformInfo.getDefaultInstance() : platformInfo_;
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
@java.lang.Override
public org.finos.tracdap.config.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
return platformInfo_ == null ? org.finos.tracdap.config.PlatformInfo.getDefaultInstance() : platformInfo_;
}
public static final int AUTHENTICATION_FIELD_NUMBER = 5;
private org.finos.tracdap.config.AuthenticationConfig authentication_;
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
* @return Whether the authentication field is set.
*/
@java.lang.Override
public boolean hasAuthentication() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
* @return The authentication.
*/
@java.lang.Override
public org.finos.tracdap.config.AuthenticationConfig getAuthentication() {
return authentication_ == null ? org.finos.tracdap.config.AuthenticationConfig.getDefaultInstance() : authentication_;
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
@java.lang.Override
public org.finos.tracdap.config.AuthenticationConfigOrBuilder getAuthenticationOrBuilder() {
return authentication_ == null ? org.finos.tracdap.config.AuthenticationConfig.getDefaultInstance() : authentication_;
}
public static final int METADATA_FIELD_NUMBER = 6;
private org.finos.tracdap.config.MetadataConfig metadata_;
/**
* .tracdap.config.MetadataConfig metadata = 6;
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
* @return The metadata.
*/
@java.lang.Override
public org.finos.tracdap.config.MetadataConfig getMetadata() {
return metadata_ == null ? org.finos.tracdap.config.MetadataConfig.getDefaultInstance() : metadata_;
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
@java.lang.Override
public org.finos.tracdap.config.MetadataConfigOrBuilder getMetadataOrBuilder() {
return metadata_ == null ? org.finos.tracdap.config.MetadataConfig.getDefaultInstance() : metadata_;
}
public static final int STORAGE_FIELD_NUMBER = 7;
private org.finos.tracdap.config.StorageConfig storage_;
/**
* .tracdap.config.StorageConfig storage = 7;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .tracdap.config.StorageConfig storage = 7;
* @return The storage.
*/
@java.lang.Override
public org.finos.tracdap.config.StorageConfig getStorage() {
return storage_ == null ? org.finos.tracdap.config.StorageConfig.getDefaultInstance() : storage_;
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
@java.lang.Override
public org.finos.tracdap.config.StorageConfigOrBuilder getStorageOrBuilder() {
return storage_ == null ? org.finos.tracdap.config.StorageConfig.getDefaultInstance() : storage_;
}
public static final int REPOSITORIES_FIELD_NUMBER = 8;
private static final class RepositoriesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.config.PluginConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_RepositoriesEntry_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> repositories_;
private com.google.protobuf.MapField
internalGetRepositories() {
if (repositories_ == null) {
return com.google.protobuf.MapField.emptyMapField(
RepositoriesDefaultEntryHolder.defaultEntry);
}
return repositories_;
}
public int getRepositoriesCount() {
return internalGetRepositories().getMap().size();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public boolean containsRepositories(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRepositories().getMap().containsKey(key);
}
/**
* Use {@link #getRepositoriesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRepositories() {
return getRepositoriesMap();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public java.util.Map getRepositoriesMap() {
return internalGetRepositories().getMap();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getRepositoriesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRepositories().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getRepositoriesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetRepositories().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int EXECUTOR_FIELD_NUMBER = 9;
private org.finos.tracdap.config.PluginConfig executor_;
/**
* .tracdap.config.PluginConfig executor = 9;
* @return Whether the executor field is set.
*/
@java.lang.Override
public boolean hasExecutor() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .tracdap.config.PluginConfig executor = 9;
* @return The executor.
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getExecutor() {
return executor_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : executor_;
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfigOrBuilder getExecutorOrBuilder() {
return executor_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : executor_;
}
public static final int JOBCACHE_FIELD_NUMBER = 12;
private org.finos.tracdap.config.PluginConfig jobCache_;
/**
* .tracdap.config.PluginConfig jobCache = 12;
* @return Whether the jobCache field is set.
*/
@java.lang.Override
public boolean hasJobCache() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
* @return The jobCache.
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getJobCache() {
return jobCache_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : jobCache_;
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfigOrBuilder getJobCacheOrBuilder() {
return jobCache_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : jobCache_;
}
public static final int TENANTS_FIELD_NUMBER = 10;
private static final class TenantsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.config.TenantConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_TenantsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.config.TenantConfig.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.config.TenantConfig> tenants_;
private com.google.protobuf.MapField
internalGetTenants() {
if (tenants_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TenantsDefaultEntryHolder.defaultEntry);
}
return tenants_;
}
public int getTenantsCount() {
return internalGetTenants().getMap().size();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public boolean containsTenants(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetTenants().getMap().containsKey(key);
}
/**
* Use {@link #getTenantsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTenants() {
return getTenantsMap();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public java.util.Map getTenantsMap() {
return internalGetTenants().getMap();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.TenantConfig getTenantsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.TenantConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTenants().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public org.finos.tracdap.config.TenantConfig getTenantsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetTenants().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int WEBSERVER_FIELD_NUMBER = 11;
private org.finos.tracdap.config.WebServerConfig webServer_;
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
* @return Whether the webServer field is set.
*/
@java.lang.Override
public boolean hasWebServer() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
* @return The webServer.
*/
@java.lang.Override
public org.finos.tracdap.config.WebServerConfig getWebServer() {
return webServer_ == null ? org.finos.tracdap.config.WebServerConfig.getDefaultInstance() : webServer_;
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
@java.lang.Override
public org.finos.tracdap.config.WebServerConfigOrBuilder getWebServerOrBuilder() {
return webServer_ == null ? org.finos.tracdap.config.WebServerConfig.getDefaultInstance() : webServer_;
}
public static final int GATEWAY_FIELD_NUMBER = 13;
private org.finos.tracdap.config.GatewayConfig gateway_;
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
* @return Whether the gateway field is set.
*/
@java.lang.Override
public boolean hasGateway() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
* @return The gateway.
*/
@java.lang.Override
public org.finos.tracdap.config.GatewayConfig getGateway() {
return gateway_ == null ? org.finos.tracdap.config.GatewayConfig.getDefaultInstance() : gateway_;
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
@java.lang.Override
public org.finos.tracdap.config.GatewayConfigOrBuilder getGatewayOrBuilder() {
return gateway_ == null ? org.finos.tracdap.config.GatewayConfig.getDefaultInstance() : gateway_;
}
public static final int SERVICES_FIELD_NUMBER = 4;
private static final class ServicesDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.finos.tracdap.config.ServiceConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_ServicesEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.finos.tracdap.config.ServiceConfig.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, org.finos.tracdap.config.ServiceConfig> services_;
private com.google.protobuf.MapField
internalGetServices() {
if (services_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ServicesDefaultEntryHolder.defaultEntry);
}
return services_;
}
public int getServicesCount() {
return internalGetServices().getMap().size();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public boolean containsServices(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetServices().getMap().containsKey(key);
}
/**
* Use {@link #getServicesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getServices() {
return getServicesMap();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public java.util.Map getServicesMap() {
return internalGetServices().getMap();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.ServiceConfig getServicesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.ServiceConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetServices().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public org.finos.tracdap.config.ServiceConfig getServicesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetServices().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int DEPLOYMENT_FIELD_NUMBER = 14;
private org.finos.tracdap.config.DeploymentConfig deployment_;
/**
* .tracdap.config.DeploymentConfig deployment = 14;
* @return Whether the deployment field is set.
*/
@java.lang.Override
public boolean hasDeployment() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
* @return The deployment.
*/
@java.lang.Override
public org.finos.tracdap.config.DeploymentConfig getDeployment() {
return deployment_ == null ? org.finos.tracdap.config.DeploymentConfig.getDefaultInstance() : deployment_;
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
@java.lang.Override
public org.finos.tracdap.config.DeploymentConfigOrBuilder getDeploymentOrBuilder() {
return deployment_ == null ? org.finos.tracdap.config.DeploymentConfig.getDefaultInstance() : deployment_;
}
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,
internalGetConfig(),
ConfigDefaultEntryHolder.defaultEntry,
1);
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getPlatformInfo());
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetServices(),
ServicesDefaultEntryHolder.defaultEntry,
4);
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getAuthentication());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(6, getMetadata());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(7, getStorage());
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetRepositories(),
RepositoriesDefaultEntryHolder.defaultEntry,
8);
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getExecutor());
}
com.google.protobuf.GeneratedMessage
.serializeStringMapTo(
output,
internalGetTenants(),
TenantsDefaultEntryHolder.defaultEntry,
10);
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(11, getWebServer());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(12, getJobCache());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(13, getGateway());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeMessage(14, getDeployment());
}
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
: internalGetConfig().getMap().entrySet()) {
com.google.protobuf.MapEntry
config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, config__);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPlatformInfo());
}
for (java.util.Map.Entry entry
: internalGetServices().getMap().entrySet()) {
com.google.protobuf.MapEntry
services__ = ServicesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, services__);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAuthentication());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getMetadata());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getStorage());
}
for (java.util.Map.Entry entry
: internalGetRepositories().getMap().entrySet()) {
com.google.protobuf.MapEntry
repositories__ = RepositoriesDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, repositories__);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getExecutor());
}
for (java.util.Map.Entry entry
: internalGetTenants().getMap().entrySet()) {
com.google.protobuf.MapEntry
tenants__ = TenantsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, tenants__);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getWebServer());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getJobCache());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getGateway());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, getDeployment());
}
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.PlatformConfig)) {
return super.equals(obj);
}
org.finos.tracdap.config.PlatformConfig other = (org.finos.tracdap.config.PlatformConfig) obj;
if (!internalGetConfig().equals(
other.internalGetConfig())) return false;
if (hasPlatformInfo() != other.hasPlatformInfo()) return false;
if (hasPlatformInfo()) {
if (!getPlatformInfo()
.equals(other.getPlatformInfo())) return false;
}
if (hasAuthentication() != other.hasAuthentication()) return false;
if (hasAuthentication()) {
if (!getAuthentication()
.equals(other.getAuthentication())) return false;
}
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata()
.equals(other.getMetadata())) return false;
}
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (!internalGetRepositories().equals(
other.internalGetRepositories())) return false;
if (hasExecutor() != other.hasExecutor()) return false;
if (hasExecutor()) {
if (!getExecutor()
.equals(other.getExecutor())) return false;
}
if (hasJobCache() != other.hasJobCache()) return false;
if (hasJobCache()) {
if (!getJobCache()
.equals(other.getJobCache())) return false;
}
if (!internalGetTenants().equals(
other.internalGetTenants())) return false;
if (hasWebServer() != other.hasWebServer()) return false;
if (hasWebServer()) {
if (!getWebServer()
.equals(other.getWebServer())) return false;
}
if (hasGateway() != other.hasGateway()) return false;
if (hasGateway()) {
if (!getGateway()
.equals(other.getGateway())) return false;
}
if (!internalGetServices().equals(
other.internalGetServices())) return false;
if (hasDeployment() != other.hasDeployment()) return false;
if (hasDeployment()) {
if (!getDeployment()
.equals(other.getDeployment())) 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 (!internalGetConfig().getMap().isEmpty()) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + internalGetConfig().hashCode();
}
if (hasPlatformInfo()) {
hash = (37 * hash) + PLATFORMINFO_FIELD_NUMBER;
hash = (53 * hash) + getPlatformInfo().hashCode();
}
if (hasAuthentication()) {
hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER;
hash = (53 * hash) + getAuthentication().hashCode();
}
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (!internalGetRepositories().getMap().isEmpty()) {
hash = (37 * hash) + REPOSITORIES_FIELD_NUMBER;
hash = (53 * hash) + internalGetRepositories().hashCode();
}
if (hasExecutor()) {
hash = (37 * hash) + EXECUTOR_FIELD_NUMBER;
hash = (53 * hash) + getExecutor().hashCode();
}
if (hasJobCache()) {
hash = (37 * hash) + JOBCACHE_FIELD_NUMBER;
hash = (53 * hash) + getJobCache().hashCode();
}
if (!internalGetTenants().getMap().isEmpty()) {
hash = (37 * hash) + TENANTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTenants().hashCode();
}
if (hasWebServer()) {
hash = (37 * hash) + WEBSERVER_FIELD_NUMBER;
hash = (53 * hash) + getWebServer().hashCode();
}
if (hasGateway()) {
hash = (37 * hash) + GATEWAY_FIELD_NUMBER;
hash = (53 * hash) + getGateway().hashCode();
}
if (!internalGetServices().getMap().isEmpty()) {
hash = (37 * hash) + SERVICES_FIELD_NUMBER;
hash = (53 * hash) + internalGetServices().hashCode();
}
if (hasDeployment()) {
hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER;
hash = (53 * hash) + getDeployment().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.finos.tracdap.config.PlatformConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.PlatformConfig 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.PlatformConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.PlatformConfig 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.PlatformConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.finos.tracdap.config.PlatformConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.finos.tracdap.config.PlatformConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.PlatformConfig 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.PlatformConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.PlatformConfig 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.PlatformConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.finos.tracdap.config.PlatformConfig 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.PlatformConfig 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.PlatformConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:tracdap.config.PlatformConfig)
org.finos.tracdap.config.PlatformConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetConfig();
case 8:
return internalGetRepositories();
case 10:
return internalGetTenants();
case 4:
return internalGetServices();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 1:
return internalGetMutableConfig();
case 8:
return internalGetMutableRepositories();
case 10:
return internalGetMutableTenants();
case 4:
return internalGetMutableServices();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.finos.tracdap.config.PlatformConfig.class, org.finos.tracdap.config.PlatformConfig.Builder.class);
}
// Construct using org.finos.tracdap.config.PlatformConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage
.alwaysUseFieldBuilders) {
getPlatformInfoFieldBuilder();
getAuthenticationFieldBuilder();
getMetadataFieldBuilder();
getStorageFieldBuilder();
getExecutorFieldBuilder();
getJobCacheFieldBuilder();
getWebServerFieldBuilder();
getGatewayFieldBuilder();
getDeploymentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
internalGetMutableConfig().clear();
platformInfo_ = null;
if (platformInfoBuilder_ != null) {
platformInfoBuilder_.dispose();
platformInfoBuilder_ = null;
}
authentication_ = null;
if (authenticationBuilder_ != null) {
authenticationBuilder_.dispose();
authenticationBuilder_ = null;
}
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
storage_ = null;
if (storageBuilder_ != null) {
storageBuilder_.dispose();
storageBuilder_ = null;
}
internalGetMutableRepositories().clear();
executor_ = null;
if (executorBuilder_ != null) {
executorBuilder_.dispose();
executorBuilder_ = null;
}
jobCache_ = null;
if (jobCacheBuilder_ != null) {
jobCacheBuilder_.dispose();
jobCacheBuilder_ = null;
}
internalGetMutableTenants().clear();
webServer_ = null;
if (webServerBuilder_ != null) {
webServerBuilder_.dispose();
webServerBuilder_ = null;
}
gateway_ = null;
if (gatewayBuilder_ != null) {
gatewayBuilder_.dispose();
gatewayBuilder_ = null;
}
internalGetMutableServices().clear();
deployment_ = null;
if (deploymentBuilder_ != null) {
deploymentBuilder_.dispose();
deploymentBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.finos.tracdap.config.Platform.internal_static_tracdap_config_PlatformConfig_descriptor;
}
@java.lang.Override
public org.finos.tracdap.config.PlatformConfig getDefaultInstanceForType() {
return org.finos.tracdap.config.PlatformConfig.getDefaultInstance();
}
@java.lang.Override
public org.finos.tracdap.config.PlatformConfig build() {
org.finos.tracdap.config.PlatformConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.finos.tracdap.config.PlatformConfig buildPartial() {
org.finos.tracdap.config.PlatformConfig result = new org.finos.tracdap.config.PlatformConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.finos.tracdap.config.PlatformConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.config_ = internalGetConfig();
result.config_.makeImmutable();
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.platformInfo_ = platformInfoBuilder_ == null
? platformInfo_
: platformInfoBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.authentication_ = authenticationBuilder_ == null
? authentication_
: authenticationBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.metadata_ = metadataBuilder_ == null
? metadata_
: metadataBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.storage_ = storageBuilder_ == null
? storage_
: storageBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.repositories_ = internalGetRepositories().build(RepositoriesDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.executor_ = executorBuilder_ == null
? executor_
: executorBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.jobCache_ = jobCacheBuilder_ == null
? jobCache_
: jobCacheBuilder_.build();
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.tenants_ = internalGetTenants().build(TenantsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.webServer_ = webServerBuilder_ == null
? webServer_
: webServerBuilder_.build();
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.gateway_ = gatewayBuilder_ == null
? gateway_
: gatewayBuilder_.build();
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.services_ = internalGetServices().build(ServicesDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.deployment_ = deploymentBuilder_ == null
? deployment_
: deploymentBuilder_.build();
to_bitField0_ |= 0x00000100;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.finos.tracdap.config.PlatformConfig) {
return mergeFrom((org.finos.tracdap.config.PlatformConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.finos.tracdap.config.PlatformConfig other) {
if (other == org.finos.tracdap.config.PlatformConfig.getDefaultInstance()) return this;
internalGetMutableConfig().mergeFrom(
other.internalGetConfig());
bitField0_ |= 0x00000001;
if (other.hasPlatformInfo()) {
mergePlatformInfo(other.getPlatformInfo());
}
if (other.hasAuthentication()) {
mergeAuthentication(other.getAuthentication());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
internalGetMutableRepositories().mergeFrom(
other.internalGetRepositories());
bitField0_ |= 0x00000020;
if (other.hasExecutor()) {
mergeExecutor(other.getExecutor());
}
if (other.hasJobCache()) {
mergeJobCache(other.getJobCache());
}
internalGetMutableTenants().mergeFrom(
other.internalGetTenants());
bitField0_ |= 0x00000100;
if (other.hasWebServer()) {
mergeWebServer(other.getWebServer());
}
if (other.hasGateway()) {
mergeGateway(other.getGateway());
}
internalGetMutableServices().mergeFrom(
other.internalGetServices());
bitField0_ |= 0x00000800;
if (other.hasDeployment()) {
mergeDeployment(other.getDeployment());
}
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
config__ = input.readMessage(
ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableConfig().getMutableMap().put(
config__.getKey(), config__.getValue());
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
input.readMessage(
getPlatformInfoFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 34: {
com.google.protobuf.MapEntry
services__ = input.readMessage(
ServicesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableServices().ensureBuilderMap().put(
services__.getKey(), services__.getValue());
bitField0_ |= 0x00000800;
break;
} // case 34
case 42: {
input.readMessage(
getAuthenticationFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 42
case 50: {
input.readMessage(
getMetadataFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 50
case 58: {
input.readMessage(
getStorageFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case 58
case 66: {
com.google.protobuf.MapEntry
repositories__ = input.readMessage(
RepositoriesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableRepositories().ensureBuilderMap().put(
repositories__.getKey(), repositories__.getValue());
bitField0_ |= 0x00000020;
break;
} // case 66
case 74: {
input.readMessage(
getExecutorFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 74
case 82: {
com.google.protobuf.MapEntry
tenants__ = input.readMessage(
TenantsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
internalGetMutableTenants().ensureBuilderMap().put(
tenants__.getKey(), tenants__.getValue());
bitField0_ |= 0x00000100;
break;
} // case 82
case 90: {
input.readMessage(
getWebServerFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000200;
break;
} // case 90
case 98: {
input.readMessage(
getJobCacheFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 98
case 106: {
input.readMessage(
getGatewayFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000400;
break;
} // case 106
case 114: {
input.readMessage(
getDeploymentFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 114
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 com.google.protobuf.MapField<
java.lang.String, java.lang.String> config_;
private com.google.protobuf.MapField
internalGetConfig() {
if (config_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
return config_;
}
private com.google.protobuf.MapField
internalGetMutableConfig() {
if (config_ == null) {
config_ = com.google.protobuf.MapField.newMapField(
ConfigDefaultEntryHolder.defaultEntry);
}
if (!config_.isMutable()) {
config_ = config_.copy();
}
bitField0_ |= 0x00000001;
onChanged();
return config_;
}
public int getConfigCount() {
return internalGetConfig().getMap().size();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public boolean containsConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetConfig().getMap().containsKey(key);
}
/**
* Use {@link #getConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getConfig() {
return getConfigMap();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public java.util.Map getConfigMap() {
return internalGetConfig().getMap();
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public /* nullable */
java.lang.String getConfigOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, string> config = 1;
*/
@java.lang.Override
public java.lang.String getConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutableConfig().getMutableMap()
.clear();
return this;
}
/**
* map<string, string> config = 1;
*/
public Builder removeConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableConfig().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableConfig() {
bitField0_ |= 0x00000001;
return internalGetMutableConfig().getMutableMap();
}
/**
* map<string, string> config = 1;
*/
public Builder putConfig(
java.lang.String key,
java.lang.String value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableConfig().getMutableMap()
.put(key, value);
bitField0_ |= 0x00000001;
return this;
}
/**
* map<string, string> config = 1;
*/
public Builder putAllConfig(
java.util.Map values) {
internalGetMutableConfig().getMutableMap()
.putAll(values);
bitField0_ |= 0x00000001;
return this;
}
private org.finos.tracdap.config.PlatformInfo platformInfo_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PlatformInfo, org.finos.tracdap.config.PlatformInfo.Builder, org.finos.tracdap.config.PlatformInfoOrBuilder> platformInfoBuilder_;
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
* @return Whether the platformInfo field is set.
*/
public boolean hasPlatformInfo() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
* @return The platformInfo.
*/
public org.finos.tracdap.config.PlatformInfo getPlatformInfo() {
if (platformInfoBuilder_ == null) {
return platformInfo_ == null ? org.finos.tracdap.config.PlatformInfo.getDefaultInstance() : platformInfo_;
} else {
return platformInfoBuilder_.getMessage();
}
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public Builder setPlatformInfo(org.finos.tracdap.config.PlatformInfo value) {
if (platformInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
platformInfo_ = value;
} else {
platformInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public Builder setPlatformInfo(
org.finos.tracdap.config.PlatformInfo.Builder builderForValue) {
if (platformInfoBuilder_ == null) {
platformInfo_ = builderForValue.build();
} else {
platformInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public Builder mergePlatformInfo(org.finos.tracdap.config.PlatformInfo value) {
if (platformInfoBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
platformInfo_ != null &&
platformInfo_ != org.finos.tracdap.config.PlatformInfo.getDefaultInstance()) {
getPlatformInfoBuilder().mergeFrom(value);
} else {
platformInfo_ = value;
}
} else {
platformInfoBuilder_.mergeFrom(value);
}
if (platformInfo_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public Builder clearPlatformInfo() {
bitField0_ = (bitField0_ & ~0x00000002);
platformInfo_ = null;
if (platformInfoBuilder_ != null) {
platformInfoBuilder_.dispose();
platformInfoBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public org.finos.tracdap.config.PlatformInfo.Builder getPlatformInfoBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPlatformInfoFieldBuilder().getBuilder();
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
public org.finos.tracdap.config.PlatformInfoOrBuilder getPlatformInfoOrBuilder() {
if (platformInfoBuilder_ != null) {
return platformInfoBuilder_.getMessageOrBuilder();
} else {
return platformInfo_ == null ?
org.finos.tracdap.config.PlatformInfo.getDefaultInstance() : platformInfo_;
}
}
/**
* .tracdap.config.PlatformInfo platformInfo = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PlatformInfo, org.finos.tracdap.config.PlatformInfo.Builder, org.finos.tracdap.config.PlatformInfoOrBuilder>
getPlatformInfoFieldBuilder() {
if (platformInfoBuilder_ == null) {
platformInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PlatformInfo, org.finos.tracdap.config.PlatformInfo.Builder, org.finos.tracdap.config.PlatformInfoOrBuilder>(
getPlatformInfo(),
getParentForChildren(),
isClean());
platformInfo_ = null;
}
return platformInfoBuilder_;
}
private org.finos.tracdap.config.AuthenticationConfig authentication_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.AuthenticationConfig, org.finos.tracdap.config.AuthenticationConfig.Builder, org.finos.tracdap.config.AuthenticationConfigOrBuilder> authenticationBuilder_;
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
* @return Whether the authentication field is set.
*/
public boolean hasAuthentication() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
* @return The authentication.
*/
public org.finos.tracdap.config.AuthenticationConfig getAuthentication() {
if (authenticationBuilder_ == null) {
return authentication_ == null ? org.finos.tracdap.config.AuthenticationConfig.getDefaultInstance() : authentication_;
} else {
return authenticationBuilder_.getMessage();
}
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public Builder setAuthentication(org.finos.tracdap.config.AuthenticationConfig value) {
if (authenticationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
authentication_ = value;
} else {
authenticationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public Builder setAuthentication(
org.finos.tracdap.config.AuthenticationConfig.Builder builderForValue) {
if (authenticationBuilder_ == null) {
authentication_ = builderForValue.build();
} else {
authenticationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public Builder mergeAuthentication(org.finos.tracdap.config.AuthenticationConfig value) {
if (authenticationBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
authentication_ != null &&
authentication_ != org.finos.tracdap.config.AuthenticationConfig.getDefaultInstance()) {
getAuthenticationBuilder().mergeFrom(value);
} else {
authentication_ = value;
}
} else {
authenticationBuilder_.mergeFrom(value);
}
if (authentication_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public Builder clearAuthentication() {
bitField0_ = (bitField0_ & ~0x00000004);
authentication_ = null;
if (authenticationBuilder_ != null) {
authenticationBuilder_.dispose();
authenticationBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public org.finos.tracdap.config.AuthenticationConfig.Builder getAuthenticationBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getAuthenticationFieldBuilder().getBuilder();
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
public org.finos.tracdap.config.AuthenticationConfigOrBuilder getAuthenticationOrBuilder() {
if (authenticationBuilder_ != null) {
return authenticationBuilder_.getMessageOrBuilder();
} else {
return authentication_ == null ?
org.finos.tracdap.config.AuthenticationConfig.getDefaultInstance() : authentication_;
}
}
/**
* .tracdap.config.AuthenticationConfig authentication = 5;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.AuthenticationConfig, org.finos.tracdap.config.AuthenticationConfig.Builder, org.finos.tracdap.config.AuthenticationConfigOrBuilder>
getAuthenticationFieldBuilder() {
if (authenticationBuilder_ == null) {
authenticationBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.AuthenticationConfig, org.finos.tracdap.config.AuthenticationConfig.Builder, org.finos.tracdap.config.AuthenticationConfigOrBuilder>(
getAuthentication(),
getParentForChildren(),
isClean());
authentication_ = null;
}
return authenticationBuilder_;
}
private org.finos.tracdap.config.MetadataConfig metadata_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.MetadataConfig, org.finos.tracdap.config.MetadataConfig.Builder, org.finos.tracdap.config.MetadataConfigOrBuilder> metadataBuilder_;
/**
* .tracdap.config.MetadataConfig metadata = 6;
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
* @return The metadata.
*/
public org.finos.tracdap.config.MetadataConfig getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null ? org.finos.tracdap.config.MetadataConfig.getDefaultInstance() : metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public Builder setMetadata(org.finos.tracdap.config.MetadataConfig value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public Builder setMetadata(
org.finos.tracdap.config.MetadataConfig.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public Builder mergeMetadata(org.finos.tracdap.config.MetadataConfig value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
metadata_ != null &&
metadata_ != org.finos.tracdap.config.MetadataConfig.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000008);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public org.finos.tracdap.config.MetadataConfig.Builder getMetadataBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
public org.finos.tracdap.config.MetadataConfigOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null ?
org.finos.tracdap.config.MetadataConfig.getDefaultInstance() : metadata_;
}
}
/**
* .tracdap.config.MetadataConfig metadata = 6;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.MetadataConfig, org.finos.tracdap.config.MetadataConfig.Builder, org.finos.tracdap.config.MetadataConfigOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.MetadataConfig, org.finos.tracdap.config.MetadataConfig.Builder, org.finos.tracdap.config.MetadataConfigOrBuilder>(
getMetadata(),
getParentForChildren(),
isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private org.finos.tracdap.config.StorageConfig storage_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.StorageConfig, org.finos.tracdap.config.StorageConfig.Builder, org.finos.tracdap.config.StorageConfigOrBuilder> storageBuilder_;
/**
* .tracdap.config.StorageConfig storage = 7;
* @return Whether the storage field is set.
*/
public boolean hasStorage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* .tracdap.config.StorageConfig storage = 7;
* @return The storage.
*/
public org.finos.tracdap.config.StorageConfig getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? org.finos.tracdap.config.StorageConfig.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public Builder setStorage(org.finos.tracdap.config.StorageConfig value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
} else {
storageBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public Builder setStorage(
org.finos.tracdap.config.StorageConfig.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public Builder mergeStorage(org.finos.tracdap.config.StorageConfig value) {
if (storageBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
storage_ != null &&
storage_ != org.finos.tracdap.config.StorageConfig.getDefaultInstance()) {
getStorageBuilder().mergeFrom(value);
} else {
storage_ = value;
}
} else {
storageBuilder_.mergeFrom(value);
}
if (storage_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public Builder clearStorage() {
bitField0_ = (bitField0_ & ~0x00000010);
storage_ = null;
if (storageBuilder_ != null) {
storageBuilder_.dispose();
storageBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public org.finos.tracdap.config.StorageConfig.Builder getStorageBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
public org.finos.tracdap.config.StorageConfigOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
org.finos.tracdap.config.StorageConfig.getDefaultInstance() : storage_;
}
}
/**
* .tracdap.config.StorageConfig storage = 7;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.StorageConfig, org.finos.tracdap.config.StorageConfig.Builder, org.finos.tracdap.config.StorageConfigOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.StorageConfig, org.finos.tracdap.config.StorageConfig.Builder, org.finos.tracdap.config.StorageConfigOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private static final class RepositoriesConverter 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 RepositoriesDefaultEntryHolder.defaultEntry;
}
};
private static final RepositoriesConverter repositoriesConverter = new RepositoriesConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.config.PluginConfigOrBuilder, org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder> repositories_;
private com.google.protobuf.MapFieldBuilder
internalGetRepositories() {
if (repositories_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(repositoriesConverter);
}
return repositories_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableRepositories() {
if (repositories_ == null) {
repositories_ = new com.google.protobuf.MapFieldBuilder<>(repositoriesConverter);
}
bitField0_ |= 0x00000020;
onChanged();
return repositories_;
}
public int getRepositoriesCount() {
return internalGetRepositories().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public boolean containsRepositories(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetRepositories().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getRepositoriesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getRepositories() {
return getRepositoriesMap();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public java.util.Map getRepositoriesMap() {
return internalGetRepositories().getImmutableMap();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.PluginConfig getRepositoriesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.PluginConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableRepositories().ensureBuilderMap();
return map.containsKey(key) ? repositoriesConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
@java.lang.Override
public org.finos.tracdap.config.PluginConfig getRepositoriesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableRepositories().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return repositoriesConverter.build(map.get(key));
}
public Builder clearRepositories() {
bitField0_ = (bitField0_ & ~0x00000020);
internalGetMutableRepositories().clear();
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
public Builder removeRepositories(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableRepositories().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableRepositories() {
bitField0_ |= 0x00000020;
return internalGetMutableRepositories().ensureMessageMap();
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
public Builder putRepositories(
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"); }
internalGetMutableRepositories().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000020;
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
public Builder putAllRepositories(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableRepositories().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000020;
return this;
}
/**
* map<string, .tracdap.config.PluginConfig> repositories = 8;
*/
public org.finos.tracdap.config.PluginConfig.Builder putRepositoriesBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableRepositories().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 org.finos.tracdap.config.PluginConfig executor_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder> executorBuilder_;
/**
* .tracdap.config.PluginConfig executor = 9;
* @return Whether the executor field is set.
*/
public boolean hasExecutor() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* .tracdap.config.PluginConfig executor = 9;
* @return The executor.
*/
public org.finos.tracdap.config.PluginConfig getExecutor() {
if (executorBuilder_ == null) {
return executor_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : executor_;
} else {
return executorBuilder_.getMessage();
}
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public Builder setExecutor(org.finos.tracdap.config.PluginConfig value) {
if (executorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
executor_ = value;
} else {
executorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public Builder setExecutor(
org.finos.tracdap.config.PluginConfig.Builder builderForValue) {
if (executorBuilder_ == null) {
executor_ = builderForValue.build();
} else {
executorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public Builder mergeExecutor(org.finos.tracdap.config.PluginConfig value) {
if (executorBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
executor_ != null &&
executor_ != org.finos.tracdap.config.PluginConfig.getDefaultInstance()) {
getExecutorBuilder().mergeFrom(value);
} else {
executor_ = value;
}
} else {
executorBuilder_.mergeFrom(value);
}
if (executor_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public Builder clearExecutor() {
bitField0_ = (bitField0_ & ~0x00000040);
executor_ = null;
if (executorBuilder_ != null) {
executorBuilder_.dispose();
executorBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public org.finos.tracdap.config.PluginConfig.Builder getExecutorBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getExecutorFieldBuilder().getBuilder();
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
public org.finos.tracdap.config.PluginConfigOrBuilder getExecutorOrBuilder() {
if (executorBuilder_ != null) {
return executorBuilder_.getMessageOrBuilder();
} else {
return executor_ == null ?
org.finos.tracdap.config.PluginConfig.getDefaultInstance() : executor_;
}
}
/**
* .tracdap.config.PluginConfig executor = 9;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder>
getExecutorFieldBuilder() {
if (executorBuilder_ == null) {
executorBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder>(
getExecutor(),
getParentForChildren(),
isClean());
executor_ = null;
}
return executorBuilder_;
}
private org.finos.tracdap.config.PluginConfig jobCache_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder> jobCacheBuilder_;
/**
* .tracdap.config.PluginConfig jobCache = 12;
* @return Whether the jobCache field is set.
*/
public boolean hasJobCache() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
* @return The jobCache.
*/
public org.finos.tracdap.config.PluginConfig getJobCache() {
if (jobCacheBuilder_ == null) {
return jobCache_ == null ? org.finos.tracdap.config.PluginConfig.getDefaultInstance() : jobCache_;
} else {
return jobCacheBuilder_.getMessage();
}
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public Builder setJobCache(org.finos.tracdap.config.PluginConfig value) {
if (jobCacheBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jobCache_ = value;
} else {
jobCacheBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public Builder setJobCache(
org.finos.tracdap.config.PluginConfig.Builder builderForValue) {
if (jobCacheBuilder_ == null) {
jobCache_ = builderForValue.build();
} else {
jobCacheBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public Builder mergeJobCache(org.finos.tracdap.config.PluginConfig value) {
if (jobCacheBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
jobCache_ != null &&
jobCache_ != org.finos.tracdap.config.PluginConfig.getDefaultInstance()) {
getJobCacheBuilder().mergeFrom(value);
} else {
jobCache_ = value;
}
} else {
jobCacheBuilder_.mergeFrom(value);
}
if (jobCache_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public Builder clearJobCache() {
bitField0_ = (bitField0_ & ~0x00000080);
jobCache_ = null;
if (jobCacheBuilder_ != null) {
jobCacheBuilder_.dispose();
jobCacheBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public org.finos.tracdap.config.PluginConfig.Builder getJobCacheBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getJobCacheFieldBuilder().getBuilder();
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
public org.finos.tracdap.config.PluginConfigOrBuilder getJobCacheOrBuilder() {
if (jobCacheBuilder_ != null) {
return jobCacheBuilder_.getMessageOrBuilder();
} else {
return jobCache_ == null ?
org.finos.tracdap.config.PluginConfig.getDefaultInstance() : jobCache_;
}
}
/**
* .tracdap.config.PluginConfig jobCache = 12;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder>
getJobCacheFieldBuilder() {
if (jobCacheBuilder_ == null) {
jobCacheBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.PluginConfig, org.finos.tracdap.config.PluginConfig.Builder, org.finos.tracdap.config.PluginConfigOrBuilder>(
getJobCache(),
getParentForChildren(),
isClean());
jobCache_ = null;
}
return jobCacheBuilder_;
}
private static final class TenantsConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.config.TenantConfig build(org.finos.tracdap.config.TenantConfigOrBuilder val) {
if (val instanceof org.finos.tracdap.config.TenantConfig) { return (org.finos.tracdap.config.TenantConfig) val; }
return ((org.finos.tracdap.config.TenantConfig.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return TenantsDefaultEntryHolder.defaultEntry;
}
};
private static final TenantsConverter tenantsConverter = new TenantsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.config.TenantConfigOrBuilder, org.finos.tracdap.config.TenantConfig, org.finos.tracdap.config.TenantConfig.Builder> tenants_;
private com.google.protobuf.MapFieldBuilder
internalGetTenants() {
if (tenants_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(tenantsConverter);
}
return tenants_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableTenants() {
if (tenants_ == null) {
tenants_ = new com.google.protobuf.MapFieldBuilder<>(tenantsConverter);
}
bitField0_ |= 0x00000100;
onChanged();
return tenants_;
}
public int getTenantsCount() {
return internalGetTenants().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public boolean containsTenants(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetTenants().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getTenantsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getTenants() {
return getTenantsMap();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public java.util.Map getTenantsMap() {
return internalGetTenants().getImmutableMap();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.TenantConfig getTenantsOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.TenantConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableTenants().ensureBuilderMap();
return map.containsKey(key) ? tenantsConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
@java.lang.Override
public org.finos.tracdap.config.TenantConfig getTenantsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableTenants().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return tenantsConverter.build(map.get(key));
}
public Builder clearTenants() {
bitField0_ = (bitField0_ & ~0x00000100);
internalGetMutableTenants().clear();
return this;
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
public Builder removeTenants(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableTenants().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableTenants() {
bitField0_ |= 0x00000100;
return internalGetMutableTenants().ensureMessageMap();
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
public Builder putTenants(
java.lang.String key,
org.finos.tracdap.config.TenantConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableTenants().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000100;
return this;
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
public Builder putAllTenants(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableTenants().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000100;
return this;
}
/**
* map<string, .tracdap.config.TenantConfig> tenants = 10;
*/
public org.finos.tracdap.config.TenantConfig.Builder putTenantsBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableTenants().ensureBuilderMap();
org.finos.tracdap.config.TenantConfigOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.config.TenantConfig.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.config.TenantConfig) {
entry = ((org.finos.tracdap.config.TenantConfig) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.config.TenantConfig.Builder) entry;
}
private org.finos.tracdap.config.WebServerConfig webServer_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.WebServerConfig, org.finos.tracdap.config.WebServerConfig.Builder, org.finos.tracdap.config.WebServerConfigOrBuilder> webServerBuilder_;
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
* @return Whether the webServer field is set.
*/
public boolean hasWebServer() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
* @return The webServer.
*/
public org.finos.tracdap.config.WebServerConfig getWebServer() {
if (webServerBuilder_ == null) {
return webServer_ == null ? org.finos.tracdap.config.WebServerConfig.getDefaultInstance() : webServer_;
} else {
return webServerBuilder_.getMessage();
}
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public Builder setWebServer(org.finos.tracdap.config.WebServerConfig value) {
if (webServerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
webServer_ = value;
} else {
webServerBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public Builder setWebServer(
org.finos.tracdap.config.WebServerConfig.Builder builderForValue) {
if (webServerBuilder_ == null) {
webServer_ = builderForValue.build();
} else {
webServerBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public Builder mergeWebServer(org.finos.tracdap.config.WebServerConfig value) {
if (webServerBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
webServer_ != null &&
webServer_ != org.finos.tracdap.config.WebServerConfig.getDefaultInstance()) {
getWebServerBuilder().mergeFrom(value);
} else {
webServer_ = value;
}
} else {
webServerBuilder_.mergeFrom(value);
}
if (webServer_ != null) {
bitField0_ |= 0x00000200;
onChanged();
}
return this;
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public Builder clearWebServer() {
bitField0_ = (bitField0_ & ~0x00000200);
webServer_ = null;
if (webServerBuilder_ != null) {
webServerBuilder_.dispose();
webServerBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public org.finos.tracdap.config.WebServerConfig.Builder getWebServerBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getWebServerFieldBuilder().getBuilder();
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
public org.finos.tracdap.config.WebServerConfigOrBuilder getWebServerOrBuilder() {
if (webServerBuilder_ != null) {
return webServerBuilder_.getMessageOrBuilder();
} else {
return webServer_ == null ?
org.finos.tracdap.config.WebServerConfig.getDefaultInstance() : webServer_;
}
}
/**
* optional .tracdap.config.WebServerConfig webServer = 11;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.WebServerConfig, org.finos.tracdap.config.WebServerConfig.Builder, org.finos.tracdap.config.WebServerConfigOrBuilder>
getWebServerFieldBuilder() {
if (webServerBuilder_ == null) {
webServerBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.WebServerConfig, org.finos.tracdap.config.WebServerConfig.Builder, org.finos.tracdap.config.WebServerConfigOrBuilder>(
getWebServer(),
getParentForChildren(),
isClean());
webServer_ = null;
}
return webServerBuilder_;
}
private org.finos.tracdap.config.GatewayConfig gateway_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.GatewayConfig, org.finos.tracdap.config.GatewayConfig.Builder, org.finos.tracdap.config.GatewayConfigOrBuilder> gatewayBuilder_;
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
* @return Whether the gateway field is set.
*/
public boolean hasGateway() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
* @return The gateway.
*/
public org.finos.tracdap.config.GatewayConfig getGateway() {
if (gatewayBuilder_ == null) {
return gateway_ == null ? org.finos.tracdap.config.GatewayConfig.getDefaultInstance() : gateway_;
} else {
return gatewayBuilder_.getMessage();
}
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public Builder setGateway(org.finos.tracdap.config.GatewayConfig value) {
if (gatewayBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gateway_ = value;
} else {
gatewayBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public Builder setGateway(
org.finos.tracdap.config.GatewayConfig.Builder builderForValue) {
if (gatewayBuilder_ == null) {
gateway_ = builderForValue.build();
} else {
gatewayBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public Builder mergeGateway(org.finos.tracdap.config.GatewayConfig value) {
if (gatewayBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
gateway_ != null &&
gateway_ != org.finos.tracdap.config.GatewayConfig.getDefaultInstance()) {
getGatewayBuilder().mergeFrom(value);
} else {
gateway_ = value;
}
} else {
gatewayBuilder_.mergeFrom(value);
}
if (gateway_ != null) {
bitField0_ |= 0x00000400;
onChanged();
}
return this;
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public Builder clearGateway() {
bitField0_ = (bitField0_ & ~0x00000400);
gateway_ = null;
if (gatewayBuilder_ != null) {
gatewayBuilder_.dispose();
gatewayBuilder_ = null;
}
onChanged();
return this;
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public org.finos.tracdap.config.GatewayConfig.Builder getGatewayBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getGatewayFieldBuilder().getBuilder();
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
public org.finos.tracdap.config.GatewayConfigOrBuilder getGatewayOrBuilder() {
if (gatewayBuilder_ != null) {
return gatewayBuilder_.getMessageOrBuilder();
} else {
return gateway_ == null ?
org.finos.tracdap.config.GatewayConfig.getDefaultInstance() : gateway_;
}
}
/**
* optional .tracdap.config.GatewayConfig gateway = 13;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.GatewayConfig, org.finos.tracdap.config.GatewayConfig.Builder, org.finos.tracdap.config.GatewayConfigOrBuilder>
getGatewayFieldBuilder() {
if (gatewayBuilder_ == null) {
gatewayBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.GatewayConfig, org.finos.tracdap.config.GatewayConfig.Builder, org.finos.tracdap.config.GatewayConfigOrBuilder>(
getGateway(),
getParentForChildren(),
isClean());
gateway_ = null;
}
return gatewayBuilder_;
}
private static final class ServicesConverter implements com.google.protobuf.MapFieldBuilder.Converter {
@java.lang.Override
public org.finos.tracdap.config.ServiceConfig build(org.finos.tracdap.config.ServiceConfigOrBuilder val) {
if (val instanceof org.finos.tracdap.config.ServiceConfig) { return (org.finos.tracdap.config.ServiceConfig) val; }
return ((org.finos.tracdap.config.ServiceConfig.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry defaultEntry() {
return ServicesDefaultEntryHolder.defaultEntry;
}
};
private static final ServicesConverter servicesConverter = new ServicesConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String, org.finos.tracdap.config.ServiceConfigOrBuilder, org.finos.tracdap.config.ServiceConfig, org.finos.tracdap.config.ServiceConfig.Builder> services_;
private com.google.protobuf.MapFieldBuilder
internalGetServices() {
if (services_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(servicesConverter);
}
return services_;
}
private com.google.protobuf.MapFieldBuilder
internalGetMutableServices() {
if (services_ == null) {
services_ = new com.google.protobuf.MapFieldBuilder<>(servicesConverter);
}
bitField0_ |= 0x00000800;
onChanged();
return services_;
}
public int getServicesCount() {
return internalGetServices().ensureBuilderMap().size();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public boolean containsServices(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetServices().ensureBuilderMap().containsKey(key);
}
/**
* Use {@link #getServicesMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getServices() {
return getServicesMap();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public java.util.Map getServicesMap() {
return internalGetServices().getImmutableMap();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public /* nullable */
org.finos.tracdap.config.ServiceConfig getServicesOrDefault(
java.lang.String key,
/* nullable */
org.finos.tracdap.config.ServiceConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableServices().ensureBuilderMap();
return map.containsKey(key) ? servicesConverter.build(map.get(key)) : defaultValue;
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
@java.lang.Override
public org.finos.tracdap.config.ServiceConfig getServicesOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map = internalGetMutableServices().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return servicesConverter.build(map.get(key));
}
public Builder clearServices() {
bitField0_ = (bitField0_ & ~0x00000800);
internalGetMutableServices().clear();
return this;
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
public Builder removeServices(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableServices().ensureBuilderMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableServices() {
bitField0_ |= 0x00000800;
return internalGetMutableServices().ensureMessageMap();
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
public Builder putServices(
java.lang.String key,
org.finos.tracdap.config.ServiceConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) { throw new NullPointerException("map value"); }
internalGetMutableServices().ensureBuilderMap()
.put(key, value);
bitField0_ |= 0x00000800;
return this;
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
public Builder putAllServices(
java.util.Map values) {
for (java.util.Map.Entry e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableServices().ensureBuilderMap()
.putAll(values);
bitField0_ |= 0x00000800;
return this;
}
/**
* map<string, .tracdap.config.ServiceConfig> services = 4;
*/
public org.finos.tracdap.config.ServiceConfig.Builder putServicesBuilderIfAbsent(
java.lang.String key) {
java.util.Map builderMap = internalGetMutableServices().ensureBuilderMap();
org.finos.tracdap.config.ServiceConfigOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = org.finos.tracdap.config.ServiceConfig.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof org.finos.tracdap.config.ServiceConfig) {
entry = ((org.finos.tracdap.config.ServiceConfig) entry).toBuilder();
builderMap.put(key, entry);
}
return (org.finos.tracdap.config.ServiceConfig.Builder) entry;
}
private org.finos.tracdap.config.DeploymentConfig deployment_;
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.DeploymentConfig, org.finos.tracdap.config.DeploymentConfig.Builder, org.finos.tracdap.config.DeploymentConfigOrBuilder> deploymentBuilder_;
/**
* .tracdap.config.DeploymentConfig deployment = 14;
* @return Whether the deployment field is set.
*/
public boolean hasDeployment() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
* @return The deployment.
*/
public org.finos.tracdap.config.DeploymentConfig getDeployment() {
if (deploymentBuilder_ == null) {
return deployment_ == null ? org.finos.tracdap.config.DeploymentConfig.getDefaultInstance() : deployment_;
} else {
return deploymentBuilder_.getMessage();
}
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public Builder setDeployment(org.finos.tracdap.config.DeploymentConfig value) {
if (deploymentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deployment_ = value;
} else {
deploymentBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public Builder setDeployment(
org.finos.tracdap.config.DeploymentConfig.Builder builderForValue) {
if (deploymentBuilder_ == null) {
deployment_ = builderForValue.build();
} else {
deploymentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public Builder mergeDeployment(org.finos.tracdap.config.DeploymentConfig value) {
if (deploymentBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
deployment_ != null &&
deployment_ != org.finos.tracdap.config.DeploymentConfig.getDefaultInstance()) {
getDeploymentBuilder().mergeFrom(value);
} else {
deployment_ = value;
}
} else {
deploymentBuilder_.mergeFrom(value);
}
if (deployment_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public Builder clearDeployment() {
bitField0_ = (bitField0_ & ~0x00001000);
deployment_ = null;
if (deploymentBuilder_ != null) {
deploymentBuilder_.dispose();
deploymentBuilder_ = null;
}
onChanged();
return this;
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public org.finos.tracdap.config.DeploymentConfig.Builder getDeploymentBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getDeploymentFieldBuilder().getBuilder();
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
public org.finos.tracdap.config.DeploymentConfigOrBuilder getDeploymentOrBuilder() {
if (deploymentBuilder_ != null) {
return deploymentBuilder_.getMessageOrBuilder();
} else {
return deployment_ == null ?
org.finos.tracdap.config.DeploymentConfig.getDefaultInstance() : deployment_;
}
}
/**
* .tracdap.config.DeploymentConfig deployment = 14;
*/
private com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.DeploymentConfig, org.finos.tracdap.config.DeploymentConfig.Builder, org.finos.tracdap.config.DeploymentConfigOrBuilder>
getDeploymentFieldBuilder() {
if (deploymentBuilder_ == null) {
deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.finos.tracdap.config.DeploymentConfig, org.finos.tracdap.config.DeploymentConfig.Builder, org.finos.tracdap.config.DeploymentConfigOrBuilder>(
getDeployment(),
getParentForChildren(),
isClean());
deployment_ = null;
}
return deploymentBuilder_;
}
// @@protoc_insertion_point(builder_scope:tracdap.config.PlatformConfig)
}
// @@protoc_insertion_point(class_scope:tracdap.config.PlatformConfig)
private static final org.finos.tracdap.config.PlatformConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.finos.tracdap.config.PlatformConfig();
}
public static org.finos.tracdap.config.PlatformConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PlatformConfig 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.PlatformConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}