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

yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/mdb/clickhouse/v1/version.proto

package yandex.cloud.api.mdb.clickhouse.v1;

public final class VersionOuterClass {
  private VersionOuterClass() {}
  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 VersionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.clickhouse.v1.Version)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ java.lang.String getId(); /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * Name of the version.
     * 
* * string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Name of the version.
     * 
* * string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Whether version is deprecated.
     * 
* * bool deprecated = 3; * @return The deprecated. */ boolean getDeprecated(); /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @return A list containing the updatableTo. */ java.util.List getUpdatableToList(); /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @return The count of updatableTo. */ int getUpdatableToCount(); /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @param index The index of the element to return. * @return The updatableTo at the given index. */ java.lang.String getUpdatableTo(int index); /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @param index The index of the value to return. * @return The bytes of the updatableTo at the given index. */ com.google.protobuf.ByteString getUpdatableToBytes(int index); } /** * Protobuf type {@code yandex.cloud.mdb.clickhouse.v1.Version} */ public static final class Version extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.clickhouse.v1.Version) VersionOrBuilder { private static final long serialVersionUID = 0L; // Use Version.newBuilder() to construct. private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Version() { id_ = ""; name_ = ""; updatableTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Version(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Version( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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(); id_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 24: { deprecated_ = input.readBool(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { updatableTo_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } updatableTo_.add(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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { updatableTo_ = updatableTo_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.class, yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** *
     * ID of the version.
     * 
* * string id = 1; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; } } /** *
     * ID of the version.
     * 
* * string id = 1; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Name of the version.
     * 
* * string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** *
     * Name of the version.
     * 
* * string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DEPRECATED_FIELD_NUMBER = 3; private boolean deprecated_; /** *
     * Whether version is deprecated.
     * 
* * bool deprecated = 3; * @return The deprecated. */ @java.lang.Override public boolean getDeprecated() { return deprecated_; } public static final int UPDATABLE_TO_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList updatableTo_; /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @return A list containing the updatableTo. */ public com.google.protobuf.ProtocolStringList getUpdatableToList() { return updatableTo_; } /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @return The count of updatableTo. */ public int getUpdatableToCount() { return updatableTo_.size(); } /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @param index The index of the element to return. * @return The updatableTo at the given index. */ public java.lang.String getUpdatableTo(int index) { return updatableTo_.get(index); } /** *
     * List of versions that can be updated from current.
     * 
* * repeated string updatable_to = 4; * @param index The index of the value to return. * @return The bytes of the updatableTo at the given index. */ public com.google.protobuf.ByteString getUpdatableToBytes(int index) { return updatableTo_.getByteString(index); } 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (deprecated_ != false) { output.writeBool(3, deprecated_); } for (int i = 0; i < updatableTo_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, updatableTo_.getRaw(i)); } 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(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (deprecated_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, deprecated_); } { int dataSize = 0; for (int i = 0; i < updatableTo_.size(); i++) { dataSize += computeStringSizeNoTag(updatableTo_.getRaw(i)); } size += dataSize; size += 1 * getUpdatableToList().size(); } 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.clickhouse.v1.VersionOuterClass.Version)) { return super.equals(obj); } yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version other = (yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version) obj; if (!getId() .equals(other.getId())) return false; if (!getName() .equals(other.getName())) return false; if (getDeprecated() != other.getDeprecated()) return false; if (!getUpdatableToList() .equals(other.getUpdatableToList())) 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) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DEPRECATED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDeprecated()); if (getUpdatableToCount() > 0) { hash = (37 * hash) + UPDATABLE_TO_FIELD_NUMBER; hash = (53 * hash) + getUpdatableToList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.VersionOuterClass.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.VersionOuterClass.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.VersionOuterClass.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.VersionOuterClass.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.VersionOuterClass.Version 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.clickhouse.v1.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.clickhouse.v1.Version) yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.VersionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_Version_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.class, yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.Builder.class); } // Construct using yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.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(); id_ = ""; name_ = ""; deprecated_ = false; updatableTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version getDefaultInstanceForType() { return yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version build() { yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version buildPartial() { yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version result = new yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.name_ = name_; result.deprecated_ = deprecated_; if (((bitField0_ & 0x00000001) != 0)) { updatableTo_ = updatableTo_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.updatableTo_ = updatableTo_; 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.clickhouse.v1.VersionOuterClass.Version) { return mergeFrom((yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version other) { if (other == yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.getDeprecated() != false) { setDeprecated(other.getDeprecated()); } if (!other.updatableTo_.isEmpty()) { if (updatableTo_.isEmpty()) { updatableTo_ = other.updatableTo_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUpdatableToIsMutable(); updatableTo_.addAll(other.updatableTo_); } 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.clickhouse.v1.VersionOuterClass.Version parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
       * ID of the version.
       * 
* * string id = 1; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * ID of the version.
       * 
* * string id = 1; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Name of the version.
       * 
* * string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Name of the version.
       * 
* * string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name of the version.
       * 
* * string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** *
       * Name of the version.
       * 
* * string name = 2; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the version.
       * 
* * string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private boolean deprecated_ ; /** *
       * Whether version is deprecated.
       * 
* * bool deprecated = 3; * @return The deprecated. */ @java.lang.Override public boolean getDeprecated() { return deprecated_; } /** *
       * Whether version is deprecated.
       * 
* * bool deprecated = 3; * @param value The deprecated to set. * @return This builder for chaining. */ public Builder setDeprecated(boolean value) { deprecated_ = value; onChanged(); return this; } /** *
       * Whether version is deprecated.
       * 
* * bool deprecated = 3; * @return This builder for chaining. */ public Builder clearDeprecated() { deprecated_ = false; onChanged(); return this; } private com.google.protobuf.LazyStringList updatableTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUpdatableToIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { updatableTo_ = new com.google.protobuf.LazyStringArrayList(updatableTo_); bitField0_ |= 0x00000001; } } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @return A list containing the updatableTo. */ public com.google.protobuf.ProtocolStringList getUpdatableToList() { return updatableTo_.getUnmodifiableView(); } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @return The count of updatableTo. */ public int getUpdatableToCount() { return updatableTo_.size(); } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param index The index of the element to return. * @return The updatableTo at the given index. */ public java.lang.String getUpdatableTo(int index) { return updatableTo_.get(index); } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param index The index of the value to return. * @return The bytes of the updatableTo at the given index. */ public com.google.protobuf.ByteString getUpdatableToBytes(int index) { return updatableTo_.getByteString(index); } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param index The index to set the value at. * @param value The updatableTo to set. * @return This builder for chaining. */ public Builder setUpdatableTo( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUpdatableToIsMutable(); updatableTo_.set(index, value); onChanged(); return this; } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param value The updatableTo to add. * @return This builder for chaining. */ public Builder addUpdatableTo( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureUpdatableToIsMutable(); updatableTo_.add(value); onChanged(); return this; } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param values The updatableTo to add. * @return This builder for chaining. */ public Builder addAllUpdatableTo( java.lang.Iterable values) { ensureUpdatableToIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, updatableTo_); onChanged(); return this; } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @return This builder for chaining. */ public Builder clearUpdatableTo() { updatableTo_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * List of versions that can be updated from current.
       * 
* * repeated string updatable_to = 4; * @param value The bytes of the updatableTo to add. * @return This builder for chaining. */ public Builder addUpdatableToBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUpdatableToIsMutable(); updatableTo_.add(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.clickhouse.v1.Version) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.clickhouse.v1.Version) private static final yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version(); } public static yandex.cloud.api.mdb.clickhouse.v1.VersionOuterClass.Version getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Version parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Version(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.clickhouse.v1.VersionOuterClass.Version getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_clickhouse_v1_Version_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/clickhouse/v1/version" + ".proto\022\036yandex.cloud.mdb.clickhouse.v1\"M" + "\n\007Version\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\022\n\nd" + "eprecated\030\003 \001(\010\022\024\n\014updatable_to\030\004 \003(\tBs\n" + "\"yandex.cloud.api.mdb.clickhouse.v1ZMgit" + "hub.com/yandex-cloud/go-genproto/yandex/" + "cloud/mdb/clickhouse/v1;clickhouseb\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_clickhouse_v1_Version_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_clickhouse_v1_Version_descriptor, new java.lang.String[] { "Id", "Name", "Deprecated", "UpdatableTo", }); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy