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

com.google.cloud.datastream.v1.PostgresqlSourceConfig Maven / Gradle / Ivy

There is a newer version: 1.53.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/datastream/v1/datastream_resources.proto

// Protobuf Java Version: 3.25.3
package com.google.cloud.datastream.v1;

/**
 *
 *
 * 
 * PostgreSQL data source configuration
 * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ public final class PostgresqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) PostgresqlSourceConfigOrBuilder { private static final long serialVersionUID = 0L; // Use PostgresqlSourceConfig.newBuilder() to construct. private PostgresqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PostgresqlSourceConfig() { replicationSlot_ = ""; publication_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlSourceConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } private int bitField0_; public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; /** * * *
   * PostgreSQL objects to include in the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; * * @return Whether the includeObjects field is set. */ @java.lang.Override public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * PostgreSQL objects to include in the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } /** * * *
   * PostgreSQL objects to include in the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; /** * * *
   * PostgreSQL objects to exclude from the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; * * @return Whether the excludeObjects field is set. */ @java.lang.Override public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * PostgreSQL objects to exclude from the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } /** * * *
   * PostgreSQL objects to exclude from the stream.
   * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object replicationSlot_ = ""; /** * * *
   * Required. Immutable. The name of the logical replication slot that's
   * configured with the pgoutput plugin.
   * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The replicationSlot. */ @java.lang.Override public java.lang.String getReplicationSlot() { java.lang.Object ref = replicationSlot_; 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(); replicationSlot_ = s; return s; } } /** * * *
   * Required. Immutable. The name of the logical replication slot that's
   * configured with the pgoutput plugin.
   * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for replicationSlot. */ @java.lang.Override public com.google.protobuf.ByteString getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicationSlot_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PUBLICATION_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object publication_ = ""; /** * * *
   * Required. The name of the publication that includes the set of all tables
   * that are defined in the stream's include_objects.
   * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The publication. */ @java.lang.Override public java.lang.String getPublication() { java.lang.Object ref = publication_; 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(); publication_ = s; return s; } } /** * * *
   * Required. The name of the publication that includes the set of all tables
   * that are defined in the stream's include_objects.
   * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for publication. */ @java.lang.Override public com.google.protobuf.ByteString getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publication_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 5; private int maxConcurrentBackfillTasks_ = 0; /** * * *
   * Maximum number of concurrent backfill tasks. The number should be non
   * negative. If not set (or set to 0), the system's default value will be
   * used.
   * 
* * int32 max_concurrent_backfill_tasks = 5; * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getIncludeObjects()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getExcludeObjects()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, replicationSlot_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, publication_); } if (maxConcurrentBackfillTasks_ != 0) { output.writeInt32(5, maxConcurrentBackfillTasks_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, replicationSlot_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publication_); } if (maxConcurrentBackfillTasks_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxConcurrentBackfillTasks_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig)) { return super.equals(obj); } com.google.cloud.datastream.v1.PostgresqlSourceConfig other = (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } if (!getReplicationSlot().equals(other.getReplicationSlot())) return false; if (!getPublication().equals(other.getPublication())) return false; if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasIncludeObjects()) { hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getIncludeObjects().hashCode(); } if (hasExcludeObjects()) { hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getExcludeObjects().hashCode(); } hash = (37 * hash) + REPLICATION_SLOT_FIELD_NUMBER; hash = (53 * hash) + getReplicationSlot().hashCode(); hash = (37 * hash) + PUBLICATION_FIELD_NUMBER; hash = (53 * hash) + getPublication().hashCode(); hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentBackfillTasks(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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 com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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 com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig 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( com.google.cloud.datastream.v1.PostgresqlSourceConfig 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; } /** * * *
   * PostgreSQL data source configuration
   * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getIncludeObjectsFieldBuilder(); getExcludeObjectsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; includeObjects_ = null; if (includeObjectsBuilder_ != null) { includeObjectsBuilder_.dispose(); includeObjectsBuilder_ = null; } excludeObjects_ = null; if (excludeObjectsBuilder_ != null) { excludeObjectsBuilder_.dispose(); excludeObjectsBuilder_ = null; } replicationSlot_ = ""; publication_ = ""; maxConcurrentBackfillTasks_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.datastream.v1.DatastreamResourcesProto .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig build() { com.google.cloud.datastream.v1.PostgresqlSourceConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { com.google.cloud.datastream.v1.PostgresqlSourceConfig result = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSourceConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.includeObjects_ = includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.excludeObjects_ = excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.replicationSlot_ = replicationSlot_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.publication_ = publication_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; } result.bitField0_ |= to_bitField0_; } @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 com.google.cloud.datastream.v1.PostgresqlSourceConfig) { return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSourceConfig other) { if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } if (other.hasExcludeObjects()) { mergeExcludeObjects(other.getExcludeObjects()); } if (!other.getReplicationSlot().isEmpty()) { replicationSlot_ = other.replicationSlot_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getPublication().isEmpty()) { publication_ = other.publication_; bitField0_ |= 0x00000008; onChanged(); } if (other.getMaxConcurrentBackfillTasks() != 0) { setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { replicationSlot_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { publication_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { maxConcurrentBackfillTasks_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> includeObjectsBuilder_; /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; * * @return The includeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (includeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } includeObjects_ = value; } else { includeObjectsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public Builder setIncludeObjects( com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { if (includeObjectsBuilder_ == null) { includeObjects_ = builderForValue.build(); } else { includeObjectsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (includeObjectsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && includeObjects_ != null && includeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; } } else { includeObjectsBuilder_.mergeFrom(value); } if (includeObjects_ != null) { bitField0_ |= 0x00000001; onChanged(); } return this; } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public Builder clearIncludeObjects() { bitField0_ = (bitField0_ & ~0x00000001); includeObjects_ = null; if (includeObjectsBuilder_ != null) { includeObjectsBuilder_.dispose(); includeObjectsBuilder_ = null; } onChanged(); return this; } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getIncludeObjectsFieldBuilder().getBuilder(); } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } } /** * * *
     * PostgreSQL objects to include in the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( getIncludeObjects(), getParentForChildren(), isClean()); includeObjects_ = null; } return includeObjectsBuilder_; } private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> excludeObjectsBuilder_; /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (excludeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } excludeObjects_ = value; } else { excludeObjectsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public Builder setExcludeObjects( com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { if (excludeObjectsBuilder_ == null) { excludeObjects_ = builderForValue.build(); } else { excludeObjectsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (excludeObjectsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && excludeObjects_ != null && excludeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; } } else { excludeObjectsBuilder_.mergeFrom(value); } if (excludeObjects_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public Builder clearExcludeObjects() { bitField0_ = (bitField0_ & ~0x00000002); excludeObjects_ = null; if (excludeObjectsBuilder_ != null) { excludeObjectsBuilder_.dispose(); excludeObjectsBuilder_ = null; } onChanged(); return this; } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExcludeObjectsFieldBuilder().getBuilder(); } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } } /** * * *
     * PostgreSQL objects to exclude from the stream.
     * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( getExcludeObjects(), getParentForChildren(), isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; } private java.lang.Object replicationSlot_ = ""; /** * * *
     * Required. Immutable. The name of the logical replication slot that's
     * configured with the pgoutput plugin.
     * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The replicationSlot. */ public java.lang.String getReplicationSlot() { java.lang.Object ref = replicationSlot_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSlot_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Immutable. The name of the logical replication slot that's
     * configured with the pgoutput plugin.
     * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for replicationSlot. */ public com.google.protobuf.ByteString getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicationSlot_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Immutable. The name of the logical replication slot that's
     * configured with the pgoutput plugin.
     * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The replicationSlot to set. * @return This builder for chaining. */ public Builder setReplicationSlot(java.lang.String value) { if (value == null) { throw new NullPointerException(); } replicationSlot_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. Immutable. The name of the logical replication slot that's
     * configured with the pgoutput plugin.
     * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearReplicationSlot() { replicationSlot_ = getDefaultInstance().getReplicationSlot(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Required. Immutable. The name of the logical replication slot that's
     * configured with the pgoutput plugin.
     * 
* * * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for replicationSlot to set. * @return This builder for chaining. */ public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replicationSlot_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object publication_ = ""; /** * * *
     * Required. The name of the publication that includes the set of all tables
     * that are defined in the stream's include_objects.
     * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The publication. */ public java.lang.String getPublication() { java.lang.Object ref = publication_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publication_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The name of the publication that includes the set of all tables
     * that are defined in the stream's include_objects.
     * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for publication. */ public com.google.protobuf.ByteString getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publication_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The name of the publication that includes the set of all tables
     * that are defined in the stream's include_objects.
     * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The publication to set. * @return This builder for chaining. */ public Builder setPublication(java.lang.String value) { if (value == null) { throw new NullPointerException(); } publication_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Required. The name of the publication that includes the set of all tables
     * that are defined in the stream's include_objects.
     * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearPublication() { publication_ = getDefaultInstance().getPublication(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Required. The name of the publication that includes the set of all tables
     * that are defined in the stream's include_objects.
     * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for publication to set. * @return This builder for chaining. */ public Builder setPublicationBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publication_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private int maxConcurrentBackfillTasks_; /** * * *
     * Maximum number of concurrent backfill tasks. The number should be non
     * negative. If not set (or set to 0), the system's default value will be
     * used.
     * 
* * int32 max_concurrent_backfill_tasks = 5; * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } /** * * *
     * Maximum number of concurrent backfill tasks. The number should be non
     * negative. If not set (or set to 0), the system's default value will be
     * used.
     * 
* * int32 max_concurrent_backfill_tasks = 5; * * @param value The maxConcurrentBackfillTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentBackfillTasks(int value) { maxConcurrentBackfillTasks_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Maximum number of concurrent backfill tasks. The number should be non
     * negative. If not set (or set to 0), the system's default value will be
     * used.
     * 
* * int32 max_concurrent_backfill_tasks = 5; * * @return This builder for chaining. */ public Builder clearMaxConcurrentBackfillTasks() { bitField0_ = (bitField0_ & ~0x00000010); maxConcurrentBackfillTasks_ = 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:google.cloud.datastream.v1.PostgresqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) private static final com.google.cloud.datastream.v1.PostgresqlSourceConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(); } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PostgresqlSourceConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy