tech.ydb.proto.coordination.Config Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-proto-api Show documentation
Show all versions of ydb-proto-api Show documentation
Generated from Protocol Buffers IDL Java sources
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: protos/ydb_coordination.proto
package tech.ydb.proto.coordination;
/**
*
**
* Configuration settings for a coordination node
*
*
* Protobuf type {@code Ydb.Coordination.Config}
*/
public final class Config extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:Ydb.Coordination.Config)
ConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use Config.newBuilder() to construct.
private Config(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Config() {
path_ = "";
readConsistencyMode_ = 0;
attachConsistencyMode_ = 0;
rateLimiterCountersMode_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Config();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.coordination.Config.class, tech.ydb.proto.coordination.Config.Builder.class);
}
public static final int PATH_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object path_ = "";
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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();
path_ = s;
return s;
}
}
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SELF_CHECK_PERIOD_MILLIS_FIELD_NUMBER = 2;
private int selfCheckPeriodMillis_ = 0;
/**
*
* Period in milliseconds for self-checks (default 1 second)
*
*
* uint32 self_check_period_millis = 2;
* @return The selfCheckPeriodMillis.
*/
@java.lang.Override
public int getSelfCheckPeriodMillis() {
return selfCheckPeriodMillis_;
}
public static final int SESSION_GRACE_PERIOD_MILLIS_FIELD_NUMBER = 3;
private int sessionGracePeriodMillis_ = 0;
/**
*
* Grace period for sessions on leader change (default 10 seconds)
*
*
* uint32 session_grace_period_millis = 3;
* @return The sessionGracePeriodMillis.
*/
@java.lang.Override
public int getSessionGracePeriodMillis() {
return sessionGracePeriodMillis_;
}
public static final int READ_CONSISTENCY_MODE_FIELD_NUMBER = 4;
private int readConsistencyMode_ = 0;
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @return The enum numeric value on the wire for readConsistencyMode.
*/
@java.lang.Override public int getReadConsistencyModeValue() {
return readConsistencyMode_;
}
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @return The readConsistencyMode.
*/
@java.lang.Override public tech.ydb.proto.coordination.ConsistencyMode getReadConsistencyMode() {
tech.ydb.proto.coordination.ConsistencyMode result = tech.ydb.proto.coordination.ConsistencyMode.forNumber(readConsistencyMode_);
return result == null ? tech.ydb.proto.coordination.ConsistencyMode.UNRECOGNIZED : result;
}
public static final int ATTACH_CONSISTENCY_MODE_FIELD_NUMBER = 5;
private int attachConsistencyMode_ = 0;
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @return The enum numeric value on the wire for attachConsistencyMode.
*/
@java.lang.Override public int getAttachConsistencyModeValue() {
return attachConsistencyMode_;
}
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @return The attachConsistencyMode.
*/
@java.lang.Override public tech.ydb.proto.coordination.ConsistencyMode getAttachConsistencyMode() {
tech.ydb.proto.coordination.ConsistencyMode result = tech.ydb.proto.coordination.ConsistencyMode.forNumber(attachConsistencyMode_);
return result == null ? tech.ydb.proto.coordination.ConsistencyMode.UNRECOGNIZED : result;
}
public static final int RATE_LIMITER_COUNTERS_MODE_FIELD_NUMBER = 6;
private int rateLimiterCountersMode_ = 0;
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @return The enum numeric value on the wire for rateLimiterCountersMode.
*/
@java.lang.Override public int getRateLimiterCountersModeValue() {
return rateLimiterCountersMode_;
}
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @return The rateLimiterCountersMode.
*/
@java.lang.Override public tech.ydb.proto.coordination.RateLimiterCountersMode getRateLimiterCountersMode() {
tech.ydb.proto.coordination.RateLimiterCountersMode result = tech.ydb.proto.coordination.RateLimiterCountersMode.forNumber(rateLimiterCountersMode_);
return result == null ? tech.ydb.proto.coordination.RateLimiterCountersMode.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
}
if (selfCheckPeriodMillis_ != 0) {
output.writeUInt32(2, selfCheckPeriodMillis_);
}
if (sessionGracePeriodMillis_ != 0) {
output.writeUInt32(3, sessionGracePeriodMillis_);
}
if (readConsistencyMode_ != tech.ydb.proto.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) {
output.writeEnum(4, readConsistencyMode_);
}
if (attachConsistencyMode_ != tech.ydb.proto.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) {
output.writeEnum(5, attachConsistencyMode_);
}
if (rateLimiterCountersMode_ != tech.ydb.proto.coordination.RateLimiterCountersMode.RATE_LIMITER_COUNTERS_MODE_UNSET.getNumber()) {
output.writeEnum(6, rateLimiterCountersMode_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
}
if (selfCheckPeriodMillis_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, selfCheckPeriodMillis_);
}
if (sessionGracePeriodMillis_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, sessionGracePeriodMillis_);
}
if (readConsistencyMode_ != tech.ydb.proto.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, readConsistencyMode_);
}
if (attachConsistencyMode_ != tech.ydb.proto.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, attachConsistencyMode_);
}
if (rateLimiterCountersMode_ != tech.ydb.proto.coordination.RateLimiterCountersMode.RATE_LIMITER_COUNTERS_MODE_UNSET.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, rateLimiterCountersMode_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof tech.ydb.proto.coordination.Config)) {
return super.equals(obj);
}
tech.ydb.proto.coordination.Config other = (tech.ydb.proto.coordination.Config) obj;
if (!getPath()
.equals(other.getPath())) return false;
if (getSelfCheckPeriodMillis()
!= other.getSelfCheckPeriodMillis()) return false;
if (getSessionGracePeriodMillis()
!= other.getSessionGracePeriodMillis()) return false;
if (readConsistencyMode_ != other.readConsistencyMode_) return false;
if (attachConsistencyMode_ != other.attachConsistencyMode_) return false;
if (rateLimiterCountersMode_ != other.rateLimiterCountersMode_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
hash = (37 * hash) + SELF_CHECK_PERIOD_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + getSelfCheckPeriodMillis();
hash = (37 * hash) + SESSION_GRACE_PERIOD_MILLIS_FIELD_NUMBER;
hash = (53 * hash) + getSessionGracePeriodMillis();
hash = (37 * hash) + READ_CONSISTENCY_MODE_FIELD_NUMBER;
hash = (53 * hash) + readConsistencyMode_;
hash = (37 * hash) + ATTACH_CONSISTENCY_MODE_FIELD_NUMBER;
hash = (53 * hash) + attachConsistencyMode_;
hash = (37 * hash) + RATE_LIMITER_COUNTERS_MODE_FIELD_NUMBER;
hash = (53 * hash) + rateLimiterCountersMode_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static tech.ydb.proto.coordination.Config parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.coordination.Config parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.coordination.Config parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.coordination.Config parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.coordination.Config parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static tech.ydb.proto.coordination.Config parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static tech.ydb.proto.coordination.Config parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.coordination.Config 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 tech.ydb.proto.coordination.Config parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static tech.ydb.proto.coordination.Config 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 tech.ydb.proto.coordination.Config parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static tech.ydb.proto.coordination.Config 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(tech.ydb.proto.coordination.Config 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 settings for a coordination node
*
*
* Protobuf type {@code Ydb.Coordination.Config}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:Ydb.Coordination.Config)
tech.ydb.proto.coordination.ConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return tech.ydb.proto.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return tech.ydb.proto.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_fieldAccessorTable
.ensureFieldAccessorsInitialized(
tech.ydb.proto.coordination.Config.class, tech.ydb.proto.coordination.Config.Builder.class);
}
// Construct using tech.ydb.proto.coordination.Config.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
path_ = "";
selfCheckPeriodMillis_ = 0;
sessionGracePeriodMillis_ = 0;
readConsistencyMode_ = 0;
attachConsistencyMode_ = 0;
rateLimiterCountersMode_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return tech.ydb.proto.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor;
}
@java.lang.Override
public tech.ydb.proto.coordination.Config getDefaultInstanceForType() {
return tech.ydb.proto.coordination.Config.getDefaultInstance();
}
@java.lang.Override
public tech.ydb.proto.coordination.Config build() {
tech.ydb.proto.coordination.Config result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public tech.ydb.proto.coordination.Config buildPartial() {
tech.ydb.proto.coordination.Config result = new tech.ydb.proto.coordination.Config(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(tech.ydb.proto.coordination.Config result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.path_ = path_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.selfCheckPeriodMillis_ = selfCheckPeriodMillis_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sessionGracePeriodMillis_ = sessionGracePeriodMillis_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.readConsistencyMode_ = readConsistencyMode_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.attachConsistencyMode_ = attachConsistencyMode_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.rateLimiterCountersMode_ = rateLimiterCountersMode_;
}
}
@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 tech.ydb.proto.coordination.Config) {
return mergeFrom((tech.ydb.proto.coordination.Config)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(tech.ydb.proto.coordination.Config other) {
if (other == tech.ydb.proto.coordination.Config.getDefaultInstance()) return this;
if (!other.getPath().isEmpty()) {
path_ = other.path_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.getSelfCheckPeriodMillis() != 0) {
setSelfCheckPeriodMillis(other.getSelfCheckPeriodMillis());
}
if (other.getSessionGracePeriodMillis() != 0) {
setSessionGracePeriodMillis(other.getSessionGracePeriodMillis());
}
if (other.readConsistencyMode_ != 0) {
setReadConsistencyModeValue(other.getReadConsistencyModeValue());
}
if (other.attachConsistencyMode_ != 0) {
setAttachConsistencyModeValue(other.getAttachConsistencyModeValue());
}
if (other.rateLimiterCountersMode_ != 0) {
setRateLimiterCountersModeValue(other.getRateLimiterCountersModeValue());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
path_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
selfCheckPeriodMillis_ = input.readUInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
case 24: {
sessionGracePeriodMillis_ = input.readUInt32();
bitField0_ |= 0x00000004;
break;
} // case 24
case 32: {
readConsistencyMode_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 40: {
attachConsistencyMode_ = input.readEnum();
bitField0_ |= 0x00000010;
break;
} // case 40
case 48: {
rateLimiterCountersMode_ = input.readEnum();
bitField0_ |= 0x00000020;
break;
} // case 48
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object path_ = "";
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* Initialized on creation, cannot be set
*
*
* string path = 1;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
path_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int selfCheckPeriodMillis_ ;
/**
*
* Period in milliseconds for self-checks (default 1 second)
*
*
* uint32 self_check_period_millis = 2;
* @return The selfCheckPeriodMillis.
*/
@java.lang.Override
public int getSelfCheckPeriodMillis() {
return selfCheckPeriodMillis_;
}
/**
*
* Period in milliseconds for self-checks (default 1 second)
*
*
* uint32 self_check_period_millis = 2;
* @param value The selfCheckPeriodMillis to set.
* @return This builder for chaining.
*/
public Builder setSelfCheckPeriodMillis(int value) {
selfCheckPeriodMillis_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* Period in milliseconds for self-checks (default 1 second)
*
*
* uint32 self_check_period_millis = 2;
* @return This builder for chaining.
*/
public Builder clearSelfCheckPeriodMillis() {
bitField0_ = (bitField0_ & ~0x00000002);
selfCheckPeriodMillis_ = 0;
onChanged();
return this;
}
private int sessionGracePeriodMillis_ ;
/**
*
* Grace period for sessions on leader change (default 10 seconds)
*
*
* uint32 session_grace_period_millis = 3;
* @return The sessionGracePeriodMillis.
*/
@java.lang.Override
public int getSessionGracePeriodMillis() {
return sessionGracePeriodMillis_;
}
/**
*
* Grace period for sessions on leader change (default 10 seconds)
*
*
* uint32 session_grace_period_millis = 3;
* @param value The sessionGracePeriodMillis to set.
* @return This builder for chaining.
*/
public Builder setSessionGracePeriodMillis(int value) {
sessionGracePeriodMillis_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* Grace period for sessions on leader change (default 10 seconds)
*
*
* uint32 session_grace_period_millis = 3;
* @return This builder for chaining.
*/
public Builder clearSessionGracePeriodMillis() {
bitField0_ = (bitField0_ & ~0x00000004);
sessionGracePeriodMillis_ = 0;
onChanged();
return this;
}
private int readConsistencyMode_ = 0;
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @return The enum numeric value on the wire for readConsistencyMode.
*/
@java.lang.Override public int getReadConsistencyModeValue() {
return readConsistencyMode_;
}
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @param value The enum numeric value on the wire for readConsistencyMode to set.
* @return This builder for chaining.
*/
public Builder setReadConsistencyModeValue(int value) {
readConsistencyMode_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @return The readConsistencyMode.
*/
@java.lang.Override
public tech.ydb.proto.coordination.ConsistencyMode getReadConsistencyMode() {
tech.ydb.proto.coordination.ConsistencyMode result = tech.ydb.proto.coordination.ConsistencyMode.forNumber(readConsistencyMode_);
return result == null ? tech.ydb.proto.coordination.ConsistencyMode.UNRECOGNIZED : result;
}
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @param value The readConsistencyMode to set.
* @return This builder for chaining.
*/
public Builder setReadConsistencyMode(tech.ydb.proto.coordination.ConsistencyMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
readConsistencyMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Concistency mode for read operations
*
*
* .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4;
* @return This builder for chaining.
*/
public Builder clearReadConsistencyMode() {
bitField0_ = (bitField0_ & ~0x00000008);
readConsistencyMode_ = 0;
onChanged();
return this;
}
private int attachConsistencyMode_ = 0;
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @return The enum numeric value on the wire for attachConsistencyMode.
*/
@java.lang.Override public int getAttachConsistencyModeValue() {
return attachConsistencyMode_;
}
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @param value The enum numeric value on the wire for attachConsistencyMode to set.
* @return This builder for chaining.
*/
public Builder setAttachConsistencyModeValue(int value) {
attachConsistencyMode_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @return The attachConsistencyMode.
*/
@java.lang.Override
public tech.ydb.proto.coordination.ConsistencyMode getAttachConsistencyMode() {
tech.ydb.proto.coordination.ConsistencyMode result = tech.ydb.proto.coordination.ConsistencyMode.forNumber(attachConsistencyMode_);
return result == null ? tech.ydb.proto.coordination.ConsistencyMode.UNRECOGNIZED : result;
}
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @param value The attachConsistencyMode to set.
* @return This builder for chaining.
*/
public Builder setAttachConsistencyMode(tech.ydb.proto.coordination.ConsistencyMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
attachConsistencyMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Consistency mode for attach operations
*
*
* .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5;
* @return This builder for chaining.
*/
public Builder clearAttachConsistencyMode() {
bitField0_ = (bitField0_ & ~0x00000010);
attachConsistencyMode_ = 0;
onChanged();
return this;
}
private int rateLimiterCountersMode_ = 0;
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @return The enum numeric value on the wire for rateLimiterCountersMode.
*/
@java.lang.Override public int getRateLimiterCountersModeValue() {
return rateLimiterCountersMode_;
}
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @param value The enum numeric value on the wire for rateLimiterCountersMode to set.
* @return This builder for chaining.
*/
public Builder setRateLimiterCountersModeValue(int value) {
rateLimiterCountersMode_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @return The rateLimiterCountersMode.
*/
@java.lang.Override
public tech.ydb.proto.coordination.RateLimiterCountersMode getRateLimiterCountersMode() {
tech.ydb.proto.coordination.RateLimiterCountersMode result = tech.ydb.proto.coordination.RateLimiterCountersMode.forNumber(rateLimiterCountersMode_);
return result == null ? tech.ydb.proto.coordination.RateLimiterCountersMode.UNRECOGNIZED : result;
}
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @param value The rateLimiterCountersMode to set.
* @return This builder for chaining.
*/
public Builder setRateLimiterCountersMode(tech.ydb.proto.coordination.RateLimiterCountersMode value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
rateLimiterCountersMode_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Rate limiter counters mode
*
*
* .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6;
* @return This builder for chaining.
*/
public Builder clearRateLimiterCountersMode() {
bitField0_ = (bitField0_ & ~0x00000020);
rateLimiterCountersMode_ = 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:Ydb.Coordination.Config)
}
// @@protoc_insertion_point(class_scope:Ydb.Coordination.Config)
private static final tech.ydb.proto.coordination.Config DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new tech.ydb.proto.coordination.Config();
}
public static tech.ydb.proto.coordination.Config getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Config parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public tech.ydb.proto.coordination.Config getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}