yandex.cloud.api.datatransfer.v1.endpoint.Postgres Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yandex/cloud/datatransfer/v1/endpoint/postgres.proto
package yandex.cloud.api.datatransfer.v1.endpoint;
public final class Postgres {
private Postgres() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface PostgresObjectTransferSettingsOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings)
com.google.protobuf.MessageOrBuilder {
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The enum numeric value on the wire for sequence.
*/
int getSequenceValue();
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The sequence.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequence();
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The enum numeric value on the wire for sequenceOwnedBy.
*/
int getSequenceOwnedByValue();
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The sequenceOwnedBy.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceOwnedBy();
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The enum numeric value on the wire for sequenceSet.
*/
int getSequenceSetValue();
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The sequenceSet.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceSet();
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The enum numeric value on the wire for table.
*/
int getTableValue();
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The table.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTable();
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The enum numeric value on the wire for primaryKey.
*/
int getPrimaryKeyValue();
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The primaryKey.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPrimaryKey();
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The enum numeric value on the wire for fkConstraint.
*/
int getFkConstraintValue();
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The fkConstraint.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFkConstraint();
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The enum numeric value on the wire for defaultValues.
*/
int getDefaultValuesValue();
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The defaultValues.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getDefaultValues();
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The enum numeric value on the wire for constraint.
*/
int getConstraintValue();
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The constraint.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getConstraint();
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The enum numeric value on the wire for index.
*/
int getIndexValue();
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The index.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getIndex();
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The enum numeric value on the wire for view.
*/
int getViewValue();
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The view.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getView();
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The enum numeric value on the wire for materializedView.
*/
int getMaterializedViewValue();
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The materializedView.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getMaterializedView();
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The enum numeric value on the wire for function.
*/
int getFunctionValue();
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The function.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFunction();
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The enum numeric value on the wire for trigger.
*/
int getTriggerValue();
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The trigger.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTrigger();
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The enum numeric value on the wire for type.
*/
int getTypeValue();
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The type.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getType();
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The enum numeric value on the wire for rule.
*/
int getRuleValue();
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The rule.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getRule();
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The enum numeric value on the wire for collation.
*/
int getCollationValue();
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The collation.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCollation();
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The enum numeric value on the wire for policy.
*/
int getPolicyValue();
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The policy.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPolicy();
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The enum numeric value on the wire for cast.
*/
int getCastValue();
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The cast.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCast();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings}
*/
public static final class PostgresObjectTransferSettings extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings)
PostgresObjectTransferSettingsOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostgresObjectTransferSettings.newBuilder() to construct.
private PostgresObjectTransferSettings(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostgresObjectTransferSettings() {
sequence_ = 0;
sequenceOwnedBy_ = 0;
sequenceSet_ = 0;
table_ = 0;
primaryKey_ = 0;
fkConstraint_ = 0;
defaultValues_ = 0;
constraint_ = 0;
index_ = 0;
view_ = 0;
materializedView_ = 0;
function_ = 0;
trigger_ = 0;
type_ = 0;
rule_ = 0;
collation_ = 0;
policy_ = 0;
cast_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostgresObjectTransferSettings();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostgresObjectTransferSettings(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
sequence_ = rawValue;
break;
}
case 16: {
int rawValue = input.readEnum();
sequenceOwnedBy_ = rawValue;
break;
}
case 24: {
int rawValue = input.readEnum();
table_ = rawValue;
break;
}
case 32: {
int rawValue = input.readEnum();
primaryKey_ = rawValue;
break;
}
case 40: {
int rawValue = input.readEnum();
fkConstraint_ = rawValue;
break;
}
case 48: {
int rawValue = input.readEnum();
defaultValues_ = rawValue;
break;
}
case 56: {
int rawValue = input.readEnum();
constraint_ = rawValue;
break;
}
case 64: {
int rawValue = input.readEnum();
index_ = rawValue;
break;
}
case 72: {
int rawValue = input.readEnum();
view_ = rawValue;
break;
}
case 80: {
int rawValue = input.readEnum();
function_ = rawValue;
break;
}
case 88: {
int rawValue = input.readEnum();
trigger_ = rawValue;
break;
}
case 96: {
int rawValue = input.readEnum();
type_ = rawValue;
break;
}
case 104: {
int rawValue = input.readEnum();
rule_ = rawValue;
break;
}
case 112: {
int rawValue = input.readEnum();
collation_ = rawValue;
break;
}
case 120: {
int rawValue = input.readEnum();
policy_ = rawValue;
break;
}
case 128: {
int rawValue = input.readEnum();
cast_ = rawValue;
break;
}
case 136: {
int rawValue = input.readEnum();
materializedView_ = rawValue;
break;
}
case 144: {
int rawValue = input.readEnum();
sequenceSet_ = rawValue;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder.class);
}
public static final int SEQUENCE_FIELD_NUMBER = 1;
private int sequence_;
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The enum numeric value on the wire for sequence.
*/
@java.lang.Override public int getSequenceValue() {
return sequence_;
}
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The sequence.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequence() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequence_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int SEQUENCE_OWNED_BY_FIELD_NUMBER = 2;
private int sequenceOwnedBy_;
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The enum numeric value on the wire for sequenceOwnedBy.
*/
@java.lang.Override public int getSequenceOwnedByValue() {
return sequenceOwnedBy_;
}
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The sequenceOwnedBy.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceOwnedBy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequenceOwnedBy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int SEQUENCE_SET_FIELD_NUMBER = 18;
private int sequenceSet_;
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The enum numeric value on the wire for sequenceSet.
*/
@java.lang.Override public int getSequenceSetValue() {
return sequenceSet_;
}
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The sequenceSet.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceSet() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequenceSet_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int TABLE_FIELD_NUMBER = 3;
private int table_;
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The enum numeric value on the wire for table.
*/
@java.lang.Override public int getTableValue() {
return table_;
}
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The table.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTable() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(table_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int PRIMARY_KEY_FIELD_NUMBER = 4;
private int primaryKey_;
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The enum numeric value on the wire for primaryKey.
*/
@java.lang.Override public int getPrimaryKeyValue() {
return primaryKey_;
}
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The primaryKey.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPrimaryKey() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(primaryKey_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int FK_CONSTRAINT_FIELD_NUMBER = 5;
private int fkConstraint_;
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The enum numeric value on the wire for fkConstraint.
*/
@java.lang.Override public int getFkConstraintValue() {
return fkConstraint_;
}
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The fkConstraint.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFkConstraint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(fkConstraint_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int DEFAULT_VALUES_FIELD_NUMBER = 6;
private int defaultValues_;
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The enum numeric value on the wire for defaultValues.
*/
@java.lang.Override public int getDefaultValuesValue() {
return defaultValues_;
}
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The defaultValues.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getDefaultValues() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(defaultValues_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int CONSTRAINT_FIELD_NUMBER = 7;
private int constraint_;
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The enum numeric value on the wire for constraint.
*/
@java.lang.Override public int getConstraintValue() {
return constraint_;
}
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The constraint.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getConstraint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(constraint_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int INDEX_FIELD_NUMBER = 8;
private int index_;
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The enum numeric value on the wire for index.
*/
@java.lang.Override public int getIndexValue() {
return index_;
}
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The index.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getIndex() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(index_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int VIEW_FIELD_NUMBER = 9;
private int view_;
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The view.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(view_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int MATERIALIZED_VIEW_FIELD_NUMBER = 17;
private int materializedView_;
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The enum numeric value on the wire for materializedView.
*/
@java.lang.Override public int getMaterializedViewValue() {
return materializedView_;
}
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The materializedView.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getMaterializedView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(materializedView_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int FUNCTION_FIELD_NUMBER = 10;
private int function_;
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The enum numeric value on the wire for function.
*/
@java.lang.Override public int getFunctionValue() {
return function_;
}
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The function.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFunction() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(function_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int TRIGGER_FIELD_NUMBER = 11;
private int trigger_;
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The enum numeric value on the wire for trigger.
*/
@java.lang.Override public int getTriggerValue() {
return trigger_;
}
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The trigger.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTrigger() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(trigger_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int TYPE_FIELD_NUMBER = 12;
private int type_;
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The type.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(type_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int RULE_FIELD_NUMBER = 13;
private int rule_;
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The rule.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getRule() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(rule_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int COLLATION_FIELD_NUMBER = 14;
private int collation_;
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The enum numeric value on the wire for collation.
*/
@java.lang.Override public int getCollationValue() {
return collation_;
}
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The collation.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCollation() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(collation_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int POLICY_FIELD_NUMBER = 15;
private int policy_;
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The enum numeric value on the wire for policy.
*/
@java.lang.Override public int getPolicyValue() {
return policy_;
}
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The policy.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(policy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
public static final int CAST_FIELD_NUMBER = 16;
private int cast_;
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The enum numeric value on the wire for cast.
*/
@java.lang.Override public int getCastValue() {
return cast_;
}
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The cast.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCast() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(cast_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.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 (sequence_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(1, sequence_);
}
if (sequenceOwnedBy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(2, sequenceOwnedBy_);
}
if (table_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(3, table_);
}
if (primaryKey_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(4, primaryKey_);
}
if (fkConstraint_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(5, fkConstraint_);
}
if (defaultValues_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(6, defaultValues_);
}
if (constraint_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(7, constraint_);
}
if (index_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(8, index_);
}
if (view_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(9, view_);
}
if (function_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(10, function_);
}
if (trigger_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(11, trigger_);
}
if (type_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(12, type_);
}
if (rule_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(13, rule_);
}
if (collation_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(14, collation_);
}
if (policy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(15, policy_);
}
if (cast_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(16, cast_);
}
if (materializedView_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(17, materializedView_);
}
if (sequenceSet_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
output.writeEnum(18, sequenceSet_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (sequence_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, sequence_);
}
if (sequenceOwnedBy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, sequenceOwnedBy_);
}
if (table_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, table_);
}
if (primaryKey_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, primaryKey_);
}
if (fkConstraint_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, fkConstraint_);
}
if (defaultValues_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, defaultValues_);
}
if (constraint_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, constraint_);
}
if (index_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(8, index_);
}
if (view_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(9, view_);
}
if (function_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(10, function_);
}
if (trigger_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(11, trigger_);
}
if (type_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(12, type_);
}
if (rule_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(13, rule_);
}
if (collation_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(14, collation_);
}
if (policy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, policy_);
}
if (cast_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(16, cast_);
}
if (materializedView_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(17, materializedView_);
}
if (sequenceSet_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.OBJECT_TRANSFER_STAGE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(18, sequenceSet_);
}
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.Postgres.PostgresObjectTransferSettings)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings other = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings) obj;
if (sequence_ != other.sequence_) return false;
if (sequenceOwnedBy_ != other.sequenceOwnedBy_) return false;
if (sequenceSet_ != other.sequenceSet_) return false;
if (table_ != other.table_) return false;
if (primaryKey_ != other.primaryKey_) return false;
if (fkConstraint_ != other.fkConstraint_) return false;
if (defaultValues_ != other.defaultValues_) return false;
if (constraint_ != other.constraint_) return false;
if (index_ != other.index_) return false;
if (view_ != other.view_) return false;
if (materializedView_ != other.materializedView_) return false;
if (function_ != other.function_) return false;
if (trigger_ != other.trigger_) return false;
if (type_ != other.type_) return false;
if (rule_ != other.rule_) return false;
if (collation_ != other.collation_) return false;
if (policy_ != other.policy_) return false;
if (cast_ != other.cast_) 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) + SEQUENCE_FIELD_NUMBER;
hash = (53 * hash) + sequence_;
hash = (37 * hash) + SEQUENCE_OWNED_BY_FIELD_NUMBER;
hash = (53 * hash) + sequenceOwnedBy_;
hash = (37 * hash) + SEQUENCE_SET_FIELD_NUMBER;
hash = (53 * hash) + sequenceSet_;
hash = (37 * hash) + TABLE_FIELD_NUMBER;
hash = (53 * hash) + table_;
hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER;
hash = (53 * hash) + primaryKey_;
hash = (37 * hash) + FK_CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + fkConstraint_;
hash = (37 * hash) + DEFAULT_VALUES_FIELD_NUMBER;
hash = (53 * hash) + defaultValues_;
hash = (37 * hash) + CONSTRAINT_FIELD_NUMBER;
hash = (53 * hash) + constraint_;
hash = (37 * hash) + INDEX_FIELD_NUMBER;
hash = (53 * hash) + index_;
hash = (37 * hash) + VIEW_FIELD_NUMBER;
hash = (53 * hash) + view_;
hash = (37 * hash) + MATERIALIZED_VIEW_FIELD_NUMBER;
hash = (53 * hash) + materializedView_;
hash = (37 * hash) + FUNCTION_FIELD_NUMBER;
hash = (53 * hash) + function_;
hash = (37 * hash) + TRIGGER_FIELD_NUMBER;
hash = (53 * hash) + trigger_;
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
hash = (37 * hash) + RULE_FIELD_NUMBER;
hash = (53 * hash) + rule_;
hash = (37 * hash) + COLLATION_FIELD_NUMBER;
hash = (53 * hash) + collation_;
hash = (37 * hash) + POLICY_FIELD_NUMBER;
hash = (53 * hash) + policy_;
hash = (37 * hash) + CAST_FIELD_NUMBER;
hash = (53 * hash) + cast_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.Postgres.PostgresObjectTransferSettings 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.PostgresObjectTransferSettings}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings)
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.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();
sequence_ = 0;
sequenceOwnedBy_ = 0;
sequenceSet_ = 0;
table_ = 0;
primaryKey_ = 0;
fkConstraint_ = 0;
defaultValues_ = 0;
constraint_ = 0;
index_ = 0;
view_ = 0;
materializedView_ = 0;
function_ = 0;
trigger_ = 0;
type_ = 0;
rule_ = 0;
collation_ = 0;
policy_ = 0;
cast_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings build() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings result = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings(this);
result.sequence_ = sequence_;
result.sequenceOwnedBy_ = sequenceOwnedBy_;
result.sequenceSet_ = sequenceSet_;
result.table_ = table_;
result.primaryKey_ = primaryKey_;
result.fkConstraint_ = fkConstraint_;
result.defaultValues_ = defaultValues_;
result.constraint_ = constraint_;
result.index_ = index_;
result.view_ = view_;
result.materializedView_ = materializedView_;
result.function_ = function_;
result.trigger_ = trigger_;
result.type_ = type_;
result.rule_ = rule_;
result.collation_ = collation_;
result.policy_ = policy_;
result.cast_ = cast_;
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.Postgres.PostgresObjectTransferSettings) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.getDefaultInstance()) return this;
if (other.sequence_ != 0) {
setSequenceValue(other.getSequenceValue());
}
if (other.sequenceOwnedBy_ != 0) {
setSequenceOwnedByValue(other.getSequenceOwnedByValue());
}
if (other.sequenceSet_ != 0) {
setSequenceSetValue(other.getSequenceSetValue());
}
if (other.table_ != 0) {
setTableValue(other.getTableValue());
}
if (other.primaryKey_ != 0) {
setPrimaryKeyValue(other.getPrimaryKeyValue());
}
if (other.fkConstraint_ != 0) {
setFkConstraintValue(other.getFkConstraintValue());
}
if (other.defaultValues_ != 0) {
setDefaultValuesValue(other.getDefaultValuesValue());
}
if (other.constraint_ != 0) {
setConstraintValue(other.getConstraintValue());
}
if (other.index_ != 0) {
setIndexValue(other.getIndexValue());
}
if (other.view_ != 0) {
setViewValue(other.getViewValue());
}
if (other.materializedView_ != 0) {
setMaterializedViewValue(other.getMaterializedViewValue());
}
if (other.function_ != 0) {
setFunctionValue(other.getFunctionValue());
}
if (other.trigger_ != 0) {
setTriggerValue(other.getTriggerValue());
}
if (other.type_ != 0) {
setTypeValue(other.getTypeValue());
}
if (other.rule_ != 0) {
setRuleValue(other.getRuleValue());
}
if (other.collation_ != 0) {
setCollationValue(other.getCollationValue());
}
if (other.policy_ != 0) {
setPolicyValue(other.getPolicyValue());
}
if (other.cast_ != 0) {
setCastValue(other.getCastValue());
}
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.Postgres.PostgresObjectTransferSettings parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int sequence_ = 0;
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The enum numeric value on the wire for sequence.
*/
@java.lang.Override public int getSequenceValue() {
return sequence_;
}
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @param value The enum numeric value on the wire for sequence to set.
* @return This builder for chaining.
*/
public Builder setSequenceValue(int value) {
sequence_ = value;
onChanged();
return this;
}
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return The sequence.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequence() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequence_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @param value The sequence to set.
* @return This builder for chaining.
*/
public Builder setSequence(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
sequence_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Sequences
*
* CREATE SEQUENCE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence = 1;
* @return This builder for chaining.
*/
public Builder clearSequence() {
sequence_ = 0;
onChanged();
return this;
}
private int sequenceOwnedBy_ = 0;
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The enum numeric value on the wire for sequenceOwnedBy.
*/
@java.lang.Override public int getSequenceOwnedByValue() {
return sequenceOwnedBy_;
}
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @param value The enum numeric value on the wire for sequenceOwnedBy to set.
* @return This builder for chaining.
*/
public Builder setSequenceOwnedByValue(int value) {
sequenceOwnedBy_ = value;
onChanged();
return this;
}
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return The sequenceOwnedBy.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceOwnedBy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequenceOwnedBy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @param value The sequenceOwnedBy to set.
* @return This builder for chaining.
*/
public Builder setSequenceOwnedBy(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
sequenceOwnedBy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Owned sequences
*
* CREATE SEQUENCE ... OWNED BY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_owned_by = 2;
* @return This builder for chaining.
*/
public Builder clearSequenceOwnedBy() {
sequenceOwnedBy_ = 0;
onChanged();
return this;
}
private int sequenceSet_ = 0;
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The enum numeric value on the wire for sequenceSet.
*/
@java.lang.Override public int getSequenceSetValue() {
return sequenceSet_;
}
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @param value The enum numeric value on the wire for sequenceSet to set.
* @return This builder for chaining.
*/
public Builder setSequenceSetValue(int value) {
sequenceSet_ = value;
onChanged();
return this;
}
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return The sequenceSet.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getSequenceSet() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(sequenceSet_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @param value The sequenceSet to set.
* @return This builder for chaining.
*/
public Builder setSequenceSet(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
sequenceSet_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage sequence_set = 18;
* @return This builder for chaining.
*/
public Builder clearSequenceSet() {
sequenceSet_ = 0;
onChanged();
return this;
}
private int table_ = 0;
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The enum numeric value on the wire for table.
*/
@java.lang.Override public int getTableValue() {
return table_;
}
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @param value The enum numeric value on the wire for table to set.
* @return This builder for chaining.
*/
public Builder setTableValue(int value) {
table_ = value;
onChanged();
return this;
}
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return The table.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTable() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(table_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @param value The table to set.
* @return This builder for chaining.
*/
public Builder setTable(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
table_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Tables
*
* CREATE TABLE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage table = 3;
* @return This builder for chaining.
*/
public Builder clearTable() {
table_ = 0;
onChanged();
return this;
}
private int primaryKey_ = 0;
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The enum numeric value on the wire for primaryKey.
*/
@java.lang.Override public int getPrimaryKeyValue() {
return primaryKey_;
}
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @param value The enum numeric value on the wire for primaryKey to set.
* @return This builder for chaining.
*/
public Builder setPrimaryKeyValue(int value) {
primaryKey_ = value;
onChanged();
return this;
}
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return The primaryKey.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPrimaryKey() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(primaryKey_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @param value The primaryKey to set.
* @return This builder for chaining.
*/
public Builder setPrimaryKey(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
primaryKey_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Primary keys
*
* ALTER TABLE ... ADD PRIMARY KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage primary_key = 4;
* @return This builder for chaining.
*/
public Builder clearPrimaryKey() {
primaryKey_ = 0;
onChanged();
return this;
}
private int fkConstraint_ = 0;
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The enum numeric value on the wire for fkConstraint.
*/
@java.lang.Override public int getFkConstraintValue() {
return fkConstraint_;
}
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @param value The enum numeric value on the wire for fkConstraint to set.
* @return This builder for chaining.
*/
public Builder setFkConstraintValue(int value) {
fkConstraint_ = value;
onChanged();
return this;
}
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return The fkConstraint.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFkConstraint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(fkConstraint_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @param value The fkConstraint to set.
* @return This builder for chaining.
*/
public Builder setFkConstraint(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
fkConstraint_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Foreign keys
*
* ALTER TABLE ... ADD FOREIGN KEY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage fk_constraint = 5;
* @return This builder for chaining.
*/
public Builder clearFkConstraint() {
fkConstraint_ = 0;
onChanged();
return this;
}
private int defaultValues_ = 0;
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The enum numeric value on the wire for defaultValues.
*/
@java.lang.Override public int getDefaultValuesValue() {
return defaultValues_;
}
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @param value The enum numeric value on the wire for defaultValues to set.
* @return This builder for chaining.
*/
public Builder setDefaultValuesValue(int value) {
defaultValues_ = value;
onChanged();
return this;
}
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return The defaultValues.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getDefaultValues() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(defaultValues_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @param value The defaultValues to set.
* @return This builder for chaining.
*/
public Builder setDefaultValues(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
defaultValues_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Default values
*
* ALTER TABLE ... ALTER COLUMN ... SET DEFAULT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage default_values = 6;
* @return This builder for chaining.
*/
public Builder clearDefaultValues() {
defaultValues_ = 0;
onChanged();
return this;
}
private int constraint_ = 0;
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The enum numeric value on the wire for constraint.
*/
@java.lang.Override public int getConstraintValue() {
return constraint_;
}
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @param value The enum numeric value on the wire for constraint to set.
* @return This builder for chaining.
*/
public Builder setConstraintValue(int value) {
constraint_ = value;
onChanged();
return this;
}
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return The constraint.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getConstraint() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(constraint_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @param value The constraint to set.
* @return This builder for chaining.
*/
public Builder setConstraint(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
constraint_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Constraints
*
* ALTER TABLE ... ADD CONSTRAINT ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage constraint = 7;
* @return This builder for chaining.
*/
public Builder clearConstraint() {
constraint_ = 0;
onChanged();
return this;
}
private int index_ = 0;
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The enum numeric value on the wire for index.
*/
@java.lang.Override public int getIndexValue() {
return index_;
}
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @param value The enum numeric value on the wire for index to set.
* @return This builder for chaining.
*/
public Builder setIndexValue(int value) {
index_ = value;
onChanged();
return this;
}
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return The index.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getIndex() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(index_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @param value The index to set.
* @return This builder for chaining.
*/
public Builder setIndex(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
index_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Indexes
*
* CREATE INDEX ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage index = 8;
* @return This builder for chaining.
*/
public Builder clearIndex() {
index_ = 0;
onChanged();
return this;
}
private int view_ = 0;
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The enum numeric value on the wire for view.
*/
@java.lang.Override public int getViewValue() {
return view_;
}
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @param value The enum numeric value on the wire for view to set.
* @return This builder for chaining.
*/
public Builder setViewValue(int value) {
view_ = value;
onChanged();
return this;
}
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return The view.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(view_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @param value The view to set.
* @return This builder for chaining.
*/
public Builder setView(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
view_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Views
*
* CREATE VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage view = 9;
* @return This builder for chaining.
*/
public Builder clearView() {
view_ = 0;
onChanged();
return this;
}
private int materializedView_ = 0;
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The enum numeric value on the wire for materializedView.
*/
@java.lang.Override public int getMaterializedViewValue() {
return materializedView_;
}
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @param value The enum numeric value on the wire for materializedView to set.
* @return This builder for chaining.
*/
public Builder setMaterializedViewValue(int value) {
materializedView_ = value;
onChanged();
return this;
}
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return The materializedView.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getMaterializedView() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(materializedView_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @param value The materializedView to set.
* @return This builder for chaining.
*/
public Builder setMaterializedView(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
materializedView_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Materialized views
*
* CREATE MATERIALIZED VIEW ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage materialized_view = 17;
* @return This builder for chaining.
*/
public Builder clearMaterializedView() {
materializedView_ = 0;
onChanged();
return this;
}
private int function_ = 0;
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The enum numeric value on the wire for function.
*/
@java.lang.Override public int getFunctionValue() {
return function_;
}
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @param value The enum numeric value on the wire for function to set.
* @return This builder for chaining.
*/
public Builder setFunctionValue(int value) {
function_ = value;
onChanged();
return this;
}
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return The function.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getFunction() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(function_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @param value The function to set.
* @return This builder for chaining.
*/
public Builder setFunction(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
function_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Functions
*
* CREATE FUNCTION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage function = 10;
* @return This builder for chaining.
*/
public Builder clearFunction() {
function_ = 0;
onChanged();
return this;
}
private int trigger_ = 0;
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The enum numeric value on the wire for trigger.
*/
@java.lang.Override public int getTriggerValue() {
return trigger_;
}
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @param value The enum numeric value on the wire for trigger to set.
* @return This builder for chaining.
*/
public Builder setTriggerValue(int value) {
trigger_ = value;
onChanged();
return this;
}
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return The trigger.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getTrigger() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(trigger_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @param value The trigger to set.
* @return This builder for chaining.
*/
public Builder setTrigger(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
trigger_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Triggers
*
* CREATE TRIGGER ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage trigger = 11;
* @return This builder for chaining.
*/
public Builder clearTrigger() {
trigger_ = 0;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The enum numeric value on the wire for type.
*/
@java.lang.Override public int getTypeValue() {
return type_;
}
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @param value The enum numeric value on the wire for type to set.
* @return This builder for chaining.
*/
public Builder setTypeValue(int value) {
type_ = value;
onChanged();
return this;
}
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return The type.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getType() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(type_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Types
*
* CREATE TYPE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage type = 12;
* @return This builder for chaining.
*/
public Builder clearType() {
type_ = 0;
onChanged();
return this;
}
private int rule_ = 0;
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @param value The enum numeric value on the wire for rule to set.
* @return This builder for chaining.
*/
public Builder setRuleValue(int value) {
rule_ = value;
onChanged();
return this;
}
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return The rule.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getRule() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(rule_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @param value The rule to set.
* @return This builder for chaining.
*/
public Builder setRule(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
rule_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Rules
*
* CREATE RULE ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage rule = 13;
* @return This builder for chaining.
*/
public Builder clearRule() {
rule_ = 0;
onChanged();
return this;
}
private int collation_ = 0;
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The enum numeric value on the wire for collation.
*/
@java.lang.Override public int getCollationValue() {
return collation_;
}
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @param value The enum numeric value on the wire for collation to set.
* @return This builder for chaining.
*/
public Builder setCollationValue(int value) {
collation_ = value;
onChanged();
return this;
}
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return The collation.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCollation() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(collation_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @param value The collation to set.
* @return This builder for chaining.
*/
public Builder setCollation(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
collation_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Collations
*
* CREATE COLLATION ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage collation = 14;
* @return This builder for chaining.
*/
public Builder clearCollation() {
collation_ = 0;
onChanged();
return this;
}
private int policy_ = 0;
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The enum numeric value on the wire for policy.
*/
@java.lang.Override public int getPolicyValue() {
return policy_;
}
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @param value The enum numeric value on the wire for policy to set.
* @return This builder for chaining.
*/
public Builder setPolicyValue(int value) {
policy_ = value;
onChanged();
return this;
}
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return The policy.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(policy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @param value The policy to set.
* @return This builder for chaining.
*/
public Builder setPolicy(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
policy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Policies
*
* CREATE POLICY ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage policy = 15;
* @return This builder for chaining.
*/
public Builder clearPolicy() {
policy_ = 0;
onChanged();
return this;
}
private int cast_ = 0;
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The enum numeric value on the wire for cast.
*/
@java.lang.Override public int getCastValue() {
return cast_;
}
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @param value The enum numeric value on the wire for cast to set.
* @return This builder for chaining.
*/
public Builder setCastValue(int value) {
cast_ = value;
onChanged();
return this;
}
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return The cast.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage getCast() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage result = yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.valueOf(cast_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage.UNRECOGNIZED : result;
}
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @param value The cast to set.
* @return This builder for chaining.
*/
public Builder setCast(yandex.cloud.api.datatransfer.v1.endpoint.Common.ObjectTransferStage value) {
if (value == null) {
throw new NullPointerException();
}
cast_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Casts
*
* CREATE CAST ...
*
*
* .yandex.cloud.datatransfer.v1.endpoint.ObjectTransferStage cast = 16;
* @return This builder for chaining.
*/
public Builder clearCast() {
cast_ = 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.PostgresObjectTransferSettings)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostgresObjectTransferSettings parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostgresObjectTransferSettings(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.Postgres.PostgresObjectTransferSettings getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface OnPremisePostgresOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres)
com.google.protobuf.MessageOrBuilder {
/**
* repeated string hosts = 5;
* @return A list containing the hosts.
*/
java.util.List
getHostsList();
/**
* repeated string hosts = 5;
* @return The count of hosts.
*/
int getHostsCount();
/**
* repeated string hosts = 5;
* @param index The index of the element to return.
* @return The hosts at the given index.
*/
java.lang.String getHosts(int index);
/**
* repeated string hosts = 5;
* @param index The index of the value to return.
* @return The bytes of the hosts at the given index.
*/
com.google.protobuf.ByteString
getHostsBytes(int index);
/**
*
* Will be used if the cluster ID is not specified.
*
*
* int64 port = 2;
* @return The port.
*/
long getPort();
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return Whether the tlsMode field is set.
*/
boolean hasTlsMode();
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return The tlsMode.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode();
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder();
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 4;
* @return The subnetId.
*/
java.lang.String getSubnetId();
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 4;
* @return The bytes for subnetId.
*/
com.google.protobuf.ByteString
getSubnetIdBytes();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres}
*/
public static final class OnPremisePostgres extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres)
OnPremisePostgresOrBuilder {
private static final long serialVersionUID = 0L;
// Use OnPremisePostgres.newBuilder() to construct.
private OnPremisePostgres(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private OnPremisePostgres() {
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
subnetId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OnPremisePostgres();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private OnPremisePostgres(
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 16: {
port_ = input.readInt64();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
subnetId_ = s;
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
hosts_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
hosts_.add(s);
break;
}
case 50: {
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder subBuilder = null;
if (tlsMode_ != null) {
subBuilder = tlsMode_.toBuilder();
}
tlsMode_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(tlsMode_);
tlsMode_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
hosts_ = hosts_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder.class);
}
public static final int HOSTS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList hosts_;
/**
* repeated string hosts = 5;
* @return A list containing the hosts.
*/
public com.google.protobuf.ProtocolStringList
getHostsList() {
return hosts_;
}
/**
* repeated string hosts = 5;
* @return The count of hosts.
*/
public int getHostsCount() {
return hosts_.size();
}
/**
* repeated string hosts = 5;
* @param index The index of the element to return.
* @return The hosts at the given index.
*/
public java.lang.String getHosts(int index) {
return hosts_.get(index);
}
/**
* repeated string hosts = 5;
* @param index The index of the value to return.
* @return The bytes of the hosts at the given index.
*/
public com.google.protobuf.ByteString
getHostsBytes(int index) {
return hosts_.getByteString(index);
}
public static final int PORT_FIELD_NUMBER = 2;
private long port_;
/**
*
* Will be used if the cluster ID is not specified.
*
*
* int64 port = 2;
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
public static final int TLS_MODE_FIELD_NUMBER = 6;
private yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode tlsMode_;
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return Whether the tlsMode field is set.
*/
@java.lang.Override
public boolean hasTlsMode() {
return tlsMode_ != null;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return The tlsMode.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode() {
return tlsMode_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder() {
return getTlsMode();
}
public static final int SUBNET_ID_FIELD_NUMBER = 4;
private volatile java.lang.Object subnetId_;
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 4;
* @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 = 4;
* @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;
}
}
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 (port_ != 0L) {
output.writeInt64(2, port_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subnetId_);
}
for (int i = 0; i < hosts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hosts_.getRaw(i));
}
if (tlsMode_ != null) {
output.writeMessage(6, getTlsMode());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (port_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(2, port_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subnetId_);
}
{
int dataSize = 0;
for (int i = 0; i < hosts_.size(); i++) {
dataSize += computeStringSizeNoTag(hosts_.getRaw(i));
}
size += dataSize;
size += 1 * getHostsList().size();
}
if (tlsMode_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getTlsMode());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres other = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) obj;
if (!getHostsList()
.equals(other.getHostsList())) return false;
if (getPort()
!= other.getPort()) return false;
if (hasTlsMode() != other.hasTlsMode()) return false;
if (hasTlsMode()) {
if (!getTlsMode()
.equals(other.getTlsMode())) return false;
}
if (!getSubnetId()
.equals(other.getSubnetId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getHostsCount() > 0) {
hash = (37 * hash) + HOSTS_FIELD_NUMBER;
hash = (53 * hash) + getHostsList().hashCode();
}
hash = (37 * hash) + PORT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getPort());
if (hasTlsMode()) {
hash = (37 * hash) + TLS_MODE_FIELD_NUMBER;
hash = (53 * hash) + getTlsMode().hashCode();
}
hash = (37 * hash) + SUBNET_ID_FIELD_NUMBER;
hash = (53 * hash) + getSubnetId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.Postgres.OnPremisePostgres 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.OnPremisePostgres}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres)
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
port_ = 0L;
if (tlsModeBuilder_ == null) {
tlsMode_ = null;
} else {
tlsMode_ = null;
tlsModeBuilder_ = null;
}
subnetId_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres build() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres result = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
hosts_ = hosts_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.hosts_ = hosts_;
result.port_ = port_;
if (tlsModeBuilder_ == null) {
result.tlsMode_ = tlsMode_;
} else {
result.tlsMode_ = tlsModeBuilder_.build();
}
result.subnetId_ = subnetId_;
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.Postgres.OnPremisePostgres) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance()) return this;
if (!other.hosts_.isEmpty()) {
if (hosts_.isEmpty()) {
hosts_ = other.hosts_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHostsIsMutable();
hosts_.addAll(other.hosts_);
}
onChanged();
}
if (other.getPort() != 0L) {
setPort(other.getPort());
}
if (other.hasTlsMode()) {
mergeTlsMode(other.getTlsMode());
}
if (!other.getSubnetId().isEmpty()) {
subnetId_ = other.subnetId_;
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.Postgres.OnPremisePostgres parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringList hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureHostsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
hosts_ = new com.google.protobuf.LazyStringArrayList(hosts_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string hosts = 5;
* @return A list containing the hosts.
*/
public com.google.protobuf.ProtocolStringList
getHostsList() {
return hosts_.getUnmodifiableView();
}
/**
* repeated string hosts = 5;
* @return The count of hosts.
*/
public int getHostsCount() {
return hosts_.size();
}
/**
* repeated string hosts = 5;
* @param index The index of the element to return.
* @return The hosts at the given index.
*/
public java.lang.String getHosts(int index) {
return hosts_.get(index);
}
/**
* repeated string hosts = 5;
* @param index The index of the value to return.
* @return The bytes of the hosts at the given index.
*/
public com.google.protobuf.ByteString
getHostsBytes(int index) {
return hosts_.getByteString(index);
}
/**
* repeated string hosts = 5;
* @param index The index to set the value at.
* @param value The hosts to set.
* @return This builder for chaining.
*/
public Builder setHosts(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.set(index, value);
onChanged();
return this;
}
/**
* repeated string hosts = 5;
* @param value The hosts to add.
* @return This builder for chaining.
*/
public Builder addHosts(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureHostsIsMutable();
hosts_.add(value);
onChanged();
return this;
}
/**
* repeated string hosts = 5;
* @param values The hosts to add.
* @return This builder for chaining.
*/
public Builder addAllHosts(
java.lang.Iterable values) {
ensureHostsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, hosts_);
onChanged();
return this;
}
/**
* repeated string hosts = 5;
* @return This builder for chaining.
*/
public Builder clearHosts() {
hosts_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string hosts = 5;
* @param value The bytes of the hosts to add.
* @return This builder for chaining.
*/
public Builder addHostsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureHostsIsMutable();
hosts_.add(value);
onChanged();
return this;
}
private long port_ ;
/**
*
* Will be used if the cluster ID is not specified.
*
*
* int64 port = 2;
* @return The port.
*/
@java.lang.Override
public long getPort() {
return port_;
}
/**
*
* Will be used if the cluster ID is not specified.
*
*
* int64 port = 2;
* @param value The port to set.
* @return This builder for chaining.
*/
public Builder setPort(long value) {
port_ = value;
onChanged();
return this;
}
/**
*
* Will be used if the cluster ID is not specified.
*
*
* int64 port = 2;
* @return This builder for chaining.
*/
public Builder clearPort() {
port_ = 0L;
onChanged();
return this;
}
private yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode tlsMode_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder> tlsModeBuilder_;
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return Whether the tlsMode field is set.
*/
public boolean hasTlsMode() {
return tlsModeBuilder_ != null || tlsMode_ != null;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
* @return The tlsMode.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode getTlsMode() {
if (tlsModeBuilder_ == null) {
return tlsMode_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
} else {
return tlsModeBuilder_.getMessage();
}
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public Builder setTlsMode(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode value) {
if (tlsModeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
tlsMode_ = value;
onChanged();
} else {
tlsModeBuilder_.setMessage(value);
}
return this;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public Builder setTlsMode(
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder builderForValue) {
if (tlsModeBuilder_ == null) {
tlsMode_ = builderForValue.build();
onChanged();
} else {
tlsModeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public Builder mergeTlsMode(yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode value) {
if (tlsModeBuilder_ == null) {
if (tlsMode_ != null) {
tlsMode_ =
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.newBuilder(tlsMode_).mergeFrom(value).buildPartial();
} else {
tlsMode_ = value;
}
onChanged();
} else {
tlsModeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public Builder clearTlsMode() {
if (tlsModeBuilder_ == null) {
tlsMode_ = null;
onChanged();
} else {
tlsMode_ = null;
tlsModeBuilder_ = null;
}
return this;
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder getTlsModeBuilder() {
onChanged();
return getTlsModeFieldBuilder().getBuilder();
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder getTlsModeOrBuilder() {
if (tlsModeBuilder_ != null) {
return tlsModeBuilder_.getMessageOrBuilder();
} else {
return tlsMode_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.getDefaultInstance() : tlsMode_;
}
}
/**
*
* TLS settings for server connection. Disabled by default.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.TLSMode tls_mode = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder>
getTlsModeFieldBuilder() {
if (tlsModeBuilder_ == null) {
tlsModeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSMode.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.TLSModeOrBuilder>(
getTlsMode(),
getParentForChildren(),
isClean());
tlsMode_ = null;
}
return tlsModeBuilder_;
}
private java.lang.Object subnetId_ = "";
/**
*
* Network interface for endpoint. If none will assume public ipv4
*
*
* string subnet_id = 4;
* @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 = 4;
* @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 = 4;
* @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 = 4;
* @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 = 4;
* @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;
}
@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.OnPremisePostgres)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public OnPremisePostgres parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new OnPremisePostgres(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.Postgres.OnPremisePostgres getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PostgresConnectionOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.PostgresConnection)
com.google.protobuf.MessageOrBuilder {
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return Whether the mdbClusterId field is set.
*/
boolean hasMdbClusterId();
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The mdbClusterId.
*/
java.lang.String getMdbClusterId();
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The bytes for mdbClusterId.
*/
com.google.protobuf.ByteString
getMdbClusterIdBytes();
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return Whether the onPremise field is set.
*/
boolean hasOnPremise();
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return The onPremise.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres getOnPremise();
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder getOnPremiseOrBuilder();
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.ConnectionCase getConnectionCase();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.PostgresConnection}
*/
public static final class PostgresConnection extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresConnection)
PostgresConnectionOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostgresConnection.newBuilder() to construct.
private PostgresConnection(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostgresConnection() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostgresConnection();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostgresConnection(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
connectionCase_ = 1;
connection_ = s;
break;
}
case 18: {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder subBuilder = null;
if (connectionCase_ == 2) {
subBuilder = ((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_).toBuilder();
}
connection_ =
input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_);
connection_ = subBuilder.buildPartial();
}
connectionCase_ = 2;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder.class);
}
private int connectionCase_ = 0;
private java.lang.Object connection_;
public enum ConnectionCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
MDB_CLUSTER_ID(1),
ON_PREMISE(2),
CONNECTION_NOT_SET(0);
private final int value;
private ConnectionCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static ConnectionCase valueOf(int value) {
return forNumber(value);
}
public static ConnectionCase forNumber(int value) {
switch (value) {
case 1: return MDB_CLUSTER_ID;
case 2: return ON_PREMISE;
case 0: return CONNECTION_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public ConnectionCase
getConnectionCase() {
return ConnectionCase.forNumber(
connectionCase_);
}
public static final int MDB_CLUSTER_ID_FIELD_NUMBER = 1;
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return Whether the mdbClusterId field is set.
*/
public boolean hasMdbClusterId() {
return connectionCase_ == 1;
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The mdbClusterId.
*/
public java.lang.String getMdbClusterId() {
java.lang.Object ref = "";
if (connectionCase_ == 1) {
ref = connection_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (connectionCase_ == 1) {
connection_ = s;
}
return s;
}
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The bytes for mdbClusterId.
*/
public com.google.protobuf.ByteString
getMdbClusterIdBytes() {
java.lang.Object ref = "";
if (connectionCase_ == 1) {
ref = connection_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (connectionCase_ == 1) {
connection_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ON_PREMISE_FIELD_NUMBER = 2;
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return Whether the onPremise field is set.
*/
@java.lang.Override
public boolean hasOnPremise() {
return connectionCase_ == 2;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return The onPremise.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres getOnPremise() {
if (connectionCase_ == 2) {
return (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_;
}
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder getOnPremiseOrBuilder() {
if (connectionCase_ == 2) {
return (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_;
}
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (connectionCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connection_);
}
if (connectionCase_ == 2) {
output.writeMessage(2, (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (connectionCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connection_);
}
if (connectionCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection other = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection) obj;
if (!getConnectionCase().equals(other.getConnectionCase())) return false;
switch (connectionCase_) {
case 1:
if (!getMdbClusterId()
.equals(other.getMdbClusterId())) return false;
break;
case 2:
if (!getOnPremise()
.equals(other.getOnPremise())) return false;
break;
case 0:
default:
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (connectionCase_) {
case 1:
hash = (37 * hash) + MDB_CLUSTER_ID_FIELD_NUMBER;
hash = (53 * hash) + getMdbClusterId().hashCode();
break;
case 2:
hash = (37 * hash) + ON_PREMISE_FIELD_NUMBER;
hash = (53 * hash) + getOnPremise().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection 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.Postgres.PostgresConnection parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection 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.Postgres.PostgresConnection parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.Postgres.PostgresConnection 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.PostgresConnection}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresConnection)
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
connectionCase_ = 0;
connection_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection build() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection result = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection(this);
if (connectionCase_ == 1) {
result.connection_ = connection_;
}
if (connectionCase_ == 2) {
if (onPremiseBuilder_ == null) {
result.connection_ = connection_;
} else {
result.connection_ = onPremiseBuilder_.build();
}
}
result.connectionCase_ = connectionCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance()) return this;
switch (other.getConnectionCase()) {
case MDB_CLUSTER_ID: {
connectionCase_ = 1;
connection_ = other.connection_;
onChanged();
break;
}
case ON_PREMISE: {
mergeOnPremise(other.getOnPremise());
break;
}
case CONNECTION_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int connectionCase_ = 0;
private java.lang.Object connection_;
public ConnectionCase
getConnectionCase() {
return ConnectionCase.forNumber(
connectionCase_);
}
public Builder clearConnection() {
connectionCase_ = 0;
connection_ = null;
onChanged();
return this;
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return Whether the mdbClusterId field is set.
*/
@java.lang.Override
public boolean hasMdbClusterId() {
return connectionCase_ == 1;
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The mdbClusterId.
*/
@java.lang.Override
public java.lang.String getMdbClusterId() {
java.lang.Object ref = "";
if (connectionCase_ == 1) {
ref = connection_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (connectionCase_ == 1) {
connection_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return The bytes for mdbClusterId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMdbClusterIdBytes() {
java.lang.Object ref = "";
if (connectionCase_ == 1) {
ref = connection_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (connectionCase_ == 1) {
connection_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @param value The mdbClusterId to set.
* @return This builder for chaining.
*/
public Builder setMdbClusterId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
connectionCase_ = 1;
connection_ = value;
onChanged();
return this;
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @return This builder for chaining.
*/
public Builder clearMdbClusterId() {
if (connectionCase_ == 1) {
connectionCase_ = 0;
connection_ = null;
onChanged();
}
return this;
}
/**
*
* Managed Service for PostgreSQL cluster ID
*
*
* string mdb_cluster_id = 1;
* @param value The bytes for mdbClusterId to set.
* @return This builder for chaining.
*/
public Builder setMdbClusterIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
connectionCase_ = 1;
connection_ = value;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder> onPremiseBuilder_;
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return Whether the onPremise field is set.
*/
@java.lang.Override
public boolean hasOnPremise() {
return connectionCase_ == 2;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
* @return The onPremise.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres getOnPremise() {
if (onPremiseBuilder_ == null) {
if (connectionCase_ == 2) {
return (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_;
}
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
} else {
if (connectionCase_ == 2) {
return onPremiseBuilder_.getMessage();
}
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
public Builder setOnPremise(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres value) {
if (onPremiseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connection_ = value;
onChanged();
} else {
onPremiseBuilder_.setMessage(value);
}
connectionCase_ = 2;
return this;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
public Builder setOnPremise(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder builderForValue) {
if (onPremiseBuilder_ == null) {
connection_ = builderForValue.build();
onChanged();
} else {
onPremiseBuilder_.setMessage(builderForValue.build());
}
connectionCase_ = 2;
return this;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
public Builder mergeOnPremise(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres value) {
if (onPremiseBuilder_ == null) {
if (connectionCase_ == 2 &&
connection_ != yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance()) {
connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.newBuilder((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_)
.mergeFrom(value).buildPartial();
} else {
connection_ = value;
}
onChanged();
} else {
if (connectionCase_ == 2) {
onPremiseBuilder_.mergeFrom(value);
}
onPremiseBuilder_.setMessage(value);
}
connectionCase_ = 2;
return this;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
public Builder clearOnPremise() {
if (onPremiseBuilder_ == null) {
if (connectionCase_ == 2) {
connectionCase_ = 0;
connection_ = null;
onChanged();
}
} else {
if (connectionCase_ == 2) {
connectionCase_ = 0;
connection_ = null;
}
onPremiseBuilder_.clear();
}
return this;
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder getOnPremiseBuilder() {
return getOnPremiseFieldBuilder().getBuilder();
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder getOnPremiseOrBuilder() {
if ((connectionCase_ == 2) && (onPremiseBuilder_ != null)) {
return onPremiseBuilder_.getMessageOrBuilder();
} else {
if (connectionCase_ == 2) {
return (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_;
}
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
}
/**
*
* Connection options for on-premise PostgreSQL
*
*
* .yandex.cloud.datatransfer.v1.endpoint.OnPremisePostgres on_premise = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder>
getOnPremiseFieldBuilder() {
if (onPremiseBuilder_ == null) {
if (!(connectionCase_ == 2)) {
connection_ = yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.getDefaultInstance();
}
onPremiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgresOrBuilder>(
(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.OnPremisePostgres) connection_,
getParentForChildren(),
isClean());
connection_ = null;
}
connectionCase_ = 2;
onChanged();;
return onPremiseBuilder_;
}
@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.PostgresConnection)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.PostgresConnection)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostgresConnection parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostgresConnection(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.Postgres.PostgresConnection getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PostgresSourceOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.PostgresSource)
com.google.protobuf.MessageOrBuilder {
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
boolean hasConnection();
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection();
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder();
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @return A list containing the securityGroups.
*/
java.util.List
getSecurityGroupsList();
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @return The count of securityGroups.
*/
int getSecurityGroupsCount();
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @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 = 14;
* @param index The index of the value to return.
* @return The bytes of the securityGroups at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupsBytes(int index);
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
java.lang.String getDatabase();
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
java.lang.String getUser();
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
com.google.protobuf.ByteString
getUserBytes();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
boolean hasPassword();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder();
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return A list containing the includeTables.
*/
java.util.List
getIncludeTablesList();
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return The count of includeTables.
*/
int getIncludeTablesCount();
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the element to return.
* @return The includeTables at the given index.
*/
java.lang.String getIncludeTables(int index);
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the value to return.
* @return The bytes of the includeTables at the given index.
*/
com.google.protobuf.ByteString
getIncludeTablesBytes(int index);
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return A list containing the excludeTables.
*/
java.util.List
getExcludeTablesList();
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return The count of excludeTables.
*/
int getExcludeTablesCount();
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the element to return.
* @return The excludeTables at the given index.
*/
java.lang.String getExcludeTables(int index);
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the value to return.
* @return The bytes of the excludeTables at the given index.
*/
com.google.protobuf.ByteString
getExcludeTablesBytes(int index);
/**
*
* Maximum lag of replication slot (in bytes); after exceeding this limit
* replication will be aborted.
*
*
* int64 slot_byte_lag_limit = 8;
* @return The slotByteLagLimit.
*/
long getSlotByteLagLimit();
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The serviceSchema.
*/
java.lang.String getServiceSchema();
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The bytes for serviceSchema.
*/
com.google.protobuf.ByteString
getServiceSchemaBytes();
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return Whether the objectTransferSettings field is set.
*/
boolean hasObjectTransferSettings();
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return The objectTransferSettings.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings getObjectTransferSettings();
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder getObjectTransferSettingsOrBuilder();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.PostgresSource}
*/
public static final class PostgresSource extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresSource)
PostgresSourceOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostgresSource.newBuilder() to construct.
private PostgresSource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostgresSource() {
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
database_ = "";
user_ = "";
includeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
excludeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
serviceSchema_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostgresSource();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostgresSource(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder subBuilder = null;
if (connection_ != null) {
subBuilder = connection_.toBuilder();
}
connection_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connection_);
connection_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
database_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
user_ = s;
break;
}
case 34: {
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder subBuilder = null;
if (password_ != null) {
subBuilder = password_.toBuilder();
}
password_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(password_);
password_ = subBuilder.buildPartial();
}
break;
}
case 42: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
includeTables_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
includeTables_.add(s);
break;
}
case 50: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
excludeTables_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
excludeTables_.add(s);
break;
}
case 64: {
slotByteLagLimit_ = input.readInt64();
break;
}
case 74: {
java.lang.String s = input.readStringRequireUtf8();
serviceSchema_ = s;
break;
}
case 106: {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder subBuilder = null;
if (objectTransferSettings_ != null) {
subBuilder = objectTransferSettings_.toBuilder();
}
objectTransferSettings_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(objectTransferSettings_);
objectTransferSettings_ = subBuilder.buildPartial();
}
break;
}
case 114: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
securityGroups_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
securityGroups_.add(s);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
includeTables_ = includeTables_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
excludeTables_ = excludeTables_.getUnmodifiableView();
}
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.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.Builder.class);
}
public static final int CONNECTION_FIELD_NUMBER = 1;
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection connection_;
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
@java.lang.Override
public boolean hasConnection() {
return connection_ != null;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection() {
return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder() {
return getConnection();
}
public static final int SECURITY_GROUPS_FIELD_NUMBER = 14;
private com.google.protobuf.LazyStringList securityGroups_;
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_;
}
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @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 = 14;
* @param index The index of the value to return.
* @return The bytes of the securityGroups at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupsBytes(int index) {
return securityGroups_.getByteString(index);
}
public static final int DATABASE_FIELD_NUMBER = 2;
private volatile java.lang.Object database_;
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
@java.lang.Override
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
return s;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_FIELD_NUMBER = 3;
private volatile java.lang.Object user_;
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 4;
private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_;
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
@java.lang.Override
public boolean hasPassword() {
return password_ != null;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() {
return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() {
return getPassword();
}
public static final int INCLUDE_TABLES_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList includeTables_;
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return A list containing the includeTables.
*/
public com.google.protobuf.ProtocolStringList
getIncludeTablesList() {
return includeTables_;
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return The count of includeTables.
*/
public int getIncludeTablesCount() {
return includeTables_.size();
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the element to return.
* @return The includeTables at the given index.
*/
public java.lang.String getIncludeTables(int index) {
return includeTables_.get(index);
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the value to return.
* @return The bytes of the includeTables at the given index.
*/
public com.google.protobuf.ByteString
getIncludeTablesBytes(int index) {
return includeTables_.getByteString(index);
}
public static final int EXCLUDE_TABLES_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList excludeTables_;
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return A list containing the excludeTables.
*/
public com.google.protobuf.ProtocolStringList
getExcludeTablesList() {
return excludeTables_;
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return The count of excludeTables.
*/
public int getExcludeTablesCount() {
return excludeTables_.size();
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the element to return.
* @return The excludeTables at the given index.
*/
public java.lang.String getExcludeTables(int index) {
return excludeTables_.get(index);
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the value to return.
* @return The bytes of the excludeTables at the given index.
*/
public com.google.protobuf.ByteString
getExcludeTablesBytes(int index) {
return excludeTables_.getByteString(index);
}
public static final int SLOT_BYTE_LAG_LIMIT_FIELD_NUMBER = 8;
private long slotByteLagLimit_;
/**
*
* Maximum lag of replication slot (in bytes); after exceeding this limit
* replication will be aborted.
*
*
* int64 slot_byte_lag_limit = 8;
* @return The slotByteLagLimit.
*/
@java.lang.Override
public long getSlotByteLagLimit() {
return slotByteLagLimit_;
}
public static final int SERVICE_SCHEMA_FIELD_NUMBER = 9;
private volatile java.lang.Object serviceSchema_;
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The serviceSchema.
*/
@java.lang.Override
public java.lang.String getServiceSchema() {
java.lang.Object ref = serviceSchema_;
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();
serviceSchema_ = s;
return s;
}
}
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The bytes for serviceSchema.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getServiceSchemaBytes() {
java.lang.Object ref = serviceSchema_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OBJECT_TRANSFER_SETTINGS_FIELD_NUMBER = 13;
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings objectTransferSettings_;
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return Whether the objectTransferSettings field is set.
*/
@java.lang.Override
public boolean hasObjectTransferSettings() {
return objectTransferSettings_ != null;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return The objectTransferSettings.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings getObjectTransferSettings() {
return objectTransferSettings_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.getDefaultInstance() : objectTransferSettings_;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder getObjectTransferSettingsOrBuilder() {
return getObjectTransferSettings();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (connection_ != null) {
output.writeMessage(1, getConnection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_);
}
if (password_ != null) {
output.writeMessage(4, getPassword());
}
for (int i = 0; i < includeTables_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, includeTables_.getRaw(i));
}
for (int i = 0; i < excludeTables_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, excludeTables_.getRaw(i));
}
if (slotByteLagLimit_ != 0L) {
output.writeInt64(8, slotByteLagLimit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceSchema_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, serviceSchema_);
}
if (objectTransferSettings_ != null) {
output.writeMessage(13, getObjectTransferSettings());
}
for (int i = 0; i < securityGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, securityGroups_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (connection_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConnection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_);
}
if (password_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPassword());
}
{
int dataSize = 0;
for (int i = 0; i < includeTables_.size(); i++) {
dataSize += computeStringSizeNoTag(includeTables_.getRaw(i));
}
size += dataSize;
size += 1 * getIncludeTablesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < excludeTables_.size(); i++) {
dataSize += computeStringSizeNoTag(excludeTables_.getRaw(i));
}
size += dataSize;
size += 1 * getExcludeTablesList().size();
}
if (slotByteLagLimit_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(8, slotByteLagLimit_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceSchema_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, serviceSchema_);
}
if (objectTransferSettings_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getObjectTransferSettings());
}
{
int dataSize = 0;
for (int i = 0; i < securityGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource other = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource) obj;
if (hasConnection() != other.hasConnection()) return false;
if (hasConnection()) {
if (!getConnection()
.equals(other.getConnection())) return false;
}
if (!getSecurityGroupsList()
.equals(other.getSecurityGroupsList())) return false;
if (!getDatabase()
.equals(other.getDatabase())) return false;
if (!getUser()
.equals(other.getUser())) return false;
if (hasPassword() != other.hasPassword()) return false;
if (hasPassword()) {
if (!getPassword()
.equals(other.getPassword())) return false;
}
if (!getIncludeTablesList()
.equals(other.getIncludeTablesList())) return false;
if (!getExcludeTablesList()
.equals(other.getExcludeTablesList())) return false;
if (getSlotByteLagLimit()
!= other.getSlotByteLagLimit()) return false;
if (!getServiceSchema()
.equals(other.getServiceSchema())) return false;
if (hasObjectTransferSettings() != other.hasObjectTransferSettings()) return false;
if (hasObjectTransferSettings()) {
if (!getObjectTransferSettings()
.equals(other.getObjectTransferSettings())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasConnection()) {
hash = (37 * hash) + CONNECTION_FIELD_NUMBER;
hash = (53 * hash) + getConnection().hashCode();
}
if (getSecurityGroupsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupsList().hashCode();
}
hash = (37 * hash) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
if (hasPassword()) {
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().hashCode();
}
if (getIncludeTablesCount() > 0) {
hash = (37 * hash) + INCLUDE_TABLES_FIELD_NUMBER;
hash = (53 * hash) + getIncludeTablesList().hashCode();
}
if (getExcludeTablesCount() > 0) {
hash = (37 * hash) + EXCLUDE_TABLES_FIELD_NUMBER;
hash = (53 * hash) + getExcludeTablesList().hashCode();
}
hash = (37 * hash) + SLOT_BYTE_LAG_LIMIT_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSlotByteLagLimit());
hash = (37 * hash) + SERVICE_SCHEMA_FIELD_NUMBER;
hash = (53 * hash) + getServiceSchema().hashCode();
if (hasObjectTransferSettings()) {
hash = (37 * hash) + OBJECT_TRANSFER_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getObjectTransferSettings().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource 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.Postgres.PostgresSource parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource 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.Postgres.PostgresSource parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.Postgres.PostgresSource 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.PostgresSource}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresSource)
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (connectionBuilder_ == null) {
connection_ = null;
} else {
connection_ = null;
connectionBuilder_ = null;
}
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
database_ = "";
user_ = "";
if (passwordBuilder_ == null) {
password_ = null;
} else {
password_ = null;
passwordBuilder_ = null;
}
includeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
excludeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
slotByteLagLimit_ = 0L;
serviceSchema_ = "";
if (objectTransferSettingsBuilder_ == null) {
objectTransferSettings_ = null;
} else {
objectTransferSettings_ = null;
objectTransferSettingsBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource build() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource result = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource(this);
int from_bitField0_ = bitField0_;
if (connectionBuilder_ == null) {
result.connection_ = connection_;
} else {
result.connection_ = connectionBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
securityGroups_ = securityGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.securityGroups_ = securityGroups_;
result.database_ = database_;
result.user_ = user_;
if (passwordBuilder_ == null) {
result.password_ = password_;
} else {
result.password_ = passwordBuilder_.build();
}
if (((bitField0_ & 0x00000002) != 0)) {
includeTables_ = includeTables_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.includeTables_ = includeTables_;
if (((bitField0_ & 0x00000004) != 0)) {
excludeTables_ = excludeTables_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.excludeTables_ = excludeTables_;
result.slotByteLagLimit_ = slotByteLagLimit_;
result.serviceSchema_ = serviceSchema_;
if (objectTransferSettingsBuilder_ == null) {
result.objectTransferSettings_ = objectTransferSettings_;
} else {
result.objectTransferSettings_ = objectTransferSettingsBuilder_.build();
}
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.Postgres.PostgresSource) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource.getDefaultInstance()) return this;
if (other.hasConnection()) {
mergeConnection(other.getConnection());
}
if (!other.securityGroups_.isEmpty()) {
if (securityGroups_.isEmpty()) {
securityGroups_ = other.securityGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSecurityGroupsIsMutable();
securityGroups_.addAll(other.securityGroups_);
}
onChanged();
}
if (!other.getDatabase().isEmpty()) {
database_ = other.database_;
onChanged();
}
if (!other.getUser().isEmpty()) {
user_ = other.user_;
onChanged();
}
if (other.hasPassword()) {
mergePassword(other.getPassword());
}
if (!other.includeTables_.isEmpty()) {
if (includeTables_.isEmpty()) {
includeTables_ = other.includeTables_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureIncludeTablesIsMutable();
includeTables_.addAll(other.includeTables_);
}
onChanged();
}
if (!other.excludeTables_.isEmpty()) {
if (excludeTables_.isEmpty()) {
excludeTables_ = other.excludeTables_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureExcludeTablesIsMutable();
excludeTables_.addAll(other.excludeTables_);
}
onChanged();
}
if (other.getSlotByteLagLimit() != 0L) {
setSlotByteLagLimit(other.getSlotByteLagLimit());
}
if (!other.getServiceSchema().isEmpty()) {
serviceSchema_ = other.serviceSchema_;
onChanged();
}
if (other.hasObjectTransferSettings()) {
mergeObjectTransferSettings(other.getObjectTransferSettings());
}
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.Postgres.PostgresSource parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection connection_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder> connectionBuilder_;
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
public boolean hasConnection() {
return connectionBuilder_ != null || connection_ != null;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection() {
if (connectionBuilder_ == null) {
return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
} else {
return connectionBuilder_.getMessage();
}
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder setConnection(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection value) {
if (connectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connection_ = value;
onChanged();
} else {
connectionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder setConnection(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder builderForValue) {
if (connectionBuilder_ == null) {
connection_ = builderForValue.build();
onChanged();
} else {
connectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder mergeConnection(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection value) {
if (connectionBuilder_ == null) {
if (connection_ != null) {
connection_ =
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.newBuilder(connection_).mergeFrom(value).buildPartial();
} else {
connection_ = value;
}
onChanged();
} else {
connectionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder clearConnection() {
if (connectionBuilder_ == null) {
connection_ = null;
onChanged();
} else {
connection_ = null;
connectionBuilder_ = null;
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder getConnectionBuilder() {
onChanged();
return getConnectionFieldBuilder().getBuilder();
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder() {
if (connectionBuilder_ != null) {
return connectionBuilder_.getMessageOrBuilder();
} else {
return connection_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
}
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder>
getConnectionFieldBuilder() {
if (connectionBuilder_ == null) {
connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder>(
getConnection(),
getParentForChildren(),
isClean());
connection_ = null;
}
return connectionBuilder_;
}
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 = 14;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_.getUnmodifiableView();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 14;
* @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 = 14;
* @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 = 14;
* @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 = 14;
* @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 = 14;
* @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 = 14;
* @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 = 14;
* @param value The bytes of the securityGroups to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupsIsMutable();
securityGroups_.add(value);
onChanged();
return this;
}
private java.lang.Object database_ = "";
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @param value The database to set.
* @return This builder for chaining.
*/
public Builder setDatabase(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
database_ = value;
onChanged();
return this;
}
/**
*
* Database name
*
*
* string database = 2;
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
onChanged();
return this;
}
/**
*
* Database name
*
*
* string database = 2;
* @param value The bytes for database to set.
* @return This builder for chaining.
*/
public Builder setDatabaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
database_ = value;
onChanged();
return this;
}
private java.lang.Object user_ = "";
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
return this;
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return This builder for chaining.
*/
public Builder clearUser() {
user_ = getDefaultInstance().getUser();
onChanged();
return this;
}
/**
*
* User for database access.
*
*
* string user = 3;
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
user_ = value;
onChanged();
return this;
}
private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder> passwordBuilder_;
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
public boolean hasPassword() {
return passwordBuilder_ != null || password_ != null;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() {
if (passwordBuilder_ == null) {
return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
} else {
return passwordBuilder_.getMessage();
}
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder setPassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) {
if (passwordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
} else {
passwordBuilder_.setMessage(value);
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder setPassword(
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder builderForValue) {
if (passwordBuilder_ == null) {
password_ = builderForValue.build();
onChanged();
} else {
passwordBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder mergePassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) {
if (passwordBuilder_ == null) {
if (password_ != null) {
password_ =
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.newBuilder(password_).mergeFrom(value).buildPartial();
} else {
password_ = value;
}
onChanged();
} else {
passwordBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder clearPassword() {
if (passwordBuilder_ == null) {
password_ = null;
onChanged();
} else {
password_ = null;
passwordBuilder_ = null;
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder getPasswordBuilder() {
onChanged();
return getPasswordFieldBuilder().getBuilder();
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() {
if (passwordBuilder_ != null) {
return passwordBuilder_.getMessageOrBuilder();
} else {
return password_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
}
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder>
getPasswordFieldBuilder() {
if (passwordBuilder_ == null) {
passwordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder>(
getPassword(),
getParentForChildren(),
isClean());
password_ = null;
}
return passwordBuilder_;
}
private com.google.protobuf.LazyStringList includeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureIncludeTablesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
includeTables_ = new com.google.protobuf.LazyStringArrayList(includeTables_);
bitField0_ |= 0x00000002;
}
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return A list containing the includeTables.
*/
public com.google.protobuf.ProtocolStringList
getIncludeTablesList() {
return includeTables_.getUnmodifiableView();
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return The count of includeTables.
*/
public int getIncludeTablesCount() {
return includeTables_.size();
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the element to return.
* @return The includeTables at the given index.
*/
public java.lang.String getIncludeTables(int index) {
return includeTables_.get(index);
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index of the value to return.
* @return The bytes of the includeTables at the given index.
*/
public com.google.protobuf.ByteString
getIncludeTablesBytes(int index) {
return includeTables_.getByteString(index);
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param index The index to set the value at.
* @param value The includeTables to set.
* @return This builder for chaining.
*/
public Builder setIncludeTables(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludeTablesIsMutable();
includeTables_.set(index, value);
onChanged();
return this;
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param value The includeTables to add.
* @return This builder for chaining.
*/
public Builder addIncludeTables(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureIncludeTablesIsMutable();
includeTables_.add(value);
onChanged();
return this;
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param values The includeTables to add.
* @return This builder for chaining.
*/
public Builder addAllIncludeTables(
java.lang.Iterable values) {
ensureIncludeTablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, includeTables_);
onChanged();
return this;
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @return This builder for chaining.
*/
public Builder clearIncludeTables() {
includeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* Included tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string include_tables = 5;
* @param value The bytes of the includeTables to add.
* @return This builder for chaining.
*/
public Builder addIncludeTablesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureIncludeTablesIsMutable();
includeTables_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList excludeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureExcludeTablesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
excludeTables_ = new com.google.protobuf.LazyStringArrayList(excludeTables_);
bitField0_ |= 0x00000004;
}
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return A list containing the excludeTables.
*/
public com.google.protobuf.ProtocolStringList
getExcludeTablesList() {
return excludeTables_.getUnmodifiableView();
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return The count of excludeTables.
*/
public int getExcludeTablesCount() {
return excludeTables_.size();
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the element to return.
* @return The excludeTables at the given index.
*/
public java.lang.String getExcludeTables(int index) {
return excludeTables_.get(index);
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index of the value to return.
* @return The bytes of the excludeTables at the given index.
*/
public com.google.protobuf.ByteString
getExcludeTablesBytes(int index) {
return excludeTables_.getByteString(index);
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param index The index to set the value at.
* @param value The excludeTables to set.
* @return This builder for chaining.
*/
public Builder setExcludeTables(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludeTablesIsMutable();
excludeTables_.set(index, value);
onChanged();
return this;
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param value The excludeTables to add.
* @return This builder for chaining.
*/
public Builder addExcludeTables(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExcludeTablesIsMutable();
excludeTables_.add(value);
onChanged();
return this;
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param values The excludeTables to add.
* @return This builder for chaining.
*/
public Builder addAllExcludeTables(
java.lang.Iterable values) {
ensureExcludeTablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, excludeTables_);
onChanged();
return this;
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @return This builder for chaining.
*/
public Builder clearExcludeTables() {
excludeTables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
* Excluded tables
*
* If none or empty list is presented, all tables are replicated. Full table name
* with schema. Can contain schema_name.* patterns.
*
*
* repeated string exclude_tables = 6;
* @param value The bytes of the excludeTables to add.
* @return This builder for chaining.
*/
public Builder addExcludeTablesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureExcludeTablesIsMutable();
excludeTables_.add(value);
onChanged();
return this;
}
private long slotByteLagLimit_ ;
/**
*
* Maximum lag of replication slot (in bytes); after exceeding this limit
* replication will be aborted.
*
*
* int64 slot_byte_lag_limit = 8;
* @return The slotByteLagLimit.
*/
@java.lang.Override
public long getSlotByteLagLimit() {
return slotByteLagLimit_;
}
/**
*
* Maximum lag of replication slot (in bytes); after exceeding this limit
* replication will be aborted.
*
*
* int64 slot_byte_lag_limit = 8;
* @param value The slotByteLagLimit to set.
* @return This builder for chaining.
*/
public Builder setSlotByteLagLimit(long value) {
slotByteLagLimit_ = value;
onChanged();
return this;
}
/**
*
* Maximum lag of replication slot (in bytes); after exceeding this limit
* replication will be aborted.
*
*
* int64 slot_byte_lag_limit = 8;
* @return This builder for chaining.
*/
public Builder clearSlotByteLagLimit() {
slotByteLagLimit_ = 0L;
onChanged();
return this;
}
private java.lang.Object serviceSchema_ = "";
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The serviceSchema.
*/
public java.lang.String getServiceSchema() {
java.lang.Object ref = serviceSchema_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
serviceSchema_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return The bytes for serviceSchema.
*/
public com.google.protobuf.ByteString
getServiceSchemaBytes() {
java.lang.Object ref = serviceSchema_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serviceSchema_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @param value The serviceSchema to set.
* @return This builder for chaining.
*/
public Builder setServiceSchema(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
serviceSchema_ = value;
onChanged();
return this;
}
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @return This builder for chaining.
*/
public Builder clearServiceSchema() {
serviceSchema_ = getDefaultInstance().getServiceSchema();
onChanged();
return this;
}
/**
*
* Database schema for service tables (__consumer_keeper,
* __data_transfer_mole_finder). Default is public
*
*
* string service_schema = 9;
* @param value The bytes for serviceSchema to set.
* @return This builder for chaining.
*/
public Builder setServiceSchemaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
serviceSchema_ = value;
onChanged();
return this;
}
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings objectTransferSettings_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder> objectTransferSettingsBuilder_;
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return Whether the objectTransferSettings field is set.
*/
public boolean hasObjectTransferSettings() {
return objectTransferSettingsBuilder_ != null || objectTransferSettings_ != null;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
* @return The objectTransferSettings.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings getObjectTransferSettings() {
if (objectTransferSettingsBuilder_ == null) {
return objectTransferSettings_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.getDefaultInstance() : objectTransferSettings_;
} else {
return objectTransferSettingsBuilder_.getMessage();
}
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public Builder setObjectTransferSettings(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings value) {
if (objectTransferSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
objectTransferSettings_ = value;
onChanged();
} else {
objectTransferSettingsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public Builder setObjectTransferSettings(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder builderForValue) {
if (objectTransferSettingsBuilder_ == null) {
objectTransferSettings_ = builderForValue.build();
onChanged();
} else {
objectTransferSettingsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public Builder mergeObjectTransferSettings(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings value) {
if (objectTransferSettingsBuilder_ == null) {
if (objectTransferSettings_ != null) {
objectTransferSettings_ =
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.newBuilder(objectTransferSettings_).mergeFrom(value).buildPartial();
} else {
objectTransferSettings_ = value;
}
onChanged();
} else {
objectTransferSettingsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public Builder clearObjectTransferSettings() {
if (objectTransferSettingsBuilder_ == null) {
objectTransferSettings_ = null;
onChanged();
} else {
objectTransferSettings_ = null;
objectTransferSettingsBuilder_ = null;
}
return this;
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder getObjectTransferSettingsBuilder() {
onChanged();
return getObjectTransferSettingsFieldBuilder().getBuilder();
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder getObjectTransferSettingsOrBuilder() {
if (objectTransferSettingsBuilder_ != null) {
return objectTransferSettingsBuilder_.getMessageOrBuilder();
} else {
return objectTransferSettings_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.getDefaultInstance() : objectTransferSettings_;
}
}
/**
*
* Select database objects to be transferred during activation or deactivation.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresObjectTransferSettings object_transfer_settings = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder>
getObjectTransferSettingsFieldBuilder() {
if (objectTransferSettingsBuilder_ == null) {
objectTransferSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettings.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresObjectTransferSettingsOrBuilder>(
getObjectTransferSettings(),
getParentForChildren(),
isClean());
objectTransferSettings_ = null;
}
return objectTransferSettingsBuilder_;
}
@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.PostgresSource)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.PostgresSource)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresSource getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostgresSource parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostgresSource(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.Postgres.PostgresSource getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PostgresTargetOrBuilder extends
// @@protoc_insertion_point(interface_extends:yandex.cloud.datatransfer.v1.endpoint.PostgresTarget)
com.google.protobuf.MessageOrBuilder {
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
boolean hasConnection();
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection();
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder();
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @return A list containing the securityGroups.
*/
java.util.List
getSecurityGroupsList();
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @return The count of securityGroups.
*/
int getSecurityGroupsCount();
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @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 = 7;
* @param index The index of the value to return.
* @return The bytes of the securityGroups at the given index.
*/
com.google.protobuf.ByteString
getSecurityGroupsBytes(int index);
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
java.lang.String getDatabase();
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
com.google.protobuf.ByteString
getDatabaseBytes();
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
java.lang.String getUser();
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
com.google.protobuf.ByteString
getUserBytes();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
boolean hasPassword();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword();
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder();
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
int getCleanupPolicyValue();
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The cleanupPolicy.
*/
yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy();
}
/**
* Protobuf type {@code yandex.cloud.datatransfer.v1.endpoint.PostgresTarget}
*/
public static final class PostgresTarget extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresTarget)
PostgresTargetOrBuilder {
private static final long serialVersionUID = 0L;
// Use PostgresTarget.newBuilder() to construct.
private PostgresTarget(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PostgresTarget() {
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
database_ = "";
user_ = "";
cleanupPolicy_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PostgresTarget();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PostgresTarget(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder subBuilder = null;
if (connection_ != null) {
subBuilder = connection_.toBuilder();
}
connection_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(connection_);
connection_ = subBuilder.buildPartial();
}
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
database_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
user_ = s;
break;
}
case 34: {
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder subBuilder = null;
if (password_ != null) {
subBuilder = password_.toBuilder();
}
password_ = input.readMessage(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(password_);
password_ = subBuilder.buildPartial();
}
break;
}
case 40: {
int rawValue = input.readEnum();
cleanupPolicy_ = rawValue;
break;
}
case 58: {
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.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.Builder.class);
}
public static final int CONNECTION_FIELD_NUMBER = 1;
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection connection_;
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
@java.lang.Override
public boolean hasConnection() {
return connection_ != null;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection() {
return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder() {
return getConnection();
}
public static final int SECURITY_GROUPS_FIELD_NUMBER = 7;
private com.google.protobuf.LazyStringList securityGroups_;
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_;
}
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @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 = 7;
* @param index The index of the value to return.
* @return The bytes of the securityGroups at the given index.
*/
public com.google.protobuf.ByteString
getSecurityGroupsBytes(int index) {
return securityGroups_.getByteString(index);
}
public static final int DATABASE_FIELD_NUMBER = 2;
private volatile java.lang.Object database_;
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
@java.lang.Override
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
return s;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_FIELD_NUMBER = 3;
private volatile java.lang.Object user_;
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
@java.lang.Override
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PASSWORD_FIELD_NUMBER = 4;
private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_;
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
@java.lang.Override
public boolean hasPassword() {
return password_ != null;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() {
return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() {
return getPassword();
}
public static final int CLEANUP_POLICY_FIELD_NUMBER = 5;
private int cleanupPolicy_;
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
@java.lang.Override public int getCleanupPolicyValue() {
return cleanupPolicy_;
}
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The cleanupPolicy.
*/
@java.lang.Override public yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.valueOf(cleanupPolicy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (connection_ != null) {
output.writeMessage(1, getConnection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, user_);
}
if (password_ != null) {
output.writeMessage(4, getPassword());
}
if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) {
output.writeEnum(5, cleanupPolicy_);
}
for (int i = 0; i < securityGroups_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, securityGroups_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (connection_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getConnection());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, database_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(user_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, user_);
}
if (password_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPassword());
}
if (cleanupPolicy_ != yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.CLEANUP_POLICY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, cleanupPolicy_);
}
{
int dataSize = 0;
for (int i = 0; i < securityGroups_.size(); i++) {
dataSize += computeStringSizeNoTag(securityGroups_.getRaw(i));
}
size += dataSize;
size += 1 * getSecurityGroupsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget)) {
return super.equals(obj);
}
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget other = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget) obj;
if (hasConnection() != other.hasConnection()) return false;
if (hasConnection()) {
if (!getConnection()
.equals(other.getConnection())) return false;
}
if (!getSecurityGroupsList()
.equals(other.getSecurityGroupsList())) return false;
if (!getDatabase()
.equals(other.getDatabase())) return false;
if (!getUser()
.equals(other.getUser())) return false;
if (hasPassword() != other.hasPassword()) return false;
if (hasPassword()) {
if (!getPassword()
.equals(other.getPassword())) return false;
}
if (cleanupPolicy_ != other.cleanupPolicy_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasConnection()) {
hash = (37 * hash) + CONNECTION_FIELD_NUMBER;
hash = (53 * hash) + getConnection().hashCode();
}
if (getSecurityGroupsCount() > 0) {
hash = (37 * hash) + SECURITY_GROUPS_FIELD_NUMBER;
hash = (53 * hash) + getSecurityGroupsList().hashCode();
}
hash = (37 * hash) + DATABASE_FIELD_NUMBER;
hash = (53 * hash) + getDatabase().hashCode();
hash = (37 * hash) + USER_FIELD_NUMBER;
hash = (53 * hash) + getUser().hashCode();
if (hasPassword()) {
hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
hash = (53 * hash) + getPassword().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.Postgres.PostgresTarget parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget 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.Postgres.PostgresTarget parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget 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.Postgres.PostgresTarget parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.Postgres.PostgresTarget 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.PostgresTarget}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yandex.cloud.datatransfer.v1.endpoint.PostgresTarget)
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTargetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_fieldAccessorTable
.ensureFieldAccessorsInitialized(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.class, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.Builder.class);
}
// Construct using yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (connectionBuilder_ == null) {
connection_ = null;
} else {
connection_ = null;
connectionBuilder_ = null;
}
securityGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
database_ = "";
user_ = "";
if (passwordBuilder_ == null) {
password_ = null;
} else {
password_ = null;
passwordBuilder_ = null;
}
cleanupPolicy_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget getDefaultInstanceForType() {
return yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.getDefaultInstance();
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget build() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget buildPartial() {
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget result = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget(this);
int from_bitField0_ = bitField0_;
if (connectionBuilder_ == null) {
result.connection_ = connection_;
} else {
result.connection_ = connectionBuilder_.build();
}
if (((bitField0_ & 0x00000001) != 0)) {
securityGroups_ = securityGroups_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.securityGroups_ = securityGroups_;
result.database_ = database_;
result.user_ = user_;
if (passwordBuilder_ == null) {
result.password_ = password_;
} else {
result.password_ = passwordBuilder_.build();
}
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.Postgres.PostgresTarget) {
return mergeFrom((yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget other) {
if (other == yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget.getDefaultInstance()) return this;
if (other.hasConnection()) {
mergeConnection(other.getConnection());
}
if (!other.securityGroups_.isEmpty()) {
if (securityGroups_.isEmpty()) {
securityGroups_ = other.securityGroups_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSecurityGroupsIsMutable();
securityGroups_.addAll(other.securityGroups_);
}
onChanged();
}
if (!other.getDatabase().isEmpty()) {
database_ = other.database_;
onChanged();
}
if (!other.getUser().isEmpty()) {
user_ = other.user_;
onChanged();
}
if (other.hasPassword()) {
mergePassword(other.getPassword());
}
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.Postgres.PostgresTarget parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection connection_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder> connectionBuilder_;
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return Whether the connection field is set.
*/
public boolean hasConnection() {
return connectionBuilder_ != null || connection_ != null;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
* @return The connection.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection getConnection() {
if (connectionBuilder_ == null) {
return connection_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
} else {
return connectionBuilder_.getMessage();
}
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder setConnection(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection value) {
if (connectionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
connection_ = value;
onChanged();
} else {
connectionBuilder_.setMessage(value);
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder setConnection(
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder builderForValue) {
if (connectionBuilder_ == null) {
connection_ = builderForValue.build();
onChanged();
} else {
connectionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder mergeConnection(yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection value) {
if (connectionBuilder_ == null) {
if (connection_ != null) {
connection_ =
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.newBuilder(connection_).mergeFrom(value).buildPartial();
} else {
connection_ = value;
}
onChanged();
} else {
connectionBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public Builder clearConnection() {
if (connectionBuilder_ == null) {
connection_ = null;
onChanged();
} else {
connection_ = null;
connectionBuilder_ = null;
}
return this;
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder getConnectionBuilder() {
onChanged();
return getConnectionFieldBuilder().getBuilder();
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder getConnectionOrBuilder() {
if (connectionBuilder_ != null) {
return connectionBuilder_.getMessageOrBuilder();
} else {
return connection_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.getDefaultInstance() : connection_;
}
}
/**
*
* Database connection settings
*
*
* .yandex.cloud.datatransfer.v1.endpoint.PostgresConnection connection = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder>
getConnectionFieldBuilder() {
if (connectionBuilder_ == null) {
connectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnection.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresConnectionOrBuilder>(
getConnection(),
getParentForChildren(),
isClean());
connection_ = null;
}
return connectionBuilder_;
}
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 = 7;
* @return A list containing the securityGroups.
*/
public com.google.protobuf.ProtocolStringList
getSecurityGroupsList() {
return securityGroups_.getUnmodifiableView();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @return The count of securityGroups.
*/
public int getSecurityGroupsCount() {
return securityGroups_.size();
}
/**
*
* Security groups
*
*
* repeated string security_groups = 7;
* @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 = 7;
* @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 = 7;
* @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 = 7;
* @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 = 7;
* @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 = 7;
* @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 = 7;
* @param value The bytes of the securityGroups to add.
* @return This builder for chaining.
*/
public Builder addSecurityGroupsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureSecurityGroupsIsMutable();
securityGroups_.add(value);
onChanged();
return this;
}
private java.lang.Object database_ = "";
/**
*
* Database name
*
*
* string database = 2;
* @return The database.
*/
public java.lang.String getDatabase() {
java.lang.Object ref = database_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
database_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @return The bytes for database.
*/
public com.google.protobuf.ByteString
getDatabaseBytes() {
java.lang.Object ref = database_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
database_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Database name
*
*
* string database = 2;
* @param value The database to set.
* @return This builder for chaining.
*/
public Builder setDatabase(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
database_ = value;
onChanged();
return this;
}
/**
*
* Database name
*
*
* string database = 2;
* @return This builder for chaining.
*/
public Builder clearDatabase() {
database_ = getDefaultInstance().getDatabase();
onChanged();
return this;
}
/**
*
* Database name
*
*
* string database = 2;
* @param value The bytes for database to set.
* @return This builder for chaining.
*/
public Builder setDatabaseBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
database_ = value;
onChanged();
return this;
}
private java.lang.Object user_ = "";
/**
*
* User for database access.
*
*
* string user = 3;
* @return The user.
*/
public java.lang.String getUser() {
java.lang.Object ref = user_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
user_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return The bytes for user.
*/
public com.google.protobuf.ByteString
getUserBytes() {
java.lang.Object ref = user_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
user_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* User for database access.
*
*
* string user = 3;
* @param value The user to set.
* @return This builder for chaining.
*/
public Builder setUser(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
user_ = value;
onChanged();
return this;
}
/**
*
* User for database access.
*
*
* string user = 3;
* @return This builder for chaining.
*/
public Builder clearUser() {
user_ = getDefaultInstance().getUser();
onChanged();
return this;
}
/**
*
* User for database access.
*
*
* string user = 3;
* @param value The bytes for user to set.
* @return This builder for chaining.
*/
public Builder setUserBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
user_ = value;
onChanged();
return this;
}
private yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret password_;
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder> passwordBuilder_;
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return Whether the password field is set.
*/
public boolean hasPassword() {
return passwordBuilder_ != null || password_ != null;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
* @return The password.
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret getPassword() {
if (passwordBuilder_ == null) {
return password_ == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
} else {
return passwordBuilder_.getMessage();
}
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder setPassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) {
if (passwordBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
password_ = value;
onChanged();
} else {
passwordBuilder_.setMessage(value);
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder setPassword(
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder builderForValue) {
if (passwordBuilder_ == null) {
password_ = builderForValue.build();
onChanged();
} else {
passwordBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder mergePassword(yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret value) {
if (passwordBuilder_ == null) {
if (password_ != null) {
password_ =
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.newBuilder(password_).mergeFrom(value).buildPartial();
} else {
password_ = value;
}
onChanged();
} else {
passwordBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public Builder clearPassword() {
if (passwordBuilder_ == null) {
password_ = null;
onChanged();
} else {
password_ = null;
passwordBuilder_ = null;
}
return this;
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder getPasswordBuilder() {
onChanged();
return getPasswordFieldBuilder().getBuilder();
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
public yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder getPasswordOrBuilder() {
if (passwordBuilder_ != null) {
return passwordBuilder_.getMessageOrBuilder();
} else {
return password_ == null ?
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.getDefaultInstance() : password_;
}
}
/**
*
* Password for database access.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.Secret password = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder>
getPasswordFieldBuilder() {
if (passwordBuilder_ == null) {
passwordBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret, yandex.cloud.api.datatransfer.v1.endpoint.Common.Secret.Builder, yandex.cloud.api.datatransfer.v1.endpoint.Common.SecretOrBuilder>(
getPassword(),
getParentForChildren(),
isClean());
password_ = null;
}
return passwordBuilder_;
}
private int cleanupPolicy_ = 0;
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The enum numeric value on the wire for cleanupPolicy.
*/
@java.lang.Override public int getCleanupPolicyValue() {
return cleanupPolicy_;
}
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @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 for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @return The cleanupPolicy.
*/
@java.lang.Override
public yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy getCleanupPolicy() {
@SuppressWarnings("deprecation")
yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy result = yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.valueOf(cleanupPolicy_);
return result == null ? yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy.UNRECOGNIZED : result;
}
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @param value The cleanupPolicy to set.
* @return This builder for chaining.
*/
public Builder setCleanupPolicy(yandex.cloud.api.datatransfer.v1.endpoint.Common.CleanupPolicy value) {
if (value == null) {
throw new NullPointerException();
}
cleanupPolicy_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Cleanup policy for activate, reactivate and reupload processes. Default is
* truncate.
*
*
* .yandex.cloud.datatransfer.v1.endpoint.CleanupPolicy cleanup_policy = 5;
* @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.PostgresTarget)
}
// @@protoc_insertion_point(class_scope:yandex.cloud.datatransfer.v1.endpoint.PostgresTarget)
private static final yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget();
}
public static yandex.cloud.api.datatransfer.v1.endpoint.Postgres.PostgresTarget getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PostgresTarget parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PostgresTarget(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.Postgres.PostgresTarget getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n4yandex/cloud/datatransfer/v1/endpoint/" +
"postgres.proto\022%yandex.cloud.datatransfe" +
"r.v1.endpoint\0322yandex/cloud/datatransfer" +
"/v1/endpoint/common.proto\"\252\013\n\036PostgresOb" +
"jectTransferSettings\022L\n\010sequence\030\001 \001(\0162:" +
".yandex.cloud.datatransfer.v1.endpoint.O" +
"bjectTransferStage\022U\n\021sequence_owned_by\030" +
"\002 \001(\0162:.yandex.cloud.datatransfer.v1.end" +
"point.ObjectTransferStage\022P\n\014sequence_se" +
"t\030\022 \001(\0162:.yandex.cloud.datatransfer.v1.e" +
"ndpoint.ObjectTransferStage\022I\n\005table\030\003 \001" +
"(\0162:.yandex.cloud.datatransfer.v1.endpoi" +
"nt.ObjectTransferStage\022O\n\013primary_key\030\004 " +
"\001(\0162:.yandex.cloud.datatransfer.v1.endpo" +
"int.ObjectTransferStage\022Q\n\rfk_constraint" +
"\030\005 \001(\0162:.yandex.cloud.datatransfer.v1.en" +
"dpoint.ObjectTransferStage\022R\n\016default_va" +
"lues\030\006 \001(\0162:.yandex.cloud.datatransfer.v" +
"1.endpoint.ObjectTransferStage\022N\n\nconstr" +
"aint\030\007 \001(\0162:.yandex.cloud.datatransfer.v" +
"1.endpoint.ObjectTransferStage\022I\n\005index\030" +
"\010 \001(\0162:.yandex.cloud.datatransfer.v1.end" +
"point.ObjectTransferStage\022H\n\004view\030\t \001(\0162" +
":.yandex.cloud.datatransfer.v1.endpoint." +
"ObjectTransferStage\022U\n\021materialized_view" +
"\030\021 \001(\0162:.yandex.cloud.datatransfer.v1.en" +
"dpoint.ObjectTransferStage\022L\n\010function\030\n" +
" \001(\0162:.yandex.cloud.datatransfer.v1.endp" +
"oint.ObjectTransferStage\022K\n\007trigger\030\013 \001(" +
"\0162:.yandex.cloud.datatransfer.v1.endpoin" +
"t.ObjectTransferStage\022H\n\004type\030\014 \001(\0162:.ya" +
"ndex.cloud.datatransfer.v1.endpoint.Obje" +
"ctTransferStage\022H\n\004rule\030\r \001(\0162:.yandex.c" +
"loud.datatransfer.v1.endpoint.ObjectTran" +
"sferStage\022M\n\tcollation\030\016 \001(\0162:.yandex.cl" +
"oud.datatransfer.v1.endpoint.ObjectTrans" +
"ferStage\022J\n\006policy\030\017 \001(\0162:.yandex.cloud." +
"datatransfer.v1.endpoint.ObjectTransferS" +
"tage\022H\n\004cast\030\020 \001(\0162:.yandex.cloud.datatr" +
"ansfer.v1.endpoint.ObjectTransferStage\"\205" +
"\001\n\021OnPremisePostgres\022\r\n\005hosts\030\005 \003(\t\022\014\n\004p" +
"ort\030\002 \001(\003\022@\n\010tls_mode\030\006 \001(\0132..yandex.clo" +
"ud.datatransfer.v1.endpoint.TLSMode\022\021\n\ts" +
"ubnet_id\030\004 \001(\t\"\214\001\n\022PostgresConnection\022\030\n" +
"\016mdb_cluster_id\030\001 \001(\tH\000\022N\n\non_premise\030\002 " +
"\001(\01328.yandex.cloud.datatransfer.v1.endpo" +
"int.OnPremisePostgresH\000B\014\n\nconnection\"\247\003" +
"\n\016PostgresSource\022M\n\nconnection\030\001 \001(\01329.y" +
"andex.cloud.datatransfer.v1.endpoint.Pos" +
"tgresConnection\022\027\n\017security_groups\030\016 \003(\t" +
"\022\020\n\010database\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\022?\n\010pass" +
"word\030\004 \001(\0132-.yandex.cloud.datatransfer.v" +
"1.endpoint.Secret\022\026\n\016include_tables\030\005 \003(" +
"\t\022\026\n\016exclude_tables\030\006 \003(\t\022\033\n\023slot_byte_l" +
"ag_limit\030\010 \001(\003\022\026\n\016service_schema\030\t \001(\t\022g" +
"\n\030object_transfer_settings\030\r \001(\0132E.yande" +
"x.cloud.datatransfer.v1.endpoint.Postgre" +
"sObjectTransferSettings\"\247\002\n\016PostgresTarg" +
"et\022M\n\nconnection\030\001 \001(\01329.yandex.cloud.da" +
"tatransfer.v1.endpoint.PostgresConnectio" +
"n\022\027\n\017security_groups\030\007 \003(\t\022\020\n\010database\030\002" +
" \001(\t\022\014\n\004user\030\003 \001(\t\022?\n\010password\030\004 \001(\0132-.y" +
"andex.cloud.datatransfer.v1.endpoint.Sec" +
"ret\022L\n\016cleanup_policy\030\005 \001(\01624.yandex.clo" +
"ud.datatransfer.v1.endpoint.CleanupPolic" +
"yB\247\001\n)yandex.cloud.api.datatransfer.v1.e" +
"ndpointZRgithub.com/yandex-cloud/go-genp" +
"roto/yandex/cloud/datatransfer/v1/endpoi" +
"nt;endpoint\252\002%Yandex.Cloud.Datatransfer." +
"V1.EndPointb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
yandex.cloud.api.datatransfer.v1.endpoint.Common.getDescriptor(),
});
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresObjectTransferSettings_descriptor,
new java.lang.String[] { "Sequence", "SequenceOwnedBy", "SequenceSet", "Table", "PrimaryKey", "FkConstraint", "DefaultValues", "Constraint", "Index", "View", "MaterializedView", "Function", "Trigger", "Type", "Rule", "Collation", "Policy", "Cast", });
internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_OnPremisePostgres_descriptor,
new java.lang.String[] { "Hosts", "Port", "TlsMode", "SubnetId", });
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresConnection_descriptor,
new java.lang.String[] { "MdbClusterId", "OnPremise", "Connection", });
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresSource_descriptor,
new java.lang.String[] { "Connection", "SecurityGroups", "Database", "User", "Password", "IncludeTables", "ExcludeTables", "SlotByteLagLimit", "ServiceSchema", "ObjectTransferSettings", });
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yandex_cloud_datatransfer_v1_endpoint_PostgresTarget_descriptor,
new java.lang.String[] { "Connection", "SecurityGroups", "Database", "User", "Password", "CleanupPolicy", });
yandex.cloud.api.datatransfer.v1.endpoint.Common.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy