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

yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass Maven / Gradle / Ivy

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

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

public final class ExtensionOuterClass {
  private ExtensionOuterClass() {}
  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 ExtensionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.Extension)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Name of the extension.
     * 
* * string name = 1; * @return The name. */ java.lang.String getName(); /** *
     * Name of the extension.
     * 
* * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * Unique ID of the extension.
     * 
* * string id = 2; * @return The id. */ java.lang.String getId(); /** *
     * Unique ID of the extension.
     * 
* * string id = 2; * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** *
     * ID of the Elasticsearch cluster the extension belongs to.
     * 
* * string cluster_id = 3; * @return The clusterId. */ java.lang.String getClusterId(); /** *
     * ID of the Elasticsearch cluster the extension belongs to.
     * 
* * string cluster_id = 3; * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); /** *
     * Version of the extension.
     * 
* * int64 version = 4; * @return The version. */ long getVersion(); /** *
     * The flag shows whether the extension is active.
     * 
* * bool active = 5; * @return The active. */ boolean getActive(); } /** * Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.Extension} */ public static final class Extension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.Extension) ExtensionOrBuilder { private static final long serialVersionUID = 0L; // Use Extension.newBuilder() to construct. private Extension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Extension() { name_ = ""; id_ = ""; clusterId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Extension(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Extension( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); id_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); clusterId_ = s; break; } case 32: { version_ = input.readInt64(); break; } case 40: { active_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.class, yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the extension.
     * 
* * string name = 1; * @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 extension.
     * 
* * string name = 1; * @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 ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
     * Unique ID of the extension.
     * 
* * string id = 2; * @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; } } /** *
     * Unique ID of the extension.
     * 
* * string id = 2; * @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 CLUSTER_ID_FIELD_NUMBER = 3; private volatile java.lang.Object clusterId_; /** *
     * ID of the Elasticsearch cluster the extension belongs to.
     * 
* * string cluster_id = 3; * @return The clusterId. */ @java.lang.Override public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; 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(); clusterId_ = s; return s; } } /** *
     * ID of the Elasticsearch cluster the extension belongs to.
     * 
* * string cluster_id = 3; * @return The bytes for clusterId. */ @java.lang.Override public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 4; private long version_; /** *
     * Version of the extension.
     * 
* * int64 version = 4; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } public static final int ACTIVE_FIELD_NUMBER = 5; private boolean active_; /** *
     * The flag shows whether the extension is active.
     * 
* * bool active = 5; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); } if (version_ != 0L) { output.writeInt64(4, version_); } if (active_ != false) { output.writeBool(5, active_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); } if (version_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, version_); } if (active_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, active_); } 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.elasticsearch.v1.ExtensionOuterClass.Extension)) { return super.equals(obj); } yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension other = (yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension) obj; if (!getName() .equals(other.getName())) return false; if (!getId() .equals(other.getId())) return false; if (!getClusterId() .equals(other.getClusterId())) return false; if (getVersion() != other.getVersion()) return false; if (getActive() != other.getActive()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getClusterId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getVersion()); hash = (37 * hash) + ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getActive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.ExtensionOuterClass.Extension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.ExtensionOuterClass.Extension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.ExtensionOuterClass.Extension 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.elasticsearch.v1.Extension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.Extension) yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.class, yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.Builder.class); } // Construct using yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.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(); name_ = ""; id_ = ""; clusterId_ = ""; version_ = 0L; active_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension getDefaultInstanceForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension build() { yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension buildPartial() { yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension result = new yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension(this); result.name_ = name_; result.id_ = id_; result.clusterId_ = clusterId_; result.version_ = version_; result.active_ = active_; 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.elasticsearch.v1.ExtensionOuterClass.Extension) { return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension other) { if (other == yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); } if (!other.getClusterId().isEmpty()) { clusterId_ = other.clusterId_; onChanged(); } if (other.getVersion() != 0L) { setVersion(other.getVersion()); } if (other.getActive() != false) { setActive(other.getActive()); } 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.elasticsearch.v1.ExtensionOuterClass.Extension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the extension.
       * 
* * string name = 1; * @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 extension.
       * 
* * string name = 1; * @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 extension.
       * 
* * string name = 1; * @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 extension.
       * 
* * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the extension.
       * 
* * string name = 1; * @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 java.lang.Object id_ = ""; /** *
       * Unique ID of the extension.
       * 
* * string id = 2; * @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; } } /** *
       * Unique ID of the extension.
       * 
* * string id = 2; * @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; } } /** *
       * Unique ID of the extension.
       * 
* * string id = 2; * @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; } /** *
       * Unique ID of the extension.
       * 
* * string id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
       * Unique ID of the extension.
       * 
* * string id = 2; * @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 clusterId_ = ""; /** *
       * ID of the Elasticsearch cluster the extension belongs to.
       * 
* * string cluster_id = 3; * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clusterId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * ID of the Elasticsearch cluster the extension belongs to.
       * 
* * string cluster_id = 3; * @return The bytes for clusterId. */ public com.google.protobuf.ByteString getClusterIdBytes() { java.lang.Object ref = clusterId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); clusterId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * ID of the Elasticsearch cluster the extension belongs to.
       * 
* * string cluster_id = 3; * @param value The clusterId to set. * @return This builder for chaining. */ public Builder setClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clusterId_ = value; onChanged(); return this; } /** *
       * ID of the Elasticsearch cluster the extension belongs to.
       * 
* * string cluster_id = 3; * @return This builder for chaining. */ public Builder clearClusterId() { clusterId_ = getDefaultInstance().getClusterId(); onChanged(); return this; } /** *
       * ID of the Elasticsearch cluster the extension belongs to.
       * 
* * string cluster_id = 3; * @param value The bytes for clusterId to set. * @return This builder for chaining. */ public Builder setClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clusterId_ = value; onChanged(); return this; } private long version_ ; /** *
       * Version of the extension.
       * 
* * int64 version = 4; * @return The version. */ @java.lang.Override public long getVersion() { return version_; } /** *
       * Version of the extension.
       * 
* * int64 version = 4; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion(long value) { version_ = value; onChanged(); return this; } /** *
       * Version of the extension.
       * 
* * int64 version = 4; * @return This builder for chaining. */ public Builder clearVersion() { version_ = 0L; onChanged(); return this; } private boolean active_ ; /** *
       * The flag shows whether the extension is active.
       * 
* * bool active = 5; * @return The active. */ @java.lang.Override public boolean getActive() { return active_; } /** *
       * The flag shows whether the extension is active.
       * 
* * bool active = 5; * @param value The active to set. * @return This builder for chaining. */ public Builder setActive(boolean value) { active_ = value; onChanged(); return this; } /** *
       * The flag shows whether the extension is active.
       * 
* * bool active = 5; * @return This builder for chaining. */ public Builder clearActive() { active_ = false; 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.elasticsearch.v1.Extension) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.Extension) private static final yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension(); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.Extension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Extension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Extension(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.elasticsearch.v1.ExtensionOuterClass.Extension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ExtensionSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.mdb.elasticsearch.v1.ExtensionSpec) com.google.protobuf.MessageOrBuilder { /** *
     * Name of the extension.
     * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The name. */ java.lang.String getName(); /** *
     * Name of the extension.
     * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
     * 
* * string uri = 2; * @return The uri. */ java.lang.String getUri(); /** *
     * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
     * 
* * string uri = 2; * @return The bytes for uri. */ com.google.protobuf.ByteString getUriBytes(); /** *
     * The flag shows whether to create the extension in disabled state. 
     * 
* * bool disabled = 3; * @return The disabled. */ boolean getDisabled(); } /** * Protobuf type {@code yandex.cloud.mdb.elasticsearch.v1.ExtensionSpec} */ public static final class ExtensionSpec extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.mdb.elasticsearch.v1.ExtensionSpec) ExtensionSpecOrBuilder { private static final long serialVersionUID = 0L; // Use ExtensionSpec.newBuilder() to construct. private ExtensionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ExtensionSpec() { name_ = ""; uri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ExtensionSpec(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtensionSpec( 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(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); uri_ = s; break; } case 24: { disabled_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.class, yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** *
     * Name of the extension.
     * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 extension.
     * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 URI_FIELD_NUMBER = 2; private volatile java.lang.Object uri_; /** *
     * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
     * 
* * string uri = 2; * @return The uri. */ @java.lang.Override public java.lang.String getUri() { java.lang.Object ref = uri_; 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(); uri_ = s; return s; } } /** *
     * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
     * 
* * string uri = 2; * @return The bytes for uri. */ @java.lang.Override public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISABLED_FIELD_NUMBER = 3; private boolean disabled_; /** *
     * The flag shows whether to create the extension in disabled state. 
     * 
* * bool disabled = 3; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uri_); } if (disabled_ != false) { output.writeBool(3, disabled_); } 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(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uri_); } if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, disabled_); } 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec)) { return super.equals(obj); } yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec other = (yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec) obj; if (!getName() .equals(other.getName())) return false; if (!getUri() .equals(other.getUri())) return false; if (getDisabled() != other.getDisabled()) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + URI_FIELD_NUMBER; hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec 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.elasticsearch.v1.ExtensionSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.mdb.elasticsearch.v1.ExtensionSpec) yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.class, yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.Builder.class); } // Construct using yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.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(); name_ = ""; uri_ = ""; disabled_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec getDefaultInstanceForType() { return yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec build() { yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec buildPartial() { yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec result = new yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec(this); result.name_ = name_; result.uri_ = uri_; result.disabled_ = disabled_; 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec) { return mergeFrom((yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec other) { if (other == yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getUri().isEmpty()) { uri_ = other.uri_; onChanged(); } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } 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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object name_ = ""; /** *
       * Name of the extension.
       * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 extension.
       * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 extension.
       * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 extension.
       * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Name of the extension.
       * 
* * string name = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; * @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 java.lang.Object uri_ = ""; /** *
       * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
       * 
* * string uri = 2; * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
       * 
* * string uri = 2; * @return The bytes for uri. */ public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
       * 
* * string uri = 2; * @param value The uri to set. * @return This builder for chaining. */ public Builder setUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } uri_ = value; onChanged(); return this; } /** *
       * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
       * 
* * string uri = 2; * @return This builder for chaining. */ public Builder clearUri() { uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** *
       * URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage.
       * 
* * string uri = 2; * @param value The bytes for uri to set. * @return This builder for chaining. */ public Builder setUriBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); uri_ = value; onChanged(); return this; } private boolean disabled_ ; /** *
       * The flag shows whether to create the extension in disabled state. 
       * 
* * bool disabled = 3; * @return The disabled. */ @java.lang.Override public boolean getDisabled() { return disabled_; } /** *
       * The flag shows whether to create the extension in disabled state. 
       * 
* * bool disabled = 3; * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { disabled_ = value; onChanged(); return this; } /** *
       * The flag shows whether to create the extension in disabled state. 
       * 
* * bool disabled = 3; * @return This builder for chaining. */ public Builder clearDisabled() { disabled_ = false; 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.elasticsearch.v1.ExtensionSpec) } // @@protoc_insertion_point(class_scope:yandex.cloud.mdb.elasticsearch.v1.ExtensionSpec) private static final yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec(); } public static yandex.cloud.api.mdb.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ExtensionSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtensionSpec(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.elasticsearch.v1.ExtensionOuterClass.ExtensionSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n1yandex/cloud/mdb/elasticsearch/v1/exte" + "nsion.proto\022!yandex.cloud.mdb.elasticsea" + "rch.v1\032\035yandex/cloud/validation.proto\"Z\n" + "\tExtension\022\014\n\004name\030\001 \001(\t\022\n\n\002id\030\002 \001(\t\022\022\n\n" + "cluster_id\030\003 \001(\t\022\017\n\007version\030\004 \001(\003\022\016\n\006act" + "ive\030\005 \001(\010\"J\n\rExtensionSpec\022\032\n\004name\030\001 \001(\t" + "B\014\350\3071\001\212\3101\004<=50\022\013\n\003uri\030\002 \001(\t\022\020\n\010disabled\030" + "\003 \001(\010B|\n%yandex.cloud.api.mdb.elasticsea" + "rch.v1ZSgithub.com/yandex-cloud/go-genpr" + "oto/yandex/cloud/mdb/elasticsearch/v1;el" + "asticsearchb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.Validation.getDescriptor(), }); internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_elasticsearch_v1_Extension_descriptor, new java.lang.String[] { "Name", "Id", "ClusterId", "Version", "Active", }); internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_mdb_elasticsearch_v1_ExtensionSpec_descriptor, new java.lang.String[] { "Name", "Uri", "Disabled", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(yandex.cloud.api.Validation.length); registry.add(yandex.cloud.api.Validation.required); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); yandex.cloud.api.Validation.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy