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

yandex.cloud.api.datatransfer.v1.endpoint.Mongo Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/datatransfer/v1/endpoint/mongo.proto

package yandex.cloud.api.datatransfer.v1.endpoint;

public final class Mongo {
  private Mongo() {}
  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 OnPremiseMongoOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo)
      com.google.protobuf.MessageOrBuilder {

    /**
     * repeated string hosts = 1;
     * @return A list containing the hosts.
     */
    java.util.List
        getHostsList();
    /**
     * repeated string hosts = 1;
     * @return The count of hosts.
     */
    int getHostsCount();
    /**
     * repeated string hosts = 1;
     * @param index The index of the element to return.
     * @return The hosts at the given index.
     */
    java.lang.String getHosts(int index);
    /**
     * repeated string hosts = 1;
     * @param index The index of the value to return.
     * @return The bytes of the hosts at the given index.
     */
    com.google.protobuf.ByteString
        getHostsBytes(int index);

    /**
     * int64 port = 2;
     * @return The port.
     */
    long getPort();

    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     * @return Whether the tlsMode field is set.
     */
    boolean hasTlsMode();
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     * @return The tlsMode.
     */
    yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode();
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     */
    yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder();

    /**
     * string replica_set = 5;
     * @return The replicaSet.
     */
    java.lang.String getReplicaSet();
    /**
     * string replica_set = 5;
     * @return The bytes for replicaSet.
     */
    com.google.protobuf.ByteString
        getReplicaSetBytes();
  }
  /**
   * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo}
   */
  public static final class OnPremiseMongo extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo)
      OnPremiseMongoOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use OnPremiseMongo.newBuilder() to construct.
    private OnPremiseMongo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private OnPremiseMongo() {
      hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      replicaSet_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new OnPremiseMongo();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private OnPremiseMongo(
        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();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                hosts_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              hosts_.add(s);
              break;
            }
            case 16: {

              port_ = input.readInt64();
              break;
            }
            case 42: {
              java.lang.String s = input.readStringRequireUtf8();

              replicaSet_ = s;
              break;
            }
            case 50: {
              yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder subBuilder = null;
              if (tlsMode_ != null) {
                subBuilder = tlsMode_.toBuilder();
              }
              tlsMode_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(tlsMode_);
                tlsMode_ = subBuilder.buildPartial();
              }

              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          hosts_ = hosts_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder.class);
    }

    public static final int HOSTS_FIELD_NUMBER = 1;
    private com.google.protobuf.LazyStringList hosts_;
    /**
     * repeated string hosts = 1;
     * @return A list containing the hosts.
     */
    public com.google.protobuf.ProtocolStringList
        getHostsList() {
      return hosts_;
    }
    /**
     * repeated string hosts = 1;
     * @return The count of hosts.
     */
    public int getHostsCount() {
      return hosts_.size();
    }
    /**
     * repeated string hosts = 1;
     * @param index The index of the element to return.
     * @return The hosts at the given index.
     */
    public java.lang.String getHosts(int index) {
      return hosts_.get(index);
    }
    /**
     * repeated string hosts = 1;
     * @param index The index of the value to return.
     * @return The bytes of the hosts at the given index.
     */
    public com.google.protobuf.ByteString
        getHostsBytes(int index) {
      return hosts_.getByteString(index);
    }

    public static final int PORT_FIELD_NUMBER = 2;
    private long port_;
    /**
     * int64 port = 2;
     * @return The port.
     */
    @java.lang.Override
    public long getPort() {
      return port_;
    }

    public static final int TLS_MODE_FIELD_NUMBER = 6;
    private yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode tlsMode_;
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     * @return Whether the tlsMode field is set.
     */
    @java.lang.Override
    public boolean hasTlsMode() {
      return tlsMode_ != null;
    }
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     * @return The tlsMode.
     */
    @java.lang.Override
    public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode() {
      return tlsMode_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
    }
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
     */
    @java.lang.Override
    public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder() {
      return getTlsMode();
    }

    public static final int REPLICA_SET_FIELD_NUMBER = 5;
    private volatile java.lang.Object replicaSet_;
    /**
     * string replica_set = 5;
     * @return The replicaSet.
     */
    @java.lang.Override
    public java.lang.String getReplicaSet() {
      java.lang.Object ref = replicaSet_;
      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();
        replicaSet_ = s;
        return s;
      }
    }
    /**
     * string replica_set = 5;
     * @return The bytes for replicaSet.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getReplicaSetBytes() {
      java.lang.Object ref = replicaSet_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        replicaSet_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      for (int i = 0; i < hosts_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hosts_.getRaw(i));
      }
      if (port_ != 0L) {
        output.writeInt64(2, port_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaSet_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, replicaSet_);
      }
      if (tlsMode_ != null) {
        output.writeMessage(6, getTlsMode());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < hosts_.size(); i++) {
          dataSize += computeStringSizeNoTag(hosts_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getHostsList().size();
      }
      if (port_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(2, port_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicaSet_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, replicaSet_);
      }
      if (tlsMode_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, getTlsMode());
      }
      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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo)) {
        return super.equals(obj);
      }
      yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) obj;

      if (!getHostsList()
          .equals(other.getHostsList())) return false;
      if (getPort()
          != other.getPort()) return false;
      if (hasTlsMode() != other.hasTlsMode()) return false;
      if (hasTlsMode()) {
        if (!getTlsMode()
            .equals(other.getTlsMode())) return false;
      }
      if (!getReplicaSet()
          .equals(other.getReplicaSet())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getHostsCount() > 0) {
        hash = (37 * hash) + HOSTS_FIELD_NUMBER;
        hash = (53 * hash) + getHostsList().hashCode();
      }
      hash = (37 * hash) + PORT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getPort());
      if (hasTlsMode()) {
        hash = (37 * hash) + TLS_MODE_FIELD_NUMBER;
        hash = (53 * hash) + getTlsMode().hashCode();
      }
      hash = (37 * hash) + REPLICA_SET_FIELD_NUMBER;
      hash = (53 * hash) + getReplicaSet().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo 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.datatransfer.v1.endpoint.OnPremiseMongo}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo)
        yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder.class);
      }

      // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.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();
        hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        port_ = 0L;

        if (tlsModeBuilder_ == null) {
          tlsMode_ = null;
        } else {
          tlsMode_ = null;
          tlsModeBuilder_ = null;
        }
        replicaSet_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor;
      }

      @java.lang.Override
      public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getDefaultInstanceForType() {
        return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance();
      }

      @java.lang.Override
      public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo build() {
        yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo buildPartial() {
        yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) != 0)) {
          hosts_ = hosts_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.hosts_ = hosts_;
        result.port_ = port_;
        if (tlsModeBuilder_ == null) {
          result.tlsMode_ = tlsMode_;
        } else {
          result.tlsMode_ = tlsModeBuilder_.build();
        }
        result.replicaSet_ = replicaSet_;
        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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) {
          return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo other) {
        if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance()) return this;
        if (!other.hosts_.isEmpty()) {
          if (hosts_.isEmpty()) {
            hosts_ = other.hosts_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureHostsIsMutable();
            hosts_.addAll(other.hosts_);
          }
          onChanged();
        }
        if (other.getPort() != 0L) {
          setPort(other.getPort());
        }
        if (other.hasTlsMode()) {
          mergeTlsMode(other.getTlsMode());
        }
        if (!other.getReplicaSet().isEmpty()) {
          replicaSet_ = other.replicaSet_;
          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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringList hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureHostsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          hosts_ = new com.google.protobuf.LazyStringArrayList(hosts_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * repeated string hosts = 1;
       * @return A list containing the hosts.
       */
      public com.google.protobuf.ProtocolStringList
          getHostsList() {
        return hosts_.getUnmodifiableView();
      }
      /**
       * repeated string hosts = 1;
       * @return The count of hosts.
       */
      public int getHostsCount() {
        return hosts_.size();
      }
      /**
       * repeated string hosts = 1;
       * @param index The index of the element to return.
       * @return The hosts at the given index.
       */
      public java.lang.String getHosts(int index) {
        return hosts_.get(index);
      }
      /**
       * repeated string hosts = 1;
       * @param index The index of the value to return.
       * @return The bytes of the hosts at the given index.
       */
      public com.google.protobuf.ByteString
          getHostsBytes(int index) {
        return hosts_.getByteString(index);
      }
      /**
       * repeated string hosts = 1;
       * @param index The index to set the value at.
       * @param value The hosts to set.
       * @return This builder for chaining.
       */
      public Builder setHosts(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureHostsIsMutable();
        hosts_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * repeated string hosts = 1;
       * @param value The hosts to add.
       * @return This builder for chaining.
       */
      public Builder addHosts(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureHostsIsMutable();
        hosts_.add(value);
        onChanged();
        return this;
      }
      /**
       * repeated string hosts = 1;
       * @param values The hosts to add.
       * @return This builder for chaining.
       */
      public Builder addAllHosts(
          java.lang.Iterable values) {
        ensureHostsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, hosts_);
        onChanged();
        return this;
      }
      /**
       * repeated string hosts = 1;
       * @return This builder for chaining.
       */
      public Builder clearHosts() {
        hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * repeated string hosts = 1;
       * @param value The bytes of the hosts to add.
       * @return This builder for chaining.
       */
      public Builder addHostsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureHostsIsMutable();
        hosts_.add(value);
        onChanged();
        return this;
      }

      private long port_ ;
      /**
       * int64 port = 2;
       * @return The port.
       */
      @java.lang.Override
      public long getPort() {
        return port_;
      }
      /**
       * int64 port = 2;
       * @param value The port to set.
       * @return This builder for chaining.
       */
      public Builder setPort(long value) {
        
        port_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 port = 2;
       * @return This builder for chaining.
       */
      public Builder clearPort() {
        
        port_ = 0L;
        onChanged();
        return this;
      }

      private yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode tlsMode_;
      private com.google.protobuf.SingleFieldBuilderV3<
          yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder> tlsModeBuilder_;
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       * @return Whether the tlsMode field is set.
       */
      public boolean hasTlsMode() {
        return tlsModeBuilder_ != null || tlsMode_ != null;
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       * @return The tlsMode.
       */
      public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode() {
        if (tlsModeBuilder_ == null) {
          return tlsMode_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
        } else {
          return tlsModeBuilder_.getMessage();
        }
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public Builder setTlsMode(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode value) {
        if (tlsModeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          tlsMode_ = value;
          onChanged();
        } else {
          tlsModeBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public Builder setTlsMode(
          yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder builderForValue) {
        if (tlsModeBuilder_ == null) {
          tlsMode_ = builderForValue.build();
          onChanged();
        } else {
          tlsModeBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public Builder mergeTlsMode(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode value) {
        if (tlsModeBuilder_ == null) {
          if (tlsMode_ != null) {
            tlsMode_ =
              yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.newBuilder(tlsMode_).mergeFrom(value).buildPartial();
          } else {
            tlsMode_ = value;
          }
          onChanged();
        } else {
          tlsModeBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public Builder clearTlsMode() {
        if (tlsModeBuilder_ == null) {
          tlsMode_ = null;
          onChanged();
        } else {
          tlsMode_ = null;
          tlsModeBuilder_ = null;
        }

        return this;
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder getTlsModeBuilder() {
        
        onChanged();
        return getTlsModeFieldBuilder().getBuilder();
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder() {
        if (tlsModeBuilder_ != null) {
          return tlsModeBuilder_.getMessageOrBuilder();
        } else {
          return tlsMode_ == null ?
              yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
        }
      }
      /**
       * .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder> 
          getTlsModeFieldBuilder() {
        if (tlsModeBuilder_ == null) {
          tlsModeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder>(
                  getTlsMode(),
                  getParentForChildren(),
                  isClean());
          tlsMode_ = null;
        }
        return tlsModeBuilder_;
      }

      private java.lang.Object replicaSet_ = "";
      /**
       * string replica_set = 5;
       * @return The replicaSet.
       */
      public java.lang.String getReplicaSet() {
        java.lang.Object ref = replicaSet_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          replicaSet_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string replica_set = 5;
       * @return The bytes for replicaSet.
       */
      public com.google.protobuf.ByteString
          getReplicaSetBytes() {
        java.lang.Object ref = replicaSet_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          replicaSet_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string replica_set = 5;
       * @param value The replicaSet to set.
       * @return This builder for chaining.
       */
      public Builder setReplicaSet(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        replicaSet_ = value;
        onChanged();
        return this;
      }
      /**
       * string replica_set = 5;
       * @return This builder for chaining.
       */
      public Builder clearReplicaSet() {
        
        replicaSet_ = getDefaultInstance().getReplicaSet();
        onChanged();
        return this;
      }
      /**
       * string replica_set = 5;
       * @param value The bytes for replicaSet to set.
       * @return This builder for chaining.
       */
      public Builder setReplicaSetBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        replicaSet_ = 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.datatransfer.v1.endpoint.OnPremiseMongo)
    }

    // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo)
    private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo();
    }

    public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public OnPremiseMongo parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new OnPremiseMongo(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.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MongoConnectionOptionsOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string mdb_cluster_id = 1;
     * @return Whether the mdbClusterId field is set.
     */
    boolean hasMdbClusterId();
    /**
     * string mdb_cluster_id = 1;
     * @return The mdbClusterId.
     */
    java.lang.String getMdbClusterId();
    /**
     * string mdb_cluster_id = 1;
     * @return The bytes for mdbClusterId.
     */
    com.google.protobuf.ByteString
        getMdbClusterIdBytes();

    /**
     * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2;
     * @return Whether the onPremise field is set.
     */
    boolean hasOnPremise();
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2;
     * @return The onPremise.
     */
    yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getOnPremise();
    /**
     * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2;
     */
    yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder getOnPremiseOrBuilder();

    /**
     * 
     * User name
     * 
* * string user = 3; * @return The user. */ java.lang.String getUser(); /** *
     * User name
     * 
* * string user = 3; * @return The bytes for user. */ com.google.protobuf.ByteString getUserBytes(); /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return Whether the password field is set. */ boolean hasPassword(); /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return The password. */ yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword(); /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder(); /** *
     * Database name associated with the credentials
     * 
* * string auth_source = 5; * @return The authSource. */ java.lang.String getAuthSource(); /** *
     * Database name associated with the credentials
     * 
* * string auth_source = 5; * @return The bytes for authSource. */ com.google.protobuf.ByteString getAuthSourceBytes(); public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.AddressCase getAddressCase(); } /** * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions} */ public static final class MongoConnectionOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions) MongoConnectionOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use MongoConnectionOptions.newBuilder() to construct. private MongoConnectionOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MongoConnectionOptions() { user_ = ""; authSource_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MongoConnectionOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MongoConnectionOptions( 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(); addressCase_ = 1; address_ = s; break; } case 18: { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder subBuilder = null; if (addressCase_ == 2) { subBuilder = ((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_).toBuilder(); } address_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_); address_ = subBuilder.buildPartial(); } addressCase_ = 2; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); user_ = s; break; } case 34: { yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder subBuilder = null; if (password_ != null) { subBuilder = password_.toBuilder(); } password_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(password_); password_ = subBuilder.buildPartial(); } break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); authSource_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder.class); } private int addressCase_ = 0; private java.lang.Object address_; public enum AddressCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MDB_CLUSTER_ID(1), ON_PREMISE(2), ADDRESS_NOT_SET(0); private final int value; private AddressCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AddressCase valueOf(int value) { return forNumber(value); } public static AddressCase forNumber(int value) { switch (value) { case 1: return MDB_CLUSTER_ID; case 2: return ON_PREMISE; case 0: return ADDRESS_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public AddressCase getAddressCase() { return AddressCase.forNumber( addressCase_); } public static final int MDB_CLUSTER_ID_FIELD_NUMBER = 1; /** * string mdb_cluster_id = 1; * @return Whether the mdbClusterId field is set. */ public boolean hasMdbClusterId() { return addressCase_ == 1; } /** * string mdb_cluster_id = 1; * @return The mdbClusterId. */ public java.lang.String getMdbClusterId() { java.lang.Object ref = ""; if (addressCase_ == 1) { ref = address_; } 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(); if (addressCase_ == 1) { address_ = s; } return s; } } /** * string mdb_cluster_id = 1; * @return The bytes for mdbClusterId. */ public com.google.protobuf.ByteString getMdbClusterIdBytes() { java.lang.Object ref = ""; if (addressCase_ == 1) { ref = address_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (addressCase_ == 1) { address_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ON_PREMISE_FIELD_NUMBER = 2; /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; * @return Whether the onPremise field is set. */ @java.lang.Override public boolean hasOnPremise() { return addressCase_ == 2; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; * @return The onPremise. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getOnPremise() { if (addressCase_ == 2) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder getOnPremiseOrBuilder() { if (addressCase_ == 2) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } public static final int USER_FIELD_NUMBER = 3; private volatile java.lang.Object user_; /** *
     * User name
     * 
* * string user = 3; * @return The user. */ @java.lang.Override public java.lang.String getUser() { java.lang.Object ref = user_; 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(); user_ = s; return s; } } /** *
     * User name
     * 
* * string user = 3; * @return The bytes for user. */ @java.lang.Override public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PASSWORD_FIELD_NUMBER = 4; private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_; /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return Whether the password field is set. */ @java.lang.Override public boolean hasPassword() { return password_ != null; } /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return The password. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() { return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_; } /** *
     * Password for user
     * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() { return getPassword(); } public static final int AUTH_SOURCE_FIELD_NUMBER = 5; private volatile java.lang.Object authSource_; /** *
     * Database name associated with the credentials
     * 
* * string auth_source = 5; * @return The authSource. */ @java.lang.Override public java.lang.String getAuthSource() { java.lang.Object ref = authSource_; 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(); authSource_ = s; return s; } } /** *
     * Database name associated with the credentials
     * 
* * string auth_source = 5; * @return The bytes for authSource. */ @java.lang.Override public com.google.protobuf.ByteString getAuthSourceBytes() { java.lang.Object ref = authSource_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (addressCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, address_); } if (addressCase_ == 2) { output.writeMessage(2, (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_); } if (password_ != null) { output.writeMessage(4, getPassword()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authSource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, authSource_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (addressCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, address_); } if (addressCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_); } if (password_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPassword()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authSource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, authSource_); } 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions)) { return super.equals(obj); } yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) obj; if (!getUser() .equals(other.getUser())) return false; if (hasPassword() != other.hasPassword()) return false; if (hasPassword()) { if (!getPassword() .equals(other.getPassword())) return false; } if (!getAuthSource() .equals(other.getAuthSource())) return false; if (!getAddressCase().equals(other.getAddressCase())) return false; switch (addressCase_) { case 1: if (!getMdbClusterId() .equals(other.getMdbClusterId())) return false; break; case 2: if (!getOnPremise() .equals(other.getOnPremise())) return false; break; case 0: default: } 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) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); if (hasPassword()) { hash = (37 * hash) + PASSWORD_FIELD_NUMBER; hash = (53 * hash) + getPassword().hashCode(); } hash = (37 * hash) + AUTH_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getAuthSource().hashCode(); switch (addressCase_) { case 1: hash = (37 * hash) + MDB_CLUSTER_ID_FIELD_NUMBER; hash = (53 * hash) + getMdbClusterId().hashCode(); break; case 2: hash = (37 * hash) + ON_PREMISE_FIELD_NUMBER; hash = (53 * hash) + getOnPremise().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions 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.datatransfer.v1.endpoint.MongoConnectionOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions) yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder.class); } // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.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(); user_ = ""; if (passwordBuilder_ == null) { password_ = null; } else { password_ = null; passwordBuilder_ = null; } authSource_ = ""; addressCase_ = 0; address_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getDefaultInstanceForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions build() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions buildPartial() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions(this); if (addressCase_ == 1) { result.address_ = address_; } if (addressCase_ == 2) { if (onPremiseBuilder_ == null) { result.address_ = address_; } else { result.address_ = onPremiseBuilder_.build(); } } result.user_ = user_; if (passwordBuilder_ == null) { result.password_ = password_; } else { result.password_ = passwordBuilder_.build(); } result.authSource_ = authSource_; result.addressCase_ = addressCase_; 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) { return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions other) { if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance()) return this; if (!other.getUser().isEmpty()) { user_ = other.user_; onChanged(); } if (other.hasPassword()) { mergePassword(other.getPassword()); } if (!other.getAuthSource().isEmpty()) { authSource_ = other.authSource_; onChanged(); } switch (other.getAddressCase()) { case MDB_CLUSTER_ID: { addressCase_ = 1; address_ = other.address_; onChanged(); break; } case ON_PREMISE: { mergeOnPremise(other.getOnPremise()); break; } case ADDRESS_NOT_SET: { break; } } 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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int addressCase_ = 0; private java.lang.Object address_; public AddressCase getAddressCase() { return AddressCase.forNumber( addressCase_); } public Builder clearAddress() { addressCase_ = 0; address_ = null; onChanged(); return this; } /** * string mdb_cluster_id = 1; * @return Whether the mdbClusterId field is set. */ @java.lang.Override public boolean hasMdbClusterId() { return addressCase_ == 1; } /** * string mdb_cluster_id = 1; * @return The mdbClusterId. */ @java.lang.Override public java.lang.String getMdbClusterId() { java.lang.Object ref = ""; if (addressCase_ == 1) { ref = address_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (addressCase_ == 1) { address_ = s; } return s; } else { return (java.lang.String) ref; } } /** * string mdb_cluster_id = 1; * @return The bytes for mdbClusterId. */ @java.lang.Override public com.google.protobuf.ByteString getMdbClusterIdBytes() { java.lang.Object ref = ""; if (addressCase_ == 1) { ref = address_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (addressCase_ == 1) { address_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string mdb_cluster_id = 1; * @param value The mdbClusterId to set. * @return This builder for chaining. */ public Builder setMdbClusterId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } addressCase_ = 1; address_ = value; onChanged(); return this; } /** * string mdb_cluster_id = 1; * @return This builder for chaining. */ public Builder clearMdbClusterId() { if (addressCase_ == 1) { addressCase_ = 0; address_ = null; onChanged(); } return this; } /** * string mdb_cluster_id = 1; * @param value The bytes for mdbClusterId to set. * @return This builder for chaining. */ public Builder setMdbClusterIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); addressCase_ = 1; address_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder> onPremiseBuilder_; /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; * @return Whether the onPremise field is set. */ @java.lang.Override public boolean hasOnPremise() { return addressCase_ == 2; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; * @return The onPremise. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo getOnPremise() { if (onPremiseBuilder_ == null) { if (addressCase_ == 2) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } else { if (addressCase_ == 2) { return onPremiseBuilder_.getMessage(); } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ public Builder setOnPremise(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo value) { if (onPremiseBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; onChanged(); } else { onPremiseBuilder_.setMessage(value); } addressCase_ = 2; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ public Builder setOnPremise( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder builderForValue) { if (onPremiseBuilder_ == null) { address_ = builderForValue.build(); onChanged(); } else { onPremiseBuilder_.setMessage(builderForValue.build()); } addressCase_ = 2; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ public Builder mergeOnPremise(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo value) { if (onPremiseBuilder_ == null) { if (addressCase_ == 2 && address_ != yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance()) { address_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.newBuilder((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_) .mergeFrom(value).buildPartial(); } else { address_ = value; } onChanged(); } else { if (addressCase_ == 2) { onPremiseBuilder_.mergeFrom(value); } onPremiseBuilder_.setMessage(value); } addressCase_ = 2; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ public Builder clearOnPremise() { if (onPremiseBuilder_ == null) { if (addressCase_ == 2) { addressCase_ = 0; address_ = null; onChanged(); } } else { if (addressCase_ == 2) { addressCase_ = 0; address_ = null; } onPremiseBuilder_.clear(); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder getOnPremiseBuilder() { return getOnPremiseFieldBuilder().getBuilder(); } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder getOnPremiseOrBuilder() { if ((addressCase_ == 2) && (onPremiseBuilder_ != null)) { return onPremiseBuilder_.getMessageOrBuilder(); } else { if (addressCase_ == 2) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.OnPremiseMongo on_premise = 2; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder> getOnPremiseFieldBuilder() { if (onPremiseBuilder_ == null) { if (!(addressCase_ == 2)) { address_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.getDefaultInstance(); } onPremiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongoOrBuilder>( (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.OnPremiseMongo) address_, getParentForChildren(), isClean()); address_ = null; } addressCase_ = 2; onChanged();; return onPremiseBuilder_; } private java.lang.Object user_ = ""; /** *
       * User name
       * 
* * string user = 3; * @return The user. */ public java.lang.String getUser() { java.lang.Object ref = user_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); user_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * User name
       * 
* * string user = 3; * @return The bytes for user. */ public com.google.protobuf.ByteString getUserBytes() { java.lang.Object ref = user_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); user_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * User name
       * 
* * string user = 3; * @param value The user to set. * @return This builder for chaining. */ public Builder setUser( java.lang.String value) { if (value == null) { throw new NullPointerException(); } user_ = value; onChanged(); return this; } /** *
       * User name
       * 
* * string user = 3; * @return This builder for chaining. */ public Builder clearUser() { user_ = getDefaultInstance().getUser(); onChanged(); return this; } /** *
       * User name
       * 
* * string user = 3; * @param value The bytes for user to set. * @return This builder for chaining. */ public Builder setUserBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); user_ = value; onChanged(); return this; } private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder> passwordBuilder_; /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return Whether the password field is set. */ public boolean hasPassword() { return passwordBuilder_ != null || password_ != null; } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; * @return The password. */ public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() { if (passwordBuilder_ == null) { return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_; } else { return passwordBuilder_.getMessage(); } } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public Builder setPassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) { if (passwordBuilder_ == null) { if (value == null) { throw new NullPointerException(); } password_ = value; onChanged(); } else { passwordBuilder_.setMessage(value); } return this; } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public Builder setPassword( yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder builderForValue) { if (passwordBuilder_ == null) { password_ = builderForValue.build(); onChanged(); } else { passwordBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public Builder mergePassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) { if (passwordBuilder_ == null) { if (password_ != null) { password_ = yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.newBuilder(password_).mergeFrom(value).buildPartial(); } else { password_ = value; } onChanged(); } else { passwordBuilder_.mergeFrom(value); } return this; } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public Builder clearPassword() { if (passwordBuilder_ == null) { password_ = null; onChanged(); } else { password_ = null; passwordBuilder_ = null; } return this; } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder getPasswordBuilder() { onChanged(); return getPasswordFieldBuilder().getBuilder(); } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() { if (passwordBuilder_ != null) { return passwordBuilder_.getMessageOrBuilder(); } else { return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_; } } /** *
       * Password for user
       * 
* * .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder> getPasswordFieldBuilder() { if (passwordBuilder_ == null) { passwordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder>( getPassword(), getParentForChildren(), isClean()); password_ = null; } return passwordBuilder_; } private java.lang.Object authSource_ = ""; /** *
       * Database name associated with the credentials
       * 
* * string auth_source = 5; * @return The authSource. */ public java.lang.String getAuthSource() { java.lang.Object ref = authSource_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authSource_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Database name associated with the credentials
       * 
* * string auth_source = 5; * @return The bytes for authSource. */ public com.google.protobuf.ByteString getAuthSourceBytes() { java.lang.Object ref = authSource_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authSource_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Database name associated with the credentials
       * 
* * string auth_source = 5; * @param value The authSource to set. * @return This builder for chaining. */ public Builder setAuthSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authSource_ = value; onChanged(); return this; } /** *
       * Database name associated with the credentials
       * 
* * string auth_source = 5; * @return This builder for chaining. */ public Builder clearAuthSource() { authSource_ = getDefaultInstance().getAuthSource(); onChanged(); return this; } /** *
       * Database name associated with the credentials
       * 
* * string auth_source = 5; * @param value The bytes for authSource to set. * @return This builder for chaining. */ public Builder setAuthSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authSource_ = 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.datatransfer.v1.endpoint.MongoConnectionOptions) } // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions) private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions(); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MongoConnectionOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MongoConnectionOptions(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.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MongoConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.MongoConnection) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return Whether the connectionOptions field is set. */ boolean hasConnectionOptions(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return The connectionOptions. */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getConnectionOptions(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder getConnectionOptionsOrBuilder(); public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.ConnectionCase getConnectionCase(); } /** * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.MongoConnection} */ public static final class MongoConnection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.MongoConnection) MongoConnectionOrBuilder { private static final long serialVersionUID = 0L; // Use MongoConnection.newBuilder() to construct. private MongoConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MongoConnection() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MongoConnection(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MongoConnection( 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 26: { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder subBuilder = null; if (connectionCase_ == 3) { subBuilder = ((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_).toBuilder(); } connection_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_); connection_ = subBuilder.buildPartial(); } connectionCase_ = 3; 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.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder.class); } private int connectionCase_ = 0; private java.lang.Object connection_; public enum ConnectionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_OPTIONS(3), CONNECTION_NOT_SET(0); private final int value; private ConnectionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ConnectionCase valueOf(int value) { return forNumber(value); } public static ConnectionCase forNumber(int value) { switch (value) { case 3: return CONNECTION_OPTIONS; case 0: return CONNECTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ConnectionCase getConnectionCase() { return ConnectionCase.forNumber( connectionCase_); } public static final int CONNECTION_OPTIONS_FIELD_NUMBER = 3; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return Whether the connectionOptions field is set. */ @java.lang.Override public boolean hasConnectionOptions() { return connectionCase_ == 3; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return The connectionOptions. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getConnectionOptions() { if (connectionCase_ == 3) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder getConnectionOptionsOrBuilder() { if (connectionCase_ == 3) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } 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 (connectionCase_ == 3) { output.writeMessage(3, (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (connectionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_); } 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.datatransfer.v1.endpoint.Mongo.MongoConnection)) { return super.equals(obj); } yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection) obj; if (!getConnectionCase().equals(other.getConnectionCase())) return false; switch (connectionCase_) { case 3: if (!getConnectionOptions() .equals(other.getConnectionOptions())) return false; break; case 0: default: } 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(); switch (connectionCase_) { case 3: hash = (37 * hash) + CONNECTION_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getConnectionOptions().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.Mongo.MongoConnection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.Mongo.MongoConnection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.Mongo.MongoConnection 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.datatransfer.v1.endpoint.MongoConnection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.MongoConnection) yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder.class); } // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.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(); connectionCase_ = 0; connection_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getDefaultInstanceForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection build() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection buildPartial() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection(this); if (connectionCase_ == 3) { if (connectionOptionsBuilder_ == null) { result.connection_ = connection_; } else { result.connection_ = connectionOptionsBuilder_.build(); } } result.connectionCase_ = connectionCase_; 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.datatransfer.v1.endpoint.Mongo.MongoConnection) { return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection other) { if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance()) return this; switch (other.getConnectionCase()) { case CONNECTION_OPTIONS: { mergeConnectionOptions(other.getConnectionOptions()); break; } case CONNECTION_NOT_SET: { break; } } 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.datatransfer.v1.endpoint.Mongo.MongoConnection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int connectionCase_ = 0; private java.lang.Object connection_; public ConnectionCase getConnectionCase() { return ConnectionCase.forNumber( connectionCase_); } public Builder clearConnection() { connectionCase_ = 0; connection_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder> connectionOptionsBuilder_; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return Whether the connectionOptions field is set. */ @java.lang.Override public boolean hasConnectionOptions() { return connectionCase_ == 3; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; * @return The connectionOptions. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions getConnectionOptions() { if (connectionOptionsBuilder_ == null) { if (connectionCase_ == 3) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } else { if (connectionCase_ == 3) { return connectionOptionsBuilder_.getMessage(); } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ public Builder setConnectionOptions(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions value) { if (connectionOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connection_ = value; onChanged(); } else { connectionOptionsBuilder_.setMessage(value); } connectionCase_ = 3; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ public Builder setConnectionOptions( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder builderForValue) { if (connectionOptionsBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); } else { connectionOptionsBuilder_.setMessage(builderForValue.build()); } connectionCase_ = 3; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ public Builder mergeConnectionOptions(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions value) { if (connectionOptionsBuilder_ == null) { if (connectionCase_ == 3 && connection_ != yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance()) { connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.newBuilder((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_) .mergeFrom(value).buildPartial(); } else { connection_ = value; } onChanged(); } else { if (connectionCase_ == 3) { connectionOptionsBuilder_.mergeFrom(value); } connectionOptionsBuilder_.setMessage(value); } connectionCase_ = 3; return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ public Builder clearConnectionOptions() { if (connectionOptionsBuilder_ == null) { if (connectionCase_ == 3) { connectionCase_ = 0; connection_ = null; onChanged(); } } else { if (connectionCase_ == 3) { connectionCase_ = 0; connection_ = null; } connectionOptionsBuilder_.clear(); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder getConnectionOptionsBuilder() { return getConnectionOptionsFieldBuilder().getBuilder(); } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder getConnectionOptionsOrBuilder() { if ((connectionCase_ == 3) && (connectionOptionsBuilder_ != null)) { return connectionOptionsBuilder_.getMessageOrBuilder(); } else { if (connectionCase_ == 3) { return (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_; } return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnectionOptions connection_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder> getConnectionOptionsFieldBuilder() { if (connectionOptionsBuilder_ == null) { if (!(connectionCase_ == 3)) { connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.getDefaultInstance(); } connectionOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptionsOrBuilder>( (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOptions) connection_, getParentForChildren(), isClean()); connection_ = null; } connectionCase_ = 3; onChanged();; return connectionOptionsBuilder_; } @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.datatransfer.v1.endpoint.MongoConnection) } // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.MongoConnection) private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection(); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MongoConnection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MongoConnection(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.datatransfer.v1.endpoint.Mongo.MongoConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MongoCollectionOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.MongoCollection) com.google.protobuf.MessageOrBuilder { /** * string database_name = 1; * @return The databaseName. */ java.lang.String getDatabaseName(); /** * string database_name = 1; * @return The bytes for databaseName. */ com.google.protobuf.ByteString getDatabaseNameBytes(); /** * string collection_name = 2; * @return The collectionName. */ java.lang.String getCollectionName(); /** * string collection_name = 2; * @return The bytes for collectionName. */ com.google.protobuf.ByteString getCollectionNameBytes(); } /** * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.MongoCollection} */ public static final class MongoCollection extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.MongoCollection) MongoCollectionOrBuilder { private static final long serialVersionUID = 0L; // Use MongoCollection.newBuilder() to construct. private MongoCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MongoCollection() { databaseName_ = ""; collectionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MongoCollection(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MongoCollection( 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(); databaseName_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); collectionName_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder.class); } public static final int DATABASE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object databaseName_; /** * string database_name = 1; * @return The databaseName. */ @java.lang.Override public java.lang.String getDatabaseName() { java.lang.Object ref = databaseName_; 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(); databaseName_ = s; return s; } } /** * string database_name = 1; * @return The bytes for databaseName. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COLLECTION_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object collectionName_; /** * string collection_name = 2; * @return The collectionName. */ @java.lang.Override public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; 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(); collectionName_ = s; return s; } } /** * string collection_name = 2; * @return The bytes for collectionName. */ @java.lang.Override public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, collectionName_); } 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(databaseName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, databaseName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collectionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, collectionName_); } 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.datatransfer.v1.endpoint.Mongo.MongoCollection)) { return super.equals(obj); } yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection) obj; if (!getDatabaseName() .equals(other.getDatabaseName())) return false; if (!getCollectionName() .equals(other.getCollectionName())) 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) + DATABASE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDatabaseName().hashCode(); hash = (37 * hash) + COLLECTION_NAME_FIELD_NUMBER; hash = (53 * hash) + getCollectionName().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.Mongo.MongoCollection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.Mongo.MongoCollection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.Mongo.MongoCollection 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.datatransfer.v1.endpoint.MongoCollection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.MongoCollection) yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder.class); } // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.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(); databaseName_ = ""; collectionName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getDefaultInstanceForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection build() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection buildPartial() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection(this); result.databaseName_ = databaseName_; result.collectionName_ = collectionName_; 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.datatransfer.v1.endpoint.Mongo.MongoCollection) { return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection other) { if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance()) return this; if (!other.getDatabaseName().isEmpty()) { databaseName_ = other.databaseName_; onChanged(); } if (!other.getCollectionName().isEmpty()) { collectionName_ = other.collectionName_; 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.datatransfer.v1.endpoint.Mongo.MongoCollection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object databaseName_ = ""; /** * string database_name = 1; * @return The databaseName. */ public java.lang.String getDatabaseName() { java.lang.Object ref = databaseName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string database_name = 1; * @return The bytes for databaseName. */ public com.google.protobuf.ByteString getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); databaseName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string database_name = 1; * @param value The databaseName to set. * @return This builder for chaining. */ public Builder setDatabaseName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } databaseName_ = value; onChanged(); return this; } /** * string database_name = 1; * @return This builder for chaining. */ public Builder clearDatabaseName() { databaseName_ = getDefaultInstance().getDatabaseName(); onChanged(); return this; } /** * string database_name = 1; * @param value The bytes for databaseName to set. * @return This builder for chaining. */ public Builder setDatabaseNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseName_ = value; onChanged(); return this; } private java.lang.Object collectionName_ = ""; /** * string collection_name = 2; * @return The collectionName. */ public java.lang.String getCollectionName() { java.lang.Object ref = collectionName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collectionName_ = s; return s; } else { return (java.lang.String) ref; } } /** * string collection_name = 2; * @return The bytes for collectionName. */ public com.google.protobuf.ByteString getCollectionNameBytes() { java.lang.Object ref = collectionName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); collectionName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string collection_name = 2; * @param value The collectionName to set. * @return This builder for chaining. */ public Builder setCollectionName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } collectionName_ = value; onChanged(); return this; } /** * string collection_name = 2; * @return This builder for chaining. */ public Builder clearCollectionName() { collectionName_ = getDefaultInstance().getCollectionName(); onChanged(); return this; } /** * string collection_name = 2; * @param value The bytes for collectionName to set. * @return This builder for chaining. */ public Builder setCollectionNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collectionName_ = 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.datatransfer.v1.endpoint.MongoCollection) } // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.MongoCollection) private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection(); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MongoCollection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MongoCollection(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.datatransfer.v1.endpoint.Mongo.MongoCollection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MongoSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.MongoSource) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ boolean hasConnection(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder(); /** * string subnet_id = 2; * @return The subnetId. */ java.lang.String getSubnetId(); /** * string subnet_id = 2; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @return A list containing the securityGroups. */ java.util.List getSecurityGroupsList(); /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @return The count of securityGroups. */ int getSecurityGroupsCount(); /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @param index The index of the element to return. * @return The securityGroups at the given index. */ java.lang.String getSecurityGroups(int index); /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ com.google.protobuf.ByteString getSecurityGroupsBytes(int index); /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ java.util.List getCollectionsList(); /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getCollections(int index); /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ int getCollectionsCount(); /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ java.util.List getCollectionsOrBuilderList(); /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getCollectionsOrBuilder( int index); /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ java.util.List getExcludedCollectionsList(); /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getExcludedCollections(int index); /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ int getExcludedCollectionsCount(); /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ java.util.List getExcludedCollectionsOrBuilderList(); /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getExcludedCollectionsOrBuilder( int index); /** *
     * Read mode for mongo client
     * 
* * bool secondary_preferred_mode = 8; * @return The secondaryPreferredMode. */ boolean getSecondaryPreferredMode(); } /** * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.MongoSource} */ public static final class MongoSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.MongoSource) MongoSourceOrBuilder { private static final long serialVersionUID = 0L; // Use MongoSource.newBuilder() to construct. private MongoSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MongoSource() { subnetId_ = ""; securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; collections_ = java.util.Collections.emptyList(); excludedCollections_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MongoSource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MongoSource( 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: { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder subBuilder = null; if (connection_ != null) { subBuilder = connection_.toBuilder(); } connection_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(connection_); connection_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 50: { if (!((mutable_bitField0_ & 0x00000002) != 0)) { collections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } collections_.add( input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.parser(), extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000004) != 0)) { excludedCollections_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000004; } excludedCollections_.add( input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.parser(), extensionRegistry)); break; } case 64: { secondaryPreferredMode_ = input.readBool(); break; } case 90: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { securityGroups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } securityGroups_.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_ & 0x00000002) != 0)) { collections_ = java.util.Collections.unmodifiableList(collections_); } if (((mutable_bitField0_ & 0x00000004) != 0)) { excludedCollections_ = java.util.Collections.unmodifiableList(excludedCollections_); } if (((mutable_bitField0_ & 0x00000001) != 0)) { securityGroups_ = securityGroups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.Builder.class); } public static final int CONNECTION_FIELD_NUMBER = 1; private yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection connection_; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ @java.lang.Override public boolean hasConnection() { return connection_ != null; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection() { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } public static final int SUBNET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object subnetId_; /** * string subnet_id = 2; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** * string subnet_id = 2; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITY_GROUPS_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList securityGroups_; /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @return A list containing the securityGroups. */ public com.google.protobuf.ProtocolStringList getSecurityGroupsList() { return securityGroups_; } /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @return The count of securityGroups. */ public int getSecurityGroupsCount() { return securityGroups_.size(); } /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @param index The index of the element to return. * @return The securityGroups at the given index. */ public java.lang.String getSecurityGroups(int index) { return securityGroups_.get(index); } /** *
     * Security groups
     * 
* * repeated string security_groups = 11; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ public com.google.protobuf.ByteString getSecurityGroupsBytes(int index) { return securityGroups_.getByteString(index); } public static final int COLLECTIONS_FIELD_NUMBER = 6; private java.util.List collections_; /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ @java.lang.Override public java.util.List getCollectionsList() { return collections_; } /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ @java.lang.Override public java.util.List getCollectionsOrBuilderList() { return collections_; } /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ @java.lang.Override public int getCollectionsCount() { return collections_.size(); } /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getCollections(int index) { return collections_.get(index); } /** *
     * List of collections for replication. Empty list implies replication of all
     * tables on the deployment. Allowed to use * as collection name.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getCollectionsOrBuilder( int index) { return collections_.get(index); } public static final int EXCLUDED_COLLECTIONS_FIELD_NUMBER = 7; private java.util.List excludedCollections_; /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ @java.lang.Override public java.util.List getExcludedCollectionsList() { return excludedCollections_; } /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ @java.lang.Override public java.util.List getExcludedCollectionsOrBuilderList() { return excludedCollections_; } /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ @java.lang.Override public int getExcludedCollectionsCount() { return excludedCollections_.size(); } /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getExcludedCollections(int index) { return excludedCollections_.get(index); } /** *
     * List of forbidden collections for replication. Allowed to use * as collection
     * name for forbid all collections of concrete schema.
     * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getExcludedCollectionsOrBuilder( int index) { return excludedCollections_.get(index); } public static final int SECONDARY_PREFERRED_MODE_FIELD_NUMBER = 8; private boolean secondaryPreferredMode_; /** *
     * Read mode for mongo client
     * 
* * bool secondary_preferred_mode = 8; * @return The secondaryPreferredMode. */ @java.lang.Override public boolean getSecondaryPreferredMode() { return secondaryPreferredMode_; } 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 (connection_ != null) { output.writeMessage(1, getConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetId_); } for (int i = 0; i < collections_.size(); i++) { output.writeMessage(6, collections_.get(i)); } for (int i = 0; i < excludedCollections_.size(); i++) { output.writeMessage(7, excludedCollections_.get(i)); } if (secondaryPreferredMode_ != false) { output.writeBool(8, secondaryPreferredMode_); } for (int i = 0; i < securityGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, securityGroups_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (connection_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetId_); } for (int i = 0; i < collections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, collections_.get(i)); } for (int i = 0; i < excludedCollections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, excludedCollections_.get(i)); } if (secondaryPreferredMode_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, secondaryPreferredMode_); } { int dataSize = 0; for (int i = 0; i < securityGroups_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupsList().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.datatransfer.v1.endpoint.Mongo.MongoSource)) { return super.equals(obj); } yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource) obj; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { if (!getConnection() .equals(other.getConnection())) return false; } if (!getSubnetId() .equals(other.getSubnetId())) return false; if (!getSecurityGroupsList() .equals(other.getSecurityGroupsList())) return false; if (!getCollectionsList() .equals(other.getCollectionsList())) return false; if (!getExcludedCollectionsList() .equals(other.getExcludedCollectionsList())) return false; if (getSecondaryPreferredMode() != other.getSecondaryPreferredMode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConnection()) { hash = (37 * hash) + CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getConnection().hashCode(); } hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); if (getSecurityGroupsCount() > 0) { hash = (37 * hash) + SECURITY_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupsList().hashCode(); } if (getCollectionsCount() > 0) { hash = (37 * hash) + COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getCollectionsList().hashCode(); } if (getExcludedCollectionsCount() > 0) { hash = (37 * hash) + EXCLUDED_COLLECTIONS_FIELD_NUMBER; hash = (53 * hash) + getExcludedCollectionsList().hashCode(); } hash = (37 * hash) + SECONDARY_PREFERRED_MODE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSecondaryPreferredMode()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.Mongo.MongoSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.Mongo.MongoSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.Mongo.MongoSource 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.datatransfer.v1.endpoint.MongoSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.MongoSource) yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.Builder.class); } // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCollectionsFieldBuilder(); getExcludedCollectionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (connectionBuilder_ == null) { connection_ = null; } else { connection_ = null; connectionBuilder_ = null; } subnetId_ = ""; securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); if (collectionsBuilder_ == null) { collections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { collectionsBuilder_.clear(); } if (excludedCollectionsBuilder_ == null) { excludedCollections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { excludedCollectionsBuilder_.clear(); } secondaryPreferredMode_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource getDefaultInstanceForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource build() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource buildPartial() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource(this); int from_bitField0_ = bitField0_; if (connectionBuilder_ == null) { result.connection_ = connection_; } else { result.connection_ = connectionBuilder_.build(); } result.subnetId_ = subnetId_; if (((bitField0_ & 0x00000001) != 0)) { securityGroups_ = securityGroups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.securityGroups_ = securityGroups_; if (collectionsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { collections_ = java.util.Collections.unmodifiableList(collections_); bitField0_ = (bitField0_ & ~0x00000002); } result.collections_ = collections_; } else { result.collections_ = collectionsBuilder_.build(); } if (excludedCollectionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { excludedCollections_ = java.util.Collections.unmodifiableList(excludedCollections_); bitField0_ = (bitField0_ & ~0x00000004); } result.excludedCollections_ = excludedCollections_; } else { result.excludedCollections_ = excludedCollectionsBuilder_.build(); } result.secondaryPreferredMode_ = secondaryPreferredMode_; 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.datatransfer.v1.endpoint.Mongo.MongoSource) { return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource other) { if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource.getDefaultInstance()) return this; if (other.hasConnection()) { mergeConnection(other.getConnection()); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (!other.securityGroups_.isEmpty()) { if (securityGroups_.isEmpty()) { securityGroups_ = other.securityGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityGroupsIsMutable(); securityGroups_.addAll(other.securityGroups_); } onChanged(); } if (collectionsBuilder_ == null) { if (!other.collections_.isEmpty()) { if (collections_.isEmpty()) { collections_ = other.collections_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCollectionsIsMutable(); collections_.addAll(other.collections_); } onChanged(); } } else { if (!other.collections_.isEmpty()) { if (collectionsBuilder_.isEmpty()) { collectionsBuilder_.dispose(); collectionsBuilder_ = null; collections_ = other.collections_; bitField0_ = (bitField0_ & ~0x00000002); collectionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCollectionsFieldBuilder() : null; } else { collectionsBuilder_.addAllMessages(other.collections_); } } } if (excludedCollectionsBuilder_ == null) { if (!other.excludedCollections_.isEmpty()) { if (excludedCollections_.isEmpty()) { excludedCollections_ = other.excludedCollections_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureExcludedCollectionsIsMutable(); excludedCollections_.addAll(other.excludedCollections_); } onChanged(); } } else { if (!other.excludedCollections_.isEmpty()) { if (excludedCollectionsBuilder_.isEmpty()) { excludedCollectionsBuilder_.dispose(); excludedCollectionsBuilder_ = null; excludedCollections_ = other.excludedCollections_; bitField0_ = (bitField0_ & ~0x00000004); excludedCollectionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExcludedCollectionsFieldBuilder() : null; } else { excludedCollectionsBuilder_.addAllMessages(other.excludedCollections_); } } } if (other.getSecondaryPreferredMode() != false) { setSecondaryPreferredMode(other.getSecondaryPreferredMode()); } 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.datatransfer.v1.endpoint.Mongo.MongoSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection connection_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder> connectionBuilder_; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection() { if (connectionBuilder_ == null) { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder setConnection(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connection_ = value; onChanged(); } else { connectionBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder setConnection( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); } else { connectionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder mergeConnection(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } onChanged(); } else { connectionBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder clearConnection() { if (connectionBuilder_ == null) { connection_ = null; onChanged(); } else { connection_ = null; connectionBuilder_ = null; } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder getConnectionBuilder() { onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder>( getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } private java.lang.Object subnetId_ = ""; /** * string subnet_id = 2; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string subnet_id = 2; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string subnet_id = 2; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** * string subnet_id = 2; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** * string subnet_id = 2; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { securityGroups_ = new com.google.protobuf.LazyStringArrayList(securityGroups_); bitField0_ |= 0x00000001; } } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @return A list containing the securityGroups. */ public com.google.protobuf.ProtocolStringList getSecurityGroupsList() { return securityGroups_.getUnmodifiableView(); } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @return The count of securityGroups. */ public int getSecurityGroupsCount() { return securityGroups_.size(); } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param index The index of the element to return. * @return The securityGroups at the given index. */ public java.lang.String getSecurityGroups(int index) { return securityGroups_.get(index); } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ public com.google.protobuf.ByteString getSecurityGroupsBytes(int index) { return securityGroups_.getByteString(index); } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param index The index to set the value at. * @param value The securityGroups to set. * @return This builder for chaining. */ public Builder setSecurityGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupsIsMutable(); securityGroups_.set(index, value); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param value The securityGroups to add. * @return This builder for chaining. */ public Builder addSecurityGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupsIsMutable(); securityGroups_.add(value); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param values The securityGroups to add. * @return This builder for chaining. */ public Builder addAllSecurityGroups( java.lang.Iterable values) { ensureSecurityGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroups_); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @return This builder for chaining. */ public Builder clearSecurityGroups() { securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 11; * @param value The bytes of the securityGroups to add. * @return This builder for chaining. */ public Builder addSecurityGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupsIsMutable(); securityGroups_.add(value); onChanged(); return this; } private java.util.List collections_ = java.util.Collections.emptyList(); private void ensureCollectionsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { collections_ = new java.util.ArrayList(collections_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder> collectionsBuilder_; /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public java.util.List getCollectionsList() { if (collectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(collections_); } else { return collectionsBuilder_.getMessageList(); } } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public int getCollectionsCount() { if (collectionsBuilder_ == null) { return collections_.size(); } else { return collectionsBuilder_.getCount(); } } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getCollections(int index) { if (collectionsBuilder_ == null) { return collections_.get(index); } else { return collectionsBuilder_.getMessage(index); } } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder setCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionsIsMutable(); collections_.set(index, value); onChanged(); } else { collectionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder setCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (collectionsBuilder_ == null) { ensureCollectionsIsMutable(); collections_.set(index, builderForValue.build()); onChanged(); } else { collectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder addCollections(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionsIsMutable(); collections_.add(value); onChanged(); } else { collectionsBuilder_.addMessage(value); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder addCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (collectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCollectionsIsMutable(); collections_.add(index, value); onChanged(); } else { collectionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder addCollections( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (collectionsBuilder_ == null) { ensureCollectionsIsMutable(); collections_.add(builderForValue.build()); onChanged(); } else { collectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder addCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (collectionsBuilder_ == null) { ensureCollectionsIsMutable(); collections_.add(index, builderForValue.build()); onChanged(); } else { collectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder addAllCollections( java.lang.Iterable values) { if (collectionsBuilder_ == null) { ensureCollectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, collections_); onChanged(); } else { collectionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder clearCollections() { if (collectionsBuilder_ == null) { collections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { collectionsBuilder_.clear(); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public Builder removeCollections(int index) { if (collectionsBuilder_ == null) { ensureCollectionsIsMutable(); collections_.remove(index); onChanged(); } else { collectionsBuilder_.remove(index); } return this; } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder getCollectionsBuilder( int index) { return getCollectionsFieldBuilder().getBuilder(index); } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getCollectionsOrBuilder( int index) { if (collectionsBuilder_ == null) { return collections_.get(index); } else { return collectionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public java.util.List getCollectionsOrBuilderList() { if (collectionsBuilder_ != null) { return collectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(collections_); } } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder addCollectionsBuilder() { return getCollectionsFieldBuilder().addBuilder( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance()); } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder addCollectionsBuilder( int index) { return getCollectionsFieldBuilder().addBuilder( index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance()); } /** *
       * List of collections for replication. Empty list implies replication of all
       * tables on the deployment. Allowed to use * as collection name.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection collections = 6; */ public java.util.List getCollectionsBuilderList() { return getCollectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder> getCollectionsFieldBuilder() { if (collectionsBuilder_ == null) { collectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder>( collections_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); collections_ = null; } return collectionsBuilder_; } private java.util.List excludedCollections_ = java.util.Collections.emptyList(); private void ensureExcludedCollectionsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { excludedCollections_ = new java.util.ArrayList(excludedCollections_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder> excludedCollectionsBuilder_; /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public java.util.List getExcludedCollectionsList() { if (excludedCollectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(excludedCollections_); } else { return excludedCollectionsBuilder_.getMessageList(); } } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public int getExcludedCollectionsCount() { if (excludedCollectionsBuilder_ == null) { return excludedCollections_.size(); } else { return excludedCollectionsBuilder_.getCount(); } } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection getExcludedCollections(int index) { if (excludedCollectionsBuilder_ == null) { return excludedCollections_.get(index); } else { return excludedCollectionsBuilder_.getMessage(index); } } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder setExcludedCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (excludedCollectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExcludedCollectionsIsMutable(); excludedCollections_.set(index, value); onChanged(); } else { excludedCollectionsBuilder_.setMessage(index, value); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder setExcludedCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (excludedCollectionsBuilder_ == null) { ensureExcludedCollectionsIsMutable(); excludedCollections_.set(index, builderForValue.build()); onChanged(); } else { excludedCollectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder addExcludedCollections(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (excludedCollectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExcludedCollectionsIsMutable(); excludedCollections_.add(value); onChanged(); } else { excludedCollectionsBuilder_.addMessage(value); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder addExcludedCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection value) { if (excludedCollectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureExcludedCollectionsIsMutable(); excludedCollections_.add(index, value); onChanged(); } else { excludedCollectionsBuilder_.addMessage(index, value); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder addExcludedCollections( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (excludedCollectionsBuilder_ == null) { ensureExcludedCollectionsIsMutable(); excludedCollections_.add(builderForValue.build()); onChanged(); } else { excludedCollectionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder addExcludedCollections( int index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder builderForValue) { if (excludedCollectionsBuilder_ == null) { ensureExcludedCollectionsIsMutable(); excludedCollections_.add(index, builderForValue.build()); onChanged(); } else { excludedCollectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder addAllExcludedCollections( java.lang.Iterable values) { if (excludedCollectionsBuilder_ == null) { ensureExcludedCollectionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, excludedCollections_); onChanged(); } else { excludedCollectionsBuilder_.addAllMessages(values); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder clearExcludedCollections() { if (excludedCollectionsBuilder_ == null) { excludedCollections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { excludedCollectionsBuilder_.clear(); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public Builder removeExcludedCollections(int index) { if (excludedCollectionsBuilder_ == null) { ensureExcludedCollectionsIsMutable(); excludedCollections_.remove(index); onChanged(); } else { excludedCollectionsBuilder_.remove(index); } return this; } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder getExcludedCollectionsBuilder( int index) { return getExcludedCollectionsFieldBuilder().getBuilder(index); } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder getExcludedCollectionsOrBuilder( int index) { if (excludedCollectionsBuilder_ == null) { return excludedCollections_.get(index); } else { return excludedCollectionsBuilder_.getMessageOrBuilder(index); } } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public java.util.List getExcludedCollectionsOrBuilderList() { if (excludedCollectionsBuilder_ != null) { return excludedCollectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(excludedCollections_); } } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder addExcludedCollectionsBuilder() { return getExcludedCollectionsFieldBuilder().addBuilder( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance()); } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder addExcludedCollectionsBuilder( int index) { return getExcludedCollectionsFieldBuilder().addBuilder( index, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.getDefaultInstance()); } /** *
       * List of forbidden collections for replication. Allowed to use * as collection
       * name for forbid all collections of concrete schema.
       * 
* * repeated .yandex.cloud.datatransfer.v1.endpoint.MongoCollection excluded_collections = 7; */ public java.util.List getExcludedCollectionsBuilderList() { return getExcludedCollectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder> getExcludedCollectionsFieldBuilder() { if (excludedCollectionsBuilder_ == null) { excludedCollectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoCollectionOrBuilder>( excludedCollections_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); excludedCollections_ = null; } return excludedCollectionsBuilder_; } private boolean secondaryPreferredMode_ ; /** *
       * Read mode for mongo client
       * 
* * bool secondary_preferred_mode = 8; * @return The secondaryPreferredMode. */ @java.lang.Override public boolean getSecondaryPreferredMode() { return secondaryPreferredMode_; } /** *
       * Read mode for mongo client
       * 
* * bool secondary_preferred_mode = 8; * @param value The secondaryPreferredMode to set. * @return This builder for chaining. */ public Builder setSecondaryPreferredMode(boolean value) { secondaryPreferredMode_ = value; onChanged(); return this; } /** *
       * Read mode for mongo client
       * 
* * bool secondary_preferred_mode = 8; * @return This builder for chaining. */ public Builder clearSecondaryPreferredMode() { secondaryPreferredMode_ = 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.datatransfer.v1.endpoint.MongoSource) } // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.MongoSource) private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource(); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoSource getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MongoSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MongoSource(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.datatransfer.v1.endpoint.Mongo.MongoSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MongoTargetOrBuilder extends // @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.MongoTarget) com.google.protobuf.MessageOrBuilder { /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ boolean hasConnection(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection(); /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder(); /** * string subnet_id = 7; * @return The subnetId. */ java.lang.String getSubnetId(); /** * string subnet_id = 7; * @return The bytes for subnetId. */ com.google.protobuf.ByteString getSubnetIdBytes(); /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @return A list containing the securityGroups. */ java.util.List getSecurityGroupsList(); /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @return The count of securityGroups. */ int getSecurityGroupsCount(); /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @param index The index of the element to return. * @return The securityGroups at the given index. */ java.lang.String getSecurityGroups(int index); /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ com.google.protobuf.ByteString getSecurityGroupsBytes(int index); /** *
     * Database name
     * 
* * string database = 2; * @return The database. */ java.lang.String getDatabase(); /** *
     * Database name
     * 
* * string database = 2; * @return The bytes for database. */ com.google.protobuf.ByteString getDatabaseBytes(); /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The enum numeric value on the wire for cleanupPolicy. */ int getCleanupPolicyValue(); /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The cleanupPolicy. */ yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy(); } /** * Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.MongoTarget} */ public static final class MongoTarget extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.MongoTarget) MongoTargetOrBuilder { private static final long serialVersionUID = 0L; // Use MongoTarget.newBuilder() to construct. private MongoTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MongoTarget() { subnetId_ = ""; securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; database_ = ""; cleanupPolicy_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MongoTarget(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MongoTarget( 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: { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder subBuilder = null; if (connection_ != null) { subBuilder = connection_.toBuilder(); } connection_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(connection_); connection_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); database_ = s; break; } case 48: { int rawValue = input.readEnum(); cleanupPolicy_ = rawValue; break; } case 58: { java.lang.String s = input.readStringRequireUtf8(); subnetId_ = s; break; } case 66: { java.lang.String s = input.readStringRequireUtf8(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { securityGroups_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } securityGroups_.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)) { securityGroups_ = securityGroups_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.Builder.class); } public static final int CONNECTION_FIELD_NUMBER = 1; private yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection connection_; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ @java.lang.Override public boolean hasConnection() { return connection_ != null; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection() { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder() { return getConnection(); } public static final int SUBNET_ID_FIELD_NUMBER = 7; private volatile java.lang.Object subnetId_; /** * string subnet_id = 7; * @return The subnetId. */ @java.lang.Override public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; 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(); subnetId_ = s; return s; } } /** * string subnet_id = 7; * @return The bytes for subnetId. */ @java.lang.Override public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SECURITY_GROUPS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList securityGroups_; /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @return A list containing the securityGroups. */ public com.google.protobuf.ProtocolStringList getSecurityGroupsList() { return securityGroups_; } /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @return The count of securityGroups. */ public int getSecurityGroupsCount() { return securityGroups_.size(); } /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @param index The index of the element to return. * @return The securityGroups at the given index. */ public java.lang.String getSecurityGroups(int index) { return securityGroups_.get(index); } /** *
     * Security groups
     * 
* * repeated string security_groups = 8; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ public com.google.protobuf.ByteString getSecurityGroupsBytes(int index) { return securityGroups_.getByteString(index); } public static final int DATABASE_FIELD_NUMBER = 2; private volatile java.lang.Object database_; /** *
     * Database name
     * 
* * string database = 2; * @return The database. */ @java.lang.Override public java.lang.String getDatabase() { java.lang.Object ref = database_; 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(); database_ = s; return s; } } /** *
     * Database name
     * 
* * string database = 2; * @return The bytes for database. */ @java.lang.Override public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CLEANUP_POLICY_FIELD_NUMBER = 6; private int cleanupPolicy_; /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.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 (connection_ != null) { output.writeMessage(1, getConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_); } if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(6, cleanupPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, subnetId_); } for (int i = 0; i < securityGroups_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, securityGroups_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (connection_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_); } if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(6, cleanupPolicy_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, subnetId_); } { int dataSize = 0; for (int i = 0; i < securityGroups_.size(); i++) { dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i)); } size += dataSize; size += 1 * getSecurityGroupsList().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.datatransfer.v1.endpoint.Mongo.MongoTarget)) { return super.equals(obj); } yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget other = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget) obj; if (hasConnection() != other.hasConnection()) return false; if (hasConnection()) { if (!getConnection() .equals(other.getConnection())) return false; } if (!getSubnetId() .equals(other.getSubnetId())) return false; if (!getSecurityGroupsList() .equals(other.getSecurityGroupsList())) return false; if (!getDatabase() .equals(other.getDatabase())) return false; if (cleanupPolicy_ != other.cleanupPolicy_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasConnection()) { hash = (37 * hash) + CONNECTION_FIELD_NUMBER; hash = (53 * hash) + getConnection().hashCode(); } hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER; hash = (53 * hash) + getSubnetId().hashCode(); if (getSecurityGroupsCount() > 0) { hash = (37 * hash) + SECURITY_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getSecurityGroupsList().hashCode(); } hash = (37 * hash) + DATABASE_FIELD_NUMBER; hash = (53 * hash) + getDatabase().hashCode(); hash = (37 * hash) + CLEANUP_POLICY_FIELD_NUMBER; hash = (53 * hash) + cleanupPolicy_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.Mongo.MongoTarget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.Mongo.MongoTarget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.Mongo.MongoTarget 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.datatransfer.v1.endpoint.MongoTarget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.MongoTarget) yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.Builder.class); } // Construct using yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (connectionBuilder_ == null) { connection_ = null; } else { connection_ = null; connectionBuilder_ = null; } subnetId_ = ""; securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); database_ = ""; cleanupPolicy_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget getDefaultInstanceForType() { return yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.getDefaultInstance(); } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget build() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget buildPartial() { yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget result = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget(this); int from_bitField0_ = bitField0_; if (connectionBuilder_ == null) { result.connection_ = connection_; } else { result.connection_ = connectionBuilder_.build(); } result.subnetId_ = subnetId_; if (((bitField0_ & 0x00000001) != 0)) { securityGroups_ = securityGroups_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.securityGroups_ = securityGroups_; result.database_ = database_; result.cleanupPolicy_ = cleanupPolicy_; 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.datatransfer.v1.endpoint.Mongo.MongoTarget) { return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget other) { if (other == yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget.getDefaultInstance()) return this; if (other.hasConnection()) { mergeConnection(other.getConnection()); } if (!other.getSubnetId().isEmpty()) { subnetId_ = other.subnetId_; onChanged(); } if (!other.securityGroups_.isEmpty()) { if (securityGroups_.isEmpty()) { securityGroups_ = other.securityGroups_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureSecurityGroupsIsMutable(); securityGroups_.addAll(other.securityGroups_); } onChanged(); } if (!other.getDatabase().isEmpty()) { database_ = other.database_; onChanged(); } if (other.cleanupPolicy_ != 0) { setCleanupPolicyValue(other.getCleanupPolicyValue()); } 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.datatransfer.v1.endpoint.Mongo.MongoTarget parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection connection_; private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder> connectionBuilder_; /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return Whether the connection field is set. */ public boolean hasConnection() { return connectionBuilder_ != null || connection_ != null; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; * @return The connection. */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection getConnection() { if (connectionBuilder_ == null) { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } else { return connectionBuilder_.getMessage(); } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder setConnection(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection value) { if (connectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } connection_ = value; onChanged(); } else { connectionBuilder_.setMessage(value); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder setConnection( yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder builderForValue) { if (connectionBuilder_ == null) { connection_ = builderForValue.build(); onChanged(); } else { connectionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder mergeConnection(yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection value) { if (connectionBuilder_ == null) { if (connection_ != null) { connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.newBuilder(connection_).mergeFrom(value).buildPartial(); } else { connection_ = value; } onChanged(); } else { connectionBuilder_.mergeFrom(value); } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public Builder clearConnection() { if (connectionBuilder_ == null) { connection_ = null; onChanged(); } else { connection_ = null; connectionBuilder_ = null; } return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder getConnectionBuilder() { onChanged(); return getConnectionFieldBuilder().getBuilder(); } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ public yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder getConnectionOrBuilder() { if (connectionBuilder_ != null) { return connectionBuilder_.getMessageOrBuilder(); } else { return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.getDefaultInstance() : connection_; } } /** * .yandex.cloud.datatransfer.v1.endpoint.MongoConnection connection = 1; */ private com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder> getConnectionFieldBuilder() { if (connectionBuilder_ == null) { connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoConnectionOrBuilder>( getConnection(), getParentForChildren(), isClean()); connection_ = null; } return connectionBuilder_; } private java.lang.Object subnetId_ = ""; /** * string subnet_id = 7; * @return The subnetId. */ public java.lang.String getSubnetId() { java.lang.Object ref = subnetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string subnet_id = 7; * @return The bytes for subnetId. */ public com.google.protobuf.ByteString getSubnetIdBytes() { java.lang.Object ref = subnetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subnetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string subnet_id = 7; * @param value The subnetId to set. * @return This builder for chaining. */ public Builder setSubnetId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } subnetId_ = value; onChanged(); return this; } /** * string subnet_id = 7; * @return This builder for chaining. */ public Builder clearSubnetId() { subnetId_ = getDefaultInstance().getSubnetId(); onChanged(); return this; } /** * string subnet_id = 7; * @param value The bytes for subnetId to set. * @return This builder for chaining. */ public Builder setSubnetIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnetId_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSecurityGroupsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { securityGroups_ = new com.google.protobuf.LazyStringArrayList(securityGroups_); bitField0_ |= 0x00000001; } } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @return A list containing the securityGroups. */ public com.google.protobuf.ProtocolStringList getSecurityGroupsList() { return securityGroups_.getUnmodifiableView(); } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @return The count of securityGroups. */ public int getSecurityGroupsCount() { return securityGroups_.size(); } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param index The index of the element to return. * @return The securityGroups at the given index. */ public java.lang.String getSecurityGroups(int index) { return securityGroups_.get(index); } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param index The index of the value to return. * @return The bytes of the securityGroups at the given index. */ public com.google.protobuf.ByteString getSecurityGroupsBytes(int index) { return securityGroups_.getByteString(index); } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param index The index to set the value at. * @param value The securityGroups to set. * @return This builder for chaining. */ public Builder setSecurityGroups( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupsIsMutable(); securityGroups_.set(index, value); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param value The securityGroups to add. * @return This builder for chaining. */ public Builder addSecurityGroups( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureSecurityGroupsIsMutable(); securityGroups_.add(value); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param values The securityGroups to add. * @return This builder for chaining. */ public Builder addAllSecurityGroups( java.lang.Iterable values) { ensureSecurityGroupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, securityGroups_); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @return This builder for chaining. */ public Builder clearSecurityGroups() { securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * Security groups
       * 
* * repeated string security_groups = 8; * @param value The bytes of the securityGroups to add. * @return This builder for chaining. */ public Builder addSecurityGroupsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureSecurityGroupsIsMutable(); securityGroups_.add(value); onChanged(); return this; } private java.lang.Object database_ = ""; /** *
       * Database name
       * 
* * string database = 2; * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Database name
       * 
* * string database = 2; * @return The bytes for database. */ public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); database_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Database name
       * 
* * string database = 2; * @param value The database to set. * @return This builder for chaining. */ public Builder setDatabase( java.lang.String value) { if (value == null) { throw new NullPointerException(); } database_ = value; onChanged(); return this; } /** *
       * Database name
       * 
* * string database = 2; * @return This builder for chaining. */ public Builder clearDatabase() { database_ = getDefaultInstance().getDatabase(); onChanged(); return this; } /** *
       * Database name
       * 
* * string database = 2; * @param value The bytes for database to set. * @return This builder for chaining. */ public Builder setDatabaseBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; onChanged(); return this; } private int cleanupPolicy_ = 0; /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The enum numeric value on the wire for cleanupPolicy. */ @java.lang.Override public int getCleanupPolicyValue() { return cleanupPolicy_; } /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @param value The enum numeric value on the wire for cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicyValue(int value) { cleanupPolicy_ = value; onChanged(); return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return The cleanupPolicy. */ @java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy() { @SuppressWarnings("deprecation") yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.valueOf(cleanupPolicy_); return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.UNRECOGNIZED : result; } /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @param value The cleanupPolicy to set. * @return This builder for chaining. */ public Builder setCleanupPolicy(yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy value) { if (value == null) { throw new NullPointerException(); } cleanupPolicy_ = value.getNumber(); onChanged(); return this; } /** * .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 6; * @return This builder for chaining. */ public Builder clearCleanupPolicy() { cleanupPolicy_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yandex.cloud.datatransfer.v1.endpoint.MongoTarget) } // @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.MongoTarget) private static final yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget(); } public static yandex.cloud.api.datatransfer.v1.endpoint.Mongo.MongoTarget getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MongoTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MongoTarget(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.datatransfer.v1.endpoint.Mongo.MongoTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_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/datatransfer/v1/endpoint/" + "mongo.proto\022%yandex.cloud.datatransfer.v" + "1.endpoint\0322yandex/cloud/datatransfer/v1" + "/endpoint/common.proto\"\204\001\n\016OnPremiseMong" + "o\022\r\n\005hosts\030\001 \003(\t\022\014\n\004port\030\002 \001(\003\022@\n\010tls_mo" + "de\030\006 \001(\0132..yandex.cloud.datatransfer.v1." + "endpoint.TLSMode\022\023\n\013replica_set\030\005 \001(\t\"\356\001" + "\n\026MongoConnectionOptions\022\030\n\016mdb_cluster_" + "id\030\001 \001(\tH\000\022K\n\non_premise\030\002 \001(\01325.yandex." + "cloud.datatransfer.v1.endpoint.OnPremise" + "MongoH\000\022\014\n\004user\030\003 \001(\t\022?\n\010password\030\004 \001(\0132" + "-.yandex.cloud.datatransfer.v1.endpoint." + "Secret\022\023\n\013auth_source\030\005 \001(\tB\t\n\007address\"|" + "\n\017MongoConnection\022[\n\022connection_options\030" + "\003 \001(\0132=.yandex.cloud.datatransfer.v1.end" + "point.MongoConnectionOptionsH\000B\014\n\nconnec" + "tion\"A\n\017MongoCollection\022\025\n\rdatabase_name" + "\030\001 \001(\t\022\027\n\017collection_name\030\002 \001(\t\"\312\002\n\013Mong" + "oSource\022J\n\nconnection\030\001 \001(\01326.yandex.clo" + "ud.datatransfer.v1.endpoint.MongoConnect" + "ion\022\021\n\tsubnet_id\030\002 \001(\t\022\027\n\017security_group" + "s\030\013 \003(\t\022K\n\013collections\030\006 \003(\01326.yandex.cl" + "oud.datatransfer.v1.endpoint.MongoCollec" + "tion\022T\n\024excluded_collections\030\007 \003(\01326.yan" + "dex.cloud.datatransfer.v1.endpoint.Mongo" + "Collection\022 \n\030secondary_preferred_mode\030\010" + " \001(\010\"\345\001\n\013MongoTarget\022J\n\nconnection\030\001 \001(\013" + "26.yandex.cloud.datatransfer.v1.endpoint" + ".MongoConnection\022\021\n\tsubnet_id\030\007 \001(\t\022\027\n\017s" + "ecurity_groups\030\010 \003(\t\022\020\n\010database\030\002 \001(\t\022L" + "\n\016cleanup_policy\030\006 \001(\01624.yandex.cloud.da" + "tatransfer.v1.endpoint.CleanupPolicyB\247\001\n" + ")yandex.cloud.api.datatransfer.v1.endpoi" + "ntZRgithub.com/yandex-cloud/go-genproto/" + "yandex/cloud/datatransfer/v1/endpoint;en" + "dpoint\252\002%Yandex.Cloud.Datatransfer.V1.En" + "dPointb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { yandex.cloud.api.datatransfer.v1.endpoint.Common.getDescriptor(), }); internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremiseMongo_descriptor, new java.lang.String[] { "Hosts", "Port", "TlsMode", "ReplicaSet", }); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnectionOptions_descriptor, new java.lang.String[] { "MdbClusterId", "OnPremise", "User", "Password", "AuthSource", "Address", }); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoConnection_descriptor, new java.lang.String[] { "ConnectionOptions", "Connection", }); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoCollection_descriptor, new java.lang.String[] { "DatabaseName", "CollectionName", }); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoSource_descriptor, new java.lang.String[] { "Connection", "SubnetId", "SecurityGroups", "Collections", "ExcludedCollections", "SecondaryPreferredMode", }); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_yandex_cloud_datatransfer_v1_endpoint_MongoTarget_descriptor, new java.lang.String[] { "Connection", "SubnetId", "SecurityGroups", "Database", "CleanupPolicy", }); yandex.cloud.api.datatransfer.v1.endpoint.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy