diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index 3a753735a6e..6639f50118b 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -111,6 +111,11 @@ testlib test + + com.google.api.grpc + grpc-google-iam-v1 + test + diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java index aab64675979..28a3ac7ce33 100644 --- a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java @@ -62,6 +62,7 @@ @Generated("by gapic-generator-java") public class DatastreamClientTest { private static MockDatastream mockDatastream; + private static MockIAMPolicy mockIAMPolicy; private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; @@ -71,10 +72,11 @@ public class DatastreamClientTest { public static void startStaticServer() { mockDatastream = new MockDatastream(); mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); mockServiceHelper = new MockServiceHelper( UUID.randomUUID().toString(), - Arrays.asList(mockDatastream, mockLocations)); + Arrays.asList(mockDatastream, mockLocations, mockIAMPolicy)); mockServiceHelper.start(); } @@ -574,6 +576,7 @@ public void discoverConnectionProfileTest() throws Exception { Assert.assertEquals(request.getHierarchyDepth(), actualRequest.getHierarchyDepth()); Assert.assertEquals(request.getOracleRdbms(), actualRequest.getOracleRdbms()); Assert.assertEquals(request.getMysqlRdbms(), actualRequest.getMysqlRdbms()); + Assert.assertEquals(request.getPostgresqlRdbms(), actualRequest.getPostgresqlRdbms()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java new file mode 100644 index 00000000000..bb2fd718171 --- /dev/null +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 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. + */ + +package com.google.cloud.datastream.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java new file mode 100644 index 00000000000..a50601d26cf --- /dev/null +++ b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 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. + */ + +package com.google.cloud.datastream.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +import com.google.protobuf.AbstractMessage; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java new file mode 100644 index 00000000000..f9fe309fd3f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java @@ -0,0 +1,4212 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */ +public final class BigQueryDestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) + BigQueryDestinationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDestinationConfig.newBuilder() to construct. + private BigQueryDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDestinationConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDestinationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryDestinationConfig( + 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 1610: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + subBuilder = null; + if (datasetConfigCase_ == 201) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_) + .toBuilder(); + } + datasetConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + datasetConfig_ = subBuilder.buildPartial(); + } + datasetConfigCase_ = 201; + break; + } + case 1618: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder + subBuilder = null; + if (datasetConfigCase_ == 202) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_) + .toBuilder(); + } + datasetConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_); + datasetConfig_ = subBuilder.buildPartial(); + } + datasetConfigCase_ = 202; + break; + } + case 2402: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (dataFreshness_ != null) { + subBuilder = dataFreshness_.toBuilder(); + } + dataFreshness_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataFreshness_); + dataFreshness_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + } + + public interface SingleTargetDatasetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + com.google.protobuf.MessageOrBuilder { + + /** + * string dataset_id = 1; + * + * @return The datasetId. + */ + java.lang.String getDatasetId(); + /** + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString getDatasetIdBytes(); + } + /** + * + * + *
+   * A single target dataset to which all data will be streamed.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + */ + public static final class SingleTargetDataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + SingleTargetDatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use SingleTargetDataset.newBuilder() to construct. + private SingleTargetDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SingleTargetDataset() { + datasetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SingleTargetDataset(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SingleTargetDataset( + 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(); + + datasetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object datasetId_; + /** + * string dataset_id = 1; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + 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(); + datasetId_ = s; + return s; + } + } + /** + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + 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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; + + if (!getDatasetId().equals(other.getDatasetId())) 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) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset + 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.BigQueryDestinationConfig.SingleTargetDataset 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; + } + /** + * + * + *
+     * A single target dataset to which all data will be streamed.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.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(); + datasetId_ = ""; + + 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_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); + result.datasetId_ = datasetId_; + 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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + 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 { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object datasetId_ = ""; + /** + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = 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:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDataset + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleTargetDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SingleTargetDataset(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 com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SourceHierarchyDatasetsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + boolean hasDatasetTemplate(); + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate + getDatasetTemplate(); + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder(); + } + /** + * + * + *
+   * Destination datasets are created so that hierarchy of the destination data
+   * objects matches the source hierarchy.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + */ + public static final class SourceHierarchyDatasets extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + SourceHierarchyDatasetsOrBuilder { + private static final long serialVersionUID = 0L; + // Use SourceHierarchyDatasets.newBuilder() to construct. + private SourceHierarchyDatasets(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SourceHierarchyDatasets() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SourceHierarchyDatasets(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SourceHierarchyDatasets( + 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 18: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + subBuilder = null; + if (datasetTemplate_ != null) { + subBuilder = datasetTemplate_.toBuilder(); + } + datasetTemplate_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetTemplate_); + datasetTemplate_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); + } + + public interface DatasetTemplateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + java.lang.String getDatasetIdPrefix(); + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + com.google.protobuf.ByteString getDatasetIdPrefixBytes(); + + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + } + /** + * + * + *
+     * Dataset template used for dynamic dataset creation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + */ + public static final class DatasetTemplate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + DatasetTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use DatasetTemplate.newBuilder() to construct. + private DatasetTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DatasetTemplate() { + location_ = ""; + datasetIdPrefix_ = ""; + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DatasetTemplate(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DatasetTemplate( + 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(); + + location_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + datasetIdPrefix_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); + } + + public static final int LOCATION_FIELD_NUMBER = 1; + private volatile java.lang.Object location_; + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + /** + * + * + *
+       * Required. The geographic location where the dataset should reside. See
+       * https://cloud.google.com/bigquery/docs/locations for supported
+       * locations.
+       * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATASET_ID_PREFIX_FIELD_NUMBER = 2; + private volatile java.lang.Object datasetIdPrefix_; + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + @java.lang.Override + public java.lang.String getDatasetIdPrefix() { + java.lang.Object ref = datasetIdPrefix_; + 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(); + datasetIdPrefix_ = s; + return s; + } + } + /** + * + * + *
+       * If supplied, every created dataset will have its name prefixed by the
+       * provided value. The prefix and name will be separated by an underscore.
+       * i.e. <prefix>_<dataset_name>.
+       * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + java.lang.Object ref = datasetIdPrefix_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetIdPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object kmsKeyName_; + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + 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(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
+       * Describes the Cloud KMS encryption key that will be used to
+       * protect destination BigQuery table. The BigQuery Service Account
+       * associated with your project requires access to this encryption key.
+       * i.e.
+       * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+       * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+       * for more information.
+       * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetIdPrefix_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, datasetIdPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, location_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetIdPrefix_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, datasetIdPrefix_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsKeyName_); + } + 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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getDatasetIdPrefix().equals(other.getDatasetIdPrefix())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + DATASET_ID_PREFIX_FIELD_NUMBER; + hash = (53 * hash) + getDatasetIdPrefix().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + 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; + } + /** + * + * + *
+       * Dataset template used for dynamic dataset creation.
+       * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.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(); + location_ = ""; + + datasetIdPrefix_ = ""; + + kmsKeyName_ = ""; + + 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_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate(this); + result.location_ = location_; + result.datasetIdPrefix_ = datasetIdPrefix_; + result.kmsKeyName_ = kmsKeyName_; + 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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + onChanged(); + } + if (!other.getDatasetIdPrefix().isEmpty()) { + datasetIdPrefix_ = other.datasetIdPrefix_; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + 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 { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object location_ = ""; + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + location_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + onChanged(); + return this; + } + /** + * + * + *
+         * Required. The geographic location where the dataset should reside. See
+         * https://cloud.google.com/bigquery/docs/locations for supported
+         * locations.
+         * 
+ * + * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; + } + + private java.lang.Object datasetIdPrefix_ = ""; + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return The datasetIdPrefix. + */ + public java.lang.String getDatasetIdPrefix() { + java.lang.Object ref = datasetIdPrefix_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetIdPrefix_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return The bytes for datasetIdPrefix. + */ + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + java.lang.Object ref = datasetIdPrefix_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetIdPrefix_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @param value The datasetIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetIdPrefix_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @return This builder for chaining. + */ + public Builder clearDatasetIdPrefix() { + + datasetIdPrefix_ = getDefaultInstance().getDatasetIdPrefix(); + onChanged(); + return this; + } + /** + * + * + *
+         * If supplied, every created dataset will have its name prefixed by the
+         * provided value. The prefix and name will be separated by an underscore.
+         * i.e. <prefix>_<dataset_name>.
+         * 
+ * + * string dataset_id_prefix = 2; + * + * @param value The bytes for datasetIdPrefix to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetIdPrefix_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+         * Describes the Cloud KMS encryption key that will be used to
+         * protect destination BigQuery table. The BigQuery Service Account
+         * associated with your project requires access to this encryption key.
+         * i.e.
+         * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}.
+         * See https://cloud.google.com/bigquery/docs/customer-managed-encryption
+         * for more information.
+         * 
+ * + * string kms_key_name = 3; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = 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:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DatasetTemplate(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 com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DATASET_TEMPLATE_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + @java.lang.Override + public boolean hasDatasetTemplate() { + return datasetTemplate_ != null; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { + return getDatasetTemplate(); + } + + 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 (datasetTemplate_ != null) { + output.writeMessage(2, getDatasetTemplate()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetTemplate_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetTemplate()); + } + 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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; + + if (hasDatasetTemplate() != other.hasDatasetTemplate()) return false; + if (hasDatasetTemplate()) { + if (!getDatasetTemplate().equals(other.getDatasetTemplate())) 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 (hasDatasetTemplate()) { + hash = (37 * hash) + DATASET_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDatasetTemplate().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + 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.BigQueryDestinationConfig.SourceHierarchyDatasets + 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; + } + /** + * + * + *
+     * Destination datasets are created so that hierarchy of the destination data
+     * objects matches the source hierarchy.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.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 (datasetTemplateBuilder_ == null) { + datasetTemplate_ = null; + } else { + datasetTemplate_ = null; + datasetTemplateBuilder_ = null; + } + 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_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets( + this); + if (datasetTemplateBuilder_ == null) { + result.datasetTemplate_ = datasetTemplate_; + } else { + result.datasetTemplate_ = datasetTemplateBuilder_.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 + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) return this; + if (other.hasDatasetTemplate()) { + mergeDatasetTemplate(other.getDatasetTemplate()); + } + 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 { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> + datasetTemplateBuilder_; + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return Whether the datasetTemplate field is set. + */ + public boolean hasDatasetTemplate() { + return datasetTemplateBuilder_ != null || datasetTemplate_ != null; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * + * @return The datasetTemplate. + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { + if (datasetTemplateBuilder_ == null) { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } else { + return datasetTemplateBuilder_.getMessage(); + } + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder setDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { + if (datasetTemplateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetTemplate_ = value; + onChanged(); + } else { + datasetTemplateBuilder_.setMessage(value); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder setDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + builderForValue) { + if (datasetTemplateBuilder_ == null) { + datasetTemplate_ = builderForValue.build(); + onChanged(); + } else { + datasetTemplateBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder mergeDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { + if (datasetTemplateBuilder_ == null) { + if (datasetTemplate_ != null) { + datasetTemplate_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.newBuilder(datasetTemplate_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetTemplate_ = value; + } + onChanged(); + } else { + datasetTemplateBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public Builder clearDatasetTemplate() { + if (datasetTemplateBuilder_ == null) { + datasetTemplate_ = null; + onChanged(); + } else { + datasetTemplate_ = null; + datasetTemplateBuilder_ = null; + } + + return this; + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + getDatasetTemplateBuilder() { + + onChanged(); + return getDatasetTemplateFieldBuilder().getBuilder(); + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { + if (datasetTemplateBuilder_ != null) { + return datasetTemplateBuilder_.getMessageOrBuilder(); + } else { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; + } + } + /** + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> + getDatasetTemplateFieldBuilder() { + if (datasetTemplateBuilder_ == null) { + datasetTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder>( + getDatasetTemplate(), getParentForChildren(), isClean()); + datasetTemplate_ = null; + } + return datasetTemplateBuilder_; + } + + @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.BigQueryDestinationConfig.SourceHierarchyDatasets) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceHierarchyDatasets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SourceHierarchyDatasets(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 com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int datasetConfigCase_ = 0; + private java.lang.Object datasetConfig_; + + public enum DatasetConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SINGLE_TARGET_DATASET(201), + SOURCE_HIERARCHY_DATASETS(202), + DATASETCONFIG_NOT_SET(0); + private final int value; + + private DatasetConfigCase(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 DatasetConfigCase valueOf(int value) { + return forNumber(value); + } + + public static DatasetConfigCase forNumber(int value) { + switch (value) { + case 201: + return SINGLE_TARGET_DATASET; + case 202: + return SOURCE_HIERARCHY_DATASETS; + case 0: + return DATASETCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); + } + + public static final int SINGLE_TARGET_DATASET_FIELD_NUMBER = 201; + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + @java.lang.Override + public boolean hasSingleTargetDataset() { + return datasetConfigCase_ == 201; + } + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + + public static final int SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER = 202; + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + @java.lang.Override + public boolean hasSourceHierarchyDatasets() { + return datasetConfigCase_ == 202; + } + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + + public static final int DATA_FRESHNESS_FIELD_NUMBER = 300; + private com.google.protobuf.Duration dataFreshness_; + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + @java.lang.Override + public boolean hasDataFreshness() { + return dataFreshness_ != null; + } + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + @java.lang.Override + public com.google.protobuf.Duration getDataFreshness() { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { + return getDataFreshness(); + } + + 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 (datasetConfigCase_ == 201) { + output.writeMessage( + 201, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + } + if (datasetConfigCase_ == 202) { + output.writeMessage( + 202, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_); + } + if (dataFreshness_ != null) { + output.writeMessage(300, getDataFreshness()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datasetConfigCase_ == 201) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + } + if (datasetConfigCase_ == 202) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 202, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_); + } + if (dataFreshness_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(300, getDataFreshness()); + } + 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 com.google.cloud.datastream.v1.BigQueryDestinationConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryDestinationConfig other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj; + + if (hasDataFreshness() != other.hasDataFreshness()) return false; + if (hasDataFreshness()) { + if (!getDataFreshness().equals(other.getDataFreshness())) return false; + } + if (!getDatasetConfigCase().equals(other.getDatasetConfigCase())) return false; + switch (datasetConfigCase_) { + case 201: + if (!getSingleTargetDataset().equals(other.getSingleTargetDataset())) return false; + break; + case 202: + if (!getSourceHierarchyDatasets().equals(other.getSourceHierarchyDatasets())) 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(); + if (hasDataFreshness()) { + hash = (37 * hash) + DATA_FRESHNESS_FIELD_NUMBER; + hash = (53 * hash) + getDataFreshness().hashCode(); + } + switch (datasetConfigCase_) { + case 201: + hash = (37 * hash) + SINGLE_TARGET_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getSingleTargetDataset().hashCode(); + break; + case 202: + hash = (37 * hash) + SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER; + hash = (53 * hash) + getSourceHierarchyDatasets().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.BigQueryDestinationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.BigQueryDestinationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.BigQueryDestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.BigQueryDestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.BigQueryDestinationConfig 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.BigQueryDestinationConfig 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.BigQueryDestinationConfig 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 google.cloud.datastream.v1.BigQueryDestinationConfig} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.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 (dataFreshnessBuilder_ == null) { + dataFreshness_ = null; + } else { + dataFreshness_ = null; + dataFreshnessBuilder_ = null; + } + datasetConfigCase_ = 0; + datasetConfig_ = null; + 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_BigQueryDestinationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); + if (datasetConfigCase_ == 201) { + if (singleTargetDatasetBuilder_ == null) { + result.datasetConfig_ = datasetConfig_; + } else { + result.datasetConfig_ = singleTargetDatasetBuilder_.build(); + } + } + if (datasetConfigCase_ == 202) { + if (sourceHierarchyDatasetsBuilder_ == null) { + result.datasetConfig_ = datasetConfig_; + } else { + result.datasetConfig_ = sourceHierarchyDatasetsBuilder_.build(); + } + } + if (dataFreshnessBuilder_ == null) { + result.dataFreshness_ = dataFreshness_; + } else { + result.dataFreshness_ = dataFreshnessBuilder_.build(); + } + result.datasetConfigCase_ = datasetConfigCase_; + 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 com.google.cloud.datastream.v1.BigQueryDestinationConfig) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig other) { + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) + return this; + if (other.hasDataFreshness()) { + mergeDataFreshness(other.getDataFreshness()); + } + switch (other.getDatasetConfigCase()) { + case SINGLE_TARGET_DATASET: + { + mergeSingleTargetDataset(other.getSingleTargetDataset()); + break; + } + case SOURCE_HIERARCHY_DATASETS: + { + mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); + break; + } + case DATASETCONFIG_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 { + com.google.cloud.datastream.v1.BigQueryDestinationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int datasetConfigCase_ = 0; + private java.lang.Object datasetConfig_; + + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); + } + + public Builder clearDatasetConfig() { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + singleTargetDatasetBuilder_; + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + @java.lang.Override + public boolean hasSingleTargetDataset() { + return datasetConfigCase_ == 201; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } else { + if (datasetConfigCase_ == 201) { + return singleTargetDatasetBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder setSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + if (singleTargetDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetConfig_ = value; + onChanged(); + } else { + singleTargetDatasetBuilder_.setMessage(value); + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder setSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + builderForValue) { + if (singleTargetDatasetBuilder_ == null) { + datasetConfig_ = builderForValue.build(); + onChanged(); + } else { + singleTargetDatasetBuilder_.setMessage(builderForValue.build()); + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder mergeSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetConfig_ = value; + } + onChanged(); + } else { + if (datasetConfigCase_ == 201) { + singleTargetDatasetBuilder_.mergeFrom(value); + } else { + singleTargetDatasetBuilder_.setMessage(value); + } + } + datasetConfigCase_ = 201; + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public Builder clearSingleTargetDataset() { + if (singleTargetDatasetBuilder_ == null) { + if (datasetConfigCase_ == 201) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + } + } else { + if (datasetConfigCase_ == 201) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + } + singleTargetDatasetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + getSingleTargetDatasetBuilder() { + return getSingleTargetDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { + if ((datasetConfigCase_ == 201) && (singleTargetDatasetBuilder_ != null)) { + return singleTargetDatasetBuilder_.getMessageOrBuilder(); + } else { + if (datasetConfigCase_ == 201) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Single destination dataset.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + getSingleTargetDatasetFieldBuilder() { + if (singleTargetDatasetBuilder_ == null) { + if (!(datasetConfigCase_ == 201)) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); + } + singleTargetDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDatasetOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_, + getParentForChildren(), + isClean()); + datasetConfig_ = null; + } + datasetConfigCase_ = 201; + onChanged(); + ; + return singleTargetDatasetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> + sourceHierarchyDatasetsBuilder_; + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + @java.lang.Override + public boolean hasSourceHierarchyDatasets() { + return datasetConfigCase_ == 202; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } else { + if (datasetConfigCase_ == 202) { + return sourceHierarchyDatasetsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder setSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasetConfig_ = value; + onChanged(); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(value); + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder setSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + builderForValue) { + if (sourceHierarchyDatasetsBuilder_ == null) { + datasetConfig_ = builderForValue.build(); + onChanged(); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(builderForValue.build()); + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder mergeSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + datasetConfig_ = value; + } + onChanged(); + } else { + if (datasetConfigCase_ == 202) { + sourceHierarchyDatasetsBuilder_.mergeFrom(value); + } else { + sourceHierarchyDatasetsBuilder_.setMessage(value); + } + } + datasetConfigCase_ = 202; + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public Builder clearSourceHierarchyDatasets() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (datasetConfigCase_ == 202) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + onChanged(); + } + } else { + if (datasetConfigCase_ == 202) { + datasetConfigCase_ = 0; + datasetConfig_ = null; + } + sourceHierarchyDatasetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + getSourceHierarchyDatasetsBuilder() { + return getSourceHierarchyDatasetsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { + if ((datasetConfigCase_ == 202) && (sourceHierarchyDatasetsBuilder_ != null)) { + return sourceHierarchyDatasetsBuilder_.getMessageOrBuilder(); + } else { + if (datasetConfigCase_ == 202) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Source hierarchy datasets.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> + getSourceHierarchyDatasetsFieldBuilder() { + if (sourceHierarchyDatasetsBuilder_ == null) { + if (!(datasetConfigCase_ == 202)) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); + } + sourceHierarchyDatasetsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_, + getParentForChildren(), + isClean()); + datasetConfig_ = null; + } + datasetConfigCase_ = 202; + onChanged(); + ; + return sourceHierarchyDatasetsBuilder_; + } + + private com.google.protobuf.Duration dataFreshness_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dataFreshnessBuilder_; + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + public boolean hasDataFreshness() { + return dataFreshnessBuilder_ != null || dataFreshness_ != null; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + public com.google.protobuf.Duration getDataFreshness() { + if (dataFreshnessBuilder_ == null) { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } else { + return dataFreshnessBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder setDataFreshness(com.google.protobuf.Duration value) { + if (dataFreshnessBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataFreshness_ = value; + onChanged(); + } else { + dataFreshnessBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForValue) { + if (dataFreshnessBuilder_ == null) { + dataFreshness_ = builderForValue.build(); + onChanged(); + } else { + dataFreshnessBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder mergeDataFreshness(com.google.protobuf.Duration value) { + if (dataFreshnessBuilder_ == null) { + if (dataFreshness_ != null) { + dataFreshness_ = + com.google.protobuf.Duration.newBuilder(dataFreshness_) + .mergeFrom(value) + .buildPartial(); + } else { + dataFreshness_ = value; + } + onChanged(); + } else { + dataFreshnessBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public Builder clearDataFreshness() { + if (dataFreshnessBuilder_ == null) { + dataFreshness_ = null; + onChanged(); + } else { + dataFreshness_ = null; + dataFreshnessBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public com.google.protobuf.Duration.Builder getDataFreshnessBuilder() { + + onChanged(); + return getDataFreshnessFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() { + if (dataFreshnessBuilder_ != null) { + return dataFreshnessBuilder_.getMessageOrBuilder(); + } else { + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; + } + } + /** + * + * + *
+     * The guaranteed data freshness (in seconds) when querying tables created by
+     * the stream. Editing this field will only affect new tables created in the
+     * future, but existing tables will not be impacted. Lower values mean that
+     * queries will return fresher data, but may result in higher cost.
+     * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getDataFreshnessFieldBuilder() { + if (dataFreshnessBuilder_ == null) { + dataFreshnessBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDataFreshness(), getParentForChildren(), isClean()); + dataFreshness_ = null; + } + return dataFreshnessBuilder_; + } + + @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.BigQueryDestinationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig) + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig(); + } + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryDestinationConfig(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 com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java new file mode 100644 index 00000000000..a9045b1c764 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface BigQueryDestinationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return Whether the singleTargetDataset field is set. + */ + boolean hasSingleTargetDataset(); + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * + * @return The singleTargetDataset. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset(); + /** + * + * + *
+   * Single destination dataset.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder(); + + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return Whether the sourceHierarchyDatasets field is set. + */ + boolean hasSourceHierarchyDatasets(); + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * + * @return The sourceHierarchyDatasets. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets(); + /** + * + * + *
+   * Source hierarchy datasets.
+   * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder(); + + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return Whether the dataFreshness field is set. + */ + boolean hasDataFreshness(); + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + * + * @return The dataFreshness. + */ + com.google.protobuf.Duration getDataFreshness(); + /** + * + * + *
+   * The guaranteed data freshness (in seconds) when querying tables created by
+   * the stream. Editing this field will only affect new tables created in the
+   * future, but existing tables will not be impacted. Lower values mean that
+   * queries will return fresher data, but may result in higher cost.
+   * 
+ * + * .google.protobuf.Duration data_freshness = 300; + */ + com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder(); + + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase + getDatasetConfigCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java new file mode 100644 index 00000000000..5b4ae7a28b9 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java @@ -0,0 +1,456 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * BigQuery warehouse profile.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} + */ +public final class BigQueryProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryProfile) + BigQueryProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryProfile.newBuilder() to construct. + private BigQueryProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryProfile() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BigQueryProfile( + 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.google.cloud.datastream.v1.BigQueryProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.BigQueryProfile other = + (com.google.cloud.datastream.v1.BigQueryProfile) obj; + + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.BigQueryProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.BigQueryProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.BigQueryProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.BigQueryProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile 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.BigQueryProfile 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.BigQueryProfile 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.BigQueryProfile 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; + } + /** + * + * + *
+   * BigQuery warehouse profile.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryProfile) + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BigQueryProfile.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(); + 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_BigQueryProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile build() { + com.google.cloud.datastream.v1.BigQueryProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { + com.google.cloud.datastream.v1.BigQueryProfile result = + new com.google.cloud.datastream.v1.BigQueryProfile(this); + 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 com.google.cloud.datastream.v1.BigQueryProfile) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryProfile other) { + if (other == com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) return this; + 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 { + com.google.cloud.datastream.v1.BigQueryProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.BigQueryProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.BigQueryProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryProfile) + private static final com.google.cloud.datastream.v1.BigQueryProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryProfile(); + } + + public static com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BigQueryProfile(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 com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java new file mode 100644 index 00000000000..65ad646b3e6 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface BigQueryProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index d65197500db..74baca4135f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -178,6 +178,40 @@ private ConnectionProfile( profileCase_ = 102; break; } + case 826: + { + com.google.cloud.datastream.v1.BigQueryProfile.Builder subBuilder = null; + if (profileCase_ == 103) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 103; + break; + } + case 834: + { + com.google.cloud.datastream.v1.PostgresqlProfile.Builder subBuilder = null; + if (profileCase_ == 104) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 104; + break; + } case 1602: { com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder subBuilder = null; @@ -295,6 +329,8 @@ public enum ProfileCase ORACLE_PROFILE(100), GCS_PROFILE(101), MYSQL_PROFILE(102), + BIGQUERY_PROFILE(103), + POSTGRESQL_PROFILE(104), PROFILE_NOT_SET(0); private final int value; @@ -319,6 +355,10 @@ public static ProfileCase forNumber(int value) { return GCS_PROFILE; case 102: return MYSQL_PROFILE; + case 103: + return BIGQUERY_PROFILE; + case 104: + return POSTGRESQL_PROFILE; case 0: return PROFILE_NOT_SET; default: @@ -832,6 +872,108 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } + public static final int BIGQUERY_PROFILE_FIELD_NUMBER = 103; + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + @java.lang.Override + public boolean hasBigqueryProfile() { + return profileCase_ == 103; + } + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + + public static final int POSTGRESQL_PROFILE_FIELD_NUMBER = 104; + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + @java.lang.Override + public boolean hasPostgresqlProfile() { + return profileCase_ == 104; + } + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** * @@ -1035,6 +1177,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (profileCase_ == 102) { output.writeMessage(102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } + if (profileCase_ == 103) { + output.writeMessage(103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + } + if (profileCase_ == 104) { + output.writeMessage(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + } if (connectivityCase_ == 200) { output.writeMessage( 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); @@ -1092,6 +1240,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } + if (profileCase_ == 103) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + } + if (profileCase_ == 104) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + } if (connectivityCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1145,6 +1303,12 @@ public boolean equals(final java.lang.Object obj) { case 102: if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; break; + case 103: + if (!getBigqueryProfile().equals(other.getBigqueryProfile())) return false; + break; + case 104: + if (!getPostgresqlProfile().equals(other.getPostgresqlProfile())) return false; + break; case 0: default: } @@ -1203,6 +1367,14 @@ public int hashCode() { hash = (37 * hash) + MYSQL_PROFILE_FIELD_NUMBER; hash = (53 * hash) + getMysqlProfile().hashCode(); break; + case 103: + hash = (37 * hash) + BIGQUERY_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryProfile().hashCode(); + break; + case 104: + hash = (37 * hash) + POSTGRESQL_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlProfile().hashCode(); + break; case 0: default: } @@ -1472,6 +1644,20 @@ public com.google.cloud.datastream.v1.ConnectionProfile buildPartial() { result.profile_ = mysqlProfileBuilder_.build(); } } + if (profileCase_ == 103) { + if (bigqueryProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = bigqueryProfileBuilder_.build(); + } + } + if (profileCase_ == 104) { + if (postgresqlProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = postgresqlProfileBuilder_.build(); + } + } if (connectivityCase_ == 200) { if (staticServiceIpConnectivityBuilder_ == null) { result.connectivity_ = connectivity_; @@ -1576,6 +1762,16 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) mergeMysqlProfile(other.getMysqlProfile()); break; } + case BIGQUERY_PROFILE: + { + mergeBigqueryProfile(other.getBigqueryProfile()); + break; + } + case POSTGRESQL_PROFILE: + { + mergePostgresqlProfile(other.getPostgresqlProfile()); + break; + } case PROFILE_NOT_SET: { break; @@ -3063,6 +3259,427 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui return mysqlProfileBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + bigqueryProfileBuilder_; + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + @java.lang.Override + public boolean hasBigqueryProfile() { + return profileCase_ == 103; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } else { + if (profileCase_ == 103) { + return bigqueryProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { + if (bigqueryProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + bigqueryProfileBuilder_.setMessage(value); + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder setBigqueryProfile( + com.google.cloud.datastream.v1.BigQueryProfile.Builder builderForValue) { + if (bigqueryProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + bigqueryProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103 + && profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.BigQueryProfile.newBuilder( + (com.google.cloud.datastream.v1.BigQueryProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 103) { + bigqueryProfileBuilder_.mergeFrom(value); + } else { + bigqueryProfileBuilder_.setMessage(value); + } + } + profileCase_ = 103; + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public Builder clearBigqueryProfile() { + if (bigqueryProfileBuilder_ == null) { + if (profileCase_ == 103) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 103) { + profileCase_ = 0; + profile_ = null; + } + bigqueryProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfileBuilder() { + return getBigqueryProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { + if ((profileCase_ == 103) && (bigqueryProfileBuilder_ != null)) { + return bigqueryProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 103) { + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + } + return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + getBigqueryProfileFieldBuilder() { + if (bigqueryProfileBuilder_ == null) { + if (!(profileCase_ == 103)) { + profile_ = com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); + } + bigqueryProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 103; + onChanged(); + ; + return bigqueryProfileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + postgresqlProfileBuilder_; + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + @java.lang.Override + public boolean hasPostgresqlProfile() { + return profileCase_ == 104; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } else { + if (profileCase_ == 104) { + return postgresqlProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { + if (postgresqlProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + postgresqlProfileBuilder_.setMessage(value); + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder setPostgresqlProfile( + com.google.cloud.datastream.v1.PostgresqlProfile.Builder builderForValue) { + if (postgresqlProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + postgresqlProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104 + && profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlProfile) profile_) + .mergeFrom(value) + .buildPartial(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 104) { + postgresqlProfileBuilder_.mergeFrom(value); + } else { + postgresqlProfileBuilder_.setMessage(value); + } + } + profileCase_ = 104; + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public Builder clearPostgresqlProfile() { + if (postgresqlProfileBuilder_ == null) { + if (profileCase_ == 104) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 104) { + profileCase_ = 0; + profile_ = null; + } + postgresqlProfileBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlProfileBuilder() { + return getPostgresqlProfileFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder + getPostgresqlProfileOrBuilder() { + if ((profileCase_ == 104) && (postgresqlProfileBuilder_ != null)) { + return postgresqlProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 104) { + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + } + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL Connection Profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + getPostgresqlProfileFieldBuilder() { + if (postgresqlProfileBuilder_ == null) { + if (!(profileCase_ == 104)) { + profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + postgresqlProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 104; + onChanged(); + ; + return postgresqlProfileBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 533c7ef24be..73368d36504 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -313,6 +313,76 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return Whether the bigqueryProfile field is set. + */ + boolean hasBigqueryProfile(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * + * @return The bigqueryProfile. + */ + com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile(); + /** + * + * + *
+   * BigQuery Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + */ + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder(); + + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return Whether the postgresqlProfile field is set. + */ + boolean hasPostgresqlProfile(); + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * + * @return The postgresqlProfile. + */ + com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile(); + /** + * + * + *
+   * PostgreSQL Connection Profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + */ + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder(); + /** * * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java index a4669b7e278..6a5e9dd582d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -184,7 +184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ud/datastream/v1/datastream_resources.pr" + "oto\032#google/longrunning/operations.proto" + "\032 google/protobuf/field_mask.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\264\003\n Discover" + + "le/protobuf/timestamp.proto\"\375\003\n Discover" + "ConnectionProfileRequest\022C\n\006parent\030\001 \001(\t" + "B3\340A\002\372A-\022+datastream.googleapis.com/Conn" + "ectionProfile\022L\n\022connection_profile\030\310\001 \001" @@ -194,277 +194,281 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rarchy_depth\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001" + "(\0132\'.google.cloud.datastream.v1.OracleRd" + "bmsH\002\022=\n\013mysql_rdbms\030e \001(\0132&.google.clou" - + "d.datastream.v1.MysqlRdbmsH\002B\010\n\006targetB\013" - + "\n\thierarchyB\r\n\013data_object\"\262\001\n!DiscoverC" - + "onnectionProfileResponse\022?\n\014oracle_rdbms" - + "\030d \001(\0132\'.google.cloud.datastream.v1.Orac" - + "leRdbmsH\000\022=\n\013mysql_rdbms\030e \001(\0132&.google." - + "cloud.datastream.v1.MysqlRdbmsH\000B\r\n\013data" - + "_object\"w\n\025FetchStaticIpsRequest\0227\n\004name" - + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" - + "/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nst" - + "atic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"" - + "\255\001\n\035ListConnectionProfilesRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" - + ".com/ConnectionProfile\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfil" - + "esResponse\022J\n\023connection_profiles\030\001 \003(\0132" - + "-.google.cloud.datastream.v1.ConnectionP" - + "rofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" - + "chable\030\003 \003(\t\"`\n\033GetConnectionProfileRequ" - + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" - + "ogleapis.com/ConnectionProfile\"\242\002\n\036Creat" - + "eConnectionProfileRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Con" - + "nectionProfile\022\"\n\025connection_profile_id\030" - + "\002 \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-" - + ".google.cloud.datastream.v1.ConnectionPr" - + "ofileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" - + "alidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003" - + "\340A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224" - + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\013" - + "2-.google.cloud.datastream.v1.Connection" - + "ProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n" - + "\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010" - + "B\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022" - + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.google" - + "apis.com/ConnectionProfile\022\027\n\nrequest_id" - + "\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pa" - + "rent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapi" - + "s.com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" - + "token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030" - + "\005 \001(\t\"x\n\023ListStreamsResponse\0223\n\007streams\030" - + "\001 \003(\0132\".google.cloud.datastream.v1.Strea" - + "m\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" - + "e\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(" - + "\tB(\340A\002\372A\"\n datastream.googleapis.com/Str" - + "eam\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 " - + "\001(\tB(\340A\002\372A\"\022 datastream.googleapis.com/S" - + "tream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030" - + "\003 \001(\0132\".google.cloud.datastream.v1.Strea" - + "mB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalid" - + "ate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" - + "\315\001\n\023UpdateStreamRequest\0224\n\013update_mask\030\001" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\0227\n" - + "\006stream\030\002 \001(\0132\".google.cloud.datastream." - + "v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022" - + "\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001" - + "(\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001" - + " \001(\tB(\340A\002\372A\"\n datastream.googleapis.com/" - + "Stream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"V\n\026GetSt" - + "reamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datastream.googleapis.com/StreamObject\"" - + "\260\001\n\031LookupStreamObjectRequest\0228\n\006parent\030" - + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" - + "/Stream\022Y\n\030source_object_identifier\030\002 \001(" - + "\01322.google.cloud.datastream.v1.SourceObj" - + "ectIdentifierB\003\340A\002\"Y\n\027StartBackfillJobRe" - + "quest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastrea" - + "m.googleapis.com/StreamObject\"T\n\030StartBa" - + "ckfillJobResponse\0228\n\006object\030\001 \001(\0132(.goog" - + "le.cloud.datastream.v1.StreamObject\"X\n\026S" - + "topBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340" - + "A\002\372A(\n&datastream.googleapis.com/StreamO" - + "bject\"S\n\027StopBackfillJobResponse\0228\n\006obje" - + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" - + "reamObject\"\201\001\n\030ListStreamObjectsRequest\022" - + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream.goog" - + "leapis.com/StreamObject\022\021\n\tpage_size\030\002 \001" - + "(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStreamObje" - + "ctsResponse\022@\n\016stream_objects\030\001 \003(\0132(.go" - + "ogle.cloud.datastream.v1.StreamObject\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\316\002\n\021OperationMeta" - + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" - + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" - + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" - + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" - + "\003\022L\n\021validation_result\030\010 \001(\0132,.google.cl" - + "oud.datastream.v1.ValidationResultB\003\340A\003\"" - + "\362\001\n\036CreatePrivateConnectionRequest\022C\n\006pa" - + "rent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapi" - + "s.com/PrivateConnection\022\"\n\025private_conne" - + "ction_id\030\002 \001(\tB\003\340A\002\022N\n\022private_connectio" - + "n\030\003 \001(\0132-.google.cloud.datastream.v1.Pri" - + "vateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" - + "\003\340A\001\"\255\001\n\035ListPrivateConnectionsRequest\022C" - + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" - + "eapis.com/PrivateConnection\022\021\n\tpage_size" - + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" - + "(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConn" - + "ectionsResponse\022J\n\023private_connections\030\001" - + " \003(\0132-.google.cloud.datastream.v1.Privat" - + "eConnection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateConne" - + "ctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+data" - + "stream.googleapis.com/PrivateConnection\022" - + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B" - + "\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A\n\004n" - + "ame\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" - + ".com/PrivateConnection\"\264\001\n\022CreateRouteRe" - + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastrea" - + "m.googleapis.com/Route\022\025\n\010route_id\030\002 \001(\t" - + "B\003\340A\002\0225\n\005route\030\003 \001(\0132!.google.cloud.data" - + "stream.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" - + "B\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 " - + "\001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com/R" - + "oute\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " - + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n" - + "\022ListRoutesResponse\0221\n\006routes\030\001 \003(\0132!.go" - + "ogle.cloud.datastream.v1.Route\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022" - + "DeleteRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" - + "\n\037datastream.googleapis.com/Route\022\027\n\nreq" - + "uest_id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n" - + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleap" - + "is.com/Route2\375*\n\nDatastream\022\330\001\n\026ListConn" - + "ectionProfiles\0229.google.cloud.datastream" - + ".v1.ListConnectionProfilesRequest\032:.goog" - + "le.cloud.datastream.v1.ListConnectionPro" - + "filesResponse\"G\202\323\344\223\0028\0226/v1/{parent=proje" - + "cts/*/locations/*}/connectionProfiles\332A\006" - + "parent\022\305\001\n\024GetConnectionProfile\0227.google" - + ".cloud.datastream.v1.GetConnectionProfil" - + "eRequest\032-.google.cloud.datastream.v1.Co" - + "nnectionProfile\"E\202\323\344\223\0028\0226/v1/{name=proje" - + "cts/*/locations/*/connectionProfiles/*}\332" - + "A\004name\022\244\002\n\027CreateConnectionProfile\022:.goo" - + "gle.cloud.datastream.v1.CreateConnection" - + "ProfileRequest\032\035.google.longrunning.Oper" - + "ation\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/l" - + "ocations/*}/connectionProfiles:\022connecti" - + "on_profile\332A/parent,connection_profile,c" - + "onnection_profile_id\312A&\n\021ConnectionProfi" - + "le\022\021OperationMetadata\022\246\002\n\027UpdateConnecti" - + "onProfile\022:.google.cloud.datastream.v1.U" - + "pdateConnectionProfileRequest\032\035.google.l" - + "ongrunning.Operation\"\257\001\202\323\344\223\002_2I/v1/{conn" - + "ection_profile.name=projects/*/locations" - + "/*/connectionProfiles/*}:\022connection_pro" - + "file\332A\036connection_profile,update_mask\312A&" - + "\n\021ConnectionProfile\022\021OperationMetadata\022\350" - + "\001\n\027DeleteConnectionProfile\022:.google.clou" - + "d.datastream.v1.DeleteConnectionProfileR" - + "equest\032\035.google.longrunning.Operation\"r\202" - + "\323\344\223\0028*6/v1/{name=projects/*/locations/*/" - + "connectionProfiles/*}\332A\004name\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\022\344\001\n\031Di" - + "scoverConnectionProfile\022<.google.cloud.d" - + "atastream.v1.DiscoverConnectionProfileRe" - + "quest\032=.google.cloud.datastream.v1.Disco" - + "verConnectionProfileResponse\"J\202\323\344\223\002D\"?/v" - + "1/{parent=projects/*/locations/*}/connec" - + "tionProfiles:discover:\001*\022\254\001\n\013ListStreams" - + "\022..google.cloud.datastream.v1.ListStream" - + "sRequest\032/.google.cloud.datastream.v1.Li" - + "stStreamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=p" - + "rojects/*/locations/*}/streams\332A\006parent\022" - + "\231\001\n\tGetStream\022,.google.cloud.datastream." - + "v1.GetStreamRequest\032\".google.cloud.datas" - + "tream.v1.Stream\":\202\323\344\223\002-\022+/v1/{name=proje" - + "cts/*/locations/*/streams/*}\332A\004name\022\323\001\n\014" - + "CreateStream\022/.google.cloud.datastream.v" - + "1.CreateStreamRequest\032\035.google.longrunni" - + "ng.Operation\"s\202\323\344\223\0025\"+/v1/{parent=projec" - + "ts/*/locations/*}/streams:\006stream\332A\027pare" - + "nt,stream,stream_id\312A\033\n\006Stream\022\021Operatio" - + "nMetadata\022\325\001\n\014UpdateStream\022/.google.clou" - + "d.datastream.v1.UpdateStreamRequest\032\035.go" - + "ogle.longrunning.Operation\"u\202\323\344\223\002<22/v1/" - + "{stream.name=projects/*/locations/*/stre" - + "ams/*}:\006stream\332A\022stream,update_mask\312A\033\n\006" - + "Stream\022\021OperationMetadata\022\307\001\n\014DeleteStre" - + "am\022/.google.cloud.datastream.v1.DeleteSt" - + "reamRequest\032\035.google.longrunning.Operati" - + "on\"g\202\323\344\223\002-*+/v1/{name=projects/*/locatio" - + "ns/*/streams/*}\332A\004name\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\022\265\001\n\017GetStrea" - + "mObject\0222.google.cloud.datastream.v1.Get" - + "StreamObjectRequest\032(.google.cloud.datas" - + "tream.v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name" - + "=projects/*/locations/*/streams/*/object" - + "s/*}\332A\004name\022\276\001\n\022LookupStreamObject\0225.goo" - + "gle.cloud.datastream.v1.LookupStreamObje" - + "ctRequest\032(.google.cloud.datastream.v1.S" - + "treamObject\"G\202\323\344\223\002A\"\n\006objec" + + "t\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.c" + + "om/StreamObject\"T\n\030StartBackfillJobRespo" + + "nse\0228\n\006object\030\001 \001(\0132(.google.cloud.datas" + + "tream.v1.StreamObject\"X\n\026StopBackfillJob" + + "Request\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastr" + + "eam.googleapis.com/StreamObject\"S\n\027StopB" + + "ackfillJobResponse\0228\n\006object\030\001 \001(\0132(.goo" + + "gle.cloud.datastream.v1.StreamObject\"\201\001\n" + + "\030ListStreamObjectsRequest\022>\n\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&datastream.googleapis.com/Str" + + "eamObject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"v\n\031ListStreamObjectsResponse\022@\n" + + "\016stream_objects\030\001 \003(\0132(.google.cloud.dat" + + "astream.v1.StreamObject\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\316\002\n\021OperationMetadata\0224\n\013create" + + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004" + + "verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB" + + "\003\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A" + + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022L\n\021validatio" + + "n_result\030\010 \001(\0132,.google.cloud.datastream" + + ".v1.ValidationResultB\003\340A\003\"\362\001\n\036CreatePriv" + + "ateConnectionRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\022+datastream.googleapis.com/PrivateC" + + "onnection\022\"\n\025private_connection_id\030\002 \001(\t" + + "B\003\340A\002\022N\n\022private_connection\030\003 \001(\0132-.goog" + + "le.cloud.datastream.v1.PrivateConnection" + + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\255\001\n\035ListP" + + "rivateConnectionsRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\022+datastream.googleapis.com/Priv" + + "ateConnection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"\232\001\n\036ListPrivateConnectionsRespons" + + "e\022J\n\023private_connections\030\001 \003(\0132-.google." + + "cloud.datastream.v1.PrivateConnection\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " + + "\003(\t\"\220\001\n\036DeletePrivateConnectionRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/PrivateConnection\022\027\n\nrequest_id\030" + + "\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"`\n\033GetPri" + + "vateConnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\264\001\n\022CreateRouteRequest\0227\n\006paren" + + "t\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googleapis.c" + + "om/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002\0225\n\005route" + + "\030\003 \001(\0132!.google.cloud.datastream.v1.Rout" + + "eB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021List" + + "RoutesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037d" + + "atastream.googleapis.com/Route\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022ListRoutesRes" + + "ponse\0221\n\006routes\030\001 \003(\0132!.google.cloud.dat" + + "astream.v1.Route\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022DeleteRouteReq" + + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.g" + + "oogleapis.com/Route\022\027\n\nrequest_id\030\002 \001(\tB" + + "\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name\030\001 \001(\tB\'\340" + + "A\002\372A!\n\037datastream.googleapis.com/Route2\375" + + "*\n\nDatastream\022\330\001\n\026ListConnectionProfiles" + + "\0229.google.cloud.datastream.v1.ListConnec" + + "tionProfilesRequest\032:.google.cloud.datas" + + "tream.v1.ListConnectionProfilesResponse\"" + + "G\202\323\344\223\0028\0226/v1/{parent=projects/*/location" + + "s/*}/connectionProfiles\332A\006parent\022\305\001\n\024Get" + + "ConnectionProfile\0227.google.cloud.datastr" + + "eam.v1.GetConnectionProfileRequest\032-.goo" + + "gle.cloud.datastream.v1.ConnectionProfil" + + "e\"E\202\323\344\223\0028\0226/v1/{name=projects/*/location" + + "s/*/connectionProfiles/*}\332A\004name\022\244\002\n\027Cre" + + "ateConnectionProfile\022:.google.cloud.data" + + "stream.v1.CreateConnectionProfileRequest" + + "\032\035.google.longrunning.Operation\"\255\001\202\323\344\223\002L" + + "\"6/v1/{parent=projects/*/locations/*}/co" + + "nnectionProfiles:\022connection_profile\332A/p" + + "arent,connection_profile,connection_prof" + + "ile_id\312A&\n\021ConnectionProfile\022\021OperationM" + + "etadata\022\246\002\n\027UpdateConnectionProfile\022:.go" + + "ogle.cloud.datastream.v1.UpdateConnectio" + + "nProfileRequest\032\035.google.longrunning.Ope" + + "ration\"\257\001\202\323\344\223\002_2I/v1/{connection_profile" + + ".name=projects/*/locations/*/connectionP" + + "rofiles/*}:\022connection_profile\332A\036connect" + + "ion_profile,update_mask\312A&\n\021ConnectionPr" + + "ofile\022\021OperationMetadata\022\350\001\n\027DeleteConne" + + "ctionProfile\022:.google.cloud.datastream.v" + + "1.DeleteConnectionProfileRequest\032\035.googl" + + "e.longrunning.Operation\"r\202\323\344\223\0028*6/v1/{na" + + "me=projects/*/locations/*/connectionProf" + + "iles/*}\332A\004name\312A*\n\025google.protobuf.Empty" + + "\022\021OperationMetadata\022\344\001\n\031DiscoverConnecti" + + "onProfile\022<.google.cloud.datastream.v1.D" + + "iscoverConnectionProfileRequest\032=.google" + + ".cloud.datastream.v1.DiscoverConnectionP" + + "rofileResponse\"J\202\323\344\223\002D\"?/v1/{parent=proj" + + "ects/*/locations/*}/connectionProfiles:d" + + "iscover:\001*\022\254\001\n\013ListStreams\022..google.clou" + + "d.datastream.v1.ListStreamsRequest\032/.goo" + + "gle.cloud.datastream.v1.ListStreamsRespo" + + "nse\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/loca" + + "tions/*}/streams\332A\006parent\022\231\001\n\tGetStream\022" + + ",.google.cloud.datastream.v1.GetStreamRe" + + "quest\032\".google.cloud.datastream.v1.Strea" + + "m\":\202\323\344\223\002-\022+/v1/{name=projects/*/location" + + "s/*/streams/*}\332A\004name\022\323\001\n\014CreateStream\022/" + + ".google.cloud.datastream.v1.CreateStream" + + "Request\032\035.google.longrunning.Operation\"s" + + "\202\323\344\223\0025\"+/v1/{parent=projects/*/locations" + + "/*}/streams:\006stream\332A\027parent,stream,stre" + + "am_id\312A\033\n\006Stream\022\021OperationMetadata\022\325\001\n\014" + + "UpdateStream\022/.google.cloud.datastream.v" + + "1.UpdateStreamRequest\032\035.google.longrunni" + + "ng.Operation\"u\202\323\344\223\002<22/v1/{stream.name=p" + + "rojects/*/locations/*/streams/*}:\006stream" + + "\332A\022stream,update_mask\312A\033\n\006Stream\022\021Operat" + + "ionMetadata\022\307\001\n\014DeleteStream\022/.google.cl" + + "oud.datastream.v1.DeleteStreamRequest\032\035." + + "google.longrunning.Operation\"g\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/streams/*" + + "}\332A\004name\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\022\265\001\n\017GetStreamObject\0222.goog" + + "le.cloud.datastream.v1.GetStreamObjectRe" + + "quest\032(.google.cloud.datastream.v1.Strea" + + "mObject\"D\202\323\344\223\0027\0225/v1/{name=projects/*/lo" + + "cations/*/streams/*/objects/*}\332A\004name\022\276\001" + + "\n\022LookupStreamObject\0225.google.cloud.data" + + "stream.v1.LookupStreamObjectRequest\032(.go" + + "ogle.cloud.datastream.v1.StreamObject\"G\202" + + "\323\344\223\002A\"\n\nssl_config\030\005 \001(\0132*.google.cloud." - + "datastream.v1.MysqlSslConfig\"4\n\nGcsProfi" - + "le\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001" - + "(\t\"\035\n\033StaticServiceIpConnectivity\"\250\001\n\034Fo" - + "rwardSshTunnelConnectivity\022\025\n\010hostname\030\001" - + " \001(\tB\003\340A\002\022\025\n\010username\030\002 \001(\tB\003\340A\002\022\014\n\004port" - + "\030\003 \001(\005\022\027\n\010password\030d \001(\tB\003\340A\004H\000\022\032\n\013priva" - + "te_key\030e \001(\tB\003\340A\004H\000B\027\n\025authentication_me" - + "thod\"]\n\020VpcPeeringConfig\0224\n\003vpc\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037compute.googleapis.com/Networks\022\023" - + "\n\006subnet\030\002 \001(\tB\003\340A\002\"\340\005\n\021PrivateConnectio" - + "n\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022I\n\006labels\030\004 \003(\01329.google.cloud." - + "datastream.v1.PrivateConnection.LabelsEn" - + "try\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030" - + "\006 \001(\01623.google.cloud.datastream.v1.Priva" - + "teConnection.StateB\003\340A\003\0225\n\005error\030\007 \001(\0132!" - + ".google.cloud.datastream.v1.ErrorB\003\340A\003\022H" - + "\n\022vpc_peering_config\030d \001(\0132,.google.clou" - + "d.datastream.v1.VpcPeeringConfig\032-\n\013Labe" + + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" + + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" + + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" + + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" + + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" + + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" + + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" + + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" + + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" + + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" + + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" + + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" + + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" + + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" + + "bels\030\004 \003(\01329.google.cloud.datastream.v1." + + "PrivateConnection.LabelsEntry\022\031\n\014display" + + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" + + ".cloud.datastream.v1.PrivateConnection.S" + + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." + + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" + + "config\030d \001(\0132,.google.cloud.datastream.v" + + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" + + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" + + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" + + "s.com/PrivateConnection\022Oprojects/{proje" + + "ct}/locations/{location}/privateConnecti" + + "ons/{private_connection}\"f\n\023PrivateConne" + + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" + + "\0132-.google.cloud.datastream.v1.Route.Lab" + + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" + + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" + + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" + + "m.googleapis.com/Route\022^projects/{projec" + + "t}/locations/{location}/privateConnectio" + + "ns/{private_connection}/routes/{route}\"\312" + + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" + + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" + + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" + + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" + + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" + + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" + + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" + + "nnectionProfile.LabelsEntry\022\031\n\014display_n" + + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" + + ".google.cloud.datastream.v1.OracleProfil" + + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." + + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" + + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" + + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" + + "+.google.cloud.datastream.v1.BigQueryPro" + + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" + + "gle.cloud.datastream.v1.PostgresqlProfil" + + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" + + " \001(\01327.google.cloud.datastream.v1.Static" + + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" + + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" + + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" + + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" + + "loud.datastream.v1.PrivateConnectivityH\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" + + "/ConnectionProfile\022Oprojects/{project}/l" + + "ocations/{location}/connectionProfiles/{" + + "connection_profile}B\t\n\007profileB\016\n\014connec" + + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" + + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" + + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" + + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" + + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" + + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" + + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" + + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" + + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" + + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" + + "tastream.v1.OracleSchema\"\300\003\n\022OracleSourc" + + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" + + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" + + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" + + "c_tasks\030\003 \001(\005\022]\n\022drop_large_objects\030d \001(" + + "\0132?.google.cloud.datastream.v1.OracleSou" + + "rceConfig.DropLargeObjectsH\000\022a\n\024stream_l" + + "arge_objects\030f \001(\0132A.google.cloud.datast" + + "ream.v1.OracleSourceConfig.StreamLargeOb" + + "jectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLar" + + "geObjectsB\030\n\026large_objects_handling\"\250\001\n\020" + + "PostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata" + + "_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision" + + "\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001" + + "(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position" + + "\030\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t" + + "\022H\n\022postgresql_columns\030\002 \003(\0132,.google.cl" + + "oud.datastream.v1.PostgresqlColumn\"j\n\020Po" + + "stgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgr" + + "esql_tables\030\002 \003(\0132+.google.cloud.datastr" + + "eam.v1.PostgresqlTable\"[\n\017PostgresqlRdbm" + + "s\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.c" + + "loud.datastream.v1.PostgresqlSchema\"\335\001\n\026" + + "PostgresqlSourceConfig\022D\n\017include_object" + + "s\030\001 \001(\0132+.google.cloud.datastream.v1.Pos" + + "tgresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+." + + "google.cloud.datastream.v1.PostgresqlRdb" + + "ms\022\035\n\020replication_slot\030\003 \001(\tB\003\340A\002\022\030\n\013pub" + + "lication\030\004 \001(\tB\003\340A\002\"\224\001\n\013MysqlColumn\022\016\n\006c" + + "olumn\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_key" + + "\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_posi" + + "tion\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t\022" + + ">\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.MysqlColumn\"_\n\rMysqlDatabase" + + "\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(\013" + + "2&.google.cloud.datastream.v1.MysqlTable" + + "\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\0132" + + ").google.cloud.datastream.v1.MysqlDataba" + + "se\"\267\001\n\021MysqlSourceConfig\022?\n\017include_obje" + + "cts\030\001 \001(\0132&.google.cloud.datastream.v1.M" + + "ysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.goo" + + "gle.cloud.datastream.v1.MysqlRdbms\022 \n\030ma" + + "x_concurrent_cdc_tasks\030\003 \001(\005\"\364\002\n\014SourceC" + + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + + "ectionProfile\022N\n\024oracle_source_config\030d " + + "\001(\0132..google.cloud.datastream.v1.OracleS" + + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + + "(\0132-.google.cloud.datastream.v1.MysqlSou" + + "rceConfigH\000\022V\n\030postgresql_source_config\030" + + "f \001(\01322.google.cloud.datastream.v1.Postg" + + "resqlSourceConfigH\000B\026\n\024source_stream_con" + + "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" + + "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" + + "oud.datastream.v1.JsonFileFormat.SchemaF" + + "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." + + "cloud.datastream.v1.JsonFileFormat.JsonC" + + "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" + + "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" + + "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" + + "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" + + "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" + + "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" + + "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" + + "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" + + "vro_file_format\030d \001(\0132*.google.cloud.dat" + + "astream.v1.AvroFileFormatH\000\022F\n\020json_file" + + "_format\030e \001(\0132*.google.cloud.datastream." + + "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" + + "igQueryDestinationConfig\022k\n\025single_targe" + + "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" + + "am.v1.BigQueryDestinationConfig.SingleTa" + + "rgetDatasetH\000\022s\n\031source_hierarchy_datase" + + "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" + + "igQueryDestinationConfig.SourceHierarchy" + + "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" + + "ogle.protobuf.Duration\032)\n\023SingleTargetDa" + + "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" + + "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" + + "].google.cloud.datastream.v1.BigQueryDes" + + "tinationConfig.SourceHierarchyDatasets.D" + + "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" + + "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " + + "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" + + "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" + + "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" + + "tream.googleapis.com/ConnectionProfile\022R" + + "\n\026gcs_destination_config\030d \001(\01320.google." + + "cloud.datastream.v1.GcsDestinationConfig" + + "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" + + "5.google.cloud.datastream.v1.BigQueryDes" + + "tinationConfigH\000B\033\n\031destination_stream_c" + + "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" + + "..google.cloud.datastream.v1.Stream.Labe" + + "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" + + "urce_config\030\006 \001(\0132(.google.cloud.datastr" + + "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" + + "config\030\007 \001(\0132-.google.cloud.datastream.v" + + "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" + + "(.google.cloud.datastream.v1.Stream.Stat" + + "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" + + "atastream.v1.Stream.BackfillAllStrategyH" + + "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." + + "datastream.v1.Stream.BackfillNoneStrateg" + + "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" + + "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" + + "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" + + "illAllStrategy\022J\n\027oracle_excluded_object" + + "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" + + "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" + + "(\0132&.google.cloud.datastream.v1.MysqlRdb" + + "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" + + "\0132+.google.cloud.datastream.v1.Postgresq" + + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" + + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" + + "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" + + "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" + + "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" + + "pis.com/Stream\0228projects/{project}/locat" + + "ions/{location}/streams/{stream}B\023\n\021back" + + "fill_strategyB\"\n _customer_managed_encry" + + "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" + + "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" + + "backfill_job\030\007 \001(\0132\'.google.cloud.datast" + + "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" + + "(\01322.google.cloud.datastream.v1.SourceOb" + + "jectIdentifier:v\352As\n&datastream.googleap" + + "is.com/StreamObject\022Iprojects/{project}/" + + "locations/{location}/streams/{stream}/ob" + + "jects/{object}\"\271\004\n\026SourceObjectIdentifie" + + "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" + + "oud.datastream.v1.SourceObjectIdentifier" + + ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" + + "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" + + ".SourceObjectIdentifier.MysqlObjectIdent" + + "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" + + ".google.cloud.datastream.v1.SourceObject" + + "Identifier.PostgresqlObjectIdentifierH\000\032" + + "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" + + "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" + + "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" + + "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" + + "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" + + "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" + + "\0162/.google.cloud.datastream.v1.BackfillJ" + + "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" + + "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" + + "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" + + "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" + + "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" + + "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" + + "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." + + "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" + + "atastream.v1.Error.DetailsEntry\032.\n\014Detai" + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "i\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREAT" - + "ING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETI" - + "NG\020\004\022\024\n\020FAILED_TO_DELETE\020\005:\201\001\352A~\n+datast" - + "ream.googleapis.com/PrivateConnection\022Op" - + "rojects/{project}/locations/{location}/p" - + "rivateConnections/{private_connection}\"f" - + "\n\023PrivateConnectivity\022O\n\022private_connect" - + "ion\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" - + ".com/PrivateConnection\"\323\003\n\005Route\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "=\n\006labels\030\004 \003(\0132-.google.cloud.datastrea" - + "m.v1.Route.LabelsEntry\022\031\n\014display_name\030\005" - + " \001(\tB\003\340A\002\022 \n\023destination_address\030\006 \001(\tB\003" - + "\340A\002\022\030\n\020destination_port\030\007 \001(\005\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352" - + "A\201\001\n\037datastream.googleapis.com/Route\022^pr" - + "ojects/{project}/locations/{location}/pr" - + "ivateConnections/{private_connection}/ro" - + "utes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\nclien" - + "t_key\030\001 \001(\tB\003\340A\004\022\033\n\016client_key_set\030\002 \001(\010" - + "B\003\340A\003\022\037\n\022client_certificate\030\003 \001(\tB\003\340A\004\022#" - + "\n\026client_certificate_set\030\004 \001(\010B\003\340A\003\022\033\n\016c" - + "a_certificate\030\005 \001(\tB\003\340A\004\022\037\n\022ca_certifica" - + "te_set\030\006 \001(\010B\003\340A\003\"\242\007\n\021ConnectionProfile\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" - + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022I\n\006labels\030\004 \003(\01329.google.cloud.da" - + "tastream.v1.ConnectionProfile.LabelsEntr" - + "y\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022C\n\016oracle_p" - + "rofile\030d \001(\0132).google.cloud.datastream.v" - + "1.OracleProfileH\000\022=\n\013gcs_profile\030e \001(\0132&" - + ".google.cloud.datastream.v1.GcsProfileH\000" - + "\022A\n\rmysql_profile\030f \001(\0132(.google.cloud.d" - + "atastream.v1.MysqlProfileH\000\022b\n\036static_se" - + "rvice_ip_connectivity\030\310\001 \001(\01327.google.cl" - + "oud.datastream.v1.StaticServiceIpConnect" - + "ivityH\001\022]\n\030forward_ssh_connectivity\030\311\001 \001" - + "(\01328.google.cloud.datastream.v1.ForwardS" - + "shTunnelConnectivityH\001\022P\n\024private_connec" - + "tivity\030\312\001 \001(\0132/.google.cloud.datastream." - + "v1.PrivateConnectivityH\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\201\001\352A~\n+d" - + "atastream.googleapis.com/ConnectionProfi" - + "le\022Oprojects/{project}/locations/{locati" - + "on}/connectionProfiles/{connection_profi" - + "le}B\t\n\007profileB\016\n\014connectivity\"\266\001\n\014Oracl" - + "eColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001" - + "(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n" - + "\005scale\030\005 \001(\005\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primar" - + "y_key\030\007 \001(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal" - + "_position\030\t \001(\005\"^\n\013OracleTable\022\r\n\005table\030" - + "\001 \001(\t\022@\n\016oracle_columns\030\002 \003(\0132(.google.c" - + "loud.datastream.v1.OracleColumn\"^\n\014Oracl" - + "eSchema\022\016\n\006schema\030\001 \001(\t\022>\n\roracle_tables" - + "\030\002 \003(\0132\'.google.cloud.datastream.v1.Orac" - + "leTable\"O\n\013OracleRdbms\022@\n\016oracle_schemas" - + "\030\001 \003(\0132(.google.cloud.datastream.v1.Orac" - + "leSchema\"\230\001\n\022OracleSourceConfig\022@\n\017inclu" - + "de_objects\030\001 \001(\0132\'.google.cloud.datastre" - + "am.v1.OracleRdbms\022@\n\017exclude_objects\030\002 \001" - + "(\0132\'.google.cloud.datastream.v1.OracleRd" - + "bms\"\224\001\n\013MysqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\td" - + "ata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tcollat" - + "ion\030\004 \001(\t\022\023\n\013primary_key\030\005 \001(\010\022\020\n\010nullab" - + "le\030\006 \001(\010\022\030\n\020ordinal_position\030\007 \001(\005\"[\n\nMy" - + "sqlTable\022\r\n\005table\030\001 \001(\t\022>\n\rmysql_columns" - + "\030\002 \003(\0132\'.google.cloud.datastream.v1.Mysq" - + "lColumn\"_\n\rMysqlDatabase\022\020\n\010database\030\001 \001" - + "(\t\022<\n\014mysql_tables\030\002 \003(\0132&.google.cloud." - + "datastream.v1.MysqlTable\"P\n\nMysqlRdbms\022B" - + "\n\017mysql_databases\030\001 \003(\0132).google.cloud.d" - + "atastream.v1.MysqlDatabase\"\225\001\n\021MysqlSour" - + "ceConfig\022?\n\017include_objects\030\001 \001(\0132&.goog" - + "le.cloud.datastream.v1.MysqlRdbms\022?\n\017exc" - + "lude_objects\030\002 \001(\0132&.google.cloud.datast" - + "ream.v1.MysqlRdbms\"\234\002\n\014SourceConfig\022V\n\031s" - + "ource_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+" - + "datastream.googleapis.com/ConnectionProf" - + "ile\022N\n\024oracle_source_config\030d \001(\0132..goog" - + "le.cloud.datastream.v1.OracleSourceConfi" - + "gH\000\022L\n\023mysql_source_config\030e \001(\0132-.googl" - + "e.cloud.datastream.v1.MysqlSourceConfigH" - + "\000B\026\n\024source_stream_config\"\020\n\016AvroFileFor" - + "mat\"\357\002\n\016JsonFileFormat\022W\n\022schema_file_fo" - + "rmat\030\001 \001(\0162;.google.cloud.datastream.v1." - + "JsonFileFormat.SchemaFileFormat\022O\n\013compr" - + "ession\030\002 \001(\0162:.google.cloud.datastream.v" - + "1.JsonFileFormat.JsonCompression\"`\n\020Sche" - + "maFileFormat\022\"\n\036SCHEMA_FILE_FORMAT_UNSPE" - + "CIFIED\020\000\022\022\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCH" - + "EMA_FILE\020\002\"Q\n\017JsonCompression\022 \n\034JSON_CO" - + "MPRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSIO" - + "N\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsDestinationConfig\022\014" - + "\n\004path\030\001 \001(\t\022\030\n\020file_rotation_mb\030\002 \001(\005\0229" - + "\n\026file_rotation_interval\030\003 \001(\0132\031.google." - + "protobuf.Duration\022F\n\020avro_file_format\030d " - + "\001(\0132*.google.cloud.datastream.v1.AvroFil" - + "eFormatH\000\022F\n\020json_file_format\030e \001(\0132*.go" - + "ogle.cloud.datastream.v1.JsonFileFormatH" - + "\000B\r\n\013file_format\"\341\001\n\021DestinationConfig\022[" - + "\n\036destination_connection_profile\030\001 \001(\tB3" - + "\340A\002\372A-\n+datastream.googleapis.com/Connec" - + "tionProfile\022R\n\026gcs_destination_config\030d " - + "\001(\01320.google.cloud.datastream.v1.GcsDest" - + "inationConfigH\000B\033\n\031destination_stream_co" - + "nfig\"\375\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132." - + ".google.cloud.datastream.v1.Stream.Label" - + "sEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rsou" - + "rce_config\030\006 \001(\0132(.google.cloud.datastre" - + "am.v1.SourceConfigB\003\340A\002\022N\n\022destination_c" - + "onfig\030\007 \001(\0132-.google.cloud.datastream.v1" - + ".DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(" - + ".google.cloud.datastream.v1.Stream.State" - + "\022N\n\014backfill_all\030e \001(\01326.google.cloud.da" - + "tastream.v1.Stream.BackfillAllStrategyH\000" - + "\022P\n\rbackfill_none\030f \001(\01327.google.cloud.d" - + "atastream.v1.Stream.BackfillNoneStrategy" - + "H\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datast" - + "ream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_e" - + "ncryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\277\001\n\023Backfi" - + "llAllStrategy\022J\n\027oracle_excluded_objects" - + "\030\001 \001(\0132\'.google.cloud.datastream.v1.Orac" - + "leRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001(" - + "\0132&.google.cloud.datastream.v1.MysqlRdbm" - + "sH\000B\022\n\020excluded_objects\032\026\n\024BackfillNoneS" - + "trategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING\020\002\022\n\n" - + "\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026" - + "\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010" - + "DRAINING\020\010:_\352A\\\n datastream.googleapis.c" - + "om/Stream\0228projects/{project}/locations/" - + "{location}/streams/{stream}B\023\n\021backfill_" - + "strategyB\"\n _customer_managed_encryption" - + "_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\tB\003\340A\003" - + "\0224\n\013create_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\031\n\014display_" - + "name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google" - + ".cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014backf" - + "ill_job\030\007 \001(\0132\'.google.cloud.datastream." - + "v1.BackfillJob\022I\n\rsource_object\030\010 \001(\01322." - + "google.cloud.datastream.v1.SourceObjectI" - + "dentifier:v\352As\n&datastream.googleapis.co" - + "m/StreamObject\022Iprojects/{project}/locat" - + "ions/{location}/streams/{stream}/objects" - + "/{object}\"\202\003\n\026SourceObjectIdentifier\022f\n\021" - + "oracle_identifier\030\001 \001(\0132I.google.cloud.d" - + "atastream.v1.SourceObjectIdentifier.Orac" - + "leObjectIdentifierH\000\022d\n\020mysql_identifier" - + "\030\002 \001(\0132H.google.cloud.datastream.v1.Sour" - + "ceObjectIdentifier.MysqlObjectIdentifier" - + "H\000\032A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001" - + " \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlOb" - + "jectIdentifier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n" - + "\005table\030\002 \001(\tB\003\340A\002B\023\n\021source_identifier\"\372" - + "\003\n\013BackfillJob\022<\n\005state\030\001 \001(\0162-.google.c" - + "loud.datastream.v1.BackfillJob.State\022@\n\007" - + "trigger\030\002 \001(\0162/.google.cloud.datastream." - + "v1.BackfillJob.Trigger\0228\n\017last_start_tim" - + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0226\n\rlast_end_time\030\004 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0226\n\006errors\030\005 \003(\0132!.googl" - + "e.cloud.datastream.v1.ErrorB\003\340A\003\"\201\001\n\005Sta" - + "te\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED" - + "\020\001\022\013\n\007PENDING\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004" - + "\022\n\n\006FAILED\020\005\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORT" - + "ED\020\007\"=\n\007Trigger\022\027\n\023TRIGGER_UNSPECIFIED\020\000" - + "\022\r\n\tAUTOMATIC\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n" - + "\006reason\030\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007mes" - + "sage\030\003 \001(\t\022.\n\nerror_time\030\004 \001(\0132\032.google." - + "protobuf.Timestamp\022?\n\007details\030\005 \003(\0132..go" - + "ogle.cloud.datastream.v1.Error.DetailsEn" - + "try\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"O\n\020ValidationResult\022;\n\013valid" - + "ations\030\001 \003(\0132&.google.cloud.datastream.v" - + "1.Validation\"\366\001\n\nValidation\022\023\n\013descripti" - + "on\030\001 \001(\t\022;\n\005state\030\002 \001(\0162,.google.cloud.d" - + "atastream.v1.Validation.State\022>\n\007message" - + "\030\003 \003(\0132-.google.cloud.datastream.v1.Vali" - + "dationMessage\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n" - + "\006FAILED\020\002\022\n\n\006PASSED\020\003\"\256\002\n\021ValidationMess" - + "age\022\017\n\007message\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.go" - + "ogle.cloud.datastream.v1.ValidationMessa" - + "ge.Level\022M\n\010metadata\030\003 \003(\0132;.google.clou" - + "d.datastream.v1.ValidationMessage.Metada" - + "taEntry\022\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013" - + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022" - + "\025\n\021LEVEL_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005E" - + "RROR\020\002B\256\002\n\036com.google.cloud.datastream.v" - + "1B\030DatastreamResourcesProtoP\001ZDgoogle.go" - + "lang.org/genproto/googleapis/cloud/datas" - + "tream/v1;datastream\252\002\032Google.Cloud.Datas" - + "tream.V1\312\002\032Google\\Cloud\\Datastream\\V1\352\002\035" - + "Google::Cloud::Datastream::V1\352AO\n\037comput" - + "e.googleapis.com/Networks\022,projects/{pro" - + "ject}/global/networks/{network}b\006proto3" + + "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" + + "2&.google.cloud.datastream.v1.Validation" + + "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" + + "state\030\002 \001(\0162,.google.cloud.datastream.v1" + + ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" + + "gle.cloud.datastream.v1.ValidationMessag" + + "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" + + "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" + + "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" + + "atastream.v1.ValidationMessage.Level\022M\n\010" + + "metadata\030\003 \003(\0132;.google.cloud.datastream" + + ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" + + "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n\036c" + + "om.google.cloud.datastream.v1B\030Datastrea" + + "mResourcesProtoP\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/datastream/v1;dat" + + "astream\252\002\032Google.Cloud.Datastream.V1\312\002\032G" + + "oogle\\Cloud\\Datastream\\V1\352\002\035Google::Clou" + + "d::Datastream::V1\352AO\n\037compute.googleapis" + + ".com/Networks\022,projects/{project}/global" + + "/networks/{network}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -492,22 +608,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "Database", + }); + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, new java.lang.String[] { "Bucket", "RootPath", }); + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, + new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, @@ -515,7 +645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, @@ -523,7 +653,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vpc", "Subnet", }); internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, @@ -548,7 +678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, @@ -556,7 +686,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateConnection", }); internal_static_google_cloud_datastream_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Route_descriptor, @@ -578,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, @@ -591,7 +721,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CaCertificateSet", }); internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, @@ -604,6 +734,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleProfile", "GcsProfile", "MysqlProfile", + "BigqueryProfile", + "PostgresqlProfile", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", @@ -621,7 +753,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, @@ -637,7 +769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleTable_descriptor, @@ -645,7 +777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "OracleColumns", }); internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, @@ -653,7 +785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Schema", "OracleTables", }); internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, @@ -661,15 +793,83 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OracleSchemas", }); internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", + "IncludeObjects", + "ExcludeObjects", + "MaxConcurrentCdcTasks", + "DropLargeObjects", + "StreamLargeObjects", + "LargeObjectsHandling", + }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Precision", + "Scale", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, + new java.lang.String[] { + "Table", "PostgresqlColumns", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, + new java.lang.String[] { + "Schema", "PostgresqlTables", + }); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, + new java.lang.String[] { + "PostgresqlSchemas", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", "ExcludeObjects", "ReplicationSlot", "Publication", }); internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, @@ -683,7 +883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OrdinalPosition", }); internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, @@ -691,7 +891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "MysqlColumns", }); internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, @@ -699,7 +899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "MysqlTables", }); internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, @@ -707,15 +907,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MysqlDatabases", }); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", + "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", }); internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, @@ -723,16 +923,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceConnectionProfile", "OracleSourceConfig", "MysqlSourceConfig", + "PostgresqlSourceConfig", "SourceStreamConfig", }); internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, new java.lang.String[] {}); internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, @@ -740,7 +941,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SchemaFileFormat", "Compression", }); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, @@ -752,16 +953,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JsonFileFormat", "FileFormat", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, + new java.lang.String[] { + "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, + new java.lang.String[] { + "DatasetId", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, + new java.lang.String[] { + "DatasetTemplate", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, + new java.lang.String[] { + "Location", "DatasetIdPrefix", "KmsKeyName", + }); internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, new java.lang.String[] { - "DestinationConnectionProfile", "GcsDestinationConfig", "DestinationStreamConfig", + "DestinationConnectionProfile", + "GcsDestinationConfig", + "BigqueryDestinationConfig", + "DestinationStreamConfig", }); internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_descriptor, @@ -787,7 +1029,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, new java.lang.String[] { - "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", + "OracleExcludedObjects", + "MysqlExcludedObjects", + "PostgresqlExcludedObjects", + "ExcludedObjects", }); internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); @@ -804,7 +1049,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_StreamObject_descriptor, @@ -818,12 +1063,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceObject", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, new java.lang.String[] { - "OracleIdentifier", "MysqlIdentifier", "SourceIdentifier", + "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", }); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor @@ -835,10 +1080,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Schema", "Table", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, + new java.lang.String[] { + "Schema", "Table", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(2); internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, @@ -846,7 +1101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Table", }); internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, @@ -854,7 +1109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", }); internal_static_google_cloud_datastream_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Error_descriptor, @@ -870,7 +1125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, @@ -878,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Validations", }); internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_Validation_descriptor, @@ -886,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "State", "Message", "Code", }); internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java index 09d2e1395a0..7533cd8925e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -97,6 +97,28 @@ private DestinationConfig( destinationStreamConfigCase_ = 100; break; } + case 810: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder subBuilder = null; + if (destinationStreamConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .toBuilder(); + } + destinationStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_); + destinationStreamConfig_ = subBuilder.buildPartial(); + } + destinationStreamConfigCase_ = 101; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -141,6 +163,7 @@ public enum DestinationStreamConfigCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), + BIGQUERY_DESTINATION_CONFIG(101), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; @@ -161,6 +184,8 @@ public static DestinationStreamConfigCase forNumber(int value) { switch (value) { case 100: return GCS_DESTINATION_CONFIG; + case 101: + return BIGQUERY_DESTINATION_CONFIG; case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; default: @@ -284,6 +309,61 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } + public static final int BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER = 101; + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestinationConfig() { + return destinationStreamConfigCase_ == 101; + } + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +385,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } + if (destinationStreamConfigCase_ == 101) { + output.writeMessage( + 101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + } unknownFields.writeTo(output); } @@ -324,6 +408,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } + if (destinationStreamConfigCase_ == 101) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -348,6 +438,10 @@ public boolean equals(final java.lang.Object obj) { case 100: if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; break; + case 101: + if (!getBigqueryDestinationConfig().equals(other.getBigqueryDestinationConfig())) + return false; + break; case 0: default: } @@ -369,6 +463,10 @@ public int hashCode() { hash = (37 * hash) + GCS_DESTINATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGcsDestinationConfig().hashCode(); break; + case 101: + hash = (37 * hash) + BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestinationConfig().hashCode(); + break; case 0: default: } @@ -556,6 +654,13 @@ public com.google.cloud.datastream.v1.DestinationConfig buildPartial() { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } } + if (destinationStreamConfigCase_ == 101) { + if (bigqueryDestinationConfigBuilder_ == null) { + result.destinationStreamConfig_ = destinationStreamConfig_; + } else { + result.destinationStreamConfig_ = bigqueryDestinationConfigBuilder_.build(); + } + } result.destinationStreamConfigCase_ = destinationStreamConfigCase_; onBuilt(); return result; @@ -617,6 +722,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.DestinationConfig other) mergeGcsDestinationConfig(other.getGcsDestinationConfig()); break; } + case BIGQUERY_DESTINATION_CONFIG: + { + mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); + break; + } case DESTINATIONSTREAMCONFIG_NOT_SET: { break; @@ -1003,6 +1113,243 @@ public Builder clearGcsDestinationConfig() { return gcsDestinationConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + bigqueryDestinationConfigBuilder_; + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + @java.lang.Override + public boolean hasBigqueryDestinationConfig() { + return destinationStreamConfigCase_ == 101; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } else { + if (destinationStreamConfigCase_ == 101) { + return bigqueryDestinationConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder setBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + if (bigqueryDestinationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationStreamConfig_ = value; + onChanged(); + } else { + bigqueryDestinationConfigBuilder_.setMessage(value); + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder setBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder builderForValue) { + if (bigqueryDestinationConfigBuilder_ == null) { + destinationStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + bigqueryDestinationConfigBuilder_.setMessage(builderForValue.build()); + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder mergeBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101 + && destinationStreamConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + destinationStreamConfig_ = value; + } + onChanged(); + } else { + if (destinationStreamConfigCase_ == 101) { + bigqueryDestinationConfigBuilder_.mergeFrom(value); + } else { + bigqueryDestinationConfigBuilder_.setMessage(value); + } + } + destinationStreamConfigCase_ = 101; + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public Builder clearBigqueryDestinationConfig() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 101) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + onChanged(); + } + } else { + if (destinationStreamConfigCase_ == 101) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + } + bigqueryDestinationConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder + getBigqueryDestinationConfigBuilder() { + return getBigqueryDestinationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { + if ((destinationStreamConfigCase_ == 101) && (bigqueryDestinationConfigBuilder_ != null)) { + return bigqueryDestinationConfigBuilder_.getMessageOrBuilder(); + } else { + if (destinationStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * BigQuery destination configuration.
+     * 
+ * + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + getBigqueryDestinationConfigFieldBuilder() { + if (bigqueryDestinationConfigBuilder_ == null) { + if (!(destinationStreamConfigCase_ == 101)) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + } + bigqueryDestinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_, + getParentForChildren(), + isClean()); + destinationStreamConfig_ = null; + } + destinationStreamConfigCase_ = 101; + onChanged(); + ; + return bigqueryDestinationConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java index d398d79fbdc..6c9dd4b63ef 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java @@ -89,6 +89,45 @@ public interface DestinationConfigOrBuilder */ com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return Whether the bigqueryDestinationConfig field is set. + */ + boolean hasBigqueryDestinationConfig(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * + * @return The bigqueryDestinationConfig. + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig(); + /** + * + * + *
+   * BigQuery destination configuration.
+   * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + */ + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder(); + public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index f019a42171a..296e2b586ae 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -122,6 +122,23 @@ private DiscoverConnectionProfileRequest( dataObjectCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; + } case 1602: { com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; @@ -285,6 +302,7 @@ public enum DataObjectCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), + POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; @@ -307,6 +325,8 @@ public static DataObjectCase forNumber(int value) { return ORACLE_RDBMS; case 101: return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -673,6 +693,57 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -702,6 +773,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 101) { output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } if (targetCase_ == 200) { output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } @@ -740,6 +814,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } if (targetCase_ == 200) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -795,6 +874,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; + case 102: + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + break; case 0: default: } @@ -844,6 +926,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getMysqlRdbms().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlRdbms().hashCode(); + break; case 0: default: } @@ -1060,6 +1146,13 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPart result.dataObject_ = mysqlRdbmsBuilder_.build(); } } + if (dataObjectCase_ == 102) { + if (postgresqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = postgresqlRdbmsBuilder_.build(); + } + } result.targetCase_ = targetCase_; result.hierarchyCase_ = hierarchyCase_; result.dataObjectCase_ = dataObjectCase_; @@ -1164,6 +1257,11 @@ public Builder mergeFrom( mergeMysqlRdbms(other.getMysqlRdbms()); break; } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -2270,6 +2368,216 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return mysqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 102) { + return postgresqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 102) { + postgresqlRdbmsBuilder_.mergeFrom(value); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder clearPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + } + postgresqlRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbmsBuilder() { + return getPostgresqlRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 102) && (postgresqlRdbmsBuilder_ != null)) { + return postgresqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlRdbmsFieldBuilder() { + if (postgresqlRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 102)) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 102; + onChanged(); + ; + return postgresqlRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 441dc035415..d8e5477f237 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -248,6 +248,41 @@ public interface DiscoverConnectionProfileRequestOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + boolean hasPostgresqlRdbms(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); + /** + * + * + *
+   * PostgreSQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index 8fc911e523d..c512569ce9d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -101,6 +101,23 @@ private DiscoverConnectionProfileResponse( dataObjectCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -146,6 +163,7 @@ public enum DataObjectCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), + POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; @@ -168,6 +186,8 @@ public static DataObjectCase forNumber(int value) { return ORACLE_RDBMS; case 101: return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; case 0: return DATAOBJECT_NOT_SET; default: @@ -286,6 +306,57 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -306,6 +377,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataObjectCase_ == 101) { output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } unknownFields.writeTo(output); } @@ -325,6 +399,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } + if (dataObjectCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -349,6 +428,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; + case 102: + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + break; case 0: default: } @@ -372,6 +454,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; hash = (53 * hash) + getMysqlRdbms().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlRdbms().hashCode(); + break; case 0: default: } @@ -565,6 +651,13 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse buildPar result.dataObject_ = mysqlRdbmsBuilder_.build(); } } + if (dataObjectCase_ == 102) { + if (postgresqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = postgresqlRdbmsBuilder_.build(); + } + } result.dataObjectCase_ = dataObjectCase_; onBuilt(); return result; @@ -629,6 +722,11 @@ public Builder mergeFrom( mergeMysqlRdbms(other.getMysqlRdbms()); break; } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } case DATAOBJECT_NOT_SET: { break; @@ -1099,6 +1197,216 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder return mysqlRdbmsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + @java.lang.Override + public boolean hasPostgresqlRdbms() { + return dataObjectCase_ == 102; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 102) { + return postgresqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder setPostgresqlRdbms( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + postgresqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 102) { + postgresqlRdbmsBuilder_.mergeFrom(value); + } else { + postgresqlRdbmsBuilder_.setMessage(value); + } + } + dataObjectCase_ = 102; + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public Builder clearPostgresqlRdbms() { + if (postgresqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 102) { + dataObjectCase_ = 0; + dataObject_ = null; + } + postgresqlRdbmsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbmsBuilder() { + return getPostgresqlRdbmsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 102) && (postgresqlRdbmsBuilder_ != null)) { + return postgresqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+     * Enriched PostgreSQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlRdbmsFieldBuilder() { + if (postgresqlRdbmsBuilder_ == null) { + if (!(dataObjectCase_ == 102)) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 102; + onChanged(); + ; + return postgresqlRdbmsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index fae946e6150..d458039aed9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -93,6 +93,41 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return Whether the postgresqlRdbms field is set. + */ + boolean hasPostgresqlRdbms(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * + * @return The postgresqlRdbms. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); + /** + * + * + *
+   * Enriched PostgreSQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index f29e43fa07e..6a21038d646 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -98,6 +98,11 @@ private MysqlSourceConfig( excludeObjects_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); break; } default: @@ -232,6 +237,25 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui return getExcludeObjects(); } + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; + private int maxConcurrentCdcTasks_; + /** + * + * + *
+   * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -252,6 +276,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludeObjects_ != null) { output.writeMessage(2, getExcludeObjects()); } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(3, maxConcurrentCdcTasks_); + } unknownFields.writeTo(output); } @@ -267,6 +294,9 @@ public int getSerializedSize() { if (excludeObjects_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -291,6 +321,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExcludeObjects()) { if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,6 +341,8 @@ public int hashCode() { hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getExcludeObjects().hashCode(); } + hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -467,6 +500,8 @@ public Builder clear() { excludeObjects_ = null; excludeObjectsBuilder_ = null; } + maxConcurrentCdcTasks_ = 0; + return this; } @@ -504,6 +539,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { } else { result.excludeObjects_ = excludeObjectsBuilder_.build(); } + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; onBuilt(); return result; } @@ -560,6 +596,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) if (other.hasExcludeObjects()) { mergeExcludeObjects(other.getExcludeObjects()); } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -961,6 +1000,61 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui return excludeObjectsBuilder_; } + private int maxConcurrentCdcTasks_; + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { + + maxConcurrentCdcTasks_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { + + maxConcurrentCdcTasks_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index 6e48479b413..a547dbbf4e9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -92,4 +92,18 @@ public interface MysqlSourceConfigOrBuilder * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java index 706708791cb..7aafc12288a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java @@ -292,8 +292,8 @@ public boolean getClientCertificateSet() { * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -316,8 +316,8 @@ public java.lang.String getCaCertificate() { * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1089,8 +1089,8 @@ public Builder clearClientCertificateSet() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1112,8 +1112,8 @@ public java.lang.String getCaCertificate() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1135,8 +1135,8 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1157,8 +1157,8 @@ public Builder setCaCertificate(java.lang.String value) { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -1175,8 +1175,8 @@ public Builder clearCaCertificate() { * * *
-     * Input only. PEM-encoded certificate of the CA that signed the source
-     * database server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source database
+     * server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java index 07af8fd62db..19562b09cb5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java @@ -111,8 +111,8 @@ public interface MysqlSslConfigOrBuilder * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; @@ -124,8 +124,8 @@ public interface MysqlSslConfigOrBuilder * * *
-   * Input only. PEM-encoded certificate of the CA that signed the source
-   * database server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source database
+   * server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index 9e1efd5faef..5825182e00a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -186,7 +186,7 @@ public com.google.protobuf.ByteString getTableBytes() { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -201,7 +201,7 @@ public java.util.List getMysqlColumn * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -217,7 +217,7 @@ public java.util.List getMysqlColumn * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -232,7 +232,7 @@ public int getMysqlColumnsCount() { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -247,7 +247,7 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) { * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -760,7 +760,7 @@ private void ensureMysqlColumnsIsMutable() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -778,7 +778,7 @@ public java.util.List getMysqlColumn * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -796,7 +796,7 @@ public int getMysqlColumnsCount() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -814,7 +814,7 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -838,7 +838,7 @@ public Builder setMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -860,7 +860,7 @@ public Builder setMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -884,7 +884,7 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value) * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -908,7 +908,7 @@ public Builder addMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -930,7 +930,7 @@ public Builder addMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -952,7 +952,7 @@ public Builder addMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -974,7 +974,7 @@ public Builder addAllMysqlColumns( * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -995,7 +995,7 @@ public Builder clearMysqlColumns() { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1016,7 +1016,7 @@ public Builder removeMysqlColumns(int index) { * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1030,7 +1030,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1048,7 +1048,7 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1067,7 +1067,7 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1082,7 +1082,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1097,7 +1097,7 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder * *
      * MySQL columns in the database.
-     * When unspecified as part of include/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java index 494e62d35fe..06dcb4c21a7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java @@ -53,7 +53,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -65,7 +65,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -77,7 +77,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -89,7 +89,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -102,7 +102,7 @@ public interface MysqlTableOrBuilder * *
    * MySQL columns in the database.
-   * When unspecified as part of include/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 1ee5cf80d1e..a7554aabbfb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -98,6 +98,57 @@ private OracleSourceConfig( excludeObjects_ = subBuilder.buildPartial(); } + break; + } + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + break; + } + case 802: + { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 100; + break; + } + case 818: + { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 102; break; } default: @@ -136,830 +187,2593 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } - public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; - private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; - /** - * - * - *
-   * Oracle objects to include in the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * - * @return Whether the includeObjects field is set. - */ - @java.lang.Override - public boolean hasIncludeObjects() { - return includeObjects_ != null; - } - /** - * - * - *
-   * Oracle objects to include in the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * - * @return The includeObjects. - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; - } + public interface DropLargeObjectsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + com.google.protobuf.MessageOrBuilder {} /** * * *
-   * Oracle objects to include in the stream.
+   * Configuration to drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return getIncludeObjects(); - } + public static final class DropLargeObjects extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + DropLargeObjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropLargeObjects.newBuilder() to construct. + private DropLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; - private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * - * @return Whether the excludeObjects field is set. - */ - @java.lang.Override - public boolean hasExcludeObjects() { - return excludeObjects_ != null; - } - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * - * @return The excludeObjects. - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; - } - /** - * - * - *
-   * Oracle objects to exclude from the stream.
-   * 
- * - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - */ - @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return getExcludeObjects(); - } + private DropLargeObjects() {} - private byte memoizedIsInitialized = -1; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DropLargeObjects(); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - memoizedIsInitialized = 1; - return true; - } + private DropLargeObjects( + 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (includeObjects_ != null) { - output.writeMessage(1, getIncludeObjects()); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } - if (excludeObjects_ != null) { - output.writeMessage(2, getExcludeObjects()); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - size = 0; - if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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 com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig)) { - return super.equals(obj); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - com.google.cloud.datastream.v1.OracleSourceConfig other = - (com.google.cloud.datastream.v1.OracleSourceConfig) obj; - if (hasIncludeObjects() != other.hasIncludeObjects()) return false; - if (hasIncludeObjects()) { - if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (hasExcludeObjects() != other.hasExcludeObjects()) return false; - if (hasExcludeObjects()) { - if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIncludeObjects()) { - hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeObjects().hashCode(); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (hasExcludeObjects()) { - hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; - hash = (53 * hash) + getExcludeObjects().hashCode(); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects 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.OracleSourceConfig 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.OracleSourceConfig.DropLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects 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.OracleSourceConfig 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.OracleSourceConfig.DropLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + 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.OracleSourceConfig 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.OracleSourceConfig.DropLargeObjects 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.OracleSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + com.google.protobuf.CodedInputStream 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.OracleSourceConfig parseFrom( - java.io.InputStream 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 com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig 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 Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.datastream.v1.OracleSourceConfig 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 + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration to drop large object values.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + @java.lang.Override + public Builder clear() { + super.clear(); + 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_OracleSourceConfig_DropLargeObjects_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects build() { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); + 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 com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) return this; + 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 { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.OracleSourceConfig.DropLargeObjects) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DropLargeObjects(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 com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + + public interface StreamLargeObjectsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + com.google.protobuf.MessageOrBuilder {} /** * * *
-   * Oracle data source configuration
+   * Configuration to stream large object values.
    * 
* - * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + public static final class StreamLargeObjects extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) - com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + StreamLargeObjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StreamLargeObjects.newBuilder() to construct. + private StreamLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StreamLargeObjects() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StreamLargeObjects(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StreamLargeObjects( + 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; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } - // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + 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; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder clear() { - super.clear(); - if (includeObjectsBuilder_ == null) { - includeObjects_ = null; - } else { - includeObjects_ = null; - includeObjectsBuilder_ = null; + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = null; - } else { - excludeObjects_ = null; - excludeObjectsBuilder_ = null; + if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)) { + return super.equals(obj); } - return this; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig build() { - com.google.cloud.datastream.v1.OracleSourceConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig result = - new com.google.cloud.datastream.v1.OracleSourceConfig(this); - if (includeObjectsBuilder_ == null) { - result.includeObjects_ = includeObjects_; - } else { - result.includeObjects_ = includeObjectsBuilder_.build(); - } - if (excludeObjectsBuilder_ == null) { - result.excludeObjects_ = excludeObjects_; - } else { - result.excludeObjects_ = excludeObjectsBuilder_.build(); - } - onBuilt(); - return result; + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clone() { - return super.clone(); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects 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.OracleSourceConfig.StreamLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects 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.OracleSourceConfig.StreamLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + 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.OracleSourceConfig.StreamLargeObjects 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.OracleSourceConfig.StreamLargeObjects 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 clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Configuration to stream large object values.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + } + + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.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(); + 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_OracleSourceConfig_StreamLargeObjects_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects build() { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); + 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 com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) { + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) return this; + 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 { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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.OracleSourceConfig.StreamLargeObjects) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamLargeObjects(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 com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int largeObjectsHandlingCase_ = 0; + private java.lang.Object largeObjectsHandling_; + + public enum LargeObjectsHandlingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DROP_LARGE_OBJECTS(100), + STREAM_LARGE_OBJECTS(102), + LARGEOBJECTSHANDLING_NOT_SET(0); + private final int value; + + private LargeObjectsHandlingCase(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 LargeObjectsHandlingCase valueOf(int value) { + return forNumber(value); + } + + public static LargeObjectsHandlingCase forNumber(int value) { + switch (value) { + case 100: + return DROP_LARGE_OBJECTS; + case 102: + return STREAM_LARGE_OBJECTS; + case 0: + return LARGEOBJECTSHANDLING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + } + + public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; + private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + @java.lang.Override + public boolean hasIncludeObjects() { + return includeObjects_ != null; + } + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return The includeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } + /** + * + * + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return getIncludeObjects(); + } + + public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; + private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + @java.lang.Override + public boolean hasExcludeObjects() { + return excludeObjects_ != null; + } + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } + /** + * + * + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return getExcludeObjects(); + } + + public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; + private int maxConcurrentCdcTasks_; + /** + * + * + *
+   * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + @java.lang.Override + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; + } + + public static final int DROP_LARGE_OBJECTS_FIELD_NUMBER = 100; + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return Whether the dropLargeObjects field is set. + */ + @java.lang.Override + public boolean hasDropLargeObjects() { + return largeObjectsHandlingCase_ == 100; + } + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return The dropLargeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + } + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + } + + public static final int STREAM_LARGE_OBJECTS_FIELD_NUMBER = 102; + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return Whether the streamLargeObjects field is set. + */ + @java.lang.Override + public boolean hasStreamLargeObjects() { + return largeObjectsHandlingCase_ == 102; + } + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return The streamLargeObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .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 (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + output.writeMessage(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + output.writeInt32(3, maxConcurrentCdcTasks_); + } + if (largeObjectsHandlingCase_ == 100) { + output.writeMessage( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + } + if (largeObjectsHandlingCase_ == 102) { + output.writeMessage( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + } + if (maxConcurrentCdcTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + } + if (largeObjectsHandlingCase_ == 100) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + } + if (largeObjectsHandlingCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + } + 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 com.google.cloud.datastream.v1.OracleSourceConfig)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.OracleSourceConfig other = + (com.google.cloud.datastream.v1.OracleSourceConfig) 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 (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (!getLargeObjectsHandlingCase().equals(other.getLargeObjectsHandlingCase())) return false; + switch (largeObjectsHandlingCase_) { + case 100: + if (!getDropLargeObjects().equals(other.getDropLargeObjects())) return false; + break; + case 102: + if (!getStreamLargeObjects().equals(other.getStreamLargeObjects())) 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(); + 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) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentCdcTasks(); + switch (largeObjectsHandlingCase_) { + case 100: + hash = (37 * hash) + DROP_LARGE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getDropLargeObjects().hashCode(); + break; + case 102: + hash = (37 * hash) + STREAM_LARGE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getStreamLargeObjects().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.OracleSourceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.OracleSourceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.OracleSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.OracleSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig 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.OracleSourceConfig 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.OracleSourceConfig 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.OracleSourceConfig 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; + } + /** + * + * + *
+   * Oracle data source configuration
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) + com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.class, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.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 (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + maxConcurrentCdcTasks_ = 0; + + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + 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_OracleSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig build() { + com.google.cloud.datastream.v1.OracleSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig result = + new com.google.cloud.datastream.v1.OracleSourceConfig(this); + if (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; + if (largeObjectsHandlingCase_ == 100) { + if (dropLargeObjectsBuilder_ == null) { + result.largeObjectsHandling_ = largeObjectsHandling_; + } else { + result.largeObjectsHandling_ = dropLargeObjectsBuilder_.build(); + } + } + if (largeObjectsHandlingCase_ == 102) { + if (streamLargeObjectsBuilder_ == null) { + result.largeObjectsHandling_ = largeObjectsHandling_; + } else { + result.largeObjectsHandling_ = streamLargeObjectsBuilder_.build(); + } + } + result.largeObjectsHandlingCase_ = largeObjectsHandlingCase_; + 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 com.google.cloud.datastream.v1.OracleSourceConfig) { + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) + return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + if (other.getMaxConcurrentCdcTasks() != 0) { + setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); + } + switch (other.getLargeObjectsHandlingCase()) { + case DROP_LARGE_OBJECTS: + { + mergeDropLargeObjects(other.getDropLargeObjects()); + break; + } + case STREAM_LARGE_OBJECTS: + { + mergeStreamLargeObjects(other.getStreamLargeObjects()); + break; + } + case LARGEOBJECTSHANDLING_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 { + com.google.cloud.datastream.v1.OracleSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int largeObjectsHandlingCase_ = 0; + private java.lang.Object largeObjectsHandling_; + + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + } + + public Builder clearLargeObjectsHandling() { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + return this; + } + + private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + includeObjectsBuilder_; + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + public boolean hasIncludeObjects() { + return includeObjectsBuilder_ != null || includeObjects_ != null; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * @return The includeObjects. + */ + public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { + if (includeObjectsBuilder_ == null) { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuilder() { + + onChanged(); + return getIncludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; + } + } + /** + * + * + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + getIncludeObjectsFieldBuilder() { + if (includeObjectsBuilder_ == null) { + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + excludeObjectsBuilder_; + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + public boolean hasExcludeObjects() { + return excludeObjectsBuilder_ != null || excludeObjects_ != null; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuilder() { + + onChanged(); + return getExcludeObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; + } + } + /** + * + * + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + getExcludeObjectsFieldBuilder() { + if (excludeObjectsBuilder_ == null) { + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; } + private int maxConcurrentCdcTasks_; + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); - } else { - super.mergeFrom(other); - return this; - } + public int getMaxConcurrentCdcTasks() { + return maxConcurrentCdcTasks_; } + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @param value The maxConcurrentCdcTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentCdcTasks(int value) { - public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) - return this; - if (other.hasIncludeObjects()) { - mergeIncludeObjects(other.getIncludeObjects()); - } - if (other.hasExcludeObjects()) { - mergeExcludeObjects(other.getExcludeObjects()); - } - this.mergeUnknownFields(other.unknownFields); + maxConcurrentCdcTasks_ = value; onChanged(); return this; } + /** + * + * + *
+     * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentCdcTasks() { - @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 { - com.google.cloud.datastream.v1.OracleSourceConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + maxConcurrentCdcTasks_ = 0; + onChanged(); return this; } - private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - includeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + dropLargeObjectsBuilder_; /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * * - * @return Whether the includeObjects field is set. + * @return Whether the dropLargeObjects field is set. */ - public boolean hasIncludeObjects() { - return includeObjectsBuilder_ != null || includeObjects_ != null; + @java.lang.Override + public boolean hasDropLargeObjects() { + return largeObjectsHandlingCase_ == 100; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * * - * @return The includeObjects. + * @return The dropLargeObjects. */ - public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - if (includeObjectsBuilder_ == null) { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDropLargeObjects() { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } else { - return includeObjectsBuilder_.getMessage(); + if (largeObjectsHandlingCase_ == 100) { + return dropLargeObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (includeObjectsBuilder_ == null) { + public Builder setDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + if (dropLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - includeObjects_ = value; + largeObjectsHandling_ = value; onChanged(); } else { - includeObjectsBuilder_.setMessage(value); + dropLargeObjectsBuilder_.setMessage(value); } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder setIncludeObjects( - com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { - if (includeObjectsBuilder_ == null) { - includeObjects_ = builderForValue.build(); + public Builder setDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + builderForValue) { + if (dropLargeObjectsBuilder_ == null) { + largeObjectsHandling_ = builderForValue.build(); onChanged(); } else { - includeObjectsBuilder_.setMessage(builderForValue.build()); + dropLargeObjectsBuilder_.setMessage(builderForValue.build()); } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (includeObjectsBuilder_ == null) { - if (includeObjects_ != null) { - includeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_) + public Builder mergeDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) .mergeFrom(value) .buildPartial(); } else { - includeObjects_ = value; + largeObjectsHandling_ = value; } onChanged(); } else { - includeObjectsBuilder_.mergeFrom(value); + if (largeObjectsHandlingCase_ == 100) { + dropLargeObjectsBuilder_.mergeFrom(value); + } else { + dropLargeObjectsBuilder_.setMessage(value); + } } - + largeObjectsHandlingCase_ = 100; return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder clearIncludeObjects() { - if (includeObjectsBuilder_ == null) { - includeObjects_ = null; - onChanged(); + public Builder clearDropLargeObjects() { + if (dropLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 100) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + } } else { - includeObjects_ = null; - includeObjectsBuilder_ = null; + if (largeObjectsHandlingCase_ == 100) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + } + dropLargeObjectsBuilder_.clear(); } - return this; } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuilder() { - - onChanged(); - return getIncludeObjectsFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + getDropLargeObjectsBuilder() { + return getDropLargeObjectsFieldBuilder().getBuilder(); } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - if (includeObjectsBuilder_ != null) { - return includeObjectsBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { + if ((largeObjectsHandlingCase_ == 100) && (dropLargeObjectsBuilder_ != null)) { + return dropLargeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + if (largeObjectsHandlingCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to include in the stream.
+     * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - getIncludeObjectsFieldBuilder() { - if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + getDropLargeObjectsFieldBuilder() { + if (dropLargeObjectsBuilder_ == null) { + if (!(largeObjectsHandlingCase_ == 100)) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); + } + dropLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getIncludeObjects(), getParentForChildren(), isClean()); - includeObjects_ = null; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_, + getParentForChildren(), + isClean()); + largeObjectsHandling_ = null; } - return includeObjectsBuilder_; + largeObjectsHandlingCase_ = 100; + onChanged(); + ; + return dropLargeObjectsBuilder_; } - private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - excludeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + streamLargeObjectsBuilder_; /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * * - * @return Whether the excludeObjects field is set. + * @return Whether the streamLargeObjects field is set. */ - public boolean hasExcludeObjects() { - return excludeObjectsBuilder_ != null || excludeObjects_ != null; + @java.lang.Override + public boolean hasStreamLargeObjects() { + return largeObjectsHandlingCase_ == 102; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * * - * @return The excludeObjects. + * @return The streamLargeObjects. */ - public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } else { - return excludeObjectsBuilder_.getMessage(); + if (largeObjectsHandlingCase_ == 102) { + return streamLargeObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (excludeObjectsBuilder_ == null) { + public Builder setStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + if (streamLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - excludeObjects_ = value; + largeObjectsHandling_ = value; onChanged(); } else { - excludeObjectsBuilder_.setMessage(value); + streamLargeObjectsBuilder_.setMessage(value); } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder setExcludeObjects( - com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = builderForValue.build(); + public Builder setStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + builderForValue) { + if (streamLargeObjectsBuilder_ == null) { + largeObjectsHandling_ = builderForValue.build(); onChanged(); } else { - excludeObjectsBuilder_.setMessage(builderForValue.build()); + streamLargeObjectsBuilder_.setMessage(builderForValue.build()); } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { - if (excludeObjectsBuilder_ == null) { - if (excludeObjects_ != null) { - excludeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_) + public Builder mergeStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) .mergeFrom(value) .buildPartial(); } else { - excludeObjects_ = value; + largeObjectsHandling_ = value; } onChanged(); } else { - excludeObjectsBuilder_.mergeFrom(value); + if (largeObjectsHandlingCase_ == 102) { + streamLargeObjectsBuilder_.mergeFrom(value); + } else { + streamLargeObjectsBuilder_.setMessage(value); + } } - + largeObjectsHandlingCase_ = 102; return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder clearExcludeObjects() { - if (excludeObjectsBuilder_ == null) { - excludeObjects_ = null; - onChanged(); + public Builder clearStreamLargeObjects() { + if (streamLargeObjectsBuilder_ == null) { + if (largeObjectsHandlingCase_ == 102) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + onChanged(); + } } else { - excludeObjects_ = null; - excludeObjectsBuilder_ = null; + if (largeObjectsHandlingCase_ == 102) { + largeObjectsHandlingCase_ = 0; + largeObjectsHandling_ = null; + } + streamLargeObjectsBuilder_.clear(); } - return this; } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuilder() { - - onChanged(); - return getExcludeObjectsFieldBuilder().getBuilder(); + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + getStreamLargeObjectsBuilder() { + return getStreamLargeObjectsFieldBuilder().getBuilder(); } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - if (excludeObjectsBuilder_ != null) { - return excludeObjectsBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { + if ((largeObjectsHandlingCase_ == 102) && (streamLargeObjectsBuilder_ != null)) { + return streamLargeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + if (largeObjectsHandlingCase_ == 102) { + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** * * *
-     * Oracle objects to exclude from the stream.
+     * Stream large object values.
      * 
* - * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - getExcludeObjectsFieldBuilder() { - if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + getStreamLargeObjectsFieldBuilder() { + if (streamLargeObjectsBuilder_ == null) { + if (!(largeObjectsHandlingCase_ == 102)) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); + } + streamLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getExcludeObjects(), getParentForChildren(), isClean()); - excludeObjects_ = null; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_, + getParentForChildren(), + isClean()); + largeObjectsHandling_ = null; } - return excludeObjectsBuilder_; + largeObjectsHandlingCase_ = 102; + onChanged(); + ; + return streamLargeObjectsBuilder_; } @java.lang.Override diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index 52a54507489..f21df17f7bc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -92,4 +92,102 @@ public interface OracleSourceConfigOrBuilder * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; */ com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Maximum number of concurrent CDC 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_cdc_tasks = 3; + * + * @return The maxConcurrentCdcTasks. + */ + int getMaxConcurrentCdcTasks(); + + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return Whether the dropLargeObjects field is set. + */ + boolean hasDropLargeObjects(); + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * + * @return The dropLargeObjects. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects(); + /** + * + * + *
+   * Drop large object values.
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder(); + + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return Whether the streamLargeObjects field is set. + */ + boolean hasStreamLargeObjects(); + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * + * @return The streamLargeObjects. + */ + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects(); + /** + * + * + *
+   * Stream large object values.
+   * 
+ * + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + */ + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder(); + + public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase + getLargeObjectsHandlingCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index feb7de630a1..52ba66005af 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -186,7 +186,7 @@ public com.google.protobuf.ByteString getTableBytes() { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -201,7 +201,7 @@ public java.util.List getOracleColu * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -217,7 +217,7 @@ public java.util.List getOracleColu * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -232,7 +232,7 @@ public int getOracleColumnsCount() { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -247,7 +247,7 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -760,7 +760,7 @@ private void ensureOracleColumnsIsMutable() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -778,7 +778,7 @@ public java.util.List getOracleColu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -796,7 +796,7 @@ public int getOracleColumnsCount() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -814,7 +814,7 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -838,7 +838,7 @@ public Builder setOracleColumns(int index, com.google.cloud.datastream.v1.Oracle * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -860,7 +860,7 @@ public Builder setOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -884,7 +884,7 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -908,7 +908,7 @@ public Builder addOracleColumns(int index, com.google.cloud.datastream.v1.Oracle * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -930,7 +930,7 @@ public Builder addOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -952,7 +952,7 @@ public Builder addOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -974,7 +974,7 @@ public Builder addAllOracleColumns( * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -995,7 +995,7 @@ public Builder clearOracleColumns() { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1016,7 +1016,7 @@ public Builder removeOracleColumns(int index) { * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1030,7 +1030,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1049,7 +1049,7 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1068,7 +1068,7 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1083,7 +1083,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* @@ -1098,7 +1098,7 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild * *
      * Oracle columns in the schema.
-     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * When unspecified as part of include/exclude objects, includes/excludes
      * everything.
      * 
* diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java index c4ba1b16880..5f9bce0849e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java @@ -53,7 +53,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -65,7 +65,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -77,7 +77,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -89,7 +89,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* @@ -102,7 +102,7 @@ public interface OracleTableOrBuilder * *
    * Oracle columns in the schema.
-   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * When unspecified as part of include/exclude objects, includes/excludes
    * everything.
    * 
* diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java new file mode 100644 index 00000000000..e25f9f00e05 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java @@ -0,0 +1,1356 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL Column.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} + */ +public final class PostgresqlColumn extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlColumn) + PostgresqlColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlColumn.newBuilder() to construct. + private PostgresqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlColumn() { + column_ = ""; + dataType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlColumn( + 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(); + + column_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 32: + { + precision_ = input.readInt32(); + break; + } + case 40: + { + scale_ = input.readInt32(); + break; + } + case 56: + { + primaryKey_ = input.readBool(); + break; + } + case 64: + { + nullable_ = input.readBool(); + break; + } + case 72: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + } + + public static final int COLUMN_FIELD_NUMBER = 1; + private volatile java.lang.Object column_; + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + @java.lang.Override + public java.lang.String getColumn() { + java.lang.Object ref = column_; + 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(); + column_ = s; + return s; + } + } + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + @java.lang.Override + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object dataType_; + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + @java.lang.Override + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + 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(); + dataType_ = s; + return s; + } + } + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private int length_; + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 4; + private int precision_; + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 5; + private int scale_; + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + public static final int PRIMARY_KEY_FIELD_NUMBER = 7; + private boolean primaryKey_; + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + + public static final int NULLABLE_FIELD_NUMBER = 8; + private boolean nullable_; + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + + public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; + private int ordinalPosition_; + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (length_ != 0) { + output.writeInt32(3, length_); + } + if (precision_ != 0) { + output.writeInt32(4, precision_); + } + if (scale_ != 0) { + output.writeInt32(5, scale_); + } + if (primaryKey_ != false) { + output.writeBool(7, primaryKey_); + } + if (nullable_ != false) { + output.writeBool(8, nullable_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(9, ordinalPosition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + } + if (primaryKey_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + } + 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 com.google.cloud.datastream.v1.PostgresqlColumn)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlColumn other = + (com.google.cloud.datastream.v1.PostgresqlColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) 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) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (37 * hash) + NULLABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; + hash = (53 * hash) + getOrdinalPosition(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.PostgresqlColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.PostgresqlColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.PostgresqlColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.PostgresqlColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn 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.PostgresqlColumn 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.PostgresqlColumn 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.PostgresqlColumn 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 Column.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlColumn) + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlColumn.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(); + column_ = ""; + + dataType_ = ""; + + length_ = 0; + + precision_ = 0; + + scale_ = 0; + + primaryKey_ = false; + + nullable_ = false; + + ordinalPosition_ = 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_PostgresqlColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn build() { + com.google.cloud.datastream.v1.PostgresqlColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn buildPartial() { + com.google.cloud.datastream.v1.PostgresqlColumn result = + new com.google.cloud.datastream.v1.PostgresqlColumn(this); + result.column_ = column_; + result.dataType_ = dataType_; + result.length_ = length_; + result.precision_ = precision_; + result.scale_ = scale_; + result.primaryKey_ = primaryKey_; + result.nullable_ = nullable_; + result.ordinalPosition_ = ordinalPosition_; + 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 com.google.cloud.datastream.v1.PostgresqlColumn) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlColumn other) { + if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) + return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + 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 { + com.google.cloud.datastream.v1.PostgresqlColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object column_ = ""; + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The column. + */ + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + public com.google.protobuf.ByteString getColumnBytes() { + java.lang.Object ref = column_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + column_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @return This builder for chaining. + */ + public Builder clearColumn() { + + column_ = getDefaultInstance().getColumn(); + onChanged(); + return this; + } + /** + * + * + *
+     * Column name.
+     * 
+ * + * string column = 1; + * + * @param value The bytes for column to set. + * @return This builder for chaining. + */ + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + private java.lang.Object dataType_ = ""; + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + public com.google.protobuf.ByteString getDataTypeBytes() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + dataType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearDataType() { + + dataType_ = getDefaultInstance().getDataType(); + onChanged(); + return this; + } + /** + * + * + *
+     * The PostgreSQL data type.
+     * 
+ * + * string data_type = 2; + * + * @param value The bytes for dataType to set. + * @return This builder for chaining. + */ + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataType_ = value; + onChanged(); + return this; + } + + private int length_; + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @param value The length to set. + * @return This builder for chaining. + */ + public Builder setLength(int value) { + + length_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * + * @return This builder for chaining. + */ + public Builder clearLength() { + + length_ = 0; + onChanged(); + return this; + } + + private int precision_; + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrecision() { + + precision_ = 0; + onChanged(); + return this; + } + + private int scale_; + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * + * @return This builder for chaining. + */ + public Builder clearScale() { + + scale_ = 0; + onChanged(); + return this; + } + + private boolean primaryKey_; + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + @java.lang.Override + public boolean getPrimaryKey() { + return primaryKey_; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @param value The primaryKey to set. + * @return This builder for chaining. + */ + public Builder setPrimaryKey(boolean value) { + + primaryKey_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * + * @return This builder for chaining. + */ + public Builder clearPrimaryKey() { + + primaryKey_ = false; + onChanged(); + return this; + } + + private boolean nullable_; + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + @java.lang.Override + public boolean getNullable() { + return nullable_; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @param value The nullable to set. + * @return This builder for chaining. + */ + public Builder setNullable(boolean value) { + + nullable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * + * @return This builder for chaining. + */ + public Builder clearNullable() { + + nullable_ = false; + onChanged(); + return this; + } + + private int ordinalPosition_; + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + @java.lang.Override + public int getOrdinalPosition() { + return ordinalPosition_; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @param value The ordinalPosition to set. + * @return This builder for chaining. + */ + public Builder setOrdinalPosition(int value) { + + ordinalPosition_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * + * @return This builder for chaining. + */ + public Builder clearOrdinalPosition() { + + ordinalPosition_ = 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.PostgresqlColumn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlColumn) + private static final com.google.cloud.datastream.v1.PostgresqlColumn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlColumn(); + } + + public static com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlColumn(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 com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java new file mode 100644 index 00000000000..2bceb724461 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The column. + */ + java.lang.String getColumn(); + /** + * + * + *
+   * Column name.
+   * 
+ * + * string column = 1; + * + * @return The bytes for column. + */ + com.google.protobuf.ByteString getColumnBytes(); + + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The dataType. + */ + java.lang.String getDataType(); + /** + * + * + *
+   * The PostgreSQL data type.
+   * 
+ * + * string data_type = 2; + * + * @return The bytes for dataType. + */ + com.google.protobuf.ByteString getDataTypeBytes(); + + /** + * + * + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * + * @return The length. + */ + int getLength(); + + /** + * + * + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * + * @return The precision. + */ + int getPrecision(); + + /** + * + * + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * + * @return The scale. + */ + int getScale(); + + /** + * + * + *
+   * Whether or not the column represents a primary key.
+   * 
+ * + * bool primary_key = 7; + * + * @return The primaryKey. + */ + boolean getPrimaryKey(); + + /** + * + * + *
+   * Whether or not the column can accept a null value.
+   * 
+ * + * bool nullable = 8; + * + * @return The nullable. + */ + boolean getNullable(); + + /** + * + * + *
+   * The ordinal position of the column in the table.
+   * 
+ * + * int32 ordinal_position = 9; + * + * @return The ordinalPosition. + */ + int getOrdinalPosition(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java new file mode 100644 index 00000000000..40450c03dc6 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL database profile.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} + */ +public final class PostgresqlProfile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlProfile) + PostgresqlProfileOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlProfile.newBuilder() to construct. + private PostgresqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlProfile() { + hostname_ = ""; + username_ = ""; + password_ = ""; + database_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlProfile( + 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(); + + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + database_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + } + + public static final int HOSTNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object hostname_; + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + @java.lang.Override + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + 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(); + hostname_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + @java.lang.Override + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 2; + private int port_; + /** + * + * + *
+   * Port for the PostgreSQL connection, default value is 5432.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int USERNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object username_; + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + 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(); + username_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PASSWORD_FIELD_NUMBER = 4; + private volatile java.lang.Object password_; + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + 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(); + password_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_FIELD_NUMBER = 5; + private volatile java.lang.Object database_; + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, database_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, database_); + } + 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 com.google.cloud.datastream.v1.PostgresqlProfile)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlProfile other = + (com.google.cloud.datastream.v1.PostgresqlProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabase().equals(other.getDatabase())) 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) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.PostgresqlProfile parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.PostgresqlProfile parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.PostgresqlProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.PostgresqlProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile 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.PostgresqlProfile 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.PostgresqlProfile 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.PostgresqlProfile 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 database profile.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlProfile) + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlProfile.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(); + hostname_ = ""; + + port_ = 0; + + username_ = ""; + + password_ = ""; + + database_ = ""; + + 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_PostgresqlProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile build() { + com.google.cloud.datastream.v1.PostgresqlProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlProfile buildPartial() { + com.google.cloud.datastream.v1.PostgresqlProfile result = + new com.google.cloud.datastream.v1.PostgresqlProfile(this); + result.hostname_ = hostname_; + result.port_ = port_; + result.username_ = username_; + result.password_ = password_; + result.database_ = database_; + 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 com.google.cloud.datastream.v1.PostgresqlProfile) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlProfile other) { + if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) + return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + 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 { + com.google.cloud.datastream.v1.PostgresqlProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object hostname_ = ""; + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + public com.google.protobuf.ByteString getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + hostname_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearHostname() { + + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Hostname for the PostgreSQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for hostname to set. + * @return This builder for chaining. + */ + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + + private int port_; + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Port for the PostgreSQL connection, default value is 5432.
+     * 
+ * + * int32 port = 2; + * + * @return This builder for chaining. + */ + public Builder clearPort() { + + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object username_ = ""; + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + username_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + + username_ = getDefaultInstance().getUsername(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Username for the PostgreSQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + password_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + + password_ = getDefaultInstance().getPassword(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Password for the PostgreSQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + + database_ = getDefaultInstance().getDatabase(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Database for the PostgreSQL connection.
+     * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + @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.PostgresqlProfile) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlProfile) + private static final com.google.cloud.datastream.v1.PostgresqlProfile DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlProfile(); + } + + public static com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlProfile(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 com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java new file mode 100644 index 00000000000..0c8dbafdaf7 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlProfile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The hostname. + */ + java.lang.String getHostname(); + /** + * + * + *
+   * Required. Hostname for the PostgreSQL connection.
+   * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for hostname. + */ + com.google.protobuf.ByteString getHostnameBytes(); + + /** + * + * + *
+   * Port for the PostgreSQL connection, default value is 5432.
+   * 
+ * + * int32 port = 2; + * + * @return The port. + */ + int getPort(); + + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + /** + * + * + *
+   * Required. Username for the PostgreSQL connection.
+   * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + /** + * + * + *
+   * Required. Password for the PostgreSQL connection.
+   * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + /** + * + * + *
+   * Required. Database for the PostgreSQL connection.
+   * 
+ * + * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java new file mode 100644 index 00000000000..8a5705a059d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java @@ -0,0 +1,965 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL database structure.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} + */ +public final class PostgresqlRdbms extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlRdbms) + PostgresqlRdbmsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlRdbms.newBuilder() to construct. + private PostgresqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlRdbms() { + postgresqlSchemas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlRdbms(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlRdbms( + 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: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlSchemas_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSchema.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = java.util.Collections.unmodifiableList(postgresqlSchemas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + } + + public static final int POSTGRESQL_SCHEMAS_FIELD_NUMBER = 1; + private java.util.List postgresqlSchemas_; + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public java.util.List + getPostgresqlSchemasList() { + return postgresqlSchemas_; + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public java.util.List + getPostgresqlSchemasOrBuilderList() { + return postgresqlSchemas_; + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public int getPostgresqlSchemasCount() { + return postgresqlSchemas_.size(); + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index) { + return postgresqlSchemas_.get(index); + } + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( + int index) { + return postgresqlSchemas_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < postgresqlSchemas_.size(); i++) { + output.writeMessage(1, postgresqlSchemas_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < postgresqlSchemas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, postgresqlSchemas_.get(i)); + } + 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 com.google.cloud.datastream.v1.PostgresqlRdbms)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlRdbms other = + (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; + + if (!getPostgresqlSchemasList().equals(other.getPostgresqlSchemasList())) 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 (getPostgresqlSchemasCount() > 0) { + hash = (37 * hash) + POSTGRESQL_SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlSchemasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.PostgresqlRdbms parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.PostgresqlRdbms parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.PostgresqlRdbms parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.PostgresqlRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms 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.PostgresqlRdbms 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.PostgresqlRdbms 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.PostgresqlRdbms 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 database structure.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlRdbms) + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlSchemasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlSchemasBuilder_.clear(); + } + 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_PostgresqlRdbms_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms build() { + com.google.cloud.datastream.v1.PostgresqlRdbms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms buildPartial() { + com.google.cloud.datastream.v1.PostgresqlRdbms result = + new com.google.cloud.datastream.v1.PostgresqlRdbms(this); + int from_bitField0_ = bitField0_; + if (postgresqlSchemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = java.util.Collections.unmodifiableList(postgresqlSchemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlSchemas_ = postgresqlSchemas_; + } else { + result.postgresqlSchemas_ = postgresqlSchemasBuilder_.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 com.google.cloud.datastream.v1.PostgresqlRdbms) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlRdbms other) { + if (other == com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) return this; + if (postgresqlSchemasBuilder_ == null) { + if (!other.postgresqlSchemas_.isEmpty()) { + if (postgresqlSchemas_.isEmpty()) { + postgresqlSchemas_ = other.postgresqlSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.addAll(other.postgresqlSchemas_); + } + onChanged(); + } + } else { + if (!other.postgresqlSchemas_.isEmpty()) { + if (postgresqlSchemasBuilder_.isEmpty()) { + postgresqlSchemasBuilder_.dispose(); + postgresqlSchemasBuilder_ = null; + postgresqlSchemas_ = other.postgresqlSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlSchemasFieldBuilder() + : null; + } else { + postgresqlSchemasBuilder_.addAllMessages(other.postgresqlSchemas_); + } + } + } + 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 { + com.google.cloud.datastream.v1.PostgresqlRdbms parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlRdbms) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List postgresqlSchemas_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = + new java.util.ArrayList( + postgresqlSchemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + postgresqlSchemasBuilder_; + + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasList() { + if (postgresqlSchemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlSchemas_); + } else { + return postgresqlSchemasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public int getPostgresqlSchemasCount() { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.size(); + } else { + return postgresqlSchemasBuilder_.getCount(); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index) { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.get(index); + } else { + return postgresqlSchemasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder setPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.set(index, value); + onChanged(); + } else { + postgresqlSchemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder setPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas(com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(value); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema value) { + if (postgresqlSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(index, value); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addPostgresqlSchemas( + int index, com.google.cloud.datastream.v1.PostgresqlSchema.Builder builderForValue) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlSchemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder addAllPostgresqlSchemas( + java.lang.Iterable values) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlSchemas_); + onChanged(); + } else { + postgresqlSchemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder clearPostgresqlSchemas() { + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlSchemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public Builder removePostgresqlSchemas(int index) { + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.remove(index); + onChanged(); + } else { + postgresqlSchemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSchemasBuilder( + int index) { + return getPostgresqlSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( + int index) { + if (postgresqlSchemasBuilder_ == null) { + return postgresqlSchemas_.get(index); + } else { + return postgresqlSchemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasOrBuilderList() { + if (postgresqlSchemasBuilder_ != null) { + return postgresqlSchemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlSchemas_); + } + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder() { + return getPostgresqlSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder( + int index) { + return getPostgresqlSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL schemas in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + public java.util.List + getPostgresqlSchemasBuilderList() { + return getPostgresqlSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + getPostgresqlSchemasFieldBuilder() { + if (postgresqlSchemasBuilder_ == null) { + postgresqlSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( + postgresqlSchemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlSchemas_ = null; + } + return postgresqlSchemasBuilder_; + } + + @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.PostgresqlRdbms) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlRdbms) + private static final com.google.cloud.datastream.v1.PostgresqlRdbms DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlRdbms(); + } + + public static com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlRdbms(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 com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java new file mode 100644 index 00000000000..2f2a3d1c329 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlRdbmsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlRdbms) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + java.util.List getPostgresqlSchemasList(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + int getPostgresqlSchemasCount(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + java.util.List + getPostgresqlSchemasOrBuilderList(); + /** + * + * + *
+   * PostgreSQL schemas in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; + */ + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java new file mode 100644 index 00000000000..01e16374139 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL schema.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} + */ +public final class PostgresqlSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSchema) + PostgresqlSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlSchema.newBuilder() to construct. + private PostgresqlSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlSchema() { + schema_ = ""; + postgresqlTables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlSchema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + schema_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlTables_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private volatile java.lang.Object schema_; + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTGRESQL_TABLES_FIELD_NUMBER = 2; + private java.util.List postgresqlTables_; + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public java.util.List getPostgresqlTablesList() { + return postgresqlTables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlTablesOrBuilderList() { + return postgresqlTables_; + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public int getPostgresqlTablesCount() { + return postgresqlTables_.size(); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index) { + return postgresqlTables_.get(index); + } + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( + int index) { + return postgresqlTables_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + for (int i = 0; i < postgresqlTables_.size(); i++) { + output.writeMessage(2, postgresqlTables_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + for (int i = 0; i < postgresqlTables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlTables_.get(i)); + } + 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 com.google.cloud.datastream.v1.PostgresqlSchema)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlSchema other = + (com.google.cloud.datastream.v1.PostgresqlSchema) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getPostgresqlTablesList().equals(other.getPostgresqlTablesList())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + if (getPostgresqlTablesCount() > 0) { + hash = (37 * hash) + POSTGRESQL_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlTablesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.PostgresqlSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.PostgresqlSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.PostgresqlSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.PostgresqlSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema 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.PostgresqlSchema 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.PostgresqlSchema 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.PostgresqlSchema 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 schema.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSchema) + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlTablesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + if (postgresqlTablesBuilder_ == null) { + postgresqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlTablesBuilder_.clear(); + } + 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_PostgresqlSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema build() { + com.google.cloud.datastream.v1.PostgresqlSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSchema buildPartial() { + com.google.cloud.datastream.v1.PostgresqlSchema result = + new com.google.cloud.datastream.v1.PostgresqlSchema(this); + int from_bitField0_ = bitField0_; + result.schema_ = schema_; + if (postgresqlTablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlTables_ = postgresqlTables_; + } else { + result.postgresqlTables_ = postgresqlTablesBuilder_.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 com.google.cloud.datastream.v1.PostgresqlSchema) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) { + if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) + return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (postgresqlTablesBuilder_ == null) { + if (!other.postgresqlTables_.isEmpty()) { + if (postgresqlTables_.isEmpty()) { + postgresqlTables_ = other.postgresqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.addAll(other.postgresqlTables_); + } + onChanged(); + } + } else { + if (!other.postgresqlTables_.isEmpty()) { + if (postgresqlTablesBuilder_.isEmpty()) { + postgresqlTablesBuilder_.dispose(); + postgresqlTablesBuilder_ = null; + postgresqlTables_ = other.postgresqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlTablesFieldBuilder() + : null; + } else { + postgresqlTablesBuilder_.addAllMessages(other.postgresqlTables_); + } + } + } + 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 { + com.google.cloud.datastream.v1.PostgresqlSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object schema_ = ""; + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.util.List postgresqlTables_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = + new java.util.ArrayList( + postgresqlTables_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + postgresqlTablesBuilder_; + + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesList() { + if (postgresqlTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlTables_); + } else { + return postgresqlTablesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public int getPostgresqlTablesCount() { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.size(); + } else { + return postgresqlTablesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index) { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.get(index); + } else { + return postgresqlTablesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder setPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.set(index, value); + onChanged(); + } else { + postgresqlTablesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder setPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables(com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(value); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable value) { + if (postgresqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(index, value); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addPostgresqlTables( + int index, com.google.cloud.datastream.v1.PostgresqlTable.Builder builderForValue) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder addAllPostgresqlTables( + java.lang.Iterable values) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlTables_); + onChanged(); + } else { + postgresqlTablesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder clearPostgresqlTables() { + if (postgresqlTablesBuilder_ == null) { + postgresqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlTablesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public Builder removePostgresqlTables(int index) { + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.remove(index); + onChanged(); + } else { + postgresqlTablesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTablesBuilder( + int index) { + return getPostgresqlTablesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( + int index) { + if (postgresqlTablesBuilder_ == null) { + return postgresqlTables_.get(index); + } else { + return postgresqlTablesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesOrBuilderList() { + if (postgresqlTablesBuilder_ != null) { + return postgresqlTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlTables_); + } + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder() { + return getPostgresqlTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder( + int index) { + return getPostgresqlTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + } + /** + * + * + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + public java.util.List + getPostgresqlTablesBuilderList() { + return getPostgresqlTablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + getPostgresqlTablesFieldBuilder() { + if (postgresqlTablesBuilder_ == null) { + postgresqlTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( + postgresqlTables_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlTables_ = null; + } + return postgresqlTablesBuilder_; + } + + @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.PostgresqlSchema) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSchema) + private static final com.google.cloud.datastream.v1.PostgresqlSchema DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSchema(); + } + + public static com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlSchema(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 com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java new file mode 100644 index 00000000000..3730f8a07e6 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlSchemaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSchema) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+   * Schema name.
+   * 
+ * + * string schema = 1; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + java.util.List getPostgresqlTablesList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + int getPostgresqlTablesCount(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + java.util.List + getPostgresqlTablesOrBuilderList(); + /** + * + * + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; + */ + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java new file mode 100644 index 00000000000..356fc67ae0f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java @@ -0,0 +1,1388 @@ +/* + * Copyright 2020 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 + +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(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlSourceConfig( + 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: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (includeObjects_ != null) { + subBuilder = includeObjects_.toBuilder(); + } + includeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(includeObjects_); + includeObjects_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (excludeObjects_ != null) { + subBuilder = excludeObjects_.toBuilder(); + } + excludeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(excludeObjects_); + excludeObjects_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + replicationSlot_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + publication_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 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); + } + + 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 includeObjects_ != null; + } + /** + * + * + *
+   * 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 getIncludeObjects(); + } + + 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 excludeObjects_ != null; + } + /** + * + * + *
+   * 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 getExcludeObjects(); + } + + public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; + private volatile java.lang.Object replicationSlot_; + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + 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; + } + } + + 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 (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + 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_); + } + 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 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 (!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 (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 = (29 * hash) + unknownFields.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) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + replicationSlot_ = ""; + + publication_ = ""; + + 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 (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + result.replicationSlot_ = replicationSlot_; + result.publication_ = publication_; + 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 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_; + onChanged(); + } + if (!other.getPublication().isEmpty()) { + publication_ = other.publication_; + 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 { + com.google.cloud.datastream.v1.PostgresqlSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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 includeObjectsBuilder_ != null || includeObjects_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + 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 (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + 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() { + + 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 excludeObjectsBuilder_ != null || excludeObjects_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + 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 (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * PostgreSQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + 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() { + + 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. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReplicationSlot() { + + replicationSlot_ = getDefaultInstance().getReplicationSlot(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the logical replication slot that's configured with the
+     * pgoutput plugin.
+     * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + 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; + 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(); + 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; + 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 { + return new PostgresqlSourceConfig(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 com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java new file mode 100644 index 00000000000..392de3dc37b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlSourceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSourceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return Whether the includeObjects field is set. + */ + boolean hasIncludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * + * @return The includeObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); + + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return Whether the excludeObjects field is set. + */ + boolean hasExcludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * + * @return The excludeObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects(); + /** + * + * + *
+   * PostgreSQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); + + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The replicationSlot. + */ + java.lang.String getReplicationSlot(); + /** + * + * + *
+   * Required. The name of the logical replication slot that's configured with the
+   * pgoutput plugin.
+   * 
+ * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for replicationSlot. + */ + com.google.protobuf.ByteString getReplicationSlotBytes(); + + /** + * + * + *
+   * 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.String getPublication(); + /** + * + * + *
+   * 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. + */ + com.google.protobuf.ByteString getPublicationBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java new file mode 100644 index 00000000000..8369e697312 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java @@ -0,0 +1,1190 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +/** + * + * + *
+ * PostgreSQL table.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} + */ +public final class PostgresqlTable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlTable) + PostgresqlTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlTable.newBuilder() to construct. + private PostgresqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlTable() { + table_ = ""; + postgresqlColumns_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + table_ = s; + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlColumn.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = java.util.Collections.unmodifiableList(postgresqlColumns_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + } + + public static final int TABLE_FIELD_NUMBER = 1; + private volatile java.lang.Object table_; + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTGRESQL_COLUMNS_FIELD_NUMBER = 2; + private java.util.List postgresqlColumns_; + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlColumnsList() { + return postgresqlColumns_; + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public java.util.List + getPostgresqlColumnsOrBuilderList() { + return postgresqlColumns_; + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public int getPostgresqlColumnsCount() { + return postgresqlColumns_.size(); + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index) { + return postgresqlColumns_.get(index); + } + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder( + int index) { + return postgresqlColumns_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_); + } + for (int i = 0; i < postgresqlColumns_.size(); i++) { + output.writeMessage(2, postgresqlColumns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_); + } + for (int i = 0; i < postgresqlColumns_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlColumns_.get(i)); + } + 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 com.google.cloud.datastream.v1.PostgresqlTable)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.PostgresqlTable other = + (com.google.cloud.datastream.v1.PostgresqlTable) obj; + + if (!getTable().equals(other.getTable())) return false; + if (!getPostgresqlColumnsList().equals(other.getPostgresqlColumnsList())) 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) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getPostgresqlColumnsCount() > 0) { + hash = (37 * hash) + POSTGRESQL_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.PostgresqlTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.PostgresqlTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.PostgresqlTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.PostgresqlTable parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable 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.PostgresqlTable 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.PostgresqlTable 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.PostgresqlTable 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 table.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlTable) + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PostgresqlTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPostgresqlColumnsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + table_ = ""; + + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + postgresqlColumnsBuilder_.clear(); + } + 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_PostgresqlTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable build() { + com.google.cloud.datastream.v1.PostgresqlTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlTable buildPartial() { + com.google.cloud.datastream.v1.PostgresqlTable result = + new com.google.cloud.datastream.v1.PostgresqlTable(this); + int from_bitField0_ = bitField0_; + result.table_ = table_; + if (postgresqlColumnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = java.util.Collections.unmodifiableList(postgresqlColumns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.postgresqlColumns_ = postgresqlColumns_; + } else { + result.postgresqlColumns_ = postgresqlColumnsBuilder_.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 com.google.cloud.datastream.v1.PostgresqlTable) { + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlTable other) { + if (other == com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + if (postgresqlColumnsBuilder_ == null) { + if (!other.postgresqlColumns_.isEmpty()) { + if (postgresqlColumns_.isEmpty()) { + postgresqlColumns_ = other.postgresqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.addAll(other.postgresqlColumns_); + } + onChanged(); + } + } else { + if (!other.postgresqlColumns_.isEmpty()) { + if (postgresqlColumnsBuilder_.isEmpty()) { + postgresqlColumnsBuilder_.dispose(); + postgresqlColumnsBuilder_ = null; + postgresqlColumns_ = other.postgresqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + postgresqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlColumnsFieldBuilder() + : null; + } else { + postgresqlColumnsBuilder_.addAllMessages(other.postgresqlColumns_); + } + } + } + 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 { + com.google.cloud.datastream.v1.PostgresqlTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PostgresqlTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object table_ = ""; + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + table_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + + table_ = getDefaultInstance().getTable(); + onChanged(); + return this; + } + /** + * + * + *
+     * Table name.
+     * 
+ * + * string table = 1; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + + private java.util.List postgresqlColumns_ = + java.util.Collections.emptyList(); + + private void ensurePostgresqlColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = + new java.util.ArrayList( + postgresqlColumns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> + postgresqlColumnsBuilder_; + + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsList() { + if (postgresqlColumnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(postgresqlColumns_); + } else { + return postgresqlColumnsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public int getPostgresqlColumnsCount() { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.size(); + } else { + return postgresqlColumnsBuilder_.getCount(); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index) { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.get(index); + } else { + return postgresqlColumnsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder setPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.set(index, value); + onChanged(); + } else { + postgresqlColumnsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder setPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns(com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(value); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn value) { + if (postgresqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(index, value); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addPostgresqlColumns( + int index, com.google.cloud.datastream.v1.PostgresqlColumn.Builder builderForValue) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + postgresqlColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder addAllPostgresqlColumns( + java.lang.Iterable values) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlColumns_); + onChanged(); + } else { + postgresqlColumnsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder clearPostgresqlColumns() { + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + postgresqlColumnsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public Builder removePostgresqlColumns(int index) { + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.remove(index); + onChanged(); + } else { + postgresqlColumnsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColumnsBuilder( + int index) { + return getPostgresqlColumnsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder( + int index) { + if (postgresqlColumnsBuilder_ == null) { + return postgresqlColumns_.get(index); + } else { + return postgresqlColumnsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsOrBuilderList() { + if (postgresqlColumnsBuilder_ != null) { + return postgresqlColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(postgresqlColumns_); + } + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder() { + return getPostgresqlColumnsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder( + int index) { + return getPostgresqlColumnsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()); + } + /** + * + * + *
+     * PostgreSQL columns in the schema.
+     * When unspecified as part of include/exclude objects,
+     * includes/excludes everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + public java.util.List + getPostgresqlColumnsBuilderList() { + return getPostgresqlColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> + getPostgresqlColumnsFieldBuilder() { + if (postgresqlColumnsBuilder_ == null) { + postgresqlColumnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>( + postgresqlColumns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + postgresqlColumns_ = null; + } + return postgresqlColumnsBuilder_; + } + + @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.PostgresqlTable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlTable) + private static final com.google.cloud.datastream.v1.PostgresqlTable DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlTable(); + } + + public static com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PostgresqlTable(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 com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java new file mode 100644 index 00000000000..fb3ec068552 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2020 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 + +package com.google.cloud.datastream.v1; + +public interface PostgresqlTableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlTable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+   * Table name.
+   * 
+ * + * string table = 1; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + java.util.List getPostgresqlColumnsList(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + int getPostgresqlColumnsCount(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + java.util.List + getPostgresqlColumnsOrBuilderList(); + /** + * + * + *
+   * PostgreSQL columns in the schema.
+   * When unspecified as part of include/exclude objects,
+   * includes/excludes everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2; + */ + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(int index); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java index a98e27b8370..7e17beb0942 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java @@ -782,8 +782,7 @@ public com.google.cloud.datastream.v1.PrivateConnection.State getState() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -799,8 +798,7 @@ public boolean hasError() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -816,8 +814,7 @@ public com.google.cloud.datastream.v1.Error getError() { * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2268,8 +2265,7 @@ public Builder clearState() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2285,8 +2281,7 @@ public boolean hasError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2306,8 +2301,7 @@ public com.google.cloud.datastream.v1.Error getError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2331,8 +2325,7 @@ public Builder setError(com.google.cloud.datastream.v1.Error value) { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2353,8 +2346,7 @@ public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForV * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2382,8 +2374,7 @@ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2405,8 +2396,7 @@ public Builder clearError() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2422,8 +2412,7 @@ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * @@ -2441,8 +2430,7 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { * * *
-     * Output only. In case of error, the details of the error in a user-friendly
-     * format.
+     * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* * diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index 76e5b148ff9..b65f666f868 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -241,8 +241,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -255,8 +254,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -269,8 +267,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. In case of error, the details of the error in a user-friendly
-   * format.
+   * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index f85e8664403..e99650c1f2f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -116,6 +116,26 @@ private SourceConfig( sourceStreamConfigCase_ = 101; break; } + case 818: + { + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 102; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -161,6 +181,7 @@ public enum SourceStreamConfigCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), + POSTGRESQL_SOURCE_CONFIG(102), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; @@ -183,6 +204,8 @@ public static SourceStreamConfigCase forNumber(int value) { return ORACLE_SOURCE_CONFIG; case 101: return MYSQL_SOURCE_CONFIG; + case 102: + return POSTGRESQL_SOURCE_CONFIG; case 0: return SOURCESTREAMCONFIG_NOT_SET; default: @@ -259,7 +282,7 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -274,7 +297,7 @@ public boolean hasOracleSourceConfig() { * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -292,7 +315,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -311,7 +334,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -326,7 +349,7 @@ public boolean hasMysqlSourceConfig() { * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -344,7 +367,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -357,6 +380,58 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } + public static final int POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER = 102; + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return Whether the postgresqlSourceConfig field is set. + */ + @java.lang.Override + public boolean hasPostgresqlSourceConfig() { + return sourceStreamConfigCase_ == 102; + } + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return The postgresqlSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -382,6 +457,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 102) { + output.writeMessage( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + } unknownFields.writeTo(output); } @@ -404,6 +483,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } + if (sourceStreamConfigCase_ == 102) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -429,6 +513,9 @@ public boolean equals(final java.lang.Object obj) { case 101: if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; break; + case 102: + if (!getPostgresqlSourceConfig().equals(other.getPostgresqlSourceConfig())) return false; + break; case 0: default: } @@ -454,6 +541,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_SOURCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMysqlSourceConfig().hashCode(); break; + case 102: + hash = (37 * hash) + POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlSourceConfig().hashCode(); + break; case 0: default: } @@ -648,6 +739,13 @@ public com.google.cloud.datastream.v1.SourceConfig buildPartial() { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } } + if (sourceStreamConfigCase_ == 102) { + if (postgresqlSourceConfigBuilder_ == null) { + result.sourceStreamConfig_ = sourceStreamConfig_; + } else { + result.sourceStreamConfig_ = postgresqlSourceConfigBuilder_.build(); + } + } result.sourceStreamConfigCase_ = sourceStreamConfigCase_; onBuilt(); return result; @@ -713,6 +811,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { mergeMysqlSourceConfig(other.getMysqlSourceConfig()); break; } + case POSTGRESQL_SOURCE_CONFIG: + { + mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); + break; + } case SOURCESTREAMCONFIG_NOT_SET: { break; @@ -891,7 +994,7 @@ public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString va * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -906,7 +1009,7 @@ public boolean hasOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -931,7 +1034,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -953,7 +1056,7 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -973,7 +1076,7 @@ public Builder setOracleSourceConfig( * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1007,7 +1110,7 @@ public Builder mergeOracleSourceConfig( * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1032,7 +1135,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1045,7 +1148,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1066,7 +1169,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * Oracle data source configuration
+     * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -1106,7 +1209,7 @@ public Builder clearOracleSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1121,7 +1224,7 @@ public boolean hasMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1146,7 +1249,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1168,7 +1271,7 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1188,7 +1291,7 @@ public Builder setMysqlSourceConfig( * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1221,7 +1324,7 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1246,7 +1349,7 @@ public Builder clearMysqlSourceConfig() { * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1258,7 +1361,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1279,7 +1382,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * * *
-     * MySQL data source configuration
+     * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -1310,6 +1413,231 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return mysqlSourceConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + postgresqlSourceConfigBuilder_; + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * + * @return Whether the postgresqlSourceConfig field is set. + */ + @java.lang.Override + public boolean hasPostgresqlSourceConfig() { + return sourceStreamConfigCase_ == 102; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * + * @return The postgresqlSourceConfig. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 102) { + return postgresqlSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder setPostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + if (postgresqlSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + postgresqlSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder setPostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder builderForValue) { + if (postgresqlSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + postgresqlSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder mergePostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 102) { + postgresqlSourceConfigBuilder_.mergeFrom(value); + } else { + postgresqlSourceConfigBuilder_.setMessage(value); + } + } + sourceStreamConfigCase_ = 102; + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public Builder clearPostgresqlSourceConfig() { + if (postgresqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 102) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 102) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + postgresqlSourceConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder + getPostgresqlSourceConfigBuilder() { + return getPostgresqlSourceConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 102) && (postgresqlSourceConfigBuilder_ != null)) { + return postgresqlSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 102) { + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source configuration.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + getPostgresqlSourceConfigFieldBuilder() { + if (postgresqlSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 102)) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + } + postgresqlSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 102; + onChanged(); + ; + return postgresqlSourceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index 7a825e7df2b..bf914fd298d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -58,7 +58,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -70,7 +70,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -82,7 +82,7 @@ public interface SourceConfigOrBuilder * * *
-   * Oracle data source configuration
+   * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; @@ -93,7 +93,7 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -105,7 +105,7 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; @@ -117,13 +117,49 @@ public interface SourceConfigOrBuilder * * *
-   * MySQL data source configuration
+   * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return Whether the postgresqlSourceConfig field is set. + */ + boolean hasPostgresqlSourceConfig(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * @return The postgresqlSourceConfig. + */ + com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig(); + /** + * + * + *
+   * PostgreSQL data source configuration.
+   * 
+ * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + */ + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder(); + public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index f7fc5a3f5fc..9a84e9e3c40 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -116,6 +116,33 @@ private SourceObjectIdentifier( sourceIdentifierCase_ = 2; break; } + case 26: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder + subBuilder = null; + if (sourceIdentifierCase_ == 3) { + subBuilder = + ((com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .toBuilder(); + } + sourceIdentifier_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_); + sourceIdentifier_ = subBuilder.buildPartial(); + } + sourceIdentifierCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -600,26 +627,918 @@ protected Builder newBuilderForType( public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + .class); + } + + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.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(); + schema_ = ""; + + table_ = ""; + + 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_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + result.schema_ = schema_; + result.table_ = table_; + 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 + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + 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 { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object schema_ = ""; + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schema_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSchema() { + + schema_ = getDefaultInstance().getSchema(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for schema to set. + * @return This builder for chaining. + */ + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.lang.Object table_ = ""; + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + table_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTable() { + + table_ = getDefaultInstance().getTable(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for table to set. + * @return This builder for chaining. + */ + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = 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:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + } + + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .OracleObjectIdentifier + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OracleObjectIdentifier(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 com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PostgresqlObjectIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + java.lang.String getSchema(); + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + com.google.protobuf.ByteString getSchemaBytes(); + + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + java.lang.String getTable(); + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + com.google.protobuf.ByteString getTableBytes(); + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + */ + public static final class PostgresqlObjectIdentifier + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + PostgresqlObjectIdentifierOrBuilder { + private static final long serialVersionUID = 0L; + // Use PostgresqlObjectIdentifier.newBuilder() to construct. + private PostgresqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PostgresqlObjectIdentifier() { + schema_ = ""; + table_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PostgresqlObjectIdentifier(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PostgresqlObjectIdentifier( + 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(); + + schema_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + table_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); + } + + public static final int SCHEMA_FIELD_NUMBER = 1; + private volatile java.lang.Object schema_; + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The schema. + */ + @java.lang.Override + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + 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(); + schema_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The schema name.
+     * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for schema. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSchemaBytes() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_FIELD_NUMBER = 2; + private volatile java.lang.Object table_; + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The table. + */ + @java.lang.Override + public java.lang.String getTable() { + java.lang.Object ref = table_; + 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(); + table_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The table name.
+     * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for table. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTableBytes() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); + } + 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 + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { + return super.equals(obj); + } + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; + + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) 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) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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.SourceObjectIdentifier.PostgresqlObjectIdentifier + 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 object identifier.
+     * 
+ * + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); } // Construct using - // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + // com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -646,19 +1565,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -667,10 +1587,11 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier( + this); result.schema_ = schema_; result.table_ = table_; onBuilt(); @@ -716,9 +1637,10 @@ public Builder addRepeatedField( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { return mergeFrom( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + other); } else { super.mergeFrom(other); return this; @@ -726,9 +1648,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { if (other - == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier .getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; @@ -753,13 +1675,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = - null; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { @@ -994,46 +1916,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) } - // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) private static final com.google.cloud.datastream.v1.SourceObjectIdentifier - .OracleObjectIdentifier + .PostgresqlObjectIdentifier DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public OracleObjectIdentifier parsePartialFrom( + public PostgresqlObjectIdentifier parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OracleObjectIdentifier(input, extensionRegistry); + return new PostgresqlObjectIdentifier(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -1932,6 +2854,7 @@ public enum SourceIdentifierCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_IDENTIFIER(1), MYSQL_IDENTIFIER(2), + POSTGRESQL_IDENTIFIER(3), SOURCEIDENTIFIER_NOT_SET(0); private final int value; @@ -1954,6 +2877,8 @@ public static SourceIdentifierCase forNumber(int value) { return ORACLE_IDENTIFIER; case 2: return MYSQL_IDENTIFIER; + case 3: + return POSTGRESQL_IDENTIFIER; case 0: return SOURCEIDENTIFIER_NOT_SET; default: @@ -2096,6 +3021,69 @@ public boolean hasMysqlIdentifier() { .getDefaultInstance(); } + public static final int POSTGRESQL_IDENTIFIER_FIELD_NUMBER = 3; + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasPostgresqlIdentifier() { + return sourceIdentifierCase_ == 3; + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2122,6 +3110,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); + } unknownFields.writeTo(output); } @@ -2145,6 +3139,13 @@ public int getSerializedSize() { (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } + if (sourceIdentifierCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2169,6 +3170,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getMysqlIdentifier().equals(other.getMysqlIdentifier())) return false; break; + case 3: + if (!getPostgresqlIdentifier().equals(other.getPostgresqlIdentifier())) return false; + break; case 0: default: } @@ -2192,6 +3196,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getMysqlIdentifier().hashCode(); break; + case 3: + hash = (37 * hash) + POSTGRESQL_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlIdentifier().hashCode(); + break; case 0: default: } @@ -2384,6 +3392,13 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier buildPartial() { result.sourceIdentifier_ = mysqlIdentifierBuilder_.build(); } } + if (sourceIdentifierCase_ == 3) { + if (postgresqlIdentifierBuilder_ == null) { + result.sourceIdentifier_ = sourceIdentifier_; + } else { + result.sourceIdentifier_ = postgresqlIdentifierBuilder_.build(); + } + } result.sourceIdentifierCase_ = sourceIdentifierCase_; onBuilt(); return result; @@ -2446,6 +3461,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier o mergeMysqlIdentifier(other.getMysqlIdentifier()); break; } + case POSTGRESQL_IDENTIFIER: + { + mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); + break; + } case SOURCEIDENTIFIER_NOT_SET: { break; @@ -2990,6 +4010,259 @@ public Builder clearMysqlIdentifier() { return mysqlIdentifierBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> + postgresqlIdentifierBuilder_; + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasPostgresqlIdentifier() { + return sourceIdentifierCase_ == 3; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 3) { + return postgresqlIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder setPostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + if (postgresqlIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + postgresqlIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder setPostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + builderForValue) { + if (postgresqlIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + postgresqlIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder mergePostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 3) { + postgresqlIdentifierBuilder_.mergeFrom(value); + } else { + postgresqlIdentifierBuilder_.setMessage(value); + } + } + sourceIdentifierCase_ = 3; + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public Builder clearPostgresqlIdentifier() { + if (postgresqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 3) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 3) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + postgresqlIdentifierBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + getPostgresqlIdentifierBuilder() { + return getPostgresqlIdentifierFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { + if ((sourceIdentifierCase_ == 3) && (postgresqlIdentifierBuilder_ != null)) { + return postgresqlIdentifierBuilder_.getMessageOrBuilder(); + } else { + if (sourceIdentifierCase_ == 3) { + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + } + /** + * + * + *
+     * PostgreSQL data source object identifier.
+     * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> + getPostgresqlIdentifierFieldBuilder() { + if (postgresqlIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 3)) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); + } + postgresqlIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 3; + onChanged(); + ; + return postgresqlIdentifierBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java index 42a1e4faf98..886a6d21e10 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -108,6 +108,49 @@ public interface SourceObjectIdentifierOrBuilder com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + boolean hasPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index a2fcecae738..f3a46f86258 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -649,6 +649,41 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + boolean hasPostgresqlExcludedObjects(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects(); + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } @@ -739,6 +774,25 @@ private BackfillAllStrategy( excludedObjectsCase_ = 2; break; } + case 26: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (excludedObjectsCase_ == 3) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .toBuilder(); + } + excludedObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + excludedObjects_ = subBuilder.buildPartial(); + } + excludedObjectsCase_ = 3; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -784,6 +838,7 @@ public enum ExcludedObjectsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_EXCLUDED_OBJECTS(1), MYSQL_EXCLUDED_OBJECTS(2), + POSTGRESQL_EXCLUDED_OBJECTS(3), EXCLUDEDOBJECTS_NOT_SET(0); private final int value; @@ -806,6 +861,8 @@ public static ExcludedObjectsCase forNumber(int value) { return ORACLE_EXCLUDED_OBJECTS; case 2: return MYSQL_EXCLUDED_OBJECTS; + case 3: + return POSTGRESQL_EXCLUDED_OBJECTS; case 0: return EXCLUDEDOBJECTS_NOT_SET; default: @@ -924,6 +981,58 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } + public static final int POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 3; + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasPostgresqlExcludedObjects() { + return excludedObjectsCase_ == 3; + } + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + /** + * + * + *
+     * PostgreSQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -944,6 +1053,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (excludedObjectsCase_ == 2) { output.writeMessage(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 3) { + output.writeMessage(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + } unknownFields.writeTo(output); } @@ -963,6 +1075,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } + if (excludedObjectsCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -987,6 +1104,10 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; break; + case 3: + if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) + return false; + break; case 0: default: } @@ -1010,6 +1131,10 @@ public int hashCode() { hash = (37 * hash) + MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER; hash = (53 * hash) + getMysqlExcludedObjects().hashCode(); break; + case 3: + hash = (37 * hash) + POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getPostgresqlExcludedObjects().hashCode(); + break; case 0: default: } @@ -1205,6 +1330,13 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build(); } } + if (excludedObjectsCase_ == 3) { + if (postgresqlExcludedObjectsBuilder_ == null) { + result.excludedObjects_ = excludedObjects_; + } else { + result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build(); + } + } result.excludedObjectsCase_ = excludedObjectsCase_; onBuilt(); return result; @@ -1269,6 +1401,11 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrate mergeMysqlExcludedObjects(other.getMysqlExcludedObjects()); break; } + case POSTGRESQL_EXCLUDED_OBJECTS: + { + mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects()); + break; + } case EXCLUDEDOBJECTS_NOT_SET: { break; @@ -1741,6 +1878,221 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject return mysqlExcludedObjectsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlExcludedObjectsBuilder_; + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return Whether the postgresqlExcludedObjects field is set. + */ + @java.lang.Override + public boolean hasPostgresqlExcludedObjects() { + return excludedObjectsCase_ == 3; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * + * @return The postgresqlExcludedObjects. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 3) { + return postgresqlExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder setPostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder setPostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder builderForValue) { + if (postgresqlExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder mergePostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3 + && excludedObjects_ + != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 3) { + postgresqlExcludedObjectsBuilder_.mergeFrom(value); + } else { + postgresqlExcludedObjectsBuilder_.setMessage(value); + } + } + excludedObjectsCase_ = 3; + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public Builder clearPostgresqlExcludedObjects() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 3) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 3) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + postgresqlExcludedObjectsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder + getPostgresqlExcludedObjectsBuilder() { + return getPostgresqlExcludedObjectsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 3) && (postgresqlExcludedObjectsBuilder_ != null)) { + return postgresqlExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 3) { + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + } + /** + * + * + *
+       * PostgreSQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + getPostgresqlExcludedObjectsFieldBuilder() { + if (postgresqlExcludedObjectsBuilder_ == null) { + if (!(excludedObjectsCase_ == 3)) { + excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); + } + postgresqlExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 3; + onChanged(); + ; + return postgresqlExcludedObjectsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto index 0c11a1eb02c..a2963391209 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -332,6 +332,9 @@ message DiscoverConnectionProfileRequest { // MySQL RDBMS to enrich with child data objects and metadata. MysqlRdbms mysql_rdbms = 101; + + // PostgreSQL RDBMS to enrich with child data objects and metadata. + PostgresqlRdbms postgresql_rdbms = 102; } } @@ -344,6 +347,9 @@ message DiscoverConnectionProfileResponse { // Enriched MySQL RDBMS object. MysqlRdbms mysql_rdbms = 101; + + // Enriched PostgreSQL RDBMS object. + PostgresqlRdbms postgresql_rdbms = 102; } } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto index 7c320add6a4..58a2c7bdf8f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -75,6 +75,24 @@ message MysqlProfile { MysqlSslConfig ssl_config = 5; } +// PostgreSQL database profile. +message PostgresqlProfile { + // Required. Hostname for the PostgreSQL connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Port for the PostgreSQL connection, default value is 5432. + int32 port = 2; + + // Required. Username for the PostgreSQL connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Password for the PostgreSQL connection. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database for the PostgreSQL connection. + string database = 5 [(google.api.field_behavior) = REQUIRED]; +} + // Cloud Storage bucket profile. message GcsProfile { // Required. The Cloud Storage bucket name. @@ -84,8 +102,15 @@ message GcsProfile { string root_path = 2; } +// BigQuery warehouse profile. +message BigQueryProfile { + +} + // Static IP address connectivity. -message StaticServiceIpConnectivity {} +message StaticServiceIpConnectivity { + +} // Forward SSH Tunnel connectivity. message ForwardSshTunnelConnectivity { @@ -156,12 +181,10 @@ message PrivateConnection { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -172,8 +195,7 @@ message PrivateConnection { // Output only. The state of the Private Connection. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. In case of error, the details of the error in a user-friendly - // format. + // Output only. In case of error, the details of the error in a user-friendly format. Error error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // VPC Peering Config. @@ -204,12 +226,10 @@ message Route { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -242,8 +262,8 @@ message MysqlSslConfig { // Output only. Indicates whether the client_certificate field is set. bool client_certificate_set = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Input only. PEM-encoded certificate of the CA that signed the source - // database server's certificate. + // Input only. PEM-encoded certificate of the CA that signed the source database + // server's certificate. string ca_certificate = 5 [(google.api.field_behavior) = INPUT_ONLY]; // Output only. Indicates whether the ca_certificate field is set. @@ -262,12 +282,10 @@ message ConnectionProfile { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -285,6 +303,12 @@ message ConnectionProfile { // MySQL ConnectionProfile configuration. MysqlProfile mysql_profile = 102; + + // BigQuery Connection Profile configuration. + BigQueryProfile bigquery_profile = 103; + + // PostgreSQL Connection Profile configuration. + PostgresqlProfile postgresql_profile = 104; } // Connectivity options used to establish a connection to the profile. @@ -336,7 +360,7 @@ message OracleTable { string table = 1; // Oracle columns in the schema. - // When unspecified as part of inclue/exclude lists, includes/excludes + // When unspecified as part of include/exclude objects, includes/excludes // everything. repeated OracleColumn oracle_columns = 2; } @@ -358,11 +382,104 @@ message OracleRdbms { // Oracle data source configuration message OracleSourceConfig { + // Configuration to drop large object values. + message DropLargeObjects { + + } + + // Configuration to stream large object values. + message StreamLargeObjects { + + } + // Oracle objects to include in the stream. OracleRdbms include_objects = 1; // Oracle objects to exclude from the stream. OracleRdbms exclude_objects = 2; + + // Maximum number of concurrent CDC 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_cdc_tasks = 3; + + // The configuration for handle Oracle large objects. + oneof large_objects_handling { + // Drop large object values. + DropLargeObjects drop_large_objects = 100; + + // Stream large object values. + StreamLargeObjects stream_large_objects = 102; + } +} + +// PostgreSQL Column. +message PostgresqlColumn { + // Column name. + string column = 1; + + // The PostgreSQL data type. + string data_type = 2; + + // Column length. + int32 length = 3; + + // Column precision. + int32 precision = 4; + + // Column scale. + int32 scale = 5; + + // Whether or not the column represents a primary key. + bool primary_key = 7; + + // Whether or not the column can accept a null value. + bool nullable = 8; + + // The ordinal position of the column in the table. + int32 ordinal_position = 9; +} + +// PostgreSQL table. +message PostgresqlTable { + // Table name. + string table = 1; + + // PostgreSQL columns in the schema. + // When unspecified as part of include/exclude objects, + // includes/excludes everything. + repeated PostgresqlColumn postgresql_columns = 2; +} + +// PostgreSQL schema. +message PostgresqlSchema { + // Schema name. + string schema = 1; + + // Tables in the schema. + repeated PostgresqlTable postgresql_tables = 2; +} + +// PostgreSQL database structure. +message PostgresqlRdbms { + // PostgreSQL schemas in the database server. + repeated PostgresqlSchema postgresql_schemas = 1; +} + +// PostgreSQL data source configuration +message PostgresqlSourceConfig { + // PostgreSQL objects to include in the stream. + PostgresqlRdbms include_objects = 1; + + // PostgreSQL objects to exclude from the stream. + PostgresqlRdbms exclude_objects = 2; + + // Required. The name of the logical replication slot that's configured with the + // pgoutput plugin. + string replication_slot = 3 [(google.api.field_behavior) = REQUIRED]; + + // 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]; } // MySQL Column. @@ -396,7 +513,7 @@ message MysqlTable { string table = 1; // MySQL columns in the database. - // When unspecified as part of include/exclude lists, includes/excludes + // When unspecified as part of include/exclude objects, includes/excludes // everything. repeated MysqlColumn mysql_columns = 2; } @@ -423,6 +540,10 @@ message MysqlSourceConfig { // MySQL objects to exclude from the stream. MysqlRdbms exclude_objects = 2; + + // Maximum number of concurrent CDC 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_cdc_tasks = 3; } // The configuration of the stream source. @@ -438,16 +559,21 @@ message SourceConfig { // Stream configuration that is specific to the data source type. oneof source_stream_config { - // Oracle data source configuration + // Oracle data source configuration. OracleSourceConfig oracle_source_config = 100; - // MySQL data source configuration + // MySQL data source configuration. MysqlSourceConfig mysql_source_config = 101; + + // PostgreSQL data source configuration. + PostgresqlSourceConfig postgresql_source_config = 102; } } // AVRO file format configuration. -message AvroFileFormat {} +message AvroFileFormat { + +} // JSON file format configuration. message JsonFileFormat { @@ -504,6 +630,56 @@ message GcsDestinationConfig { } } +message BigQueryDestinationConfig { + // A single target dataset to which all data will be streamed. + message SingleTargetDataset { + string dataset_id = 1; + } + + // Destination datasets are created so that hierarchy of the destination data + // objects matches the source hierarchy. + message SourceHierarchyDatasets { + // Dataset template used for dynamic dataset creation. + message DatasetTemplate { + // Required. The geographic location where the dataset should reside. See + // https://cloud.google.com/bigquery/docs/locations for supported + // locations. + string location = 1 [(google.api.field_behavior) = REQUIRED]; + + // If supplied, every created dataset will have its name prefixed by the + // provided value. The prefix and name will be separated by an underscore. + // i.e. _. + string dataset_id_prefix = 2; + + // Describes the Cloud KMS encryption key that will be used to + // protect destination BigQuery table. The BigQuery Service Account + // associated with your project requires access to this encryption key. + // i.e. + // projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{cryptoKey}. + // See https://cloud.google.com/bigquery/docs/customer-managed-encryption + // for more information. + string kms_key_name = 3; + } + + DatasetTemplate dataset_template = 2; + } + + // Target dataset(s) configuration. + oneof dataset_config { + // Single destination dataset. + SingleTargetDataset single_target_dataset = 201; + + // Source hierarchy datasets. + SourceHierarchyDatasets source_hierarchy_datasets = 202; + } + + // The guaranteed data freshness (in seconds) when querying tables created by + // the stream. Editing this field will only affect new tables created in the + // future, but existing tables will not be impacted. Lower values mean that + // queries will return fresher data, but may result in higher cost. + google.protobuf.Duration data_freshness = 300; +} + // The configuration of the stream destination. message DestinationConfig { // Required. Destination connection profile resource. @@ -519,6 +695,9 @@ message DestinationConfig { oneof destination_stream_config { // A configuration for how data should be loaded to Cloud Storage. GcsDestinationConfig gcs_destination_config = 100; + + // BigQuery destination configuration. + BigQueryDestinationConfig bigquery_destination_config = 101; } } @@ -573,22 +752,25 @@ message Stream { // MySQL data source objects to avoid backfilling. MysqlRdbms mysql_excluded_objects = 2; + + // PostgreSQL data source objects to avoid backfilling. + PostgresqlRdbms postgresql_excluded_objects = 3; } } // Backfill strategy to disable automatic backfill for the Stream's objects. - message BackfillNoneStrategy {} + message BackfillNoneStrategy { + + } // Output only. The stream's name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the stream. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the stream. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -600,8 +782,7 @@ message Stream { SourceConfig source_config = 6 [(google.api.field_behavior) = REQUIRED]; // Required. Destination connection profile configuration. - DestinationConfig destination_config = 7 - [(google.api.field_behavior) = REQUIRED]; + DestinationConfig destination_config = 7 [(google.api.field_behavior) = REQUIRED]; // The state of the stream. State state = 8; @@ -623,8 +804,7 @@ message Stream { // If provided, it will be used to encrypt the data. // If left blank, data will be encrypted using an internal Stream-specific // encryption key provisioned through KMS. - optional string customer_managed_encryption_key = 10 - [(google.api.field_behavior) = IMMUTABLE]; + optional string customer_managed_encryption_key = 10 [(google.api.field_behavior) = IMMUTABLE]; } // A specific stream object (e.g a specific DB table). @@ -638,12 +818,10 @@ message StreamObject { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the object. - google.protobuf.Timestamp create_time = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the object. - google.protobuf.Timestamp update_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Display name. string display_name = 5 [(google.api.field_behavior) = REQUIRED]; @@ -669,6 +847,15 @@ message SourceObjectIdentifier { string table = 2 [(google.api.field_behavior) = REQUIRED]; } + // PostgreSQL data source object identifier. + message PostgresqlObjectIdentifier { + // Required. The schema name. + string schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + // Mysql data source object identifier. message MysqlObjectIdentifier { // Required. The database name. @@ -685,6 +872,9 @@ message SourceObjectIdentifier { // Mysql data source object identifier. MysqlObjectIdentifier mysql_identifier = 2; + + // PostgreSQL data source object identifier. + PostgresqlObjectIdentifier postgresql_identifier = 3; } } @@ -740,12 +930,10 @@ message BackfillJob { Trigger trigger = 2; // Output only. Backfill job's start time. - google.protobuf.Timestamp last_start_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Backfill job's end time. - google.protobuf.Timestamp last_end_time = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_end_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Errors which caused the backfill job to fail. repeated Error errors = 5 [(google.api.field_behavior) = OUTPUT_ONLY];