yandex.cloud.api.datatransfer.v1.endpoint.Ydb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/datatransfer/v1/endpoint/ydb.proto
package yandex.cloud.api.datatransfer.v1.endpoint;
public final class Ydb {
private Ydb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy}
*/
public enum YdbCleanupPolicy
implements com.google.protobuf.ProtocolMessageEnum {
/**
* YDB_CLEANUP_POLICY_UNSPECIFIED = 0;
*/
YDB_CLEANUP_POLICY_UNSPECIFIED(0),
/**
* YDB_CLEANUP_POLICY_DISABLED = 1;
*/
YDB_CLEANUP_POLICY_DISABLED(1),
/**
* YDB_CLEANUP_POLICY_DROP = 2;
*/
YDB_CLEANUP_POLICY_DROP(2),
UNRECOGNIZED(-1),
;
/**
* YDB_CLEANUP_POLICY_UNSPECIFIED = 0;
*/
public static final int YDB_CLEANUP_POLICY_UNSPECIFIED_VALUE = 0;
/**
* YDB_CLEANUP_POLICY_DISABLED = 1;
*/
public static final int YDB_CLEANUP_POLICY_DISABLED_VALUE = 1;
/**
* YDB_CLEANUP_POLICY_DROP = 2;
*/
public static final int YDB_CLEANUP_POLICY_DROP_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static YdbCleanupPolicy valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static YdbCleanupPolicy forNumber(int value) {
switch (value) {
case 0: return YDB_CLEANUP_POLICY_UNSPECIFIED;
case 1: return YDB_CLEANUP_POLICY_DISABLED;
case 2: return YDB_CLEANUP_POLICY_DROP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
YdbCleanupPolicy> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public YdbCleanupPolicy findValueByNumber(int number) {
return YdbCleanupPolicy.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.getDescriptor().getEnumTypes().get(0);
}
private static final YdbCleanupPolicy[] VALUES = values();
public static YdbCleanupPolicy valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private YdbCleanupPolicy(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy)
}
public interface YdbSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.YdbSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return The database.
*/
java.lang.String getDatabase();
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
java.lang.String getInstance();
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
com.google.protobuf.ByteString
getInstanceBytes();
/**
* string service_account_id = 6;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
* string service_account_id = 6;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
* repeated string paths = 5;
* @return A list containing the paths.
*/
java.util.List
getPathsList();
/**
* repeated string paths = 5;
* @return The count of paths.
*/
int getPathsCount();
/**
* repeated string paths = 5;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
java.lang.String getPaths(int index);
/**
* repeated string paths = 5;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
com.google.protobuf.ByteString
getPathsBytes(int index);
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return A list containing the securityGroups.
*/
java.util.List
getSecurityGroupsList();
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return The count of securityGroups.
*/
int getSecurityGroupsCount();
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @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 = 34;
* @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);
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The saKeyContent.
*/
java.lang.String getSaKeyContent();
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The bytes for saKeyContent.
*/
com.google.protobuf.ByteString
getSaKeyContentBytes();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.YdbSource}
*/
public static final class YdbSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.YdbSource)
YdbSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use YdbSource.newBuilder() to construct.
private YdbSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private YdbSource() {
database_ = "";
instance_ = "";
serviceAccountId_ = "";
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
subnetId_ = "";
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
saKeyContent_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new YdbSource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private YdbSource(
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();
database_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
instance_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
paths_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
paths_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 242: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 266: {
java.lang.String s = input.readStringRequireUtf8();
saKeyContent_ = s;
break;
}
case 274: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
securityGroups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
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)) {
paths_ = paths_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000002) != 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.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.Builder.class);
}
public static final int DATABASE_FIELD_NUMBER = 1;
private volatile java.lang.Object database_;
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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 INSTANCE_FIELD_NUMBER = 2;
private volatile java.lang.Object instance_;
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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();
instance_ = s;
return s;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 6;
private volatile java.lang.Object serviceAccountId_;
/**
* string service_account_id = 6;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
* string service_account_id = 6;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATHS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList paths_;
/**
* repeated string paths = 5;
* @return A list containing the paths.
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_;
}
/**
* repeated string paths = 5;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
* repeated string paths = 5;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
* repeated string paths = 5;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
public static final int SUBNET_ID_FIELD_NUMBER = 30;
private volatile java.lang.Object subnetId_;
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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 = 34;
private com.google.protobuf.LazyStringList securityGroups_;
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_;
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @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 = 34;
* @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 SA_KEY_CONTENT_FIELD_NUMBER = 33;
private volatile java.lang.Object saKeyContent_;
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The saKeyContent.
*/
@java.lang.Override
public java.lang.String getSaKeyContent() {
java.lang.Object ref = saKeyContent_;
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();
saKeyContent_ = s;
return s;
}
}
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The bytes for saKeyContent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSaKeyContentBytes() {
java.lang.Object ref = saKeyContent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saKeyContent_ = 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(database_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instance_);
}
for (int i = 0; i < paths_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, paths_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 30, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saKeyContent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 33, saKeyContent_);
}
for (int i = 0; i < securityGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 34, securityGroups_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instance_);
}
{
int dataSize = 0;
for (int i = 0; i < paths_.size(); i++) {
dataSize += computeStringSizeNoTag(paths_.getRaw(i));
}
size += dataSize;
size += 1 * getPathsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, serviceAccountId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saKeyContent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, saKeyContent_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i));
}
size += dataSize;
size += 2 * 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.Ydb.YdbSource)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource other = (yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource) obj;
if (!getDatabase()
.equals(other.getDatabase())) return false;
if (!getInstance()
.equals(other.getInstance())) return false;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (!getPathsList()
.equals(other.getPathsList())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (!getSecurityGroupsList()
.equals(other.getSecurityGroupsList())) return false;
if (!getSaKeyContent()
.equals(other.getSaKeyContent())) 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_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
if (getPathsCount() > 0) {
hash = (37 * hash) + PATHS_FIELD_NUMBER;
hash = (53 * hash) + getPathsList().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) + SA_KEY_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getSaKeyContent().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource 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.Ydb.YdbSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource 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.Ydb.YdbSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.Ydb.YdbSource 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.YdbSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.YdbSource)
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.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();
database_ = "";
instance_ = "";
serviceAccountId_ = "";
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
subnetId_ = "";
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
saKeyContent_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource build() {
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource result = new yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource(this);
int from_bitField0_ = bitField0_;
result.database_ = database_;
result.instance_ = instance_;
result.serviceAccountId_ = serviceAccountId_;
if (((bitField0_ & 0x00000001) != 0)) {
paths_ = paths_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.paths_ = paths_;
result.subnetId_ = subnetId_;
if (((bitField0_ & 0x00000002) != 0)) {
securityGroups_ = securityGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.securityGroups_ = securityGroups_;
result.saKeyContent_ = saKeyContent_;
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.Ydb.YdbSource) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource.getDefaultInstance()) return this;
if (!other.getDatabase().isEmpty()) {
database_ = other.database_;
onChanged();
}
if (!other.getInstance().isEmpty()) {
instance_ = other.instance_;
onChanged();
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (!other.paths_.isEmpty()) {
if (paths_.isEmpty()) {
paths_ = other.paths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePathsIsMutable();
paths_.addAll(other.paths_);
}
onChanged();
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
onChanged();
}
if (!other.securityGroups_.isEmpty()) {
if (securityGroups_.isEmpty()) {
securityGroups_ = other.securityGroups_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSecurityGroupsIsMutable();
securityGroups_.addAll(other.securityGroups_);
}
onChanged();
}
if (!other.getSaKeyContent().isEmpty()) {
saKeyContent_ = other.saKeyContent_;
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.Ydb.YdbSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object database_ = "";
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
onChanged();
return this;
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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 java.lang.Object instance_ = "";
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instance_ = value;
onChanged();
return this;
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return This builder for chaining.
*/
public Builder clearInstance() {
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instance_ = value;
onChanged();
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
* string service_account_id = 6;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string service_account_id = 6;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string service_account_id = 6;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
* string service_account_id = 6;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
* string service_account_id = 6;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensurePathsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
paths_ = new com.google.protobuf.LazyStringArrayList(paths_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string paths = 5;
* @return A list containing the paths.
*/
public com.google.protobuf.ProtocolStringList
getPathsList() {
return paths_.getUnmodifiableView();
}
/**
* repeated string paths = 5;
* @return The count of paths.
*/
public int getPathsCount() {
return paths_.size();
}
/**
* repeated string paths = 5;
* @param index The index of the element to return.
* @return The paths at the given index.
*/
public java.lang.String getPaths(int index) {
return paths_.get(index);
}
/**
* repeated string paths = 5;
* @param index The index of the value to return.
* @return The bytes of the paths at the given index.
*/
public com.google.protobuf.ByteString
getPathsBytes(int index) {
return paths_.getByteString(index);
}
/**
* repeated string paths = 5;
* @param index The index to set the value at.
* @param value The paths to set.
* @return This builder for chaining.
*/
public Builder setPaths(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.set(index, value);
onChanged();
return this;
}
/**
* repeated string paths = 5;
* @param value The paths to add.
* @return This builder for chaining.
*/
public Builder addPaths(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
/**
* repeated string paths = 5;
* @param values The paths to add.
* @return This builder for chaining.
*/
public Builder addAllPaths(
java.lang.Iterable values) {
ensurePathsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, paths_);
onChanged();
return this;
}
/**
* repeated string paths = 5;
* @return This builder for chaining.
*/
public Builder clearPaths() {
paths_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string paths = 5;
* @param value The bytes of the paths to add.
* @return This builder for chaining.
*/
public Builder addPathsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensurePathsIsMutable();
paths_.add(value);
onChanged();
return this;
}
private java.lang.Object subnetId_ = "";
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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_ & 0x00000002) != 0)) {
securityGroups_ = new com.google.protobuf.LazyStringArrayList(securityGroups_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_.getUnmodifiableView();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @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 = 34;
* @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 = 34;
* @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 = 34;
* @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 = 34;
* @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 = 34;
* @return This builder for chaining.
*/
public Builder clearSecurityGroups() {
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Security groups
*
*
* repeated string security_groups = 34;
* @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 saKeyContent_ = "";
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The saKeyContent.
*/
public java.lang.String getSaKeyContent() {
java.lang.Object ref = saKeyContent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
saKeyContent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return The bytes for saKeyContent.
*/
public com.google.protobuf.ByteString
getSaKeyContentBytes() {
java.lang.Object ref = saKeyContent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saKeyContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @param value The saKeyContent to set.
* @return This builder for chaining.
*/
public Builder setSaKeyContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
saKeyContent_ = value;
onChanged();
return this;
}
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @return This builder for chaining.
*/
public Builder clearSaKeyContent() {
saKeyContent_ = getDefaultInstance().getSaKeyContent();
onChanged();
return this;
}
/**
*
* Authorization Key
*
*
* string sa_key_content = 33;
* @param value The bytes for saKeyContent to set.
* @return This builder for chaining.
*/
public Builder setSaKeyContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
saKeyContent_ = 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.YdbSource)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.YdbSource)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public YdbSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new YdbSource(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.Ydb.YdbSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface YdbTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.YdbTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return The database.
*/
java.lang.String getDatabase();
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
java.lang.String getInstance();
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
com.google.protobuf.ByteString
getInstanceBytes();
/**
* string service_account_id = 11;
* @return The serviceAccountId.
*/
java.lang.String getServiceAccountId();
/**
* string service_account_id = 11;
* @return The bytes for serviceAccountId.
*/
com.google.protobuf.ByteString
getServiceAccountIdBytes();
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The path.
*/
java.lang.String getPath();
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The bytes for path.
*/
com.google.protobuf.ByteString
getPathBytes();
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @return A list containing the securityGroups.
*/
java.util.List
getSecurityGroupsList();
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @return The count of securityGroups.
*/
int getSecurityGroupsCount();
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @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 = 33;
* @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);
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The saKeyContent.
*/
java.lang.String getSaKeyContent();
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The bytes for saKeyContent.
*/
com.google.protobuf.ByteString
getSaKeyContentBytes();
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
int getCleanupPolicyValue();
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The cleanupPolicy.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy getCleanupPolicy();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.YdbTarget}
*/
public static final class YdbTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.YdbTarget)
YdbTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use YdbTarget.newBuilder() to construct.
private YdbTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private YdbTarget() {
database_ = "";
instance_ = "";
serviceAccountId_ = "";
path_ = "";
subnetId_ = "";
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
saKeyContent_ = "";
cleanupPolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new YdbTarget();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private YdbTarget(
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();
database_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
instance_ = s;
break;
}
case 82: {
java.lang.String s = input.readStringRequireUtf8();
path_ = s;
break;
}
case 90: {
java.lang.String s = input.readStringRequireUtf8();
serviceAccountId_ = s;
break;
}
case 168: {
int rawValue = input.readEnum();
cleanupPolicy_ = rawValue;
break;
}
case 242: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 258: {
java.lang.String s = input.readStringRequireUtf8();
saKeyContent_ = s;
break;
}
case 266: {
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.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.Builder.class);
}
public static final int DATABASE_FIELD_NUMBER = 1;
private volatile java.lang.Object database_;
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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 INSTANCE_FIELD_NUMBER = 2;
private volatile java.lang.Object instance_;
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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();
instance_ = s;
return s;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 11;
private volatile java.lang.Object serviceAccountId_;
/**
* string service_account_id = 11;
* @return The serviceAccountId.
*/
@java.lang.Override
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
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();
serviceAccountId_ = s;
return s;
}
}
/**
* string service_account_id = 11;
* @return The bytes for serviceAccountId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PATH_FIELD_NUMBER = 10;
private volatile java.lang.Object path_;
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
}
}
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNET_ID_FIELD_NUMBER = 30;
private volatile java.lang.Object subnetId_;
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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 = 33;
private com.google.protobuf.LazyStringList securityGroups_;
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_;
}
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @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 = 33;
* @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 SA_KEY_CONTENT_FIELD_NUMBER = 32;
private volatile java.lang.Object saKeyContent_;
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The saKeyContent.
*/
@java.lang.Override
public java.lang.String getSaKeyContent() {
java.lang.Object ref = saKeyContent_;
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();
saKeyContent_ = s;
return s;
}
}
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The bytes for saKeyContent.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSaKeyContentBytes() {
java.lang.Object ref = saKeyContent_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saKeyContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLEANUP_POLICY_FIELD_NUMBER = 21;
private int cleanupPolicy_;
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
@java.lang.Override public int getCleanupPolicyValue() {
return cleanupPolicy_;
}
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The cleanupPolicy.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy getCleanupPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.valueOf(cleanupPolicy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instance_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 10, path_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, serviceAccountId_);
}
if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.YDB_CLEANUP_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(21, cleanupPolicy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 30, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saKeyContent_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 32, saKeyContent_);
}
for (int i = 0; i < securityGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 33, securityGroups_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instance_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, path_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, serviceAccountId_);
}
if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.YDB_CLEANUP_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(21, cleanupPolicy_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(30, subnetId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saKeyContent_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(32, saKeyContent_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i));
}
size += dataSize;
size += 2 * 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.Ydb.YdbTarget)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget other = (yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget) obj;
if (!getDatabase()
.equals(other.getDatabase())) return false;
if (!getInstance()
.equals(other.getInstance())) return false;
if (!getServiceAccountId()
.equals(other.getServiceAccountId())) return false;
if (!getPath()
.equals(other.getPath())) return false;
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (!getSecurityGroupsList()
.equals(other.getSecurityGroupsList())) return false;
if (!getSaKeyContent()
.equals(other.getSaKeyContent())) 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();
hash = (37 * hash) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
hash = (53 * hash) + getServiceAccountId().hashCode();
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().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) + SA_KEY_CONTENT_FIELD_NUMBER;
hash = (53 * hash) + getSaKeyContent().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.Ydb.YdbTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget 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.Ydb.YdbTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget 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.Ydb.YdbTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.Ydb.YdbTarget 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.YdbTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.YdbTarget)
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.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();
database_ = "";
instance_ = "";
serviceAccountId_ = "";
path_ = "";
subnetId_ = "";
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
saKeyContent_ = "";
cleanupPolicy_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget build() {
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget result = new yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget(this);
int from_bitField0_ = bitField0_;
result.database_ = database_;
result.instance_ = instance_;
result.serviceAccountId_ = serviceAccountId_;
result.path_ = path_;
result.subnetId_ = subnetId_;
if (((bitField0_ & 0x00000001) != 0)) {
securityGroups_ = securityGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.securityGroups_ = securityGroups_;
result.saKeyContent_ = saKeyContent_;
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.Ydb.YdbTarget) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget.getDefaultInstance()) return this;
if (!other.getDatabase().isEmpty()) {
database_ = other.database_;
onChanged();
}
if (!other.getInstance().isEmpty()) {
instance_ = other.instance_;
onChanged();
}
if (!other.getServiceAccountId().isEmpty()) {
serviceAccountId_ = other.serviceAccountId_;
onChanged();
}
if (!other.getPath().isEmpty()) {
path_ = other.path_;
onChanged();
}
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.getSaKeyContent().isEmpty()) {
saKeyContent_ = other.saKeyContent_;
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.Ydb.YdbTarget parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object database_ = "";
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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;
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
onChanged();
return this;
}
/**
*
* Path in YDB where to store tables
*
*
* string database = 1;
* @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 java.lang.Object instance_ = "";
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instance_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instance_ = value;
onChanged();
return this;
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @return This builder for chaining.
*/
public Builder clearInstance() {
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Instance of YDB. example: ydb-ru-prestable.yandex.net:2135
*
*
* string instance = 2;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instance_ = value;
onChanged();
return this;
}
private java.lang.Object serviceAccountId_ = "";
/**
* string service_account_id = 11;
* @return The serviceAccountId.
*/
public java.lang.String getServiceAccountId() {
java.lang.Object ref = serviceAccountId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceAccountId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string service_account_id = 11;
* @return The bytes for serviceAccountId.
*/
public com.google.protobuf.ByteString
getServiceAccountIdBytes() {
java.lang.Object ref = serviceAccountId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceAccountId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string service_account_id = 11;
* @param value The serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceAccountId_ = value;
onChanged();
return this;
}
/**
* string service_account_id = 11;
* @return This builder for chaining.
*/
public Builder clearServiceAccountId() {
serviceAccountId_ = getDefaultInstance().getServiceAccountId();
onChanged();
return this;
}
/**
* string service_account_id = 11;
* @param value The bytes for serviceAccountId to set.
* @return This builder for chaining.
*/
public Builder setServiceAccountIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceAccountId_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
path_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
path_ = value;
onChanged();
return this;
}
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @return This builder for chaining.
*/
public Builder clearPath() {
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Path extension for database, each table will be layouted into this path
*
*
* string path = 10;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
path_ = value;
onChanged();
return this;
}
private java.lang.Object subnetId_ = "";
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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;
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @return This builder for chaining.
*/
public Builder clearSubnetId() {
subnetId_ = getDefaultInstance().getSubnetId();
onChanged();
return this;
}
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 30;
* @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 = 33;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_.getUnmodifiableView();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 33;
* @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 = 33;
* @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 = 33;
* @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 = 33;
* @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 = 33;
* @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 = 33;
* @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 = 33;
* @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 saKeyContent_ = "";
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The saKeyContent.
*/
public java.lang.String getSaKeyContent() {
java.lang.Object ref = saKeyContent_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
saKeyContent_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return The bytes for saKeyContent.
*/
public com.google.protobuf.ByteString
getSaKeyContentBytes() {
java.lang.Object ref = saKeyContent_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
saKeyContent_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @param value The saKeyContent to set.
* @return This builder for chaining.
*/
public Builder setSaKeyContent(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
saKeyContent_ = value;
onChanged();
return this;
}
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @return This builder for chaining.
*/
public Builder clearSaKeyContent() {
saKeyContent_ = getDefaultInstance().getSaKeyContent();
onChanged();
return this;
}
/**
*
* SA content
*
*
* string sa_key_content = 32;
* @param value The bytes for saKeyContent to set.
* @return This builder for chaining.
*/
public Builder setSaKeyContentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
saKeyContent_ = value;
onChanged();
return this;
}
private int cleanupPolicy_ = 0;
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
@java.lang.Override public int getCleanupPolicyValue() {
return cleanupPolicy_;
}
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @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;
}
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @return The cleanupPolicy.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy getCleanupPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.valueOf(cleanupPolicy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy.UNRECOGNIZED : result;
}
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @param value The cleanupPolicy to set.
* @return This builder for chaining.
*/
public Builder setCleanupPolicy(yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbCleanupPolicy value) {
if (value == null) {
throw new NullPointerException();
}
cleanupPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Cleanup policy
*
*
* .yandex.cloud.datatransfer.v1.endpoint.YdbCleanupPolicy cleanup_policy = 21;
* @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.YdbTarget)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.YdbTarget)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Ydb.YdbTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public YdbTarget parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new YdbTarget(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.Ydb.YdbTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n/yandex/cloud/datatransfer/v1/endpoint/" +
"ydb.proto\022%yandex.cloud.datatransfer.v1." +
"endpoint\"\236\001\n\tYdbSource\022\020\n\010database\030\001 \001(\t" +
"\022\020\n\010instance\030\002 \001(\t\022\032\n\022service_account_id" +
"\030\006 \001(\t\022\r\n\005paths\030\005 \003(\t\022\021\n\tsubnet_id\030\036 \001(\t" +
"\022\027\n\017security_groups\030\" \003(\t\022\026\n\016sa_key_cont" +
"ent\030! \001(\t\"\356\001\n\tYdbTarget\022\020\n\010database\030\001 \001(" +
"\t\022\020\n\010instance\030\002 \001(\t\022\032\n\022service_account_i" +
"d\030\013 \001(\t\022\014\n\004path\030\n \001(\t\022\021\n\tsubnet_id\030\036 \001(\t" +
"\022\027\n\017security_groups\030! \003(\t\022\026\n\016sa_key_cont" +
"ent\030 \001(\t\022O\n\016cleanup_policy\030\025 \001(\01627.yand" +
"ex.cloud.datatransfer.v1.endpoint.YdbCle" +
"anupPolicy*t\n\020YdbCleanupPolicy\022\"\n\036YDB_CL" +
"EANUP_POLICY_UNSPECIFIED\020\000\022\037\n\033YDB_CLEANU" +
"P_POLICY_DISABLED\020\001\022\033\n\027YDB_CLEANUP_POLIC" +
"Y_DROP\020\002B\247\001\n)yandex.cloud.api.datatransf" +
"er.v1.endpointZRgithub.com/yandex-cloud/" +
"go-genproto/yandex/cloud/datatransfer/v1" +
"/endpoint;endpoint\252\002%Yandex.Cloud.Datatr" +
"ansfer.V1.EndPointb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbSource_descriptor,
new java.lang.String[] { "Database", "Instance", "ServiceAccountId", "Paths", "SubnetId", "SecurityGroups", "SaKeyContent", });
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_YdbTarget_descriptor,
new java.lang.String[] { "Database", "Instance", "ServiceAccountId", "Path", "SubnetId", "SecurityGroups", "SaKeyContent", "CleanupPolicy", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy