Skip to content

Commit

Permalink
feat: [bigquerydatatransfer] add EncryptionConfiguration to TransferC…
Browse files Browse the repository at this point in the history
…onfig (#9717)

* feat: add EncryptionConfiguration to TransferConfig

---
feat: Add List type to Data source parameter.
PiperOrigin-RevId: 552543247

Source-Link: googleapis/googleapis@95f0f2b

Source-Link: https://github.com/googleapis/googleapis-gen/commit/3199b463668bf730d2a42789c32b88fb94ef8f44
Copy-Tag: eyJwIjoiamF2YS1iaWdxdWVyeWRhdGF0cmFuc2Zlci8uT3dsQm90LnlhbWwiLCJoIjoiMzE5OWI0NjM2NjhiZjczMGQyYTQyNzg5YzMyYjg4ZmI5NGVmOGY0NCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Aug 2, 2023
1 parent 5103a7a commit dbed6d2
Show file tree
Hide file tree
Showing 17 changed files with 1,722 additions and 371 deletions.
4 changes: 2 additions & 2 deletions java-bigquerydatatransfer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.19.0</version>
<version>26.20.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.21.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.22.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.bigquery.datatransfer.v1.EncryptionConfiguration",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.bigquery.datatransfer.v1.EncryptionConfiguration$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.bigquery.datatransfer.v1.EnrollDataSourcesRequest",
"queryAllDeclaredConstructors": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ public void createTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -454,6 +455,7 @@ public void createTransferConfigTest2() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -517,6 +519,7 @@ public void createTransferConfigTest3() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -581,6 +584,7 @@ public void updateTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -605,6 +609,7 @@ public void updateTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();

Expand Down Expand Up @@ -655,6 +660,7 @@ public void updateTransferConfigExceptionTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
FieldMask updateMask = FieldMask.newBuilder().build();
client.updateTransferConfig(transferConfig, updateMask);
Expand Down Expand Up @@ -773,6 +779,7 @@ public void getTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -839,6 +846,7 @@ public void getTransferConfigTest2() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ public void createTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -426,6 +427,7 @@ public void createTransferConfigTest2() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -485,6 +487,7 @@ public void createTransferConfigTest3() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -545,6 +548,7 @@ public void updateTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -679,6 +683,7 @@ public void getTransferConfigTest() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down Expand Up @@ -739,6 +744,7 @@ public void getTransferConfigTest2() throws Exception {
.setNotificationPubsubTopic("notificationPubsubTopic-1361224991")
.setEmailPreferences(EmailPreferences.newBuilder().build())
.setOwnerInfo(UserInfo.newBuilder().build())
.setEncryptionConfiguration(EncryptionConfiguration.newBuilder().build())
.build();
mockDataTransferService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ public com.google.protobuf.ByteString getScopesBytes(int index) {
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The enum numeric value on the wire for transferType.
*/
@java.lang.Override
Expand All @@ -791,7 +791,7 @@ public int getTransferTypeValue() {
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The transferType.
*/
@java.lang.Override
Expand All @@ -816,7 +816,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType()
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386
* @return The supportsMultipleTransfers.
*/
@java.lang.Override
Expand Down Expand Up @@ -2792,7 +2792,7 @@ public Builder addScopesBytes(com.google.protobuf.ByteString value) {
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The enum numeric value on the wire for transferType.
*/
@java.lang.Override
Expand All @@ -2812,7 +2812,7 @@ public int getTransferTypeValue() {
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @param value The enum numeric value on the wire for transferType to set.
* @return This builder for chaining.
*/
Expand All @@ -2835,7 +2835,7 @@ public Builder setTransferTypeValue(int value) {
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The transferType.
*/
@java.lang.Override
Expand All @@ -2859,7 +2859,7 @@ public com.google.cloud.bigquery.datatransfer.v1.TransferType getTransferType()
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @param value The transferType to set.
* @return This builder for chaining.
*/
Expand All @@ -2885,7 +2885,7 @@ public Builder setTransferType(com.google.cloud.bigquery.datatransfer.v1.Transfe
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand All @@ -2907,7 +2907,7 @@ public Builder clearTransferType() {
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386
* @return The supportsMultipleTransfers.
*/
@java.lang.Override
Expand All @@ -2925,7 +2925,7 @@ public boolean getSupportsMultipleTransfers() {
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386
* @param value The supportsMultipleTransfers to set.
* @return This builder for chaining.
*/
Expand All @@ -2947,7 +2947,7 @@ public Builder setSupportsMultipleTransfers(boolean value) {
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386
* @return This builder for chaining.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public interface DataSourceOrBuilder
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The enum numeric value on the wire for transferType.
*/
@java.lang.Deprecated
Expand All @@ -236,7 +236,7 @@ public interface DataSourceOrBuilder
* </code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.transfer_type is deprecated. See
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=380
* google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* @return The transferType.
*/
@java.lang.Deprecated
Expand All @@ -252,7 +252,7 @@ public interface DataSourceOrBuilder
* <code>bool supports_multiple_transfers = 8 [deprecated = true];</code>
*
* @deprecated google.cloud.bigquery.datatransfer.v1.DataSource.supports_multiple_transfers is
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=383
* deprecated. See google/cloud/bigquery/datatransfer/v1/datatransfer.proto;l=386
* @return The supportsMultipleTransfers.
*/
@java.lang.Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
* <code>PLUS_PAGE = 6;</code>
*/
PLUS_PAGE(6),
/**
*
*
* <pre>
* List of strings parameter.
* </pre>
*
* <code>LIST = 7;</code>
*/
LIST(7),
UNRECOGNIZED(-1),
;

Expand Down Expand Up @@ -225,6 +235,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
* <code>PLUS_PAGE = 6;</code>
*/
public static final int PLUS_PAGE_VALUE = 6;
/**
*
*
* <pre>
* List of strings parameter.
* </pre>
*
* <code>LIST = 7;</code>
*/
public static final int LIST_VALUE = 7;

public final int getNumber() {
if (this == UNRECOGNIZED) {
Expand Down Expand Up @@ -264,6 +284,8 @@ public static Type forNumber(int value) {
return RECORD;
case 6:
return PLUS_PAGE;
case 7:
return LIST;
default:
return null;
}
Expand Down
Loading

0 comments on commit dbed6d2

Please sign in to comment.