All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.ydb.coordination.Config Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: ydb/public/api/protos/ydb_coordination.proto

package com.yandex.ydb.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(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Config( 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(); path_ = s; break; } case 16: { selfCheckPeriodMillis_ = input.readUInt32(); break; } case 24: { sessionGracePeriodMillis_ = input.readUInt32(); break; } case 32: { int rawValue = input.readEnum(); readConsistencyMode_ = rawValue; break; } case 40: { int rawValue = input.readEnum(); attachConsistencyMode_ = rawValue; break; } case 48: { int rawValue = input.readEnum(); rateLimiterCountersMode_ = 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 com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.Config.class, com.yandex.ydb.coordination.Config.Builder.class); } public static final int PATH_FIELD_NUMBER = 1; 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_; /** *
   * 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_; /** *
   * 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_; /** *
   * 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 com.yandex.ydb.coordination.ConsistencyMode getReadConsistencyMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.ConsistencyMode result = com.yandex.ydb.coordination.ConsistencyMode.valueOf(readConsistencyMode_); return result == null ? com.yandex.ydb.coordination.ConsistencyMode.UNRECOGNIZED : result; } public static final int ATTACH_CONSISTENCY_MODE_FIELD_NUMBER = 5; private int attachConsistencyMode_; /** *
   * 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 com.yandex.ydb.coordination.ConsistencyMode getAttachConsistencyMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.ConsistencyMode result = com.yandex.ydb.coordination.ConsistencyMode.valueOf(attachConsistencyMode_); return result == null ? com.yandex.ydb.coordination.ConsistencyMode.UNRECOGNIZED : result; } public static final int RATE_LIMITER_COUNTERS_MODE_FIELD_NUMBER = 6; private int rateLimiterCountersMode_; /** *
   * 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 com.yandex.ydb.coordination.RateLimiterCountersMode getRateLimiterCountersMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.RateLimiterCountersMode result = com.yandex.ydb.coordination.RateLimiterCountersMode.valueOf(rateLimiterCountersMode_); return result == null ? com.yandex.ydb.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_ != com.yandex.ydb.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) { output.writeEnum(4, readConsistencyMode_); } if (attachConsistencyMode_ != com.yandex.ydb.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) { output.writeEnum(5, attachConsistencyMode_); } if (rateLimiterCountersMode_ != com.yandex.ydb.coordination.RateLimiterCountersMode.RATE_LIMITER_COUNTERS_MODE_UNSET.getNumber()) { output.writeEnum(6, rateLimiterCountersMode_); } 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(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_ != com.yandex.ydb.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, readConsistencyMode_); } if (attachConsistencyMode_ != com.yandex.ydb.coordination.ConsistencyMode.CONSISTENCY_MODE_UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, attachConsistencyMode_); } if (rateLimiterCountersMode_ != com.yandex.ydb.coordination.RateLimiterCountersMode.RATE_LIMITER_COUNTERS_MODE_UNSET.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, rateLimiterCountersMode_); } 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 com.yandex.ydb.coordination.Config)) { return super.equals(obj); } com.yandex.ydb.coordination.Config other = (com.yandex.ydb.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 (!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) + 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) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.yandex.ydb.coordination.Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.Config parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.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 com.yandex.ydb.coordination.Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.yandex.ydb.coordination.Config parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.yandex.ydb.coordination.Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.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 com.yandex.ydb.coordination.Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.yandex.ydb.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 com.yandex.ydb.coordination.Config parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.yandex.ydb.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(com.yandex.ydb.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) com.yandex.ydb.coordination.ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_fieldAccessorTable .ensureFieldAccessorsInitialized( com.yandex.ydb.coordination.Config.class, com.yandex.ydb.coordination.Config.Builder.class); } // Construct using com.yandex.ydb.coordination.Config.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(); path_ = ""; selfCheckPeriodMillis_ = 0; sessionGracePeriodMillis_ = 0; readConsistencyMode_ = 0; attachConsistencyMode_ = 0; rateLimiterCountersMode_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.yandex.ydb.coordination.CoordinationProtos.internal_static_Ydb_Coordination_Config_descriptor; } @java.lang.Override public com.yandex.ydb.coordination.Config getDefaultInstanceForType() { return com.yandex.ydb.coordination.Config.getDefaultInstance(); } @java.lang.Override public com.yandex.ydb.coordination.Config build() { com.yandex.ydb.coordination.Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.yandex.ydb.coordination.Config buildPartial() { com.yandex.ydb.coordination.Config result = new com.yandex.ydb.coordination.Config(this); result.path_ = path_; result.selfCheckPeriodMillis_ = selfCheckPeriodMillis_; result.sessionGracePeriodMillis_ = sessionGracePeriodMillis_; result.readConsistencyMode_ = readConsistencyMode_; result.attachConsistencyMode_ = attachConsistencyMode_; result.rateLimiterCountersMode_ = rateLimiterCountersMode_; 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 com.yandex.ydb.coordination.Config) { return mergeFrom((com.yandex.ydb.coordination.Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.yandex.ydb.coordination.Config other) { if (other == com.yandex.ydb.coordination.Config.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; 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.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 { com.yandex.ydb.coordination.Config parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.yandex.ydb.coordination.Config) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } 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; onChanged(); return this; } /** *
     * Initialized on creation, cannot be set
     * 
* * string path = 1; * @return This builder for chaining. */ public Builder clearPath() { path_ = getDefaultInstance().getPath(); 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; 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; 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() { 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; 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() { 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; onChanged(); return this; } /** *
     * Concistency mode for read operations
     * 
* * .Ydb.Coordination.ConsistencyMode read_consistency_mode = 4; * @return The readConsistencyMode. */ @java.lang.Override public com.yandex.ydb.coordination.ConsistencyMode getReadConsistencyMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.ConsistencyMode result = com.yandex.ydb.coordination.ConsistencyMode.valueOf(readConsistencyMode_); return result == null ? com.yandex.ydb.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(com.yandex.ydb.coordination.ConsistencyMode value) { if (value == null) { throw new NullPointerException(); } 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() { 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; onChanged(); return this; } /** *
     * Consistency mode for attach operations
     * 
* * .Ydb.Coordination.ConsistencyMode attach_consistency_mode = 5; * @return The attachConsistencyMode. */ @java.lang.Override public com.yandex.ydb.coordination.ConsistencyMode getAttachConsistencyMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.ConsistencyMode result = com.yandex.ydb.coordination.ConsistencyMode.valueOf(attachConsistencyMode_); return result == null ? com.yandex.ydb.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(com.yandex.ydb.coordination.ConsistencyMode value) { if (value == null) { throw new NullPointerException(); } 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() { 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; onChanged(); return this; } /** *
     * Rate limiter counters mode
     * 
* * .Ydb.Coordination.RateLimiterCountersMode rate_limiter_counters_mode = 6; * @return The rateLimiterCountersMode. */ @java.lang.Override public com.yandex.ydb.coordination.RateLimiterCountersMode getRateLimiterCountersMode() { @SuppressWarnings("deprecation") com.yandex.ydb.coordination.RateLimiterCountersMode result = com.yandex.ydb.coordination.RateLimiterCountersMode.valueOf(rateLimiterCountersMode_); return result == null ? com.yandex.ydb.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(com.yandex.ydb.coordination.RateLimiterCountersMode value) { if (value == null) { throw new NullPointerException(); } 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() { 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 com.yandex.ydb.coordination.Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.yandex.ydb.coordination.Config(); } public static com.yandex.ydb.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 { return new Config(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 com.yandex.ydb.coordination.Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy