yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/mdb/mongodb/v1/config/mongodb5_0_enterprise.proto
package yandex.cloud.api.mdb.mongodb.v1.config;
public final class Mongodb50Enterprise {
private Mongodb50Enterprise() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface MongodConfig5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
boolean hasStorage();
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getStorage();
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder();
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
boolean hasOperationProfiling();
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getOperationProfiling();
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder();
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
boolean hasNet();
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getNet();
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder();
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return Whether the security field is set.
*/
boolean hasSecurity();
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return The security.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getSecurity();
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder getSecurityOrBuilder();
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return Whether the auditLog field is set.
*/
boolean hasAuditLog();
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return The auditLog.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getAuditLog();
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder getAuditLogOrBuilder();
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return Whether the setParameter field is set.
*/
boolean hasSetParameter();
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return The setParameter.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getSetParameter();
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder getSetParameterOrBuilder();
}
/**
*
* Configuration of a mongod daemon. Supported options are a limited subset of all
* options described in [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/).
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise}
*/
public static final class MongodConfig5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise)
MongodConfig5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongodConfig5_0_enterprise.newBuilder() to construct.
private MongodConfig5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongodConfig5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongodConfig5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongodConfig5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder subBuilder = null;
if (storage_ != null) {
subBuilder = storage_.toBuilder();
}
storage_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storage_);
storage_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder subBuilder = null;
if (operationProfiling_ != null) {
subBuilder = operationProfiling_.toBuilder();
}
operationProfiling_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationProfiling_);
operationProfiling_ = subBuilder.buildPartial();
}
break;
}
case 26: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder subBuilder = null;
if (net_ != null) {
subBuilder = net_.toBuilder();
}
net_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(net_);
net_ = subBuilder.buildPartial();
}
break;
}
case 34: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder subBuilder = null;
if (security_ != null) {
subBuilder = security_.toBuilder();
}
security_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(security_);
security_ = subBuilder.buildPartial();
}
break;
}
case 42: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder subBuilder = null;
if (auditLog_ != null) {
subBuilder = auditLog_.toBuilder();
}
auditLog_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(auditLog_);
auditLog_ = subBuilder.buildPartial();
}
break;
}
case 50: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder subBuilder = null;
if (setParameter_ != null) {
subBuilder = setParameter_.toBuilder();
}
setParameter_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(setParameter_);
setParameter_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder.class);
}
public interface StorageOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage)
com.google.protobuf.MessageOrBuilder {
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
boolean hasWiredTiger();
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getWiredTiger();
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder();
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return Whether the journal field is set.
*/
boolean hasJournal();
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return The journal.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getJournal();
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder getJournalOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage}
*/
public static final class Storage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage)
StorageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Storage.newBuilder() to construct.
private Storage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Storage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Storage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Storage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder subBuilder = null;
if (wiredTiger_ != null) {
subBuilder = wiredTiger_.toBuilder();
}
wiredTiger_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(wiredTiger_);
wiredTiger_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder subBuilder = null;
if (journal_ != null) {
subBuilder = journal_.toBuilder();
}
journal_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(journal_);
journal_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder.class);
}
public interface WiredTigerOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger)
com.google.protobuf.MessageOrBuilder {
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
boolean hasEngineConfig();
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig();
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder();
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return Whether the collectionConfig field is set.
*/
boolean hasCollectionConfig();
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return The collectionConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getCollectionConfig();
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder getCollectionConfigOrBuilder();
}
/**
*
* Configuration of WiredTiger storage engine.
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger}
*/
public static final class WiredTiger extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger)
WiredTigerOrBuilder {
private static final long serialVersionUID = 0L;
// Use WiredTiger.newBuilder() to construct.
private WiredTiger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WiredTiger() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WiredTiger();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WiredTiger(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder subBuilder = null;
if (engineConfig_ != null) {
subBuilder = engineConfig_.toBuilder();
}
engineConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(engineConfig_);
engineConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder subBuilder = null;
if (collectionConfig_ != null) {
subBuilder = collectionConfig_.toBuilder();
}
collectionConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(collectionConfig_);
collectionConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder.class);
}
public interface EngineConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
boolean hasCacheSizeGb();
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
com.google.protobuf.DoubleValue getCacheSizeGb();
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig}
*/
public static final class EngineConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
EngineConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use EngineConfig.newBuilder() to construct.
private EngineConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EngineConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EngineConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EngineConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (cacheSizeGb_ != null) {
subBuilder = cacheSizeGb_.toBuilder();
}
cacheSizeGb_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cacheSizeGb_);
cacheSizeGb_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder.class);
}
public static final int CACHE_SIZE_GB_FIELD_NUMBER = 1;
private com.google.protobuf.DoubleValue cacheSizeGb_;
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
@java.lang.Override
public boolean hasCacheSizeGb() {
return cacheSizeGb_ != null;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getCacheSizeGb() {
return cacheSizeGb_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder() {
return getCacheSizeGb();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cacheSizeGb_ != null) {
output.writeMessage(1, getCacheSizeGb());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cacheSizeGb_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCacheSizeGb());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) obj;
if (hasCacheSizeGb() != other.hasCacheSizeGb()) return false;
if (hasCacheSizeGb()) {
if (!getCacheSizeGb()
.equals(other.getCacheSizeGb())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCacheSizeGb()) {
hash = (37 * hash) + CACHE_SIZE_GB_FIELD_NUMBER;
hash = (53 * hash) + getCacheSizeGb().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = null;
} else {
cacheSizeGb_ = null;
cacheSizeGbBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig(this);
if (cacheSizeGbBuilder_ == null) {
result.cacheSizeGb_ = cacheSizeGb_;
} else {
result.cacheSizeGb_ = cacheSizeGbBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance()) return this;
if (other.hasCacheSizeGb()) {
mergeCacheSizeGb(other.getCacheSizeGb());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.DoubleValue cacheSizeGb_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> cacheSizeGbBuilder_;
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
public boolean hasCacheSizeGb() {
return cacheSizeGbBuilder_ != null || cacheSizeGb_ != null;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
public com.google.protobuf.DoubleValue getCacheSizeGb() {
if (cacheSizeGbBuilder_ == null) {
return cacheSizeGb_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
} else {
return cacheSizeGbBuilder_.getMessage();
}
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder setCacheSizeGb(com.google.protobuf.DoubleValue value) {
if (cacheSizeGbBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cacheSizeGb_ = value;
onChanged();
} else {
cacheSizeGbBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder setCacheSizeGb(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = builderForValue.build();
onChanged();
} else {
cacheSizeGbBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder mergeCacheSizeGb(com.google.protobuf.DoubleValue value) {
if (cacheSizeGbBuilder_ == null) {
if (cacheSizeGb_ != null) {
cacheSizeGb_ =
com.google.protobuf.DoubleValue.newBuilder(cacheSizeGb_).mergeFrom(value).buildPartial();
} else {
cacheSizeGb_ = value;
}
onChanged();
} else {
cacheSizeGbBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder clearCacheSizeGb() {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = null;
onChanged();
} else {
cacheSizeGb_ = null;
cacheSizeGbBuilder_ = null;
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public com.google.protobuf.DoubleValue.Builder getCacheSizeGbBuilder() {
onChanged();
return getCacheSizeGbFieldBuilder().getBuilder();
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder() {
if (cacheSizeGbBuilder_ != null) {
return cacheSizeGbBuilder_.getMessageOrBuilder();
} else {
return cacheSizeGb_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
}
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getCacheSizeGbFieldBuilder() {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getCacheSizeGb(),
getParentForChildren(),
isClean());
cacheSizeGb_ = null;
}
return cacheSizeGbBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EngineConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EngineConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CollectionConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The enum numeric value on the wire for blockCompressor.
*/
int getBlockCompressorValue();
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The blockCompressor.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor getBlockCompressor();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig}
*/
public static final class CollectionConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)
CollectionConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use CollectionConfig.newBuilder() to construct.
private CollectionConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CollectionConfig() {
blockCompressor_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CollectionConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CollectionConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
blockCompressor_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor}
*/
public enum Compressor
implements com.google.protobuf.ProtocolMessageEnum {
/**
* COMPRESSOR_UNSPECIFIED = 0;
*/
COMPRESSOR_UNSPECIFIED(0),
/**
*
* No compression.
*
*
* NONE = 1;
*/
NONE(1),
/**
*
* The [Snappy](https://docs.mongodb.com/v5.0/reference/glossary/#term-snappy) compression.
*
*
* SNAPPY = 2;
*/
SNAPPY(2),
/**
*
* The [zlib](https://docs.mongodb.com/v5.0/reference/glossary/#term-zlib) compression.
*
*
* ZLIB = 3;
*/
ZLIB(3),
/**
*
* The [zstd](https://docs.mongodb.com/v5.0/reference/glossary/#term-zstd) compression.
*
*
* ZSTD = 4;
*/
ZSTD(4),
UNRECOGNIZED(-1),
;
/**
* COMPRESSOR_UNSPECIFIED = 0;
*/
public static final int COMPRESSOR_UNSPECIFIED_VALUE = 0;
/**
*
* No compression.
*
*
* NONE = 1;
*/
public static final int NONE_VALUE = 1;
/**
*
* The [Snappy](https://docs.mongodb.com/v5.0/reference/glossary/#term-snappy) compression.
*
*
* SNAPPY = 2;
*/
public static final int SNAPPY_VALUE = 2;
/**
*
* The [zlib](https://docs.mongodb.com/v5.0/reference/glossary/#term-zlib) compression.
*
*
* ZLIB = 3;
*/
public static final int ZLIB_VALUE = 3;
/**
*
* The [zstd](https://docs.mongodb.com/v5.0/reference/glossary/#term-zstd) compression.
*
*
* ZSTD = 4;
*/
public static final int ZSTD_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Compressor valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Compressor forNumber(int value) {
switch (value) {
case 0: return COMPRESSOR_UNSPECIFIED;
case 1: return NONE;
case 2: return SNAPPY;
case 3: return ZLIB;
case 4: return ZSTD;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Compressor> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Compressor findValueByNumber(int number) {
return Compressor.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDescriptor().getEnumTypes().get(0);
}
private static final Compressor[] VALUES = values();
public static Compressor valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Compressor(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor)
}
public static final int BLOCK_COMPRESSOR_FIELD_NUMBER = 1;
private int blockCompressor_;
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The enum numeric value on the wire for blockCompressor.
*/
@java.lang.Override public int getBlockCompressorValue() {
return blockCompressor_;
}
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The blockCompressor.
*/
@java.lang.Override public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor getBlockCompressor() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.valueOf(blockCompressor_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (blockCompressor_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.COMPRESSOR_UNSPECIFIED.getNumber()) {
output.writeEnum(1, blockCompressor_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (blockCompressor_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.COMPRESSOR_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, blockCompressor_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig) obj;
if (blockCompressor_ != other.blockCompressor_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + BLOCK_COMPRESSOR_FIELD_NUMBER;
hash = (53 * hash) + blockCompressor_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
blockCompressor_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig(this);
result.blockCompressor_ = blockCompressor_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDefaultInstance()) return this;
if (other.blockCompressor_ != 0) {
setBlockCompressorValue(other.getBlockCompressorValue());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int blockCompressor_ = 0;
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The enum numeric value on the wire for blockCompressor.
*/
@java.lang.Override public int getBlockCompressorValue() {
return blockCompressor_;
}
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @param value The enum numeric value on the wire for blockCompressor to set.
* @return This builder for chaining.
*/
public Builder setBlockCompressorValue(int value) {
blockCompressor_ = value;
onChanged();
return this;
}
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return The blockCompressor.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor getBlockCompressor() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.valueOf(blockCompressor_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor.UNRECOGNIZED : result;
}
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @param value The blockCompressor to set.
* @return This builder for chaining.
*/
public Builder setBlockCompressor(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor value) {
if (value == null) {
throw new NullPointerException();
}
blockCompressor_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Default type of compression to use for collection data.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Compressor block_compressor = 1;
* @return This builder for chaining.
*/
public Builder clearBlockCompressor() {
blockCompressor_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CollectionConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CollectionConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENGINE_CONFIG_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engineConfig_;
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
@java.lang.Override
public boolean hasEngineConfig() {
return engineConfig_ != null;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig() {
return engineConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder() {
return getEngineConfig();
}
public static final int COLLECTION_CONFIG_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collectionConfig_;
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return Whether the collectionConfig field is set.
*/
@java.lang.Override
public boolean hasCollectionConfig() {
return collectionConfig_ != null;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return The collectionConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getCollectionConfig() {
return collectionConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDefaultInstance() : collectionConfig_;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder getCollectionConfigOrBuilder() {
return getCollectionConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (engineConfig_ != null) {
output.writeMessage(1, getEngineConfig());
}
if (collectionConfig_ != null) {
output.writeMessage(2, getCollectionConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (engineConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEngineConfig());
}
if (collectionConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCollectionConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger) obj;
if (hasEngineConfig() != other.hasEngineConfig()) return false;
if (hasEngineConfig()) {
if (!getEngineConfig()
.equals(other.getEngineConfig())) return false;
}
if (hasCollectionConfig() != other.hasCollectionConfig()) return false;
if (hasCollectionConfig()) {
if (!getCollectionConfig()
.equals(other.getCollectionConfig())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEngineConfig()) {
hash = (37 * hash) + ENGINE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEngineConfig().hashCode();
}
if (hasCollectionConfig()) {
hash = (37 * hash) + COLLECTION_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getCollectionConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Configuration of WiredTiger storage engine.
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (engineConfigBuilder_ == null) {
engineConfig_ = null;
} else {
engineConfig_ = null;
engineConfigBuilder_ = null;
}
if (collectionConfigBuilder_ == null) {
collectionConfig_ = null;
} else {
collectionConfig_ = null;
collectionConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger(this);
if (engineConfigBuilder_ == null) {
result.engineConfig_ = engineConfig_;
} else {
result.engineConfig_ = engineConfigBuilder_.build();
}
if (collectionConfigBuilder_ == null) {
result.collectionConfig_ = collectionConfig_;
} else {
result.collectionConfig_ = collectionConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance()) return this;
if (other.hasEngineConfig()) {
mergeEngineConfig(other.getEngineConfig());
}
if (other.hasCollectionConfig()) {
mergeCollectionConfig(other.getCollectionConfig());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engineConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder> engineConfigBuilder_;
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
public boolean hasEngineConfig() {
return engineConfigBuilder_ != null || engineConfig_ != null;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig() {
if (engineConfigBuilder_ == null) {
return engineConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
} else {
return engineConfigBuilder_.getMessage();
}
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder setEngineConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig value) {
if (engineConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
engineConfig_ = value;
onChanged();
} else {
engineConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder setEngineConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder builderForValue) {
if (engineConfigBuilder_ == null) {
engineConfig_ = builderForValue.build();
onChanged();
} else {
engineConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder mergeEngineConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig value) {
if (engineConfigBuilder_ == null) {
if (engineConfig_ != null) {
engineConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.newBuilder(engineConfig_).mergeFrom(value).buildPartial();
} else {
engineConfig_ = value;
}
onChanged();
} else {
engineConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder clearEngineConfig() {
if (engineConfigBuilder_ == null) {
engineConfig_ = null;
onChanged();
} else {
engineConfig_ = null;
engineConfigBuilder_ = null;
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder getEngineConfigBuilder() {
onChanged();
return getEngineConfigFieldBuilder().getBuilder();
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder() {
if (engineConfigBuilder_ != null) {
return engineConfigBuilder_.getMessageOrBuilder();
} else {
return engineConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
}
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder>
getEngineConfigFieldBuilder() {
if (engineConfigBuilder_ == null) {
engineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder>(
getEngineConfig(),
getParentForChildren(),
isClean());
engineConfig_ = null;
}
return engineConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collectionConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder> collectionConfigBuilder_;
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return Whether the collectionConfig field is set.
*/
public boolean hasCollectionConfig() {
return collectionConfigBuilder_ != null || collectionConfig_ != null;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
* @return The collectionConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig getCollectionConfig() {
if (collectionConfigBuilder_ == null) {
return collectionConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDefaultInstance() : collectionConfig_;
} else {
return collectionConfigBuilder_.getMessage();
}
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public Builder setCollectionConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig value) {
if (collectionConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
collectionConfig_ = value;
onChanged();
} else {
collectionConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public Builder setCollectionConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder builderForValue) {
if (collectionConfigBuilder_ == null) {
collectionConfig_ = builderForValue.build();
onChanged();
} else {
collectionConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public Builder mergeCollectionConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig value) {
if (collectionConfigBuilder_ == null) {
if (collectionConfig_ != null) {
collectionConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.newBuilder(collectionConfig_).mergeFrom(value).buildPartial();
} else {
collectionConfig_ = value;
}
onChanged();
} else {
collectionConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public Builder clearCollectionConfig() {
if (collectionConfigBuilder_ == null) {
collectionConfig_ = null;
onChanged();
} else {
collectionConfig_ = null;
collectionConfigBuilder_ = null;
}
return this;
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder getCollectionConfigBuilder() {
onChanged();
return getCollectionConfigFieldBuilder().getBuilder();
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder getCollectionConfigOrBuilder() {
if (collectionConfigBuilder_ != null) {
return collectionConfigBuilder_.getMessageOrBuilder();
} else {
return collectionConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.getDefaultInstance() : collectionConfig_;
}
}
/**
*
* Collection configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig collection_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder>
getCollectionConfigFieldBuilder() {
if (collectionConfigBuilder_ == null) {
collectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.CollectionConfigOrBuilder>(
getCollectionConfig(),
getParentForChildren(),
isClean());
collectionConfig_ = null;
}
return collectionConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WiredTiger parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WiredTiger(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JournalOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal)
com.google.protobuf.MessageOrBuilder {
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return Whether the commitInterval field is set.
*/
boolean hasCommitInterval();
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return The commitInterval.
*/
com.google.protobuf.Int64Value getCommitInterval();
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
com.google.protobuf.Int64ValueOrBuilder getCommitIntervalOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal}
*/
public static final class Journal extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal)
JournalOrBuilder {
private static final long serialVersionUID = 0L;
// Use Journal.newBuilder() to construct.
private Journal(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Journal() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Journal();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Journal(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (commitInterval_ != null) {
subBuilder = commitInterval_.toBuilder();
}
commitInterval_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(commitInterval_);
commitInterval_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder.class);
}
public static final int COMMIT_INTERVAL_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value commitInterval_;
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return Whether the commitInterval field is set.
*/
@java.lang.Override
public boolean hasCommitInterval() {
return commitInterval_ != null;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return The commitInterval.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getCommitInterval() {
return commitInterval_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : commitInterval_;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getCommitIntervalOrBuilder() {
return getCommitInterval();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (commitInterval_ != null) {
output.writeMessage(1, getCommitInterval());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (commitInterval_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCommitInterval());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal) obj;
if (hasCommitInterval() != other.hasCommitInterval()) return false;
if (hasCommitInterval()) {
if (!getCommitInterval()
.equals(other.getCommitInterval())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCommitInterval()) {
hash = (37 * hash) + COMMIT_INTERVAL_FIELD_NUMBER;
hash = (53 * hash) + getCommitInterval().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (commitIntervalBuilder_ == null) {
commitInterval_ = null;
} else {
commitInterval_ = null;
commitIntervalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal(this);
if (commitIntervalBuilder_ == null) {
result.commitInterval_ = commitInterval_;
} else {
result.commitInterval_ = commitIntervalBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.getDefaultInstance()) return this;
if (other.hasCommitInterval()) {
mergeCommitInterval(other.getCommitInterval());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value commitInterval_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> commitIntervalBuilder_;
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return Whether the commitInterval field is set.
*/
public boolean hasCommitInterval() {
return commitIntervalBuilder_ != null || commitInterval_ != null;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
* @return The commitInterval.
*/
public com.google.protobuf.Int64Value getCommitInterval() {
if (commitIntervalBuilder_ == null) {
return commitInterval_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : commitInterval_;
} else {
return commitIntervalBuilder_.getMessage();
}
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public Builder setCommitInterval(com.google.protobuf.Int64Value value) {
if (commitIntervalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
commitInterval_ = value;
onChanged();
} else {
commitIntervalBuilder_.setMessage(value);
}
return this;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public Builder setCommitInterval(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (commitIntervalBuilder_ == null) {
commitInterval_ = builderForValue.build();
onChanged();
} else {
commitIntervalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public Builder mergeCommitInterval(com.google.protobuf.Int64Value value) {
if (commitIntervalBuilder_ == null) {
if (commitInterval_ != null) {
commitInterval_ =
com.google.protobuf.Int64Value.newBuilder(commitInterval_).mergeFrom(value).buildPartial();
} else {
commitInterval_ = value;
}
onChanged();
} else {
commitIntervalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public Builder clearCommitInterval() {
if (commitIntervalBuilder_ == null) {
commitInterval_ = null;
onChanged();
} else {
commitInterval_ = null;
commitIntervalBuilder_ = null;
}
return this;
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public com.google.protobuf.Int64Value.Builder getCommitIntervalBuilder() {
onChanged();
return getCommitIntervalFieldBuilder().getBuilder();
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
public com.google.protobuf.Int64ValueOrBuilder getCommitIntervalOrBuilder() {
if (commitIntervalBuilder_ != null) {
return commitIntervalBuilder_.getMessageOrBuilder();
} else {
return commitInterval_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : commitInterval_;
}
}
/**
*
* Commit interval between journal operations, in milliseconds.
* Default: 100.
*
*
* .google.protobuf.Int64Value commit_interval = 1 [(.yandex.cloud.value) = "1-500"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getCommitIntervalFieldBuilder() {
if (commitIntervalBuilder_ == null) {
commitIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getCommitInterval(),
getParentForChildren(),
isClean());
commitInterval_ = null;
}
return commitIntervalBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Journal parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Journal(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int WIRED_TIGER_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger wiredTiger_;
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
@java.lang.Override
public boolean hasWiredTiger() {
return wiredTiger_ != null;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getWiredTiger() {
return wiredTiger_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder() {
return getWiredTiger();
}
public static final int JOURNAL_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal journal_;
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return Whether the journal field is set.
*/
@java.lang.Override
public boolean hasJournal() {
return journal_ != null;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return The journal.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getJournal() {
return journal_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.getDefaultInstance() : journal_;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder getJournalOrBuilder() {
return getJournal();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (wiredTiger_ != null) {
output.writeMessage(1, getWiredTiger());
}
if (journal_ != null) {
output.writeMessage(2, getJournal());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (wiredTiger_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getWiredTiger());
}
if (journal_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getJournal());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage) obj;
if (hasWiredTiger() != other.hasWiredTiger()) return false;
if (hasWiredTiger()) {
if (!getWiredTiger()
.equals(other.getWiredTiger())) return false;
}
if (hasJournal() != other.hasJournal()) return false;
if (hasJournal()) {
if (!getJournal()
.equals(other.getJournal())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasWiredTiger()) {
hash = (37 * hash) + WIRED_TIGER_FIELD_NUMBER;
hash = (53 * hash) + getWiredTiger().hashCode();
}
if (hasJournal()) {
hash = (37 * hash) + JOURNAL_FIELD_NUMBER;
hash = (53 * hash) + getJournal().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (wiredTigerBuilder_ == null) {
wiredTiger_ = null;
} else {
wiredTiger_ = null;
wiredTigerBuilder_ = null;
}
if (journalBuilder_ == null) {
journal_ = null;
} else {
journal_ = null;
journalBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage(this);
if (wiredTigerBuilder_ == null) {
result.wiredTiger_ = wiredTiger_;
} else {
result.wiredTiger_ = wiredTigerBuilder_.build();
}
if (journalBuilder_ == null) {
result.journal_ = journal_;
} else {
result.journal_ = journalBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.getDefaultInstance()) return this;
if (other.hasWiredTiger()) {
mergeWiredTiger(other.getWiredTiger());
}
if (other.hasJournal()) {
mergeJournal(other.getJournal());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger wiredTiger_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder> wiredTigerBuilder_;
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
public boolean hasWiredTiger() {
return wiredTigerBuilder_ != null || wiredTiger_ != null;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger getWiredTiger() {
if (wiredTigerBuilder_ == null) {
return wiredTiger_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
} else {
return wiredTigerBuilder_.getMessage();
}
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder setWiredTiger(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger value) {
if (wiredTigerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
wiredTiger_ = value;
onChanged();
} else {
wiredTigerBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder setWiredTiger(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder builderForValue) {
if (wiredTigerBuilder_ == null) {
wiredTiger_ = builderForValue.build();
onChanged();
} else {
wiredTigerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder mergeWiredTiger(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger value) {
if (wiredTigerBuilder_ == null) {
if (wiredTiger_ != null) {
wiredTiger_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.newBuilder(wiredTiger_).mergeFrom(value).buildPartial();
} else {
wiredTiger_ = value;
}
onChanged();
} else {
wiredTigerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder clearWiredTiger() {
if (wiredTigerBuilder_ == null) {
wiredTiger_ = null;
onChanged();
} else {
wiredTiger_ = null;
wiredTigerBuilder_ = null;
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder getWiredTigerBuilder() {
onChanged();
return getWiredTigerFieldBuilder().getBuilder();
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder() {
if (wiredTigerBuilder_ != null) {
return wiredTigerBuilder_.getMessageOrBuilder();
} else {
return wiredTiger_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
}
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder>
getWiredTigerFieldBuilder() {
if (wiredTigerBuilder_ == null) {
wiredTigerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.WiredTigerOrBuilder>(
getWiredTiger(),
getParentForChildren(),
isClean());
wiredTiger_ = null;
}
return wiredTigerBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal journal_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder> journalBuilder_;
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return Whether the journal field is set.
*/
public boolean hasJournal() {
return journalBuilder_ != null || journal_ != null;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
* @return The journal.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal getJournal() {
if (journalBuilder_ == null) {
return journal_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.getDefaultInstance() : journal_;
} else {
return journalBuilder_.getMessage();
}
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public Builder setJournal(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal value) {
if (journalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
journal_ = value;
onChanged();
} else {
journalBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public Builder setJournal(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder builderForValue) {
if (journalBuilder_ == null) {
journal_ = builderForValue.build();
onChanged();
} else {
journalBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public Builder mergeJournal(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal value) {
if (journalBuilder_ == null) {
if (journal_ != null) {
journal_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.newBuilder(journal_).mergeFrom(value).buildPartial();
} else {
journal_ = value;
}
onChanged();
} else {
journalBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public Builder clearJournal() {
if (journalBuilder_ == null) {
journal_ = null;
onChanged();
} else {
journal_ = null;
journalBuilder_ = null;
}
return this;
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder getJournalBuilder() {
onChanged();
return getJournalFieldBuilder().getBuilder();
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder getJournalOrBuilder() {
if (journalBuilder_ != null) {
return journalBuilder_.getMessageOrBuilder();
} else {
return journal_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.getDefaultInstance() : journal_;
}
}
/**
*
* Configuration of the MongoDB [journal](https://docs.mongodb.com/v5.0/reference/glossary/#term-journal).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage.Journal journal = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder>
getJournalFieldBuilder() {
if (journalBuilder_ == null) {
journalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Journal.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.JournalOrBuilder>(
getJournal(),
getParentForChildren(),
isClean());
journal_ = null;
}
return journalBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Storage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Storage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationProfilingOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling)
com.google.protobuf.MessageOrBuilder {
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode getMode();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
boolean hasSlowOpThreshold();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
com.google.protobuf.Int64Value getSlowOpThreshold();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling}
*/
public static final class OperationProfiling extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling)
OperationProfilingOrBuilder {
private static final long serialVersionUID = 0L;
// Use OperationProfiling.newBuilder() to construct.
private OperationProfiling(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OperationProfiling() {
mode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OperationProfiling();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OperationProfiling(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 18: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (slowOpThreshold_ != null) {
subBuilder = slowOpThreshold_.toBuilder();
}
slowOpThreshold_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(slowOpThreshold_);
slowOpThreshold_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MODE_UNSPECIFIED = 0;
*/
MODE_UNSPECIFIED(0),
/**
*
* The profiler is off and does not collect any data.
*
*
* OFF = 1;
*/
OFF(1),
/**
*
* The profiler collects data for operations that take longer than the value of [slow_op_threshold].
*
*
* SLOW_OP = 2;
*/
SLOW_OP(2),
/**
*
* The profiler collects data for all operations.
*
*
* ALL = 3;
*/
ALL(3),
UNRECOGNIZED(-1),
;
/**
* MODE_UNSPECIFIED = 0;
*/
public static final int MODE_UNSPECIFIED_VALUE = 0;
/**
*
* The profiler is off and does not collect any data.
*
*
* OFF = 1;
*/
public static final int OFF_VALUE = 1;
/**
*
* The profiler collects data for operations that take longer than the value of [slow_op_threshold].
*
*
* SLOW_OP = 2;
*/
public static final int SLOW_OP_VALUE = 2;
/**
*
* The profiler collects data for all operations.
*
*
* ALL = 3;
*/
public static final int ALL_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return MODE_UNSPECIFIED;
case 1: return OFF;
case 2: return SLOW_OP;
case 3: return ALL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode)
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.UNRECOGNIZED : result;
}
public static final int SLOW_OP_THRESHOLD_FIELD_NUMBER = 2;
private com.google.protobuf.Int64Value slowOpThreshold_;
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
@java.lang.Override
public boolean hasSlowOpThreshold() {
return slowOpThreshold_ != null;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getSlowOpThreshold() {
return slowOpThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder() {
return getSlowOpThreshold();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mode_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, mode_);
}
if (slowOpThreshold_ != null) {
output.writeMessage(2, getSlowOpThreshold());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (slowOpThreshold_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSlowOpThreshold());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling) obj;
if (mode_ != other.mode_) return false;
if (hasSlowOpThreshold() != other.hasSlowOpThreshold()) return false;
if (hasSlowOpThreshold()) {
if (!getSlowOpThreshold()
.equals(other.getSlowOpThreshold())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
if (hasSlowOpThreshold()) {
hash = (37 * hash) + SLOW_OP_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + getSlowOpThreshold().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mode_ = 0;
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = null;
} else {
slowOpThreshold_ = null;
slowOpThresholdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling(this);
result.mode_ = mode_;
if (slowOpThresholdBuilder_ == null) {
result.slowOpThreshold_ = slowOpThreshold_;
} else {
result.slowOpThreshold_ = slowOpThresholdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.hasSlowOpThreshold()) {
mergeSlowOpThreshold(other.getSlowOpThreshold());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode.UNRECOGNIZED : result;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value slowOpThreshold_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> slowOpThresholdBuilder_;
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
public boolean hasSlowOpThreshold() {
return slowOpThresholdBuilder_ != null || slowOpThreshold_ != null;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
public com.google.protobuf.Int64Value getSlowOpThreshold() {
if (slowOpThresholdBuilder_ == null) {
return slowOpThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
} else {
return slowOpThresholdBuilder_.getMessage();
}
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder setSlowOpThreshold(com.google.protobuf.Int64Value value) {
if (slowOpThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
slowOpThreshold_ = value;
onChanged();
} else {
slowOpThresholdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder setSlowOpThreshold(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = builderForValue.build();
onChanged();
} else {
slowOpThresholdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder mergeSlowOpThreshold(com.google.protobuf.Int64Value value) {
if (slowOpThresholdBuilder_ == null) {
if (slowOpThreshold_ != null) {
slowOpThreshold_ =
com.google.protobuf.Int64Value.newBuilder(slowOpThreshold_).mergeFrom(value).buildPartial();
} else {
slowOpThreshold_ = value;
}
onChanged();
} else {
slowOpThresholdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder clearSlowOpThreshold() {
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = null;
onChanged();
} else {
slowOpThreshold_ = null;
slowOpThresholdBuilder_ = null;
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public com.google.protobuf.Int64Value.Builder getSlowOpThresholdBuilder() {
onChanged();
return getSlowOpThresholdFieldBuilder().getBuilder();
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder() {
if (slowOpThresholdBuilder_ != null) {
return slowOpThresholdBuilder_.getMessageOrBuilder();
} else {
return slowOpThreshold_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
}
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode.
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getSlowOpThresholdFieldBuilder() {
if (slowOpThresholdBuilder_ == null) {
slowOpThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getSlowOpThreshold(),
getParentForChildren(),
isClean());
slowOpThreshold_ = null;
}
return slowOpThresholdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OperationProfiling parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OperationProfiling(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
boolean hasMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
com.google.protobuf.Int64Value getMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network}
*/
public static final class Network extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network)
NetworkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Network.newBuilder() to construct.
private Network(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Network() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Network();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Network(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxIncomingConnections_ != null) {
subBuilder = maxIncomingConnections_.toBuilder();
}
maxIncomingConnections_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxIncomingConnections_);
maxIncomingConnections_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder.class);
}
public static final int MAX_INCOMING_CONNECTIONS_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value maxIncomingConnections_;
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
@java.lang.Override
public boolean hasMaxIncomingConnections() {
return maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
return getMaxIncomingConnections();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxIncomingConnections_ != null) {
output.writeMessage(1, getMaxIncomingConnections());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxIncomingConnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMaxIncomingConnections());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network) obj;
if (hasMaxIncomingConnections() != other.hasMaxIncomingConnections()) return false;
if (hasMaxIncomingConnections()) {
if (!getMaxIncomingConnections()
.equals(other.getMaxIncomingConnections())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxIncomingConnections()) {
hash = (37 * hash) + MAX_INCOMING_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxIncomingConnections().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network(this);
if (maxIncomingConnectionsBuilder_ == null) {
result.maxIncomingConnections_ = maxIncomingConnections_;
} else {
result.maxIncomingConnections_ = maxIncomingConnectionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.getDefaultInstance()) return this;
if (other.hasMaxIncomingConnections()) {
mergeMaxIncomingConnections(other.getMaxIncomingConnections());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value maxIncomingConnections_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxIncomingConnectionsBuilder_;
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
public boolean hasMaxIncomingConnections() {
return maxIncomingConnectionsBuilder_ != null || maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
} else {
return maxIncomingConnectionsBuilder_.getMessage();
}
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxIncomingConnections_ = value;
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = builderForValue.build();
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder mergeMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (maxIncomingConnections_ != null) {
maxIncomingConnections_ =
com.google.protobuf.Int64Value.newBuilder(maxIncomingConnections_).mergeFrom(value).buildPartial();
} else {
maxIncomingConnections_ = value;
}
onChanged();
} else {
maxIncomingConnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder clearMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
onChanged();
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64Value.Builder getMaxIncomingConnectionsBuilder() {
onChanged();
return getMaxIncomingConnectionsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
if (maxIncomingConnectionsBuilder_ != null) {
return maxIncomingConnectionsBuilder_.getMessageOrBuilder();
} else {
return maxIncomingConnections_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
}
/**
*
* The maximum number of simultaneous connections that mongod will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxIncomingConnectionsFieldBuilder() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxIncomingConnections(),
getParentForChildren(),
isClean());
maxIncomingConnections_ = null;
}
return maxIncomingConnectionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Network parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Network(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SecurityOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security)
com.google.protobuf.MessageOrBuilder {
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return Whether the enableEncryption field is set.
*/
boolean hasEnableEncryption();
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return The enableEncryption.
*/
com.google.protobuf.BoolValue getEnableEncryption();
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
com.google.protobuf.BoolValueOrBuilder getEnableEncryptionOrBuilder();
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return Whether the kmip field is set.
*/
boolean hasKmip();
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return The kmip.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getKmip();
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder getKmipOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security}
*/
public static final class Security extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security)
SecurityOrBuilder {
private static final long serialVersionUID = 0L;
// Use Security.newBuilder() to construct.
private Security(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Security() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Security();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Security(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (enableEncryption_ != null) {
subBuilder = enableEncryption_.toBuilder();
}
enableEncryption_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(enableEncryption_);
enableEncryption_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder subBuilder = null;
if (kmip_ != null) {
subBuilder = kmip_.toBuilder();
}
kmip_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(kmip_);
kmip_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder.class);
}
public interface KMIPOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP)
com.google.protobuf.MessageOrBuilder {
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The serverName.
*/
java.lang.String getServerName();
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The bytes for serverName.
*/
com.google.protobuf.ByteString
getServerNameBytes();
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return Whether the port field is set.
*/
boolean hasPort();
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return The port.
*/
com.google.protobuf.Int64Value getPort();
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
com.google.protobuf.Int64ValueOrBuilder getPortOrBuilder();
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The serverCa.
*/
java.lang.String getServerCa();
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The bytes for serverCa.
*/
com.google.protobuf.ByteString
getServerCaBytes();
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The clientCertificate.
*/
java.lang.String getClientCertificate();
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The bytes for clientCertificate.
*/
com.google.protobuf.ByteString
getClientCertificateBytes();
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The keyIdentifier.
*/
java.lang.String getKeyIdentifier();
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The bytes for keyIdentifier.
*/
com.google.protobuf.ByteString
getKeyIdentifierBytes();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP}
*/
public static final class KMIP extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP)
KMIPOrBuilder {
private static final long serialVersionUID = 0L;
// Use KMIP.newBuilder() to construct.
private KMIP(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private KMIP() {
serverName_ = "";
serverCa_ = "";
clientCertificate_ = "";
keyIdentifier_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new KMIP();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private KMIP(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
serverName_ = s;
break;
}
case 18: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (port_ != null) {
subBuilder = port_.toBuilder();
}
port_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(port_);
port_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
serverCa_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
clientCertificate_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
keyIdentifier_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder.class);
}
public static final int SERVER_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object serverName_;
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The serverName.
*/
@java.lang.Override
public java.lang.String getServerName() {
java.lang.Object ref = serverName_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverName_ = s;
return s;
}
}
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The bytes for serverName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServerNameBytes() {
java.lang.Object ref = serverName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PORT_FIELD_NUMBER = 2;
private com.google.protobuf.Int64Value port_;
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return Whether the port field is set.
*/
@java.lang.Override
public boolean hasPort() {
return port_ != null;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return The port.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getPort() {
return port_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : port_;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getPortOrBuilder() {
return getPort();
}
public static final int SERVER_CA_FIELD_NUMBER = 3;
private volatile java.lang.Object serverCa_;
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The serverCa.
*/
@java.lang.Override
public java.lang.String getServerCa() {
java.lang.Object ref = serverCa_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverCa_ = s;
return s;
}
}
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The bytes for serverCa.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServerCaBytes() {
java.lang.Object ref = serverCa_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverCa_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 4;
private volatile java.lang.Object clientCertificate_;
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The clientCertificate.
*/
@java.lang.Override
public java.lang.String getClientCertificate() {
java.lang.Object ref = clientCertificate_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientCertificate_ = s;
return s;
}
}
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The bytes for clientCertificate.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientCertificateBytes() {
java.lang.Object ref = clientCertificate_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_IDENTIFIER_FIELD_NUMBER = 5;
private volatile java.lang.Object keyIdentifier_;
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The keyIdentifier.
*/
@java.lang.Override
public java.lang.String getKeyIdentifier() {
java.lang.Object ref = keyIdentifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyIdentifier_ = s;
return s;
}
}
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The bytes for keyIdentifier.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getKeyIdentifierBytes() {
java.lang.Object ref = keyIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serverName_);
}
if (port_ != null) {
output.writeMessage(2, getPort());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverCa_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serverCa_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientCertificate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyIdentifier_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, keyIdentifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serverName_);
}
if (port_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getPort());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serverCa_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serverCa_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clientCertificate_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyIdentifier_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, keyIdentifier_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP) obj;
if (!getServerName()
.equals(other.getServerName())) return false;
if (hasPort() != other.hasPort()) return false;
if (hasPort()) {
if (!getPort()
.equals(other.getPort())) return false;
}
if (!getServerCa()
.equals(other.getServerCa())) return false;
if (!getClientCertificate()
.equals(other.getClientCertificate())) return false;
if (!getKeyIdentifier()
.equals(other.getKeyIdentifier())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SERVER_NAME_FIELD_NUMBER;
hash = (53 * hash) + getServerName().hashCode();
if (hasPort()) {
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + getPort().hashCode();
}
hash = (37 * hash) + SERVER_CA_FIELD_NUMBER;
hash = (53 * hash) + getServerCa().hashCode();
hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER;
hash = (53 * hash) + getClientCertificate().hashCode();
hash = (37 * hash) + KEY_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getKeyIdentifier().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
serverName_ = "";
if (portBuilder_ == null) {
port_ = null;
} else {
port_ = null;
portBuilder_ = null;
}
serverCa_ = "";
clientCertificate_ = "";
keyIdentifier_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP(this);
result.serverName_ = serverName_;
if (portBuilder_ == null) {
result.port_ = port_;
} else {
result.port_ = portBuilder_.build();
}
result.serverCa_ = serverCa_;
result.clientCertificate_ = clientCertificate_;
result.keyIdentifier_ = keyIdentifier_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.getDefaultInstance()) return this;
if (!other.getServerName().isEmpty()) {
serverName_ = other.serverName_;
onChanged();
}
if (other.hasPort()) {
mergePort(other.getPort());
}
if (!other.getServerCa().isEmpty()) {
serverCa_ = other.serverCa_;
onChanged();
}
if (!other.getClientCertificate().isEmpty()) {
clientCertificate_ = other.clientCertificate_;
onChanged();
}
if (!other.getKeyIdentifier().isEmpty()) {
keyIdentifier_ = other.keyIdentifier_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object serverName_ = "";
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The serverName.
*/
public java.lang.String getServerName() {
java.lang.Object ref = serverName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return The bytes for serverName.
*/
public com.google.protobuf.ByteString
getServerNameBytes() {
java.lang.Object ref = serverName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @param value The serverName to set.
* @return This builder for chaining.
*/
public Builder setServerName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serverName_ = value;
onChanged();
return this;
}
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @return This builder for chaining.
*/
public Builder clearServerName() {
serverName_ = getDefaultInstance().getServerName();
onChanged();
return this;
}
/**
*
* KMIP server name
*
*
* string server_name = 1;
* @param value The bytes for serverName to set.
* @return This builder for chaining.
*/
public Builder setServerNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serverName_ = value;
onChanged();
return this;
}
private com.google.protobuf.Int64Value port_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> portBuilder_;
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return Whether the port field is set.
*/
public boolean hasPort() {
return portBuilder_ != null || port_ != null;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
* @return The port.
*/
public com.google.protobuf.Int64Value getPort() {
if (portBuilder_ == null) {
return port_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : port_;
} else {
return portBuilder_.getMessage();
}
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public Builder setPort(com.google.protobuf.Int64Value value) {
if (portBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
port_ = value;
onChanged();
} else {
portBuilder_.setMessage(value);
}
return this;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public Builder setPort(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (portBuilder_ == null) {
port_ = builderForValue.build();
onChanged();
} else {
portBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public Builder mergePort(com.google.protobuf.Int64Value value) {
if (portBuilder_ == null) {
if (port_ != null) {
port_ =
com.google.protobuf.Int64Value.newBuilder(port_).mergeFrom(value).buildPartial();
} else {
port_ = value;
}
onChanged();
} else {
portBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public Builder clearPort() {
if (portBuilder_ == null) {
port_ = null;
onChanged();
} else {
port_ = null;
portBuilder_ = null;
}
return this;
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public com.google.protobuf.Int64Value.Builder getPortBuilder() {
onChanged();
return getPortFieldBuilder().getBuilder();
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
public com.google.protobuf.Int64ValueOrBuilder getPortOrBuilder() {
if (portBuilder_ != null) {
return portBuilder_.getMessageOrBuilder();
} else {
return port_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : port_;
}
}
/**
*
* KMIP server port
*
*
* .google.protobuf.Int64Value port = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getPortFieldBuilder() {
if (portBuilder_ == null) {
portBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getPort(),
getParentForChildren(),
isClean());
port_ = null;
}
return portBuilder_;
}
private java.lang.Object serverCa_ = "";
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The serverCa.
*/
public java.lang.String getServerCa() {
java.lang.Object ref = serverCa_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serverCa_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return The bytes for serverCa.
*/
public com.google.protobuf.ByteString
getServerCaBytes() {
java.lang.Object ref = serverCa_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverCa_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @param value The serverCa to set.
* @return This builder for chaining.
*/
public Builder setServerCa(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serverCa_ = value;
onChanged();
return this;
}
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @return This builder for chaining.
*/
public Builder clearServerCa() {
serverCa_ = getDefaultInstance().getServerCa();
onChanged();
return this;
}
/**
*
* KMIP Server CA
*
*
* string server_ca = 3;
* @param value The bytes for serverCa to set.
* @return This builder for chaining.
*/
public Builder setServerCaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serverCa_ = value;
onChanged();
return this;
}
private java.lang.Object clientCertificate_ = "";
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The clientCertificate.
*/
public java.lang.String getClientCertificate() {
java.lang.Object ref = clientCertificate_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
clientCertificate_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return The bytes for clientCertificate.
*/
public com.google.protobuf.ByteString
getClientCertificateBytes() {
java.lang.Object ref = clientCertificate_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientCertificate_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @param value The clientCertificate to set.
* @return This builder for chaining.
*/
public Builder setClientCertificate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
clientCertificate_ = value;
onChanged();
return this;
}
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @return This builder for chaining.
*/
public Builder clearClientCertificate() {
clientCertificate_ = getDefaultInstance().getClientCertificate();
onChanged();
return this;
}
/**
*
* KMIP client certificate + private key (unencrypted)
*
*
* string client_certificate = 4;
* @param value The bytes for clientCertificate to set.
* @return This builder for chaining.
*/
public Builder setClientCertificateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
clientCertificate_ = value;
onChanged();
return this;
}
private java.lang.Object keyIdentifier_ = "";
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The keyIdentifier.
*/
public java.lang.String getKeyIdentifier() {
java.lang.Object ref = keyIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
keyIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return The bytes for keyIdentifier.
*/
public com.google.protobuf.ByteString
getKeyIdentifierBytes() {
java.lang.Object ref = keyIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
keyIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @param value The keyIdentifier to set.
* @return This builder for chaining.
*/
public Builder setKeyIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
keyIdentifier_ = value;
onChanged();
return this;
}
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @return This builder for chaining.
*/
public Builder clearKeyIdentifier() {
keyIdentifier_ = getDefaultInstance().getKeyIdentifier();
onChanged();
return this;
}
/**
*
* KMIP Key identifier (if any)
*
*
* string key_identifier = 5;
* @param value The bytes for keyIdentifier to set.
* @return This builder for chaining.
*/
public Builder setKeyIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
keyIdentifier_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public KMIP parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new KMIP(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENABLE_ENCRYPTION_FIELD_NUMBER = 1;
private com.google.protobuf.BoolValue enableEncryption_;
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return Whether the enableEncryption field is set.
*/
@java.lang.Override
public boolean hasEnableEncryption() {
return enableEncryption_ != null;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return The enableEncryption.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getEnableEncryption() {
return enableEncryption_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableEncryption_;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getEnableEncryptionOrBuilder() {
return getEnableEncryption();
}
public static final int KMIP_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP kmip_;
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return Whether the kmip field is set.
*/
@java.lang.Override
public boolean hasKmip() {
return kmip_ != null;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return The kmip.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getKmip() {
return kmip_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.getDefaultInstance() : kmip_;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder getKmipOrBuilder() {
return getKmip();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (enableEncryption_ != null) {
output.writeMessage(1, getEnableEncryption());
}
if (kmip_ != null) {
output.writeMessage(2, getKmip());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (enableEncryption_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEnableEncryption());
}
if (kmip_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getKmip());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security) obj;
if (hasEnableEncryption() != other.hasEnableEncryption()) return false;
if (hasEnableEncryption()) {
if (!getEnableEncryption()
.equals(other.getEnableEncryption())) return false;
}
if (hasKmip() != other.hasKmip()) return false;
if (hasKmip()) {
if (!getKmip()
.equals(other.getKmip())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEnableEncryption()) {
hash = (37 * hash) + ENABLE_ENCRYPTION_FIELD_NUMBER;
hash = (53 * hash) + getEnableEncryption().hashCode();
}
if (hasKmip()) {
hash = (37 * hash) + KMIP_FIELD_NUMBER;
hash = (53 * hash) + getKmip().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (enableEncryptionBuilder_ == null) {
enableEncryption_ = null;
} else {
enableEncryption_ = null;
enableEncryptionBuilder_ = null;
}
if (kmipBuilder_ == null) {
kmip_ = null;
} else {
kmip_ = null;
kmipBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security(this);
if (enableEncryptionBuilder_ == null) {
result.enableEncryption_ = enableEncryption_;
} else {
result.enableEncryption_ = enableEncryptionBuilder_.build();
}
if (kmipBuilder_ == null) {
result.kmip_ = kmip_;
} else {
result.kmip_ = kmipBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.getDefaultInstance()) return this;
if (other.hasEnableEncryption()) {
mergeEnableEncryption(other.getEnableEncryption());
}
if (other.hasKmip()) {
mergeKmip(other.getKmip());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.BoolValue enableEncryption_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableEncryptionBuilder_;
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return Whether the enableEncryption field is set.
*/
public boolean hasEnableEncryption() {
return enableEncryptionBuilder_ != null || enableEncryption_ != null;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
* @return The enableEncryption.
*/
public com.google.protobuf.BoolValue getEnableEncryption() {
if (enableEncryptionBuilder_ == null) {
return enableEncryption_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableEncryption_;
} else {
return enableEncryptionBuilder_.getMessage();
}
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public Builder setEnableEncryption(com.google.protobuf.BoolValue value) {
if (enableEncryptionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
enableEncryption_ = value;
onChanged();
} else {
enableEncryptionBuilder_.setMessage(value);
}
return this;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public Builder setEnableEncryption(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (enableEncryptionBuilder_ == null) {
enableEncryption_ = builderForValue.build();
onChanged();
} else {
enableEncryptionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public Builder mergeEnableEncryption(com.google.protobuf.BoolValue value) {
if (enableEncryptionBuilder_ == null) {
if (enableEncryption_ != null) {
enableEncryption_ =
com.google.protobuf.BoolValue.newBuilder(enableEncryption_).mergeFrom(value).buildPartial();
} else {
enableEncryption_ = value;
}
onChanged();
} else {
enableEncryptionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public Builder clearEnableEncryption() {
if (enableEncryptionBuilder_ == null) {
enableEncryption_ = null;
onChanged();
} else {
enableEncryption_ = null;
enableEncryptionBuilder_ = null;
}
return this;
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public com.google.protobuf.BoolValue.Builder getEnableEncryptionBuilder() {
onChanged();
return getEnableEncryptionFieldBuilder().getBuilder();
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
public com.google.protobuf.BoolValueOrBuilder getEnableEncryptionOrBuilder() {
if (enableEncryptionBuilder_ != null) {
return enableEncryptionBuilder_.getMessageOrBuilder();
} else {
return enableEncryption_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : enableEncryption_;
}
}
/**
*
* If encryption at rest should be enabled or not
*
*
* .google.protobuf.BoolValue enable_encryption = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getEnableEncryptionFieldBuilder() {
if (enableEncryptionBuilder_ == null) {
enableEncryptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getEnableEncryption(),
getParentForChildren(),
isClean());
enableEncryption_ = null;
}
return enableEncryptionBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP kmip_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder> kmipBuilder_;
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return Whether the kmip field is set.
*/
public boolean hasKmip() {
return kmipBuilder_ != null || kmip_ != null;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
* @return The kmip.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP getKmip() {
if (kmipBuilder_ == null) {
return kmip_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.getDefaultInstance() : kmip_;
} else {
return kmipBuilder_.getMessage();
}
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public Builder setKmip(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP value) {
if (kmipBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kmip_ = value;
onChanged();
} else {
kmipBuilder_.setMessage(value);
}
return this;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public Builder setKmip(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder builderForValue) {
if (kmipBuilder_ == null) {
kmip_ = builderForValue.build();
onChanged();
} else {
kmipBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public Builder mergeKmip(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP value) {
if (kmipBuilder_ == null) {
if (kmip_ != null) {
kmip_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.newBuilder(kmip_).mergeFrom(value).buildPartial();
} else {
kmip_ = value;
}
onChanged();
} else {
kmipBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public Builder clearKmip() {
if (kmipBuilder_ == null) {
kmip_ = null;
onChanged();
} else {
kmip_ = null;
kmipBuilder_ = null;
}
return this;
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder getKmipBuilder() {
onChanged();
return getKmipFieldBuilder().getBuilder();
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder getKmipOrBuilder() {
if (kmipBuilder_ != null) {
return kmipBuilder_.getMessageOrBuilder();
} else {
return kmip_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.getDefaultInstance() : kmip_;
}
}
/**
*
* `kmip` section of mongod security config
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security.KMIP kmip = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder>
getKmipFieldBuilder() {
if (kmipBuilder_ == null) {
kmipBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIP.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.KMIPOrBuilder>(
getKmip(),
getParentForChildren(),
isClean());
kmip_ = null;
}
return kmipBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Security parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Security(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AuditLogOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog)
com.google.protobuf.MessageOrBuilder {
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The filter.
*/
java.lang.String getFilter();
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The bytes for filter.
*/
com.google.protobuf.ByteString
getFilterBytes();
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return Whether the runtimeConfiguration field is set.
*/
boolean hasRuntimeConfiguration();
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return The runtimeConfiguration.
*/
com.google.protobuf.BoolValue getRuntimeConfiguration();
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
com.google.protobuf.BoolValueOrBuilder getRuntimeConfigurationOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog}
*/
public static final class AuditLog extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog)
AuditLogOrBuilder {
private static final long serialVersionUID = 0L;
// Use AuditLog.newBuilder() to construct.
private AuditLog(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AuditLog() {
filter_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AuditLog();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AuditLog(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
filter_ = s;
break;
}
case 18: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (runtimeConfiguration_ != null) {
subBuilder = runtimeConfiguration_.toBuilder();
}
runtimeConfiguration_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(runtimeConfiguration_);
runtimeConfiguration_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder.class);
}
public static final int FILTER_FIELD_NUMBER = 1;
private volatile java.lang.Object filter_;
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The filter.
*/
@java.lang.Override
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
}
}
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The bytes for filter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RUNTIME_CONFIGURATION_FIELD_NUMBER = 2;
private com.google.protobuf.BoolValue runtimeConfiguration_;
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return Whether the runtimeConfiguration field is set.
*/
@java.lang.Override
public boolean hasRuntimeConfiguration() {
return runtimeConfiguration_ != null;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return The runtimeConfiguration.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getRuntimeConfiguration() {
return runtimeConfiguration_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : runtimeConfiguration_;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getRuntimeConfigurationOrBuilder() {
return getRuntimeConfiguration();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_);
}
if (runtimeConfiguration_ != null) {
output.writeMessage(2, getRuntimeConfiguration());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_);
}
if (runtimeConfiguration_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRuntimeConfiguration());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog) obj;
if (!getFilter()
.equals(other.getFilter())) return false;
if (hasRuntimeConfiguration() != other.hasRuntimeConfiguration()) return false;
if (hasRuntimeConfiguration()) {
if (!getRuntimeConfiguration()
.equals(other.getRuntimeConfiguration())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + FILTER_FIELD_NUMBER;
hash = (53 * hash) + getFilter().hashCode();
if (hasRuntimeConfiguration()) {
hash = (37 * hash) + RUNTIME_CONFIGURATION_FIELD_NUMBER;
hash = (53 * hash) + getRuntimeConfiguration().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
filter_ = "";
if (runtimeConfigurationBuilder_ == null) {
runtimeConfiguration_ = null;
} else {
runtimeConfiguration_ = null;
runtimeConfigurationBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog(this);
result.filter_ = filter_;
if (runtimeConfigurationBuilder_ == null) {
result.runtimeConfiguration_ = runtimeConfiguration_;
} else {
result.runtimeConfiguration_ = runtimeConfigurationBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.getDefaultInstance()) return this;
if (!other.getFilter().isEmpty()) {
filter_ = other.filter_;
onChanged();
}
if (other.hasRuntimeConfiguration()) {
mergeRuntimeConfiguration(other.getRuntimeConfiguration());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object filter_ = "";
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The filter.
*/
public java.lang.String getFilter() {
java.lang.Object ref = filter_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
filter_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Audit filter
*
*
* string filter = 1;
* @return The bytes for filter.
*/
public com.google.protobuf.ByteString
getFilterBytes() {
java.lang.Object ref = filter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
filter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Audit filter
*
*
* string filter = 1;
* @param value The filter to set.
* @return This builder for chaining.
*/
public Builder setFilter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
filter_ = value;
onChanged();
return this;
}
/**
*
* Audit filter
*
*
* string filter = 1;
* @return This builder for chaining.
*/
public Builder clearFilter() {
filter_ = getDefaultInstance().getFilter();
onChanged();
return this;
}
/**
*
* Audit filter
*
*
* string filter = 1;
* @param value The bytes for filter to set.
* @return This builder for chaining.
*/
public Builder setFilterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
filter_ = value;
onChanged();
return this;
}
private com.google.protobuf.BoolValue runtimeConfiguration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> runtimeConfigurationBuilder_;
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return Whether the runtimeConfiguration field is set.
*/
public boolean hasRuntimeConfiguration() {
return runtimeConfigurationBuilder_ != null || runtimeConfiguration_ != null;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
* @return The runtimeConfiguration.
*/
public com.google.protobuf.BoolValue getRuntimeConfiguration() {
if (runtimeConfigurationBuilder_ == null) {
return runtimeConfiguration_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : runtimeConfiguration_;
} else {
return runtimeConfigurationBuilder_.getMessage();
}
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public Builder setRuntimeConfiguration(com.google.protobuf.BoolValue value) {
if (runtimeConfigurationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
runtimeConfiguration_ = value;
onChanged();
} else {
runtimeConfigurationBuilder_.setMessage(value);
}
return this;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public Builder setRuntimeConfiguration(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (runtimeConfigurationBuilder_ == null) {
runtimeConfiguration_ = builderForValue.build();
onChanged();
} else {
runtimeConfigurationBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public Builder mergeRuntimeConfiguration(com.google.protobuf.BoolValue value) {
if (runtimeConfigurationBuilder_ == null) {
if (runtimeConfiguration_ != null) {
runtimeConfiguration_ =
com.google.protobuf.BoolValue.newBuilder(runtimeConfiguration_).mergeFrom(value).buildPartial();
} else {
runtimeConfiguration_ = value;
}
onChanged();
} else {
runtimeConfigurationBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public Builder clearRuntimeConfiguration() {
if (runtimeConfigurationBuilder_ == null) {
runtimeConfiguration_ = null;
onChanged();
} else {
runtimeConfiguration_ = null;
runtimeConfigurationBuilder_ = null;
}
return this;
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public com.google.protobuf.BoolValue.Builder getRuntimeConfigurationBuilder() {
onChanged();
return getRuntimeConfigurationFieldBuilder().getBuilder();
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
public com.google.protobuf.BoolValueOrBuilder getRuntimeConfigurationOrBuilder() {
if (runtimeConfigurationBuilder_ != null) {
return runtimeConfigurationBuilder_.getMessageOrBuilder();
} else {
return runtimeConfiguration_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : runtimeConfiguration_;
}
}
/**
*
* Allows runtime configuration of audit filter and auditAuthorizationSuccess
*
*
* .google.protobuf.BoolValue runtime_configuration = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getRuntimeConfigurationFieldBuilder() {
if (runtimeConfigurationBuilder_ == null) {
runtimeConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getRuntimeConfiguration(),
getParentForChildren(),
isClean());
runtimeConfiguration_ = null;
}
return runtimeConfigurationBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AuditLog parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AuditLog(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SetParameterOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter)
com.google.protobuf.MessageOrBuilder {
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return Whether the auditAuthorizationSuccess field is set.
*/
boolean hasAuditAuthorizationSuccess();
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return The auditAuthorizationSuccess.
*/
com.google.protobuf.BoolValue getAuditAuthorizationSuccess();
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
com.google.protobuf.BoolValueOrBuilder getAuditAuthorizationSuccessOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter}
*/
public static final class SetParameter extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter)
SetParameterOrBuilder {
private static final long serialVersionUID = 0L;
// Use SetParameter.newBuilder() to construct.
private SetParameter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SetParameter() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SetParameter();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetParameter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (auditAuthorizationSuccess_ != null) {
subBuilder = auditAuthorizationSuccess_.toBuilder();
}
auditAuthorizationSuccess_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(auditAuthorizationSuccess_);
auditAuthorizationSuccess_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder.class);
}
public static final int AUDIT_AUTHORIZATION_SUCCESS_FIELD_NUMBER = 1;
private com.google.protobuf.BoolValue auditAuthorizationSuccess_;
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return Whether the auditAuthorizationSuccess field is set.
*/
@java.lang.Override
public boolean hasAuditAuthorizationSuccess() {
return auditAuthorizationSuccess_ != null;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return The auditAuthorizationSuccess.
*/
@java.lang.Override
public com.google.protobuf.BoolValue getAuditAuthorizationSuccess() {
return auditAuthorizationSuccess_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : auditAuthorizationSuccess_;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getAuditAuthorizationSuccessOrBuilder() {
return getAuditAuthorizationSuccess();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (auditAuthorizationSuccess_ != null) {
output.writeMessage(1, getAuditAuthorizationSuccess());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (auditAuthorizationSuccess_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getAuditAuthorizationSuccess());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter) obj;
if (hasAuditAuthorizationSuccess() != other.hasAuditAuthorizationSuccess()) return false;
if (hasAuditAuthorizationSuccess()) {
if (!getAuditAuthorizationSuccess()
.equals(other.getAuditAuthorizationSuccess())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasAuditAuthorizationSuccess()) {
hash = (37 * hash) + AUDIT_AUTHORIZATION_SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + getAuditAuthorizationSuccess().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (auditAuthorizationSuccessBuilder_ == null) {
auditAuthorizationSuccess_ = null;
} else {
auditAuthorizationSuccess_ = null;
auditAuthorizationSuccessBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter(this);
if (auditAuthorizationSuccessBuilder_ == null) {
result.auditAuthorizationSuccess_ = auditAuthorizationSuccess_;
} else {
result.auditAuthorizationSuccess_ = auditAuthorizationSuccessBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.getDefaultInstance()) return this;
if (other.hasAuditAuthorizationSuccess()) {
mergeAuditAuthorizationSuccess(other.getAuditAuthorizationSuccess());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.BoolValue auditAuthorizationSuccess_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> auditAuthorizationSuccessBuilder_;
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return Whether the auditAuthorizationSuccess field is set.
*/
public boolean hasAuditAuthorizationSuccess() {
return auditAuthorizationSuccessBuilder_ != null || auditAuthorizationSuccess_ != null;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
* @return The auditAuthorizationSuccess.
*/
public com.google.protobuf.BoolValue getAuditAuthorizationSuccess() {
if (auditAuthorizationSuccessBuilder_ == null) {
return auditAuthorizationSuccess_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : auditAuthorizationSuccess_;
} else {
return auditAuthorizationSuccessBuilder_.getMessage();
}
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public Builder setAuditAuthorizationSuccess(com.google.protobuf.BoolValue value) {
if (auditAuthorizationSuccessBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
auditAuthorizationSuccess_ = value;
onChanged();
} else {
auditAuthorizationSuccessBuilder_.setMessage(value);
}
return this;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public Builder setAuditAuthorizationSuccess(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (auditAuthorizationSuccessBuilder_ == null) {
auditAuthorizationSuccess_ = builderForValue.build();
onChanged();
} else {
auditAuthorizationSuccessBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public Builder mergeAuditAuthorizationSuccess(com.google.protobuf.BoolValue value) {
if (auditAuthorizationSuccessBuilder_ == null) {
if (auditAuthorizationSuccess_ != null) {
auditAuthorizationSuccess_ =
com.google.protobuf.BoolValue.newBuilder(auditAuthorizationSuccess_).mergeFrom(value).buildPartial();
} else {
auditAuthorizationSuccess_ = value;
}
onChanged();
} else {
auditAuthorizationSuccessBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public Builder clearAuditAuthorizationSuccess() {
if (auditAuthorizationSuccessBuilder_ == null) {
auditAuthorizationSuccess_ = null;
onChanged();
} else {
auditAuthorizationSuccess_ = null;
auditAuthorizationSuccessBuilder_ = null;
}
return this;
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public com.google.protobuf.BoolValue.Builder getAuditAuthorizationSuccessBuilder() {
onChanged();
return getAuditAuthorizationSuccessFieldBuilder().getBuilder();
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
public com.google.protobuf.BoolValueOrBuilder getAuditAuthorizationSuccessOrBuilder() {
if (auditAuthorizationSuccessBuilder_ != null) {
return auditAuthorizationSuccessBuilder_.getMessageOrBuilder();
} else {
return auditAuthorizationSuccess_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : auditAuthorizationSuccess_;
}
}
/**
*
* Enables the auditing of authorization successes
*
*
* .google.protobuf.BoolValue audit_authorization_success = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getAuditAuthorizationSuccessFieldBuilder() {
if (auditAuthorizationSuccessBuilder_ == null) {
auditAuthorizationSuccessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getAuditAuthorizationSuccess(),
getParentForChildren(),
isClean());
auditAuthorizationSuccess_ = null;
}
return auditAuthorizationSuccessBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SetParameter parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetParameter(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STORAGE_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage storage_;
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return storage_ != null;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getStorage() {
return storage_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder() {
return getStorage();
}
public static final int OPERATION_PROFILING_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling operationProfiling_;
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
@java.lang.Override
public boolean hasOperationProfiling() {
return operationProfiling_ != null;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getOperationProfiling() {
return operationProfiling_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder() {
return getOperationProfiling();
}
public static final int NET_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network net_;
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
@java.lang.Override
public boolean hasNet() {
return net_ != null;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getNet() {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
return getNet();
}
public static final int SECURITY_FIELD_NUMBER = 4;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security security_;
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return Whether the security field is set.
*/
@java.lang.Override
public boolean hasSecurity() {
return security_ != null;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return The security.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getSecurity() {
return security_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.getDefaultInstance() : security_;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder getSecurityOrBuilder() {
return getSecurity();
}
public static final int AUDIT_LOG_FIELD_NUMBER = 5;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog auditLog_;
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return Whether the auditLog field is set.
*/
@java.lang.Override
public boolean hasAuditLog() {
return auditLog_ != null;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return The auditLog.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getAuditLog() {
return auditLog_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.getDefaultInstance() : auditLog_;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder getAuditLogOrBuilder() {
return getAuditLog();
}
public static final int SET_PARAMETER_FIELD_NUMBER = 6;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter setParameter_;
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return Whether the setParameter field is set.
*/
@java.lang.Override
public boolean hasSetParameter() {
return setParameter_ != null;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return The setParameter.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getSetParameter() {
return setParameter_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.getDefaultInstance() : setParameter_;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder getSetParameterOrBuilder() {
return getSetParameter();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (storage_ != null) {
output.writeMessage(1, getStorage());
}
if (operationProfiling_ != null) {
output.writeMessage(2, getOperationProfiling());
}
if (net_ != null) {
output.writeMessage(3, getNet());
}
if (security_ != null) {
output.writeMessage(4, getSecurity());
}
if (auditLog_ != null) {
output.writeMessage(5, getAuditLog());
}
if (setParameter_ != null) {
output.writeMessage(6, getSetParameter());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (storage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStorage());
}
if (operationProfiling_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationProfiling());
}
if (net_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getNet());
}
if (security_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getSecurity());
}
if (auditLog_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAuditLog());
}
if (setParameter_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getSetParameter());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise) obj;
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (hasOperationProfiling() != other.hasOperationProfiling()) return false;
if (hasOperationProfiling()) {
if (!getOperationProfiling()
.equals(other.getOperationProfiling())) return false;
}
if (hasNet() != other.hasNet()) return false;
if (hasNet()) {
if (!getNet()
.equals(other.getNet())) return false;
}
if (hasSecurity() != other.hasSecurity()) return false;
if (hasSecurity()) {
if (!getSecurity()
.equals(other.getSecurity())) return false;
}
if (hasAuditLog() != other.hasAuditLog()) return false;
if (hasAuditLog()) {
if (!getAuditLog()
.equals(other.getAuditLog())) return false;
}
if (hasSetParameter() != other.hasSetParameter()) return false;
if (hasSetParameter()) {
if (!getSetParameter()
.equals(other.getSetParameter())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (hasOperationProfiling()) {
hash = (37 * hash) + OPERATION_PROFILING_FIELD_NUMBER;
hash = (53 * hash) + getOperationProfiling().hashCode();
}
if (hasNet()) {
hash = (37 * hash) + NET_FIELD_NUMBER;
hash = (53 * hash) + getNet().hashCode();
}
if (hasSecurity()) {
hash = (37 * hash) + SECURITY_FIELD_NUMBER;
hash = (53 * hash) + getSecurity().hashCode();
}
if (hasAuditLog()) {
hash = (37 * hash) + AUDIT_LOG_FIELD_NUMBER;
hash = (53 * hash) + getAuditLog().hashCode();
}
if (hasSetParameter()) {
hash = (37 * hash) + SET_PARAMETER_FIELD_NUMBER;
hash = (53 * hash) + getSetParameter().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Configuration of a mongod daemon. Supported options are a limited subset of all
* options described in [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/).
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (storageBuilder_ == null) {
storage_ = null;
} else {
storage_ = null;
storageBuilder_ = null;
}
if (operationProfilingBuilder_ == null) {
operationProfiling_ = null;
} else {
operationProfiling_ = null;
operationProfilingBuilder_ = null;
}
if (netBuilder_ == null) {
net_ = null;
} else {
net_ = null;
netBuilder_ = null;
}
if (securityBuilder_ == null) {
security_ = null;
} else {
security_ = null;
securityBuilder_ = null;
}
if (auditLogBuilder_ == null) {
auditLog_ = null;
} else {
auditLog_ = null;
auditLogBuilder_ = null;
}
if (setParameterBuilder_ == null) {
setParameter_ = null;
} else {
setParameter_ = null;
setParameterBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise(this);
if (storageBuilder_ == null) {
result.storage_ = storage_;
} else {
result.storage_ = storageBuilder_.build();
}
if (operationProfilingBuilder_ == null) {
result.operationProfiling_ = operationProfiling_;
} else {
result.operationProfiling_ = operationProfilingBuilder_.build();
}
if (netBuilder_ == null) {
result.net_ = net_;
} else {
result.net_ = netBuilder_.build();
}
if (securityBuilder_ == null) {
result.security_ = security_;
} else {
result.security_ = securityBuilder_.build();
}
if (auditLogBuilder_ == null) {
result.auditLog_ = auditLog_;
} else {
result.auditLog_ = auditLogBuilder_.build();
}
if (setParameterBuilder_ == null) {
result.setParameter_ = setParameter_;
} else {
result.setParameter_ = setParameterBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance()) return this;
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.hasOperationProfiling()) {
mergeOperationProfiling(other.getOperationProfiling());
}
if (other.hasNet()) {
mergeNet(other.getNet());
}
if (other.hasSecurity()) {
mergeSecurity(other.getSecurity());
}
if (other.hasAuditLog()) {
mergeAuditLog(other.getAuditLog());
}
if (other.hasSetParameter()) {
mergeSetParameter(other.getSetParameter());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage storage_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder> storageBuilder_;
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
public boolean hasStorage() {
return storageBuilder_ != null || storage_ != null;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public Builder setStorage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
onChanged();
} else {
storageBuilder_.setMessage(value);
}
return this;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public Builder setStorage(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
onChanged();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public Builder mergeStorage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage value) {
if (storageBuilder_ == null) {
if (storage_ != null) {
storage_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.newBuilder(storage_).mergeFrom(value).buildPartial();
} else {
storage_ = value;
}
onChanged();
} else {
storageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public Builder clearStorage() {
if (storageBuilder_ == null) {
storage_ = null;
onChanged();
} else {
storage_ = null;
storageBuilder_ = null;
}
return this;
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder getStorageBuilder() {
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
}
}
/**
*
* `storage` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Storage storage = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.StorageOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling operationProfiling_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder> operationProfilingBuilder_;
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
public boolean hasOperationProfiling() {
return operationProfilingBuilder_ != null || operationProfiling_ != null;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling getOperationProfiling() {
if (operationProfilingBuilder_ == null) {
return operationProfiling_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
} else {
return operationProfilingBuilder_.getMessage();
}
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder setOperationProfiling(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling value) {
if (operationProfilingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationProfiling_ = value;
onChanged();
} else {
operationProfilingBuilder_.setMessage(value);
}
return this;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder setOperationProfiling(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder builderForValue) {
if (operationProfilingBuilder_ == null) {
operationProfiling_ = builderForValue.build();
onChanged();
} else {
operationProfilingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder mergeOperationProfiling(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling value) {
if (operationProfilingBuilder_ == null) {
if (operationProfiling_ != null) {
operationProfiling_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.newBuilder(operationProfiling_).mergeFrom(value).buildPartial();
} else {
operationProfiling_ = value;
}
onChanged();
} else {
operationProfilingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder clearOperationProfiling() {
if (operationProfilingBuilder_ == null) {
operationProfiling_ = null;
onChanged();
} else {
operationProfiling_ = null;
operationProfilingBuilder_ = null;
}
return this;
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder getOperationProfilingBuilder() {
onChanged();
return getOperationProfilingFieldBuilder().getBuilder();
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder() {
if (operationProfilingBuilder_ != null) {
return operationProfilingBuilder_.getMessageOrBuilder();
} else {
return operationProfiling_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
}
}
/**
*
* `operationProfiling` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder>
getOperationProfilingFieldBuilder() {
if (operationProfilingBuilder_ == null) {
operationProfilingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.OperationProfilingOrBuilder>(
getOperationProfiling(),
getParentForChildren(),
isClean());
operationProfiling_ = null;
}
return operationProfilingBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network net_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder> netBuilder_;
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
public boolean hasNet() {
return netBuilder_ != null || net_ != null;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network getNet() {
if (netBuilder_ == null) {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.getDefaultInstance() : net_;
} else {
return netBuilder_.getMessage();
}
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public Builder setNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
net_ = value;
onChanged();
} else {
netBuilder_.setMessage(value);
}
return this;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public Builder setNet(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder builderForValue) {
if (netBuilder_ == null) {
net_ = builderForValue.build();
onChanged();
} else {
netBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public Builder mergeNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (net_ != null) {
net_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.newBuilder(net_).mergeFrom(value).buildPartial();
} else {
net_ = value;
}
onChanged();
} else {
netBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public Builder clearNet() {
if (netBuilder_ == null) {
net_ = null;
onChanged();
} else {
net_ = null;
netBuilder_ = null;
}
return this;
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder getNetBuilder() {
onChanged();
return getNetFieldBuilder().getBuilder();
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
if (netBuilder_ != null) {
return netBuilder_.getMessageOrBuilder();
} else {
return net_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
}
/**
*
* `net` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Network net = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder>
getNetFieldBuilder() {
if (netBuilder_ == null) {
netBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.NetworkOrBuilder>(
getNet(),
getParentForChildren(),
isClean());
net_ = null;
}
return netBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security security_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder> securityBuilder_;
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return Whether the security field is set.
*/
public boolean hasSecurity() {
return securityBuilder_ != null || security_ != null;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
* @return The security.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security getSecurity() {
if (securityBuilder_ == null) {
return security_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.getDefaultInstance() : security_;
} else {
return securityBuilder_.getMessage();
}
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public Builder setSecurity(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security value) {
if (securityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
security_ = value;
onChanged();
} else {
securityBuilder_.setMessage(value);
}
return this;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public Builder setSecurity(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder builderForValue) {
if (securityBuilder_ == null) {
security_ = builderForValue.build();
onChanged();
} else {
securityBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public Builder mergeSecurity(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security value) {
if (securityBuilder_ == null) {
if (security_ != null) {
security_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.newBuilder(security_).mergeFrom(value).buildPartial();
} else {
security_ = value;
}
onChanged();
} else {
securityBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public Builder clearSecurity() {
if (securityBuilder_ == null) {
security_ = null;
onChanged();
} else {
security_ = null;
securityBuilder_ = null;
}
return this;
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder getSecurityBuilder() {
onChanged();
return getSecurityFieldBuilder().getBuilder();
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder getSecurityOrBuilder() {
if (securityBuilder_ != null) {
return securityBuilder_.getMessageOrBuilder();
} else {
return security_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.getDefaultInstance() : security_;
}
}
/**
*
* `security` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.Security security = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder>
getSecurityFieldBuilder() {
if (securityBuilder_ == null) {
securityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Security.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SecurityOrBuilder>(
getSecurity(),
getParentForChildren(),
isClean());
security_ = null;
}
return securityBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog auditLog_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder> auditLogBuilder_;
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return Whether the auditLog field is set.
*/
public boolean hasAuditLog() {
return auditLogBuilder_ != null || auditLog_ != null;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
* @return The auditLog.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog getAuditLog() {
if (auditLogBuilder_ == null) {
return auditLog_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.getDefaultInstance() : auditLog_;
} else {
return auditLogBuilder_.getMessage();
}
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public Builder setAuditLog(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog value) {
if (auditLogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
auditLog_ = value;
onChanged();
} else {
auditLogBuilder_.setMessage(value);
}
return this;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public Builder setAuditLog(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder builderForValue) {
if (auditLogBuilder_ == null) {
auditLog_ = builderForValue.build();
onChanged();
} else {
auditLogBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public Builder mergeAuditLog(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog value) {
if (auditLogBuilder_ == null) {
if (auditLog_ != null) {
auditLog_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.newBuilder(auditLog_).mergeFrom(value).buildPartial();
} else {
auditLog_ = value;
}
onChanged();
} else {
auditLogBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public Builder clearAuditLog() {
if (auditLogBuilder_ == null) {
auditLog_ = null;
onChanged();
} else {
auditLog_ = null;
auditLogBuilder_ = null;
}
return this;
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder getAuditLogBuilder() {
onChanged();
return getAuditLogFieldBuilder().getBuilder();
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder getAuditLogOrBuilder() {
if (auditLogBuilder_ != null) {
return auditLogBuilder_.getMessageOrBuilder();
} else {
return auditLog_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.getDefaultInstance() : auditLog_;
}
}
/**
*
* `AuditLog` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.AuditLog audit_log = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder>
getAuditLogFieldBuilder() {
if (auditLogBuilder_ == null) {
auditLogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLog.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.AuditLogOrBuilder>(
getAuditLog(),
getParentForChildren(),
isClean());
auditLog_ = null;
}
return auditLogBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter setParameter_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder> setParameterBuilder_;
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return Whether the setParameter field is set.
*/
public boolean hasSetParameter() {
return setParameterBuilder_ != null || setParameter_ != null;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
* @return The setParameter.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter getSetParameter() {
if (setParameterBuilder_ == null) {
return setParameter_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.getDefaultInstance() : setParameter_;
} else {
return setParameterBuilder_.getMessage();
}
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public Builder setSetParameter(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter value) {
if (setParameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
setParameter_ = value;
onChanged();
} else {
setParameterBuilder_.setMessage(value);
}
return this;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public Builder setSetParameter(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder builderForValue) {
if (setParameterBuilder_ == null) {
setParameter_ = builderForValue.build();
onChanged();
} else {
setParameterBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public Builder mergeSetParameter(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter value) {
if (setParameterBuilder_ == null) {
if (setParameter_ != null) {
setParameter_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.newBuilder(setParameter_).mergeFrom(value).buildPartial();
} else {
setParameter_ = value;
}
onChanged();
} else {
setParameterBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public Builder clearSetParameter() {
if (setParameterBuilder_ == null) {
setParameter_ = null;
onChanged();
} else {
setParameter_ = null;
setParameterBuilder_ = null;
}
return this;
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder getSetParameterBuilder() {
onChanged();
return getSetParameterFieldBuilder().getBuilder();
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder getSetParameterOrBuilder() {
if (setParameterBuilder_ != null) {
return setParameterBuilder_.getMessageOrBuilder();
} else {
return setParameter_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.getDefaultInstance() : setParameter_;
}
}
/**
*
* `SetParameter` section of mongod configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise.SetParameter set_parameter = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder>
getSetParameterFieldBuilder() {
if (setParameterBuilder_ == null) {
setParameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameter.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.SetParameterOrBuilder>(
getSetParameter(),
getParentForChildren(),
isClean());
setParameter_ = null;
}
return setParameterBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongodConfig5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongodConfig5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MongoCfgConfig5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
boolean hasStorage();
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getStorage();
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder();
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
boolean hasOperationProfiling();
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getOperationProfiling();
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder();
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
boolean hasNet();
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getNet();
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise}
*/
public static final class MongoCfgConfig5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise)
MongoCfgConfig5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongoCfgConfig5_0_enterprise.newBuilder() to construct.
private MongoCfgConfig5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongoCfgConfig5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongoCfgConfig5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongoCfgConfig5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder subBuilder = null;
if (storage_ != null) {
subBuilder = storage_.toBuilder();
}
storage_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(storage_);
storage_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder subBuilder = null;
if (operationProfiling_ != null) {
subBuilder = operationProfiling_.toBuilder();
}
operationProfiling_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(operationProfiling_);
operationProfiling_ = subBuilder.buildPartial();
}
break;
}
case 26: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder subBuilder = null;
if (net_ != null) {
subBuilder = net_.toBuilder();
}
net_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(net_);
net_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder.class);
}
public interface StorageOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage)
com.google.protobuf.MessageOrBuilder {
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
boolean hasWiredTiger();
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getWiredTiger();
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage}
*/
public static final class Storage extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage)
StorageOrBuilder {
private static final long serialVersionUID = 0L;
// Use Storage.newBuilder() to construct.
private Storage(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Storage() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Storage();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Storage(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder subBuilder = null;
if (wiredTiger_ != null) {
subBuilder = wiredTiger_.toBuilder();
}
wiredTiger_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(wiredTiger_);
wiredTiger_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder.class);
}
public interface WiredTigerOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)
com.google.protobuf.MessageOrBuilder {
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
boolean hasEngineConfig();
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig();
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder();
}
/**
*
* Configuration of WiredTiger storage engine.
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger}
*/
public static final class WiredTiger extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)
WiredTigerOrBuilder {
private static final long serialVersionUID = 0L;
// Use WiredTiger.newBuilder() to construct.
private WiredTiger(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private WiredTiger() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new WiredTiger();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private WiredTiger(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder subBuilder = null;
if (engineConfig_ != null) {
subBuilder = engineConfig_.toBuilder();
}
engineConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(engineConfig_);
engineConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder.class);
}
public interface EngineConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
boolean hasCacheSizeGb();
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
com.google.protobuf.DoubleValue getCacheSizeGb();
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig}
*/
public static final class EngineConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
EngineConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use EngineConfig.newBuilder() to construct.
private EngineConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EngineConfig() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EngineConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EngineConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.DoubleValue.Builder subBuilder = null;
if (cacheSizeGb_ != null) {
subBuilder = cacheSizeGb_.toBuilder();
}
cacheSizeGb_ = input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(cacheSizeGb_);
cacheSizeGb_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder.class);
}
public static final int CACHE_SIZE_GB_FIELD_NUMBER = 1;
private com.google.protobuf.DoubleValue cacheSizeGb_;
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
@java.lang.Override
public boolean hasCacheSizeGb() {
return cacheSizeGb_ != null;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
@java.lang.Override
public com.google.protobuf.DoubleValue getCacheSizeGb() {
return cacheSizeGb_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
@java.lang.Override
public com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder() {
return getCacheSizeGb();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (cacheSizeGb_ != null) {
output.writeMessage(1, getCacheSizeGb());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (cacheSizeGb_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getCacheSizeGb());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) obj;
if (hasCacheSizeGb() != other.hasCacheSizeGb()) return false;
if (hasCacheSizeGb()) {
if (!getCacheSizeGb()
.equals(other.getCacheSizeGb())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasCacheSizeGb()) {
hash = (37 * hash) + CACHE_SIZE_GB_FIELD_NUMBER;
hash = (53 * hash) + getCacheSizeGb().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = null;
} else {
cacheSizeGb_ = null;
cacheSizeGbBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig(this);
if (cacheSizeGbBuilder_ == null) {
result.cacheSizeGb_ = cacheSizeGb_;
} else {
result.cacheSizeGb_ = cacheSizeGbBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance()) return this;
if (other.hasCacheSizeGb()) {
mergeCacheSizeGb(other.getCacheSizeGb());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.DoubleValue cacheSizeGb_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder> cacheSizeGbBuilder_;
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return Whether the cacheSizeGb field is set.
*/
public boolean hasCacheSizeGb() {
return cacheSizeGbBuilder_ != null || cacheSizeGb_ != null;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
* @return The cacheSizeGb.
*/
public com.google.protobuf.DoubleValue getCacheSizeGb() {
if (cacheSizeGbBuilder_ == null) {
return cacheSizeGb_ == null ? com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
} else {
return cacheSizeGbBuilder_.getMessage();
}
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder setCacheSizeGb(com.google.protobuf.DoubleValue value) {
if (cacheSizeGbBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
cacheSizeGb_ = value;
onChanged();
} else {
cacheSizeGbBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder setCacheSizeGb(
com.google.protobuf.DoubleValue.Builder builderForValue) {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = builderForValue.build();
onChanged();
} else {
cacheSizeGbBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder mergeCacheSizeGb(com.google.protobuf.DoubleValue value) {
if (cacheSizeGbBuilder_ == null) {
if (cacheSizeGb_ != null) {
cacheSizeGb_ =
com.google.protobuf.DoubleValue.newBuilder(cacheSizeGb_).mergeFrom(value).buildPartial();
} else {
cacheSizeGb_ = value;
}
onChanged();
} else {
cacheSizeGbBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public Builder clearCacheSizeGb() {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGb_ = null;
onChanged();
} else {
cacheSizeGb_ = null;
cacheSizeGbBuilder_ = null;
}
return this;
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public com.google.protobuf.DoubleValue.Builder getCacheSizeGbBuilder() {
onChanged();
return getCacheSizeGbFieldBuilder().getBuilder();
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
public com.google.protobuf.DoubleValueOrBuilder getCacheSizeGbOrBuilder() {
if (cacheSizeGbBuilder_ != null) {
return cacheSizeGbBuilder_.getMessageOrBuilder();
} else {
return cacheSizeGb_ == null ?
com.google.protobuf.DoubleValue.getDefaultInstance() : cacheSizeGb_;
}
}
/**
*
* The maximum size of the internal cache that WiredTiger will use for all data.
*
*
* .google.protobuf.DoubleValue cache_size_gb = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>
getCacheSizeGbFieldBuilder() {
if (cacheSizeGbBuilder_ == null) {
cacheSizeGbBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.DoubleValue, com.google.protobuf.DoubleValue.Builder, com.google.protobuf.DoubleValueOrBuilder>(
getCacheSizeGb(),
getParentForChildren(),
isClean());
cacheSizeGb_ = null;
}
return cacheSizeGbBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EngineConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EngineConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int ENGINE_CONFIG_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engineConfig_;
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
@java.lang.Override
public boolean hasEngineConfig() {
return engineConfig_ != null;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig() {
return engineConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder() {
return getEngineConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (engineConfig_ != null) {
output.writeMessage(1, getEngineConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (engineConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEngineConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger) obj;
if (hasEngineConfig() != other.hasEngineConfig()) return false;
if (hasEngineConfig()) {
if (!getEngineConfig()
.equals(other.getEngineConfig())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEngineConfig()) {
hash = (37 * hash) + ENGINE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEngineConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Configuration of WiredTiger storage engine.
*
*
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (engineConfigBuilder_ == null) {
engineConfig_ = null;
} else {
engineConfig_ = null;
engineConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger(this);
if (engineConfigBuilder_ == null) {
result.engineConfig_ = engineConfig_;
} else {
result.engineConfig_ = engineConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance()) return this;
if (other.hasEngineConfig()) {
mergeEngineConfig(other.getEngineConfig());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engineConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder> engineConfigBuilder_;
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return Whether the engineConfig field is set.
*/
public boolean hasEngineConfig() {
return engineConfigBuilder_ != null || engineConfig_ != null;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
* @return The engineConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig getEngineConfig() {
if (engineConfigBuilder_ == null) {
return engineConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
} else {
return engineConfigBuilder_.getMessage();
}
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder setEngineConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig value) {
if (engineConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
engineConfig_ = value;
onChanged();
} else {
engineConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder setEngineConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder builderForValue) {
if (engineConfigBuilder_ == null) {
engineConfig_ = builderForValue.build();
onChanged();
} else {
engineConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder mergeEngineConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig value) {
if (engineConfigBuilder_ == null) {
if (engineConfig_ != null) {
engineConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.newBuilder(engineConfig_).mergeFrom(value).buildPartial();
} else {
engineConfig_ = value;
}
onChanged();
} else {
engineConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public Builder clearEngineConfig() {
if (engineConfigBuilder_ == null) {
engineConfig_ = null;
onChanged();
} else {
engineConfig_ = null;
engineConfigBuilder_ = null;
}
return this;
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder getEngineConfigBuilder() {
onChanged();
return getEngineConfigFieldBuilder().getBuilder();
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder getEngineConfigOrBuilder() {
if (engineConfigBuilder_ != null) {
return engineConfigBuilder_.getMessageOrBuilder();
} else {
return engineConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.getDefaultInstance() : engineConfig_;
}
}
/**
*
* Engine configuration for WiredTiger.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig engine_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder>
getEngineConfigFieldBuilder() {
if (engineConfigBuilder_ == null) {
engineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfig.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.EngineConfigOrBuilder>(
getEngineConfig(),
getParentForChildren(),
isClean());
engineConfig_ = null;
}
return engineConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public WiredTiger parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new WiredTiger(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int WIRED_TIGER_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wiredTiger_;
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
@java.lang.Override
public boolean hasWiredTiger() {
return wiredTiger_ != null;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getWiredTiger() {
return wiredTiger_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder() {
return getWiredTiger();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (wiredTiger_ != null) {
output.writeMessage(1, getWiredTiger());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (wiredTiger_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getWiredTiger());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage) obj;
if (hasWiredTiger() != other.hasWiredTiger()) return false;
if (hasWiredTiger()) {
if (!getWiredTiger()
.equals(other.getWiredTiger())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasWiredTiger()) {
hash = (37 * hash) + WIRED_TIGER_FIELD_NUMBER;
hash = (53 * hash) + getWiredTiger().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (wiredTigerBuilder_ == null) {
wiredTiger_ = null;
} else {
wiredTiger_ = null;
wiredTigerBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage(this);
if (wiredTigerBuilder_ == null) {
result.wiredTiger_ = wiredTiger_;
} else {
result.wiredTiger_ = wiredTigerBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.getDefaultInstance()) return this;
if (other.hasWiredTiger()) {
mergeWiredTiger(other.getWiredTiger());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wiredTiger_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder> wiredTigerBuilder_;
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return Whether the wiredTiger field is set.
*/
public boolean hasWiredTiger() {
return wiredTigerBuilder_ != null || wiredTiger_ != null;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
* @return The wiredTiger.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger getWiredTiger() {
if (wiredTigerBuilder_ == null) {
return wiredTiger_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
} else {
return wiredTigerBuilder_.getMessage();
}
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder setWiredTiger(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger value) {
if (wiredTigerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
wiredTiger_ = value;
onChanged();
} else {
wiredTigerBuilder_.setMessage(value);
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder setWiredTiger(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder builderForValue) {
if (wiredTigerBuilder_ == null) {
wiredTiger_ = builderForValue.build();
onChanged();
} else {
wiredTigerBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder mergeWiredTiger(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger value) {
if (wiredTigerBuilder_ == null) {
if (wiredTiger_ != null) {
wiredTiger_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.newBuilder(wiredTiger_).mergeFrom(value).buildPartial();
} else {
wiredTiger_ = value;
}
onChanged();
} else {
wiredTigerBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public Builder clearWiredTiger() {
if (wiredTigerBuilder_ == null) {
wiredTiger_ = null;
onChanged();
} else {
wiredTiger_ = null;
wiredTigerBuilder_ = null;
}
return this;
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder getWiredTigerBuilder() {
onChanged();
return getWiredTigerFieldBuilder().getBuilder();
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder getWiredTigerOrBuilder() {
if (wiredTigerBuilder_ != null) {
return wiredTigerBuilder_.getMessageOrBuilder();
} else {
return wiredTiger_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.getDefaultInstance() : wiredTiger_;
}
}
/**
*
* Configuration of the WiredTiger storage engine.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage.WiredTiger wired_tiger = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder>
getWiredTigerFieldBuilder() {
if (wiredTigerBuilder_ == null) {
wiredTigerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTiger.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.WiredTigerOrBuilder>(
getWiredTiger(),
getParentForChildren(),
isClean());
wiredTiger_ = null;
}
return wiredTigerBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Storage parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Storage(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OperationProfilingOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling)
com.google.protobuf.MessageOrBuilder {
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
int getModeValue();
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode getMode();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
boolean hasSlowOpThreshold();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
com.google.protobuf.Int64Value getSlowOpThreshold();
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling}
*/
public static final class OperationProfiling extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling)
OperationProfilingOrBuilder {
private static final long serialVersionUID = 0L;
// Use OperationProfiling.newBuilder() to construct.
private OperationProfiling(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OperationProfiling() {
mode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OperationProfiling();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OperationProfiling(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
mode_ = rawValue;
break;
}
case 18: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (slowOpThreshold_ != null) {
subBuilder = slowOpThreshold_.toBuilder();
}
slowOpThreshold_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(slowOpThreshold_);
slowOpThreshold_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder.class);
}
/**
* Protobuf enum {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode}
*/
public enum Mode
implements com.google.protobuf.ProtocolMessageEnum {
/**
* MODE_UNSPECIFIED = 0;
*/
MODE_UNSPECIFIED(0),
/**
*
* The profiler is off and does not collect any data.
*
*
* OFF = 1;
*/
OFF(1),
/**
*
* The profiler collects data for operations that take longer than the value of [slow_op_threshold].
*
*
* SLOW_OP = 2;
*/
SLOW_OP(2),
/**
*
* The profiler collects data for all operations.
*
*
* ALL = 3;
*/
ALL(3),
UNRECOGNIZED(-1),
;
/**
* MODE_UNSPECIFIED = 0;
*/
public static final int MODE_UNSPECIFIED_VALUE = 0;
/**
*
* The profiler is off and does not collect any data.
*
*
* OFF = 1;
*/
public static final int OFF_VALUE = 1;
/**
*
* The profiler collects data for operations that take longer than the value of [slow_op_threshold].
*
*
* SLOW_OP = 2;
*/
public static final int SLOW_OP_VALUE = 2;
/**
*
* The profiler collects data for all operations.
*
*
* ALL = 3;
*/
public static final int ALL_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Mode valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Mode forNumber(int value) {
switch (value) {
case 0: return MODE_UNSPECIFIED;
case 1: return OFF;
case 2: return SLOW_OP;
case 3: return ALL;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Mode> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Mode findValueByNumber(int number) {
return Mode.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDescriptor().getEnumTypes().get(0);
}
private static final Mode[] VALUES = values();
public static Mode valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Mode(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode)
}
public static final int MODE_FIELD_NUMBER = 1;
private int mode_;
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.UNRECOGNIZED : result;
}
public static final int SLOW_OP_THRESHOLD_FIELD_NUMBER = 2;
private com.google.protobuf.Int64Value slowOpThreshold_;
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
@java.lang.Override
public boolean hasSlowOpThreshold() {
return slowOpThreshold_ != null;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getSlowOpThreshold() {
return slowOpThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder() {
return getSlowOpThreshold();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (mode_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, mode_);
}
if (slowOpThreshold_ != null) {
output.writeMessage(2, getSlowOpThreshold());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (mode_ != yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, mode_);
}
if (slowOpThreshold_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSlowOpThreshold());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling) obj;
if (mode_ != other.mode_) return false;
if (hasSlowOpThreshold() != other.hasSlowOpThreshold()) return false;
if (hasSlowOpThreshold()) {
if (!getSlowOpThreshold()
.equals(other.getSlowOpThreshold())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MODE_FIELD_NUMBER;
hash = (53 * hash) + mode_;
if (hasSlowOpThreshold()) {
hash = (37 * hash) + SLOW_OP_THRESHOLD_FIELD_NUMBER;
hash = (53 * hash) + getSlowOpThreshold().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
mode_ = 0;
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = null;
} else {
slowOpThreshold_ = null;
slowOpThresholdBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling(this);
result.mode_ = mode_;
if (slowOpThresholdBuilder_ == null) {
result.slowOpThreshold_ = slowOpThreshold_;
} else {
result.slowOpThreshold_ = slowOpThresholdBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDefaultInstance()) return this;
if (other.mode_ != 0) {
setModeValue(other.getModeValue());
}
if (other.hasSlowOpThreshold()) {
mergeSlowOpThreshold(other.getSlowOpThreshold());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int mode_ = 0;
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The enum numeric value on the wire for mode.
*/
@java.lang.Override public int getModeValue() {
return mode_;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @param value The enum numeric value on the wire for mode to set.
* @return This builder for chaining.
*/
public Builder setModeValue(int value) {
mode_ = value;
onChanged();
return this;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return The mode.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode getMode() {
@SuppressWarnings("deprecation")
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode result = yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.valueOf(mode_);
return result == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode.UNRECOGNIZED : result;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @param value The mode to set.
* @return This builder for chaining.
*/
public Builder setMode(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode value) {
if (value == null) {
throw new NullPointerException();
}
mode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Mode which specifies operations that should be profiled.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling.Mode mode = 1;
* @return This builder for chaining.
*/
public Builder clearMode() {
mode_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Int64Value slowOpThreshold_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> slowOpThresholdBuilder_;
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return Whether the slowOpThreshold field is set.
*/
public boolean hasSlowOpThreshold() {
return slowOpThresholdBuilder_ != null || slowOpThreshold_ != null;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
* @return The slowOpThreshold.
*/
public com.google.protobuf.Int64Value getSlowOpThreshold() {
if (slowOpThresholdBuilder_ == null) {
return slowOpThreshold_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
} else {
return slowOpThresholdBuilder_.getMessage();
}
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder setSlowOpThreshold(com.google.protobuf.Int64Value value) {
if (slowOpThresholdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
slowOpThreshold_ = value;
onChanged();
} else {
slowOpThresholdBuilder_.setMessage(value);
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder setSlowOpThreshold(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = builderForValue.build();
onChanged();
} else {
slowOpThresholdBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder mergeSlowOpThreshold(com.google.protobuf.Int64Value value) {
if (slowOpThresholdBuilder_ == null) {
if (slowOpThreshold_ != null) {
slowOpThreshold_ =
com.google.protobuf.Int64Value.newBuilder(slowOpThreshold_).mergeFrom(value).buildPartial();
} else {
slowOpThreshold_ = value;
}
onChanged();
} else {
slowOpThresholdBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public Builder clearSlowOpThreshold() {
if (slowOpThresholdBuilder_ == null) {
slowOpThreshold_ = null;
onChanged();
} else {
slowOpThreshold_ = null;
slowOpThresholdBuilder_ = null;
}
return this;
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public com.google.protobuf.Int64Value.Builder getSlowOpThresholdBuilder() {
onChanged();
return getSlowOpThresholdFieldBuilder().getBuilder();
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
public com.google.protobuf.Int64ValueOrBuilder getSlowOpThresholdOrBuilder() {
if (slowOpThresholdBuilder_ != null) {
return slowOpThresholdBuilder_.getMessageOrBuilder();
} else {
return slowOpThreshold_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : slowOpThreshold_;
}
}
/**
*
* The slow operation time threshold, in milliseconds. Operations that run
* for longer than this threshold are considered slow, and are processed by the profiler
* running in the SLOW_OP mode. For details see [MongoDB documentation](https://docs.mongodb.com/v5.0/reference/configuration-options/#operationProfiling.slowOpThresholdMs).
*
*
* .google.protobuf.Int64Value slow_op_threshold = 2 [(.yandex.cloud.value) = ">0"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getSlowOpThresholdFieldBuilder() {
if (slowOpThresholdBuilder_ == null) {
slowOpThresholdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getSlowOpThreshold(),
getParentForChildren(),
isClean());
slowOpThreshold_ = null;
}
return slowOpThresholdBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OperationProfiling parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OperationProfiling(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface NetworkOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
boolean hasMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
com.google.protobuf.Int64Value getMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network}
*/
public static final class Network extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network)
NetworkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Network.newBuilder() to construct.
private Network(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Network() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Network();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Network(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxIncomingConnections_ != null) {
subBuilder = maxIncomingConnections_.toBuilder();
}
maxIncomingConnections_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxIncomingConnections_);
maxIncomingConnections_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder.class);
}
public static final int MAX_INCOMING_CONNECTIONS_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value maxIncomingConnections_;
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
@java.lang.Override
public boolean hasMaxIncomingConnections() {
return maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
return getMaxIncomingConnections();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxIncomingConnections_ != null) {
output.writeMessage(1, getMaxIncomingConnections());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxIncomingConnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMaxIncomingConnections());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network) obj;
if (hasMaxIncomingConnections() != other.hasMaxIncomingConnections()) return false;
if (hasMaxIncomingConnections()) {
if (!getMaxIncomingConnections()
.equals(other.getMaxIncomingConnections())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxIncomingConnections()) {
hash = (37 * hash) + MAX_INCOMING_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxIncomingConnections().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network(this);
if (maxIncomingConnectionsBuilder_ == null) {
result.maxIncomingConnections_ = maxIncomingConnections_;
} else {
result.maxIncomingConnections_ = maxIncomingConnectionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.getDefaultInstance()) return this;
if (other.hasMaxIncomingConnections()) {
mergeMaxIncomingConnections(other.getMaxIncomingConnections());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value maxIncomingConnections_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxIncomingConnectionsBuilder_;
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
public boolean hasMaxIncomingConnections() {
return maxIncomingConnectionsBuilder_ != null || maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
} else {
return maxIncomingConnectionsBuilder_.getMessage();
}
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxIncomingConnections_ = value;
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = builderForValue.build();
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder mergeMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (maxIncomingConnections_ != null) {
maxIncomingConnections_ =
com.google.protobuf.Int64Value.newBuilder(maxIncomingConnections_).mergeFrom(value).buildPartial();
} else {
maxIncomingConnections_ = value;
}
onChanged();
} else {
maxIncomingConnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder clearMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
onChanged();
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64Value.Builder getMaxIncomingConnectionsBuilder() {
onChanged();
return getMaxIncomingConnectionsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
if (maxIncomingConnectionsBuilder_ != null) {
return maxIncomingConnectionsBuilder_.getMessageOrBuilder();
} else {
return maxIncomingConnections_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
}
/**
*
* The maximum number of simultaneous connections that mongocfg will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxIncomingConnectionsFieldBuilder() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxIncomingConnections(),
getParentForChildren(),
isClean());
maxIncomingConnections_ = null;
}
return maxIncomingConnectionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Network parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Network(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int STORAGE_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage storage_;
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
@java.lang.Override
public boolean hasStorage() {
return storage_ != null;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getStorage() {
return storage_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder() {
return getStorage();
}
public static final int OPERATION_PROFILING_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling operationProfiling_;
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
@java.lang.Override
public boolean hasOperationProfiling() {
return operationProfiling_ != null;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getOperationProfiling() {
return operationProfiling_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder() {
return getOperationProfiling();
}
public static final int NET_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network net_;
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
@java.lang.Override
public boolean hasNet() {
return net_ != null;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getNet() {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
return getNet();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (storage_ != null) {
output.writeMessage(1, getStorage());
}
if (operationProfiling_ != null) {
output.writeMessage(2, getOperationProfiling());
}
if (net_ != null) {
output.writeMessage(3, getNet());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (storage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getStorage());
}
if (operationProfiling_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getOperationProfiling());
}
if (net_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getNet());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise) obj;
if (hasStorage() != other.hasStorage()) return false;
if (hasStorage()) {
if (!getStorage()
.equals(other.getStorage())) return false;
}
if (hasOperationProfiling() != other.hasOperationProfiling()) return false;
if (hasOperationProfiling()) {
if (!getOperationProfiling()
.equals(other.getOperationProfiling())) return false;
}
if (hasNet() != other.hasNet()) return false;
if (hasNet()) {
if (!getNet()
.equals(other.getNet())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasStorage()) {
hash = (37 * hash) + STORAGE_FIELD_NUMBER;
hash = (53 * hash) + getStorage().hashCode();
}
if (hasOperationProfiling()) {
hash = (37 * hash) + OPERATION_PROFILING_FIELD_NUMBER;
hash = (53 * hash) + getOperationProfiling().hashCode();
}
if (hasNet()) {
hash = (37 * hash) + NET_FIELD_NUMBER;
hash = (53 * hash) + getNet().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (storageBuilder_ == null) {
storage_ = null;
} else {
storage_ = null;
storageBuilder_ = null;
}
if (operationProfilingBuilder_ == null) {
operationProfiling_ = null;
} else {
operationProfiling_ = null;
operationProfilingBuilder_ = null;
}
if (netBuilder_ == null) {
net_ = null;
} else {
net_ = null;
netBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise(this);
if (storageBuilder_ == null) {
result.storage_ = storage_;
} else {
result.storage_ = storageBuilder_.build();
}
if (operationProfilingBuilder_ == null) {
result.operationProfiling_ = operationProfiling_;
} else {
result.operationProfiling_ = operationProfilingBuilder_.build();
}
if (netBuilder_ == null) {
result.net_ = net_;
} else {
result.net_ = netBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance()) return this;
if (other.hasStorage()) {
mergeStorage(other.getStorage());
}
if (other.hasOperationProfiling()) {
mergeOperationProfiling(other.getOperationProfiling());
}
if (other.hasNet()) {
mergeNet(other.getNet());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage storage_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder> storageBuilder_;
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return Whether the storage field is set.
*/
public boolean hasStorage() {
return storageBuilder_ != null || storage_ != null;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
* @return The storage.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage getStorage() {
if (storageBuilder_ == null) {
return storage_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
} else {
return storageBuilder_.getMessage();
}
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public Builder setStorage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage value) {
if (storageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
storage_ = value;
onChanged();
} else {
storageBuilder_.setMessage(value);
}
return this;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public Builder setStorage(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder builderForValue) {
if (storageBuilder_ == null) {
storage_ = builderForValue.build();
onChanged();
} else {
storageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public Builder mergeStorage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage value) {
if (storageBuilder_ == null) {
if (storage_ != null) {
storage_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.newBuilder(storage_).mergeFrom(value).buildPartial();
} else {
storage_ = value;
}
onChanged();
} else {
storageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public Builder clearStorage() {
if (storageBuilder_ == null) {
storage_ = null;
onChanged();
} else {
storage_ = null;
storageBuilder_ = null;
}
return this;
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder getStorageBuilder() {
onChanged();
return getStorageFieldBuilder().getBuilder();
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder getStorageOrBuilder() {
if (storageBuilder_ != null) {
return storageBuilder_.getMessageOrBuilder();
} else {
return storage_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.getDefaultInstance() : storage_;
}
}
/**
*
* `storage` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Storage storage = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder>
getStorageFieldBuilder() {
if (storageBuilder_ == null) {
storageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Storage.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.StorageOrBuilder>(
getStorage(),
getParentForChildren(),
isClean());
storage_ = null;
}
return storageBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling operationProfiling_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder> operationProfilingBuilder_;
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return Whether the operationProfiling field is set.
*/
public boolean hasOperationProfiling() {
return operationProfilingBuilder_ != null || operationProfiling_ != null;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
* @return The operationProfiling.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling getOperationProfiling() {
if (operationProfilingBuilder_ == null) {
return operationProfiling_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
} else {
return operationProfilingBuilder_.getMessage();
}
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder setOperationProfiling(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling value) {
if (operationProfilingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
operationProfiling_ = value;
onChanged();
} else {
operationProfilingBuilder_.setMessage(value);
}
return this;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder setOperationProfiling(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder builderForValue) {
if (operationProfilingBuilder_ == null) {
operationProfiling_ = builderForValue.build();
onChanged();
} else {
operationProfilingBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder mergeOperationProfiling(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling value) {
if (operationProfilingBuilder_ == null) {
if (operationProfiling_ != null) {
operationProfiling_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.newBuilder(operationProfiling_).mergeFrom(value).buildPartial();
} else {
operationProfiling_ = value;
}
onChanged();
} else {
operationProfilingBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public Builder clearOperationProfiling() {
if (operationProfilingBuilder_ == null) {
operationProfiling_ = null;
onChanged();
} else {
operationProfiling_ = null;
operationProfilingBuilder_ = null;
}
return this;
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder getOperationProfilingBuilder() {
onChanged();
return getOperationProfilingFieldBuilder().getBuilder();
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder getOperationProfilingOrBuilder() {
if (operationProfilingBuilder_ != null) {
return operationProfilingBuilder_.getMessageOrBuilder();
} else {
return operationProfiling_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.getDefaultInstance() : operationProfiling_;
}
}
/**
*
* `operationProfiling` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.OperationProfiling operation_profiling = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder>
getOperationProfilingFieldBuilder() {
if (operationProfilingBuilder_ == null) {
operationProfilingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfiling.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.OperationProfilingOrBuilder>(
getOperationProfiling(),
getParentForChildren(),
isClean());
operationProfiling_ = null;
}
return operationProfilingBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network net_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder> netBuilder_;
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return Whether the net field is set.
*/
public boolean hasNet() {
return netBuilder_ != null || net_ != null;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
* @return The net.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network getNet() {
if (netBuilder_ == null) {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.getDefaultInstance() : net_;
} else {
return netBuilder_.getMessage();
}
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public Builder setNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
net_ = value;
onChanged();
} else {
netBuilder_.setMessage(value);
}
return this;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public Builder setNet(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder builderForValue) {
if (netBuilder_ == null) {
net_ = builderForValue.build();
onChanged();
} else {
netBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public Builder mergeNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (net_ != null) {
net_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.newBuilder(net_).mergeFrom(value).buildPartial();
} else {
net_ = value;
}
onChanged();
} else {
netBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public Builder clearNet() {
if (netBuilder_ == null) {
net_ = null;
onChanged();
} else {
net_ = null;
netBuilder_ = null;
}
return this;
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder getNetBuilder() {
onChanged();
return getNetFieldBuilder().getBuilder();
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
if (netBuilder_ != null) {
return netBuilder_.getMessageOrBuilder();
} else {
return net_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
}
/**
*
* `net` section of mongocfg configuration.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise.Network net = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder>
getNetFieldBuilder() {
if (netBuilder_ == null) {
netBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.NetworkOrBuilder>(
getNet(),
getParentForChildren(),
isClean());
net_ = null;
}
return netBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongoCfgConfig5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongoCfgConfig5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MongosConfig5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return Whether the net field is set.
*/
boolean hasNet();
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return The net.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getNet();
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise}
*/
public static final class MongosConfig5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise)
MongosConfig5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongosConfig5_0_enterprise.newBuilder() to construct.
private MongosConfig5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongosConfig5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongosConfig5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongosConfig5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder subBuilder = null;
if (net_ != null) {
subBuilder = net_.toBuilder();
}
net_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(net_);
net_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder.class);
}
public interface NetworkOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network)
com.google.protobuf.MessageOrBuilder {
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
boolean hasMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
com.google.protobuf.Int64Value getMaxIncomingConnections();
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network}
*/
public static final class Network extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network)
NetworkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Network.newBuilder() to construct.
private Network(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Network() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Network();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Network(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.Int64Value.Builder subBuilder = null;
if (maxIncomingConnections_ != null) {
subBuilder = maxIncomingConnections_.toBuilder();
}
maxIncomingConnections_ = input.readMessage(com.google.protobuf.Int64Value.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(maxIncomingConnections_);
maxIncomingConnections_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder.class);
}
public static final int MAX_INCOMING_CONNECTIONS_FIELD_NUMBER = 1;
private com.google.protobuf.Int64Value maxIncomingConnections_;
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
@java.lang.Override
public boolean hasMaxIncomingConnections() {
return maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
@java.lang.Override
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
@java.lang.Override
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
return getMaxIncomingConnections();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (maxIncomingConnections_ != null) {
output.writeMessage(1, getMaxIncomingConnections());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (maxIncomingConnections_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getMaxIncomingConnections());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network) obj;
if (hasMaxIncomingConnections() != other.hasMaxIncomingConnections()) return false;
if (hasMaxIncomingConnections()) {
if (!getMaxIncomingConnections()
.equals(other.getMaxIncomingConnections())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasMaxIncomingConnections()) {
hash = (37 * hash) + MAX_INCOMING_CONNECTIONS_FIELD_NUMBER;
hash = (53 * hash) + getMaxIncomingConnections().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network(this);
if (maxIncomingConnectionsBuilder_ == null) {
result.maxIncomingConnections_ = maxIncomingConnections_;
} else {
result.maxIncomingConnections_ = maxIncomingConnectionsBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.getDefaultInstance()) return this;
if (other.hasMaxIncomingConnections()) {
mergeMaxIncomingConnections(other.getMaxIncomingConnections());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.google.protobuf.Int64Value maxIncomingConnections_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder> maxIncomingConnectionsBuilder_;
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return Whether the maxIncomingConnections field is set.
*/
public boolean hasMaxIncomingConnections() {
return maxIncomingConnectionsBuilder_ != null || maxIncomingConnections_ != null;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
* @return The maxIncomingConnections.
*/
public com.google.protobuf.Int64Value getMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
return maxIncomingConnections_ == null ? com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
} else {
return maxIncomingConnectionsBuilder_.getMessage();
}
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maxIncomingConnections_ = value;
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder setMaxIncomingConnections(
com.google.protobuf.Int64Value.Builder builderForValue) {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = builderForValue.build();
onChanged();
} else {
maxIncomingConnectionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder mergeMaxIncomingConnections(com.google.protobuf.Int64Value value) {
if (maxIncomingConnectionsBuilder_ == null) {
if (maxIncomingConnections_ != null) {
maxIncomingConnections_ =
com.google.protobuf.Int64Value.newBuilder(maxIncomingConnections_).mergeFrom(value).buildPartial();
} else {
maxIncomingConnections_ = value;
}
onChanged();
} else {
maxIncomingConnectionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public Builder clearMaxIncomingConnections() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnections_ = null;
onChanged();
} else {
maxIncomingConnections_ = null;
maxIncomingConnectionsBuilder_ = null;
}
return this;
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64Value.Builder getMaxIncomingConnectionsBuilder() {
onChanged();
return getMaxIncomingConnectionsFieldBuilder().getBuilder();
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
public com.google.protobuf.Int64ValueOrBuilder getMaxIncomingConnectionsOrBuilder() {
if (maxIncomingConnectionsBuilder_ != null) {
return maxIncomingConnectionsBuilder_.getMessageOrBuilder();
} else {
return maxIncomingConnections_ == null ?
com.google.protobuf.Int64Value.getDefaultInstance() : maxIncomingConnections_;
}
}
/**
*
* The maximum number of simultaneous connections that mongos will accept.
*
*
* .google.protobuf.Int64Value max_incoming_connections = 1 [(.yandex.cloud.value) = "10-16384"];
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>
getMaxIncomingConnectionsFieldBuilder() {
if (maxIncomingConnectionsBuilder_ == null) {
maxIncomingConnectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Int64Value, com.google.protobuf.Int64Value.Builder, com.google.protobuf.Int64ValueOrBuilder>(
getMaxIncomingConnections(),
getParentForChildren(),
isClean());
maxIncomingConnections_ = null;
}
return maxIncomingConnectionsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Network parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Network(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int NET_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network net_;
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return Whether the net field is set.
*/
@java.lang.Override
public boolean hasNet() {
return net_ != null;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return The net.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getNet() {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
return getNet();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (net_ != null) {
output.writeMessage(1, getNet());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (net_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getNet());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise) obj;
if (hasNet() != other.hasNet()) return false;
if (hasNet()) {
if (!getNet()
.equals(other.getNet())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasNet()) {
hash = (37 * hash) + NET_FIELD_NUMBER;
hash = (53 * hash) + getNet().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (netBuilder_ == null) {
net_ = null;
} else {
net_ = null;
netBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise(this);
if (netBuilder_ == null) {
result.net_ = net_;
} else {
result.net_ = netBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance()) return this;
if (other.hasNet()) {
mergeNet(other.getNet());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network net_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder> netBuilder_;
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return Whether the net field is set.
*/
public boolean hasNet() {
return netBuilder_ != null || net_ != null;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
* @return The net.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network getNet() {
if (netBuilder_ == null) {
return net_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.getDefaultInstance() : net_;
} else {
return netBuilder_.getMessage();
}
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public Builder setNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
net_ = value;
onChanged();
} else {
netBuilder_.setMessage(value);
}
return this;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public Builder setNet(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder builderForValue) {
if (netBuilder_ == null) {
net_ = builderForValue.build();
onChanged();
} else {
netBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public Builder mergeNet(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network value) {
if (netBuilder_ == null) {
if (net_ != null) {
net_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.newBuilder(net_).mergeFrom(value).buildPartial();
} else {
net_ = value;
}
onChanged();
} else {
netBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public Builder clearNet() {
if (netBuilder_ == null) {
net_ = null;
onChanged();
} else {
net_ = null;
netBuilder_ = null;
}
return this;
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder getNetBuilder() {
onChanged();
return getNetFieldBuilder().getBuilder();
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder getNetOrBuilder() {
if (netBuilder_ != null) {
return netBuilder_.getMessageOrBuilder();
} else {
return net_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.getDefaultInstance() : net_;
}
}
/**
*
* Network settings for mongos.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise.Network net = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder>
getNetFieldBuilder() {
if (netBuilder_ == null) {
netBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Network.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.NetworkOrBuilder>(
getNet(),
getParentForChildren(),
isClean());
net_ = null;
}
return netBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongosConfig5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongosConfig5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MongodConfigSet5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
boolean hasEffectiveConfig();
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getEffectiveConfig();
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder();
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
boolean hasUserConfig();
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getUserConfig();
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder();
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
boolean hasDefaultConfig();
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultConfig();
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise}
*/
public static final class MongodConfigSet5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise)
MongodConfigSet5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongodConfigSet5_0_enterprise.newBuilder() to construct.
private MongodConfigSet5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongodConfigSet5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongodConfigSet5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongodConfigSet5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder subBuilder = null;
if (effectiveConfig_ != null) {
subBuilder = effectiveConfig_.toBuilder();
}
effectiveConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveConfig_);
effectiveConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder subBuilder = null;
if (userConfig_ != null) {
subBuilder = userConfig_.toBuilder();
}
userConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userConfig_);
userConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder subBuilder = null;
if (defaultConfig_ != null) {
subBuilder = defaultConfig_.toBuilder();
}
defaultConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultConfig_);
defaultConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.Builder.class);
}
public static final int EFFECTIVE_CONFIG_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise effectiveConfig_;
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
@java.lang.Override
public boolean hasEffectiveConfig() {
return effectiveConfig_ != null;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getEffectiveConfig() {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
return getEffectiveConfig();
}
public static final int USER_CONFIG_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise userConfig_;
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
@java.lang.Override
public boolean hasUserConfig() {
return userConfig_ != null;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getUserConfig() {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
return getUserConfig();
}
public static final int DEFAULT_CONFIG_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise defaultConfig_;
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
@java.lang.Override
public boolean hasDefaultConfig() {
return defaultConfig_ != null;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultConfig() {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
return getDefaultConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (effectiveConfig_ != null) {
output.writeMessage(1, getEffectiveConfig());
}
if (userConfig_ != null) {
output.writeMessage(2, getUserConfig());
}
if (defaultConfig_ != null) {
output.writeMessage(3, getDefaultConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (effectiveConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEffectiveConfig());
}
if (userConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserConfig());
}
if (defaultConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDefaultConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise) obj;
if (hasEffectiveConfig() != other.hasEffectiveConfig()) return false;
if (hasEffectiveConfig()) {
if (!getEffectiveConfig()
.equals(other.getEffectiveConfig())) return false;
}
if (hasUserConfig() != other.hasUserConfig()) return false;
if (hasUserConfig()) {
if (!getUserConfig()
.equals(other.getUserConfig())) return false;
}
if (hasDefaultConfig() != other.hasDefaultConfig()) return false;
if (hasDefaultConfig()) {
if (!getDefaultConfig()
.equals(other.getDefaultConfig())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEffectiveConfig()) {
hash = (37 * hash) + EFFECTIVE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveConfig().hashCode();
}
if (hasUserConfig()) {
hash = (37 * hash) + USER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getUserConfig().hashCode();
}
if (hasDefaultConfig()) {
hash = (37 * hash) + DEFAULT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDefaultConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
if (userConfigBuilder_ == null) {
userConfig_ = null;
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise(this);
if (effectiveConfigBuilder_ == null) {
result.effectiveConfig_ = effectiveConfig_;
} else {
result.effectiveConfig_ = effectiveConfigBuilder_.build();
}
if (userConfigBuilder_ == null) {
result.userConfig_ = userConfig_;
} else {
result.userConfig_ = userConfigBuilder_.build();
}
if (defaultConfigBuilder_ == null) {
result.defaultConfig_ = defaultConfig_;
} else {
result.defaultConfig_ = defaultConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise.getDefaultInstance()) return this;
if (other.hasEffectiveConfig()) {
mergeEffectiveConfig(other.getEffectiveConfig());
}
if (other.hasUserConfig()) {
mergeUserConfig(other.getUserConfig());
}
if (other.hasDefaultConfig()) {
mergeDefaultConfig(other.getDefaultConfig());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise effectiveConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder> effectiveConfigBuilder_;
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
public boolean hasEffectiveConfig() {
return effectiveConfigBuilder_ != null || effectiveConfig_ != null;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
} else {
return effectiveConfigBuilder_.getMessage();
}
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveConfig_ = value;
onChanged();
} else {
effectiveConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder builderForValue) {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = builderForValue.build();
onChanged();
} else {
effectiveConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public Builder mergeEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (effectiveConfig_ != null) {
effectiveConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.newBuilder(effectiveConfig_).mergeFrom(value).buildPartial();
} else {
effectiveConfig_ = value;
}
onChanged();
} else {
effectiveConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public Builder clearEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
onChanged();
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
return this;
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder getEffectiveConfigBuilder() {
onChanged();
return getEffectiveConfigFieldBuilder().getBuilder();
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
if (effectiveConfigBuilder_ != null) {
return effectiveConfigBuilder_.getMessageOrBuilder();
} else {
return effectiveConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
}
/**
*
* Effective mongod settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise effective_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>
getEffectiveConfigFieldBuilder() {
if (effectiveConfigBuilder_ == null) {
effectiveConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>(
getEffectiveConfig(),
getParentForChildren(),
isClean());
effectiveConfig_ = null;
}
return effectiveConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise userConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder> userConfigBuilder_;
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
public boolean hasUserConfig() {
return userConfigBuilder_ != null || userConfig_ != null;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getUserConfig() {
if (userConfigBuilder_ == null) {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : userConfig_;
} else {
return userConfigBuilder_.getMessage();
}
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userConfig_ = value;
onChanged();
} else {
userConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder builderForValue) {
if (userConfigBuilder_ == null) {
userConfig_ = builderForValue.build();
onChanged();
} else {
userConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public Builder mergeUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (userConfig_ != null) {
userConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.newBuilder(userConfig_).mergeFrom(value).buildPartial();
} else {
userConfig_ = value;
}
onChanged();
} else {
userConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public Builder clearUserConfig() {
if (userConfigBuilder_ == null) {
userConfig_ = null;
onChanged();
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
return this;
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder getUserConfigBuilder() {
onChanged();
return getUserConfigFieldBuilder().getBuilder();
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
if (userConfigBuilder_ != null) {
return userConfigBuilder_.getMessageOrBuilder();
} else {
return userConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
}
/**
*
* User-defined mongod settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise user_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>
getUserConfigFieldBuilder() {
if (userConfigBuilder_ == null) {
userConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>(
getUserConfig(),
getParentForChildren(),
isClean());
userConfig_ = null;
}
return userConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise defaultConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder> defaultConfigBuilder_;
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
public boolean hasDefaultConfig() {
return defaultConfigBuilder_ != null || defaultConfig_ != null;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise getDefaultConfig() {
if (defaultConfigBuilder_ == null) {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
} else {
return defaultConfigBuilder_.getMessage();
}
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultConfig_ = value;
onChanged();
} else {
defaultConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder builderForValue) {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = builderForValue.build();
onChanged();
} else {
defaultConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public Builder mergeDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (defaultConfig_ != null) {
defaultConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.newBuilder(defaultConfig_).mergeFrom(value).buildPartial();
} else {
defaultConfig_ = value;
}
onChanged();
} else {
defaultConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public Builder clearDefaultConfig() {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
onChanged();
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder getDefaultConfigBuilder() {
onChanged();
return getDefaultConfigFieldBuilder().getBuilder();
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
if (defaultConfigBuilder_ != null) {
return defaultConfigBuilder_.getMessageOrBuilder();
} else {
return defaultConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
}
/**
*
* Default mongod configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongodConfig5_0_enterprise default_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>
getDefaultConfigFieldBuilder() {
if (defaultConfigBuilder_ == null) {
defaultConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfig5_0_enterpriseOrBuilder>(
getDefaultConfig(),
getParentForChildren(),
isClean());
defaultConfig_ = null;
}
return defaultConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongodConfigSet5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongodConfigSet5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongodConfigSet5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongodConfigSet5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MongoCfgConfigSet5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
boolean hasEffectiveConfig();
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getEffectiveConfig();
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder();
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
boolean hasUserConfig();
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getUserConfig();
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder();
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
boolean hasDefaultConfig();
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultConfig();
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise}
*/
public static final class MongoCfgConfigSet5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise)
MongoCfgConfigSet5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongoCfgConfigSet5_0_enterprise.newBuilder() to construct.
private MongoCfgConfigSet5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongoCfgConfigSet5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongoCfgConfigSet5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongoCfgConfigSet5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder subBuilder = null;
if (effectiveConfig_ != null) {
subBuilder = effectiveConfig_.toBuilder();
}
effectiveConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveConfig_);
effectiveConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder subBuilder = null;
if (userConfig_ != null) {
subBuilder = userConfig_.toBuilder();
}
userConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userConfig_);
userConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder subBuilder = null;
if (defaultConfig_ != null) {
subBuilder = defaultConfig_.toBuilder();
}
defaultConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultConfig_);
defaultConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.Builder.class);
}
public static final int EFFECTIVE_CONFIG_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise effectiveConfig_;
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
@java.lang.Override
public boolean hasEffectiveConfig() {
return effectiveConfig_ != null;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getEffectiveConfig() {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
return getEffectiveConfig();
}
public static final int USER_CONFIG_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise userConfig_;
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
@java.lang.Override
public boolean hasUserConfig() {
return userConfig_ != null;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getUserConfig() {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
return getUserConfig();
}
public static final int DEFAULT_CONFIG_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise defaultConfig_;
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
@java.lang.Override
public boolean hasDefaultConfig() {
return defaultConfig_ != null;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultConfig() {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
return getDefaultConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (effectiveConfig_ != null) {
output.writeMessage(1, getEffectiveConfig());
}
if (userConfig_ != null) {
output.writeMessage(2, getUserConfig());
}
if (defaultConfig_ != null) {
output.writeMessage(3, getDefaultConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (effectiveConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEffectiveConfig());
}
if (userConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserConfig());
}
if (defaultConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDefaultConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise) obj;
if (hasEffectiveConfig() != other.hasEffectiveConfig()) return false;
if (hasEffectiveConfig()) {
if (!getEffectiveConfig()
.equals(other.getEffectiveConfig())) return false;
}
if (hasUserConfig() != other.hasUserConfig()) return false;
if (hasUserConfig()) {
if (!getUserConfig()
.equals(other.getUserConfig())) return false;
}
if (hasDefaultConfig() != other.hasDefaultConfig()) return false;
if (hasDefaultConfig()) {
if (!getDefaultConfig()
.equals(other.getDefaultConfig())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEffectiveConfig()) {
hash = (37 * hash) + EFFECTIVE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveConfig().hashCode();
}
if (hasUserConfig()) {
hash = (37 * hash) + USER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getUserConfig().hashCode();
}
if (hasDefaultConfig()) {
hash = (37 * hash) + DEFAULT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDefaultConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
if (userConfigBuilder_ == null) {
userConfig_ = null;
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise(this);
if (effectiveConfigBuilder_ == null) {
result.effectiveConfig_ = effectiveConfig_;
} else {
result.effectiveConfig_ = effectiveConfigBuilder_.build();
}
if (userConfigBuilder_ == null) {
result.userConfig_ = userConfig_;
} else {
result.userConfig_ = userConfigBuilder_.build();
}
if (defaultConfigBuilder_ == null) {
result.defaultConfig_ = defaultConfig_;
} else {
result.defaultConfig_ = defaultConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise.getDefaultInstance()) return this;
if (other.hasEffectiveConfig()) {
mergeEffectiveConfig(other.getEffectiveConfig());
}
if (other.hasUserConfig()) {
mergeUserConfig(other.getUserConfig());
}
if (other.hasDefaultConfig()) {
mergeDefaultConfig(other.getDefaultConfig());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise effectiveConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder> effectiveConfigBuilder_;
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
public boolean hasEffectiveConfig() {
return effectiveConfigBuilder_ != null || effectiveConfig_ != null;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
} else {
return effectiveConfigBuilder_.getMessage();
}
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveConfig_ = value;
onChanged();
} else {
effectiveConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder builderForValue) {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = builderForValue.build();
onChanged();
} else {
effectiveConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public Builder mergeEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (effectiveConfig_ != null) {
effectiveConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.newBuilder(effectiveConfig_).mergeFrom(value).buildPartial();
} else {
effectiveConfig_ = value;
}
onChanged();
} else {
effectiveConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public Builder clearEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
onChanged();
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
return this;
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder getEffectiveConfigBuilder() {
onChanged();
return getEffectiveConfigFieldBuilder().getBuilder();
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
if (effectiveConfigBuilder_ != null) {
return effectiveConfigBuilder_.getMessageOrBuilder();
} else {
return effectiveConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
}
/**
*
* Effective mongocfg settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise effective_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>
getEffectiveConfigFieldBuilder() {
if (effectiveConfigBuilder_ == null) {
effectiveConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>(
getEffectiveConfig(),
getParentForChildren(),
isClean());
effectiveConfig_ = null;
}
return effectiveConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise userConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder> userConfigBuilder_;
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
public boolean hasUserConfig() {
return userConfigBuilder_ != null || userConfig_ != null;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getUserConfig() {
if (userConfigBuilder_ == null) {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : userConfig_;
} else {
return userConfigBuilder_.getMessage();
}
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userConfig_ = value;
onChanged();
} else {
userConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder builderForValue) {
if (userConfigBuilder_ == null) {
userConfig_ = builderForValue.build();
onChanged();
} else {
userConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public Builder mergeUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (userConfig_ != null) {
userConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.newBuilder(userConfig_).mergeFrom(value).buildPartial();
} else {
userConfig_ = value;
}
onChanged();
} else {
userConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public Builder clearUserConfig() {
if (userConfigBuilder_ == null) {
userConfig_ = null;
onChanged();
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
return this;
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder getUserConfigBuilder() {
onChanged();
return getUserConfigFieldBuilder().getBuilder();
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
if (userConfigBuilder_ != null) {
return userConfigBuilder_.getMessageOrBuilder();
} else {
return userConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
}
/**
*
* User-defined mongocfg settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise user_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>
getUserConfigFieldBuilder() {
if (userConfigBuilder_ == null) {
userConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>(
getUserConfig(),
getParentForChildren(),
isClean());
userConfig_ = null;
}
return userConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise defaultConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder> defaultConfigBuilder_;
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
public boolean hasDefaultConfig() {
return defaultConfigBuilder_ != null || defaultConfig_ != null;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise getDefaultConfig() {
if (defaultConfigBuilder_ == null) {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
} else {
return defaultConfigBuilder_.getMessage();
}
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultConfig_ = value;
onChanged();
} else {
defaultConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder builderForValue) {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = builderForValue.build();
onChanged();
} else {
defaultConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public Builder mergeDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (defaultConfig_ != null) {
defaultConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.newBuilder(defaultConfig_).mergeFrom(value).buildPartial();
} else {
defaultConfig_ = value;
}
onChanged();
} else {
defaultConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public Builder clearDefaultConfig() {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
onChanged();
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder getDefaultConfigBuilder() {
onChanged();
return getDefaultConfigFieldBuilder().getBuilder();
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
if (defaultConfigBuilder_ != null) {
return defaultConfigBuilder_.getMessageOrBuilder();
} else {
return defaultConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
}
/**
*
* Default mongocfg configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfig5_0_enterprise default_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>
getDefaultConfigFieldBuilder() {
if (defaultConfigBuilder_ == null) {
defaultConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfig5_0_enterpriseOrBuilder>(
getDefaultConfig(),
getParentForChildren(),
isClean());
defaultConfig_ = null;
}
return defaultConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongoCfgConfigSet5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongoCfgConfigSet5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongoCfgConfigSet5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongoCfgConfigSet5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MongosConfigSet5_0_enterpriseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise)
com.google.protobuf.MessageOrBuilder {
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
boolean hasEffectiveConfig();
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getEffectiveConfig();
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder();
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
boolean hasUserConfig();
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getUserConfig();
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder();
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
boolean hasDefaultConfig();
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultConfig();
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise}
*/
public static final class MongosConfigSet5_0_enterprise extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise)
MongosConfigSet5_0_enterpriseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MongosConfigSet5_0_enterprise.newBuilder() to construct.
private MongosConfigSet5_0_enterprise(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MongosConfigSet5_0_enterprise() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MongosConfigSet5_0_enterprise();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MongosConfigSet5_0_enterprise(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder subBuilder = null;
if (effectiveConfig_ != null) {
subBuilder = effectiveConfig_.toBuilder();
}
effectiveConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(effectiveConfig_);
effectiveConfig_ = subBuilder.buildPartial();
}
break;
}
case 18: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder subBuilder = null;
if (userConfig_ != null) {
subBuilder = userConfig_.toBuilder();
}
userConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(userConfig_);
userConfig_ = subBuilder.buildPartial();
}
break;
}
case 26: {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder subBuilder = null;
if (defaultConfig_ != null) {
subBuilder = defaultConfig_.toBuilder();
}
defaultConfig_ = input.readMessage(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultConfig_);
defaultConfig_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.Builder.class);
}
public static final int EFFECTIVE_CONFIG_FIELD_NUMBER = 1;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise effectiveConfig_;
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
@java.lang.Override
public boolean hasEffectiveConfig() {
return effectiveConfig_ != null;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getEffectiveConfig() {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
return getEffectiveConfig();
}
public static final int USER_CONFIG_FIELD_NUMBER = 2;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise userConfig_;
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
@java.lang.Override
public boolean hasUserConfig() {
return userConfig_ != null;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getUserConfig() {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
return getUserConfig();
}
public static final int DEFAULT_CONFIG_FIELD_NUMBER = 3;
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise defaultConfig_;
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
@java.lang.Override
public boolean hasDefaultConfig() {
return defaultConfig_ != null;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultConfig() {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
return getDefaultConfig();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (effectiveConfig_ != null) {
output.writeMessage(1, getEffectiveConfig());
}
if (userConfig_ != null) {
output.writeMessage(2, getUserConfig());
}
if (defaultConfig_ != null) {
output.writeMessage(3, getDefaultConfig());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (effectiveConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getEffectiveConfig());
}
if (userConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUserConfig());
}
if (defaultConfig_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getDefaultConfig());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise)) {
return super.equals(obj);
}
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise other = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise) obj;
if (hasEffectiveConfig() != other.hasEffectiveConfig()) return false;
if (hasEffectiveConfig()) {
if (!getEffectiveConfig()
.equals(other.getEffectiveConfig())) return false;
}
if (hasUserConfig() != other.hasUserConfig()) return false;
if (hasUserConfig()) {
if (!getUserConfig()
.equals(other.getUserConfig())) return false;
}
if (hasDefaultConfig() != other.hasDefaultConfig()) return false;
if (hasDefaultConfig()) {
if (!getDefaultConfig()
.equals(other.getDefaultConfig())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasEffectiveConfig()) {
hash = (37 * hash) + EFFECTIVE_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getEffectiveConfig().hashCode();
}
if (hasUserConfig()) {
hash = (37 * hash) + USER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getUserConfig().hashCode();
}
if (hasDefaultConfig()) {
hash = (37 * hash) + DEFAULT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDefaultConfig().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise)
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterpriseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.class, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.Builder.class);
}
// Construct using yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
if (userConfigBuilder_ == null) {
userConfig_ = null;
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise getDefaultInstanceForType() {
return yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise build() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise buildPartial() {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise result = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise(this);
if (effectiveConfigBuilder_ == null) {
result.effectiveConfig_ = effectiveConfig_;
} else {
result.effectiveConfig_ = effectiveConfigBuilder_.build();
}
if (userConfigBuilder_ == null) {
result.userConfig_ = userConfig_;
} else {
result.userConfig_ = userConfigBuilder_.build();
}
if (defaultConfigBuilder_ == null) {
result.defaultConfig_ = defaultConfig_;
} else {
result.defaultConfig_ = defaultConfigBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise) {
return mergeFrom((yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise other) {
if (other == yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise.getDefaultInstance()) return this;
if (other.hasEffectiveConfig()) {
mergeEffectiveConfig(other.getEffectiveConfig());
}
if (other.hasUserConfig()) {
mergeUserConfig(other.getUserConfig());
}
if (other.hasDefaultConfig()) {
mergeDefaultConfig(other.getDefaultConfig());
}
this.mergeUnknownFields(other.unknownFields);
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 {
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise effectiveConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder> effectiveConfigBuilder_;
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return Whether the effectiveConfig field is set.
*/
public boolean hasEffectiveConfig() {
return effectiveConfigBuilder_ != null || effectiveConfig_ != null;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
* @return The effectiveConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
return effectiveConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
} else {
return effectiveConfigBuilder_.getMessage();
}
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
effectiveConfig_ = value;
onChanged();
} else {
effectiveConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public Builder setEffectiveConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder builderForValue) {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = builderForValue.build();
onChanged();
} else {
effectiveConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public Builder mergeEffectiveConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (effectiveConfigBuilder_ == null) {
if (effectiveConfig_ != null) {
effectiveConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.newBuilder(effectiveConfig_).mergeFrom(value).buildPartial();
} else {
effectiveConfig_ = value;
}
onChanged();
} else {
effectiveConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public Builder clearEffectiveConfig() {
if (effectiveConfigBuilder_ == null) {
effectiveConfig_ = null;
onChanged();
} else {
effectiveConfig_ = null;
effectiveConfigBuilder_ = null;
}
return this;
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder getEffectiveConfigBuilder() {
onChanged();
return getEffectiveConfigFieldBuilder().getBuilder();
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getEffectiveConfigOrBuilder() {
if (effectiveConfigBuilder_ != null) {
return effectiveConfigBuilder_.getMessageOrBuilder();
} else {
return effectiveConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : effectiveConfig_;
}
}
/**
*
* Effective mongos settings for a MongoDB 5.0 cluster (a combination of settings defined
* in [user_config] and [default_config]).
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise effective_config = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>
getEffectiveConfigFieldBuilder() {
if (effectiveConfigBuilder_ == null) {
effectiveConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>(
getEffectiveConfig(),
getParentForChildren(),
isClean());
effectiveConfig_ = null;
}
return effectiveConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise userConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder> userConfigBuilder_;
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return Whether the userConfig field is set.
*/
public boolean hasUserConfig() {
return userConfigBuilder_ != null || userConfig_ != null;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
* @return The userConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getUserConfig() {
if (userConfigBuilder_ == null) {
return userConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : userConfig_;
} else {
return userConfigBuilder_.getMessage();
}
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
userConfig_ = value;
onChanged();
} else {
userConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public Builder setUserConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder builderForValue) {
if (userConfigBuilder_ == null) {
userConfig_ = builderForValue.build();
onChanged();
} else {
userConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public Builder mergeUserConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (userConfigBuilder_ == null) {
if (userConfig_ != null) {
userConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.newBuilder(userConfig_).mergeFrom(value).buildPartial();
} else {
userConfig_ = value;
}
onChanged();
} else {
userConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public Builder clearUserConfig() {
if (userConfigBuilder_ == null) {
userConfig_ = null;
onChanged();
} else {
userConfig_ = null;
userConfigBuilder_ = null;
}
return this;
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder getUserConfigBuilder() {
onChanged();
return getUserConfigFieldBuilder().getBuilder();
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getUserConfigOrBuilder() {
if (userConfigBuilder_ != null) {
return userConfigBuilder_.getMessageOrBuilder();
} else {
return userConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : userConfig_;
}
}
/**
*
* User-defined mongos settings for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise user_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>
getUserConfigFieldBuilder() {
if (userConfigBuilder_ == null) {
userConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>(
getUserConfig(),
getParentForChildren(),
isClean());
userConfig_ = null;
}
return userConfigBuilder_;
}
private yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise defaultConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder> defaultConfigBuilder_;
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return Whether the defaultConfig field is set.
*/
public boolean hasDefaultConfig() {
return defaultConfigBuilder_ != null || defaultConfig_ != null;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
* @return The defaultConfig.
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise getDefaultConfig() {
if (defaultConfigBuilder_ == null) {
return defaultConfig_ == null ? yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
} else {
return defaultConfigBuilder_.getMessage();
}
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultConfig_ = value;
onChanged();
} else {
defaultConfigBuilder_.setMessage(value);
}
return this;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public Builder setDefaultConfig(
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder builderForValue) {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = builderForValue.build();
onChanged();
} else {
defaultConfigBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public Builder mergeDefaultConfig(yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise value) {
if (defaultConfigBuilder_ == null) {
if (defaultConfig_ != null) {
defaultConfig_ =
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.newBuilder(defaultConfig_).mergeFrom(value).buildPartial();
} else {
defaultConfig_ = value;
}
onChanged();
} else {
defaultConfigBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public Builder clearDefaultConfig() {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = null;
onChanged();
} else {
defaultConfig_ = null;
defaultConfigBuilder_ = null;
}
return this;
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder getDefaultConfigBuilder() {
onChanged();
return getDefaultConfigFieldBuilder().getBuilder();
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder getDefaultConfigOrBuilder() {
if (defaultConfigBuilder_ != null) {
return defaultConfigBuilder_.getMessageOrBuilder();
} else {
return defaultConfig_ == null ?
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.getDefaultInstance() : defaultConfig_;
}
}
/**
*
* Default mongos configuration for a MongoDB 5.0 cluster.
*
*
* .yandex.cloud.mdb.mongodb.v1.config.MongosConfig5_0_enterprise default_config = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>
getDefaultConfigFieldBuilder() {
if (defaultConfigBuilder_ == null) {
defaultConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterprise.Builder, yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfig5_0_enterpriseOrBuilder>(
getDefaultConfig(),
getParentForChildren(),
isClean());
defaultConfig_ = null;
}
return defaultConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.mdb.mongodb.v1.config.MongosConfigSet5_0_enterprise)
private static final yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise();
}
public static yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MongosConfigSet5_0_enterprise parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MongosConfigSet5_0_enterprise(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public yandex.cloud.api.mdb.mongodb.v1.config.Mongodb50Enterprise.MongosConfigSet5_0_enterprise getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n>yandex/cloud/mdb/mongodb/v1/config/mon" +
"godb5_0_enterprise.proto\022\"yandex.cloud.m" +
"db.mongodb.v1.config\032\036google/protobuf/wr" +
"appers.proto\032\035yandex/cloud/validation.pr" +
"oto\"\335\021\n\032MongodConfig5_0_enterprise\022W\n\007st" +
"orage\030\001 \001(\0132F.yandex.cloud.mdb.mongodb.v" +
"1.config.MongodConfig5_0_enterprise.Stor" +
"age\022n\n\023operation_profiling\030\002 \001(\0132Q.yande" +
"x.cloud.mdb.mongodb.v1.config.MongodConf" +
"ig5_0_enterprise.OperationProfiling\022S\n\003n" +
"et\030\003 \001(\0132F.yandex.cloud.mdb.mongodb.v1.c" +
"onfig.MongodConfig5_0_enterprise.Network" +
"\022Y\n\010security\030\004 \001(\0132G.yandex.cloud.mdb.mo" +
"ngodb.v1.config.MongodConfig5_0_enterpri" +
"se.Security\022Z\n\taudit_log\030\005 \001(\0132G.yandex." +
"cloud.mdb.mongodb.v1.config.MongodConfig" +
"5_0_enterprise.AuditLog\022b\n\rset_parameter" +
"\030\006 \001(\0132K.yandex.cloud.mdb.mongodb.v1.con" +
"fig.MongodConfig5_0_enterprise.SetParame" +
"ter\032\333\006\n\007Storage\022f\n\013wired_tiger\030\001 \001(\0132Q.y" +
"andex.cloud.mdb.mongodb.v1.config.Mongod" +
"Config5_0_enterprise.Storage.WiredTiger\022" +
"_\n\007journal\030\002 \001(\0132N.yandex.cloud.mdb.mong" +
"odb.v1.config.MongodConfig5_0_enterprise" +
".Storage.Journal\032\272\004\n\nWiredTiger\022u\n\rengin" +
"e_config\030\001 \001(\0132^.yandex.cloud.mdb.mongod" +
"b.v1.config.MongodConfig5_0_enterprise.S" +
"torage.WiredTiger.EngineConfig\022}\n\021collec" +
"tion_config\030\002 \001(\0132b.yandex.cloud.mdb.mon" +
"godb.v1.config.MongodConfig5_0_enterpris" +
"e.Storage.WiredTiger.CollectionConfig\032C\n" +
"\014EngineConfig\0223\n\rcache_size_gb\030\001 \001(\0132\034.g" +
"oogle.protobuf.DoubleValue\032\360\001\n\020Collectio" +
"nConfig\022\207\001\n\020block_compressor\030\001 \001(\0162m.yan" +
"dex.cloud.mdb.mongodb.v1.config.MongodCo" +
"nfig5_0_enterprise.Storage.WiredTiger.Co" +
"llectionConfig.Compressor\"R\n\nCompressor\022" +
"\032\n\026COMPRESSOR_UNSPECIFIED\020\000\022\010\n\004NONE\020\001\022\n\n" +
"\006SNAPPY\020\002\022\010\n\004ZLIB\020\003\022\010\n\004ZSTD\020\004\032J\n\007Journal" +
"\022?\n\017commit_interval\030\001 \001(\0132\033.google.proto" +
"buf.Int64ValueB\t\372\3071\0051-500\032\367\001\n\022OperationP" +
"rofiling\022d\n\004mode\030\001 \001(\0162V.yandex.cloud.md" +
"b.mongodb.v1.config.MongodConfig5_0_ente" +
"rprise.OperationProfiling.Mode\022>\n\021slow_o" +
"p_threshold\030\002 \001(\0132\033.google.protobuf.Int6" +
"4ValueB\006\372\3071\002>0\";\n\004Mode\022\024\n\020MODE_UNSPECIFI" +
"ED\020\000\022\007\n\003OFF\020\001\022\013\n\007SLOW_OP\020\002\022\007\n\003ALL\020\003\032V\n\007N" +
"etwork\022K\n\030max_incoming_connections\030\001 \001(\013" +
"2\033.google.protobuf.Int64ValueB\014\372\3071\01010-16" +
"384\032\255\002\n\010Security\0225\n\021enable_encryption\030\001 " +
"\001(\0132\032.google.protobuf.BoolValue\022Z\n\004kmip\030" +
"\002 \001(\0132L.yandex.cloud.mdb.mongodb.v1.conf" +
"ig.MongodConfig5_0_enterprise.Security.K" +
"MIP\032\215\001\n\004KMIP\022\023\n\013server_name\030\001 \001(\t\022)\n\004por" +
"t\030\002 \001(\0132\033.google.protobuf.Int64Value\022\021\n\t" +
"server_ca\030\003 \001(\t\022\032\n\022client_certificate\030\004 " +
"\001(\t\022\026\n\016key_identifier\030\005 \001(\t\032U\n\010AuditLog\022" +
"\016\n\006filter\030\001 \001(\t\0229\n\025runtime_configuration" +
"\030\002 \001(\0132\032.google.protobuf.BoolValue\032O\n\014Se" +
"tParameter\022?\n\033audit_authorization_succes" +
"s\030\001 \001(\0132\032.google.protobuf.BoolValue\"\331\007\n\034" +
"MongoCfgConfig5_0_enterprise\022Y\n\007storage\030" +
"\001 \001(\0132H.yandex.cloud.mdb.mongodb.v1.conf" +
"ig.MongoCfgConfig5_0_enterprise.Storage\022" +
"p\n\023operation_profiling\030\002 \001(\0132S.yandex.cl" +
"oud.mdb.mongodb.v1.config.MongoCfgConfig" +
"5_0_enterprise.OperationProfiling\022U\n\003net" +
"\030\003 \001(\0132H.yandex.cloud.mdb.mongodb.v1.con" +
"fig.MongoCfgConfig5_0_enterprise.Network" +
"\032\300\002\n\007Storage\022h\n\013wired_tiger\030\001 \001(\0132S.yand" +
"ex.cloud.mdb.mongodb.v1.config.MongoCfgC" +
"onfig5_0_enterprise.Storage.WiredTiger\032\312" +
"\001\n\nWiredTiger\022w\n\rengine_config\030\001 \001(\0132`.y" +
"andex.cloud.mdb.mongodb.v1.config.MongoC" +
"fgConfig5_0_enterprise.Storage.WiredTige" +
"r.EngineConfig\032C\n\014EngineConfig\0223\n\rcache_" +
"size_gb\030\001 \001(\0132\034.google.protobuf.DoubleVa" +
"lue\032\371\001\n\022OperationProfiling\022f\n\004mode\030\001 \001(\016" +
"2X.yandex.cloud.mdb.mongodb.v1.config.Mo" +
"ngoCfgConfig5_0_enterprise.OperationProf" +
"iling.Mode\022>\n\021slow_op_threshold\030\002 \001(\0132\033." +
"google.protobuf.Int64ValueB\006\372\3071\002>0\";\n\004Mo" +
"de\022\024\n\020MODE_UNSPECIFIED\020\000\022\007\n\003OFF\020\001\022\013\n\007SLO" +
"W_OP\020\002\022\007\n\003ALL\020\003\032V\n\007Network\022K\n\030max_incomi" +
"ng_connections\030\001 \001(\0132\033.google.protobuf.I" +
"nt64ValueB\014\372\3071\01010-16384\"\311\001\n\032MongosConfig" +
"5_0_enterprise\022S\n\003net\030\001 \001(\0132F.yandex.clo" +
"ud.mdb.mongodb.v1.config.MongosConfig5_0" +
"_enterprise.Network\032V\n\007Network\022K\n\030max_in" +
"coming_connections\030\001 \001(\0132\033.google.protob" +
"uf.Int64ValueB\014\372\3071\01010-16384\"\246\002\n\035MongodCo" +
"nfigSet5_0_enterprise\022X\n\020effective_confi" +
"g\030\001 \001(\0132>.yandex.cloud.mdb.mongodb.v1.co" +
"nfig.MongodConfig5_0_enterprise\022S\n\013user_" +
"config\030\002 \001(\0132>.yandex.cloud.mdb.mongodb." +
"v1.config.MongodConfig5_0_enterprise\022V\n\016" +
"default_config\030\003 \001(\0132>.yandex.cloud.mdb." +
"mongodb.v1.config.MongodConfig5_0_enterp" +
"rise\"\256\002\n\037MongoCfgConfigSet5_0_enterprise" +
"\022Z\n\020effective_config\030\001 \001(\[email protected]" +
"d.mdb.mongodb.v1.config.MongoCfgConfig5_" +
"0_enterprise\022U\n\013user_config\030\002 \001(\[email protected]" +
"ex.cloud.mdb.mongodb.v1.config.MongoCfgC" +
"onfig5_0_enterprise\022X\n\016default_config\030\003 " +
"\001(\[email protected]" +
".MongoCfgConfig5_0_enterprise\"\246\002\n\035Mongos" +
"ConfigSet5_0_enterprise\022X\n\020effective_con" +
"fig\030\001 \001(\0132>.yandex.cloud.mdb.mongodb.v1." +
"config.MongosConfig5_0_enterprise\022S\n\013use" +
"r_config\030\002 \001(\0132>.yandex.cloud.mdb.mongod" +
"b.v1.config.MongosConfig5_0_enterprise\022V" +
"\n\016default_config\030\003 \001(\0132>.yandex.cloud.md" +
"b.mongodb.v1.config.MongosConfig5_0_ente" +
"rpriseBx\n&yandex.cloud.api.mdb.mongodb.v" +
"1.configZNgithub.com/yandex-cloud/go-gen" +
"proto/yandex/cloud/mdb/mongodb/v1/config" +
";mongodbb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.WrappersProto.getDescriptor(),
yandex.cloud.api.Validation.getDescriptor(),
});
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor,
new java.lang.String[] { "Storage", "OperationProfiling", "Net", "Security", "AuditLog", "SetParameter", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor,
new java.lang.String[] { "WiredTiger", "Journal", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor,
new java.lang.String[] { "EngineConfig", "CollectionConfig", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor,
new java.lang.String[] { "CacheSizeGb", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_WiredTiger_CollectionConfig_descriptor,
new java.lang.String[] { "BlockCompressor", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Storage_Journal_descriptor,
new java.lang.String[] { "CommitInterval", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_OperationProfiling_descriptor,
new java.lang.String[] { "Mode", "SlowOpThreshold", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(2);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Network_descriptor,
new java.lang.String[] { "MaxIncomingConnections", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(3);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor,
new java.lang.String[] { "EnableEncryption", "Kmip", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_Security_KMIP_descriptor,
new java.lang.String[] { "ServerName", "Port", "ServerCa", "ClientCertificate", "KeyIdentifier", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(4);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_AuditLog_descriptor,
new java.lang.String[] { "Filter", "RuntimeConfiguration", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_descriptor.getNestedTypes().get(5);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfig5_0_enterprise_SetParameter_descriptor,
new java.lang.String[] { "AuditAuthorizationSuccess", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor,
new java.lang.String[] { "Storage", "OperationProfiling", "Net", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor,
new java.lang.String[] { "WiredTiger", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor,
new java.lang.String[] { "EngineConfig", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Storage_WiredTiger_EngineConfig_descriptor,
new java.lang.String[] { "CacheSizeGb", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor.getNestedTypes().get(1);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_OperationProfiling_descriptor,
new java.lang.String[] { "Mode", "SlowOpThreshold", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_descriptor.getNestedTypes().get(2);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfig5_0_enterprise_Network_descriptor,
new java.lang.String[] { "MaxIncomingConnections", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor,
new java.lang.String[] { "Net", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor =
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_descriptor.getNestedTypes().get(0);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfig5_0_enterprise_Network_descriptor,
new java.lang.String[] { "MaxIncomingConnections", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongodConfigSet5_0_enterprise_descriptor,
new java.lang.String[] { "EffectiveConfig", "UserConfig", "DefaultConfig", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongoCfgConfigSet5_0_enterprise_descriptor,
new java.lang.String[] { "EffectiveConfig", "UserConfig", "DefaultConfig", });
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_mdb_mongodb_v1_config_MongosConfigSet5_0_enterprise_descriptor,
new java.lang.String[] { "EffectiveConfig", "UserConfig", "DefaultConfig", });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(yandex.cloud.api.Validation.value);
com.google.protobuf.Descriptors.FileDescriptor
.internalUpdateFileDescriptor(descriptor, registry);
com.google.protobuf.WrappersProto.getDescriptor();
yandex.cloud.api.Validation.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy