Skip to content

Commit 81abd77

Browse files
chore: remove unused proto imports (googleapis#256)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: googleapis/googleapis@cfa1b37 Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9
1 parent d0ad513 commit 81abd77

72 files changed

Lines changed: 3476 additions & 168 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

java-dms/proto-google-cloud-dms-v1/src/main/java/com/google/cloud/clouddms/v1/ClouddmsResourcesProto.java

Lines changed: 164 additions & 167 deletions
Large diffs are not rendered by default.

java-dms/proto-google-cloud-dms-v1/src/main/proto/google/cloud/clouddms/v1/clouddms_resources.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import "google/protobuf/duration.proto";
2222
import "google/protobuf/timestamp.proto";
2323
import "google/protobuf/wrappers.proto";
2424
import "google/rpc/status.proto";
25-
import "google/api/annotations.proto";
2625

2726
option csharp_namespace = "Google.Cloud.CloudDms.V1";
2827
option go_package = "google.golang.org/genproto/googleapis/cloud/clouddms/v1;clouddms";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync]
20+
import com.google.api.gax.core.FixedCredentialsProvider;
21+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
22+
import com.google.cloud.clouddms.v1.DataMigrationServiceSettings;
23+
import com.google.cloud.clouddms.v1.myCredentials;
24+
25+
public class SyncCreateSetCredentialsProvider {
26+
27+
public static void main(String[] args) throws Exception {
28+
syncCreateSetCredentialsProvider();
29+
}
30+
31+
public static void syncCreateSetCredentialsProvider() throws Exception {
32+
// This snippet has been automatically generated for illustrative purposes only.
33+
// It may require modifications to work in your environment.
34+
DataMigrationServiceSettings dataMigrationServiceSettings =
35+
DataMigrationServiceSettings.newBuilder()
36+
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
37+
.build();
38+
DataMigrationServiceClient dataMigrationServiceClient =
39+
DataMigrationServiceClient.create(dataMigrationServiceSettings);
40+
}
41+
}
42+
// [END clouddms_v1_generated_datamigrationserviceclient_create_setcredentialsprovider_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync]
20+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
21+
import com.google.cloud.clouddms.v1.DataMigrationServiceSettings;
22+
import com.google.cloud.clouddms.v1.myEndpoint;
23+
24+
public class SyncCreateSetEndpoint {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateSetEndpoint();
28+
}
29+
30+
public static void syncCreateSetEndpoint() throws Exception {
31+
// This snippet has been automatically generated for illustrative purposes only.
32+
// It may require modifications to work in your environment.
33+
DataMigrationServiceSettings dataMigrationServiceSettings =
34+
DataMigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
35+
DataMigrationServiceClient dataMigrationServiceClient =
36+
DataMigrationServiceClient.create(dataMigrationServiceSettings);
37+
}
38+
}
39+
// [END clouddms_v1_generated_datamigrationserviceclient_create_setendpoint_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async]
20+
import com.google.api.core.ApiFuture;
21+
import com.google.cloud.clouddms.v1.ConnectionProfile;
22+
import com.google.cloud.clouddms.v1.ConnectionProfileName;
23+
import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
24+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
25+
import com.google.longrunning.Operation;
26+
27+
public class AsyncCreateConnectionProfile {
28+
29+
public static void main(String[] args) throws Exception {
30+
asyncCreateConnectionProfile();
31+
}
32+
33+
public static void asyncCreateConnectionProfile() throws Exception {
34+
// This snippet has been automatically generated for illustrative purposes only.
35+
// It may require modifications to work in your environment.
36+
try (DataMigrationServiceClient dataMigrationServiceClient =
37+
DataMigrationServiceClient.create()) {
38+
CreateConnectionProfileRequest request =
39+
CreateConnectionProfileRequest.newBuilder()
40+
.setParent(
41+
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
42+
.toString())
43+
.setConnectionProfileId("connectionProfileId597575526")
44+
.setConnectionProfile(ConnectionProfile.newBuilder().build())
45+
.setRequestId("requestId693933066")
46+
.build();
47+
ApiFuture<Operation> future =
48+
dataMigrationServiceClient.createConnectionProfileCallable().futureCall(request);
49+
// Do something.
50+
Operation response = future.get();
51+
}
52+
}
53+
}
54+
// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async]
20+
import com.google.api.gax.longrunning.OperationFuture;
21+
import com.google.cloud.clouddms.v1.ConnectionProfile;
22+
import com.google.cloud.clouddms.v1.ConnectionProfileName;
23+
import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
24+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
25+
import com.google.cloud.clouddms.v1.OperationMetadata;
26+
27+
public class AsyncCreateConnectionProfileLRO {
28+
29+
public static void main(String[] args) throws Exception {
30+
asyncCreateConnectionProfileLRO();
31+
}
32+
33+
public static void asyncCreateConnectionProfileLRO() throws Exception {
34+
// This snippet has been automatically generated for illustrative purposes only.
35+
// It may require modifications to work in your environment.
36+
try (DataMigrationServiceClient dataMigrationServiceClient =
37+
DataMigrationServiceClient.create()) {
38+
CreateConnectionProfileRequest request =
39+
CreateConnectionProfileRequest.newBuilder()
40+
.setParent(
41+
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
42+
.toString())
43+
.setConnectionProfileId("connectionProfileId597575526")
44+
.setConnectionProfile(ConnectionProfile.newBuilder().build())
45+
.setRequestId("requestId693933066")
46+
.build();
47+
OperationFuture<ConnectionProfile, OperationMetadata> future =
48+
dataMigrationServiceClient.createConnectionProfileOperationCallable().futureCall(request);
49+
// Do something.
50+
ConnectionProfile response = future.get();
51+
}
52+
}
53+
}
54+
// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_lro_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync]
20+
import com.google.cloud.clouddms.v1.ConnectionProfile;
21+
import com.google.cloud.clouddms.v1.ConnectionProfileName;
22+
import com.google.cloud.clouddms.v1.CreateConnectionProfileRequest;
23+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
24+
25+
public class SyncCreateConnectionProfile {
26+
27+
public static void main(String[] args) throws Exception {
28+
syncCreateConnectionProfile();
29+
}
30+
31+
public static void syncCreateConnectionProfile() throws Exception {
32+
// This snippet has been automatically generated for illustrative purposes only.
33+
// It may require modifications to work in your environment.
34+
try (DataMigrationServiceClient dataMigrationServiceClient =
35+
DataMigrationServiceClient.create()) {
36+
CreateConnectionProfileRequest request =
37+
CreateConnectionProfileRequest.newBuilder()
38+
.setParent(
39+
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
40+
.toString())
41+
.setConnectionProfileId("connectionProfileId597575526")
42+
.setConnectionProfile(ConnectionProfile.newBuilder().build())
43+
.setRequestId("requestId693933066")
44+
.build();
45+
ConnectionProfile response =
46+
dataMigrationServiceClient.createConnectionProfileAsync(request).get();
47+
}
48+
}
49+
}
50+
// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync]
20+
import com.google.cloud.clouddms.v1.ConnectionProfile;
21+
import com.google.cloud.clouddms.v1.ConnectionProfileName;
22+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
23+
24+
public class SyncCreateConnectionProfileConnectionprofilenameConnectionprofileString {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateConnectionProfileConnectionprofilenameConnectionprofileString();
28+
}
29+
30+
public static void syncCreateConnectionProfileConnectionprofilenameConnectionprofileString()
31+
throws Exception {
32+
// This snippet has been automatically generated for illustrative purposes only.
33+
// It may require modifications to work in your environment.
34+
try (DataMigrationServiceClient dataMigrationServiceClient =
35+
DataMigrationServiceClient.create()) {
36+
ConnectionProfileName parent =
37+
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
38+
ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
39+
String connectionProfileId = "connectionProfileId597575526";
40+
ConnectionProfile response =
41+
dataMigrationServiceClient
42+
.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
43+
.get();
44+
}
45+
}
46+
}
47+
// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_connectionprofilenameconnectionprofilestring_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync]
20+
import com.google.cloud.clouddms.v1.ConnectionProfile;
21+
import com.google.cloud.clouddms.v1.ConnectionProfileName;
22+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
23+
24+
public class SyncCreateConnectionProfileStringConnectionprofileString {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateConnectionProfileStringConnectionprofileString();
28+
}
29+
30+
public static void syncCreateConnectionProfileStringConnectionprofileString() throws Exception {
31+
// This snippet has been automatically generated for illustrative purposes only.
32+
// It may require modifications to work in your environment.
33+
try (DataMigrationServiceClient dataMigrationServiceClient =
34+
DataMigrationServiceClient.create()) {
35+
String parent =
36+
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
37+
ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
38+
String connectionProfileId = "connectionProfileId597575526";
39+
ConnectionProfile response =
40+
dataMigrationServiceClient
41+
.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
42+
.get();
43+
}
44+
}
45+
}
46+
// [END clouddms_v1_generated_datamigrationserviceclient_createconnectionprofile_stringconnectionprofilestring_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.google.cloud.clouddms.v1.samples;
18+
19+
// [START clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async]
20+
import com.google.api.core.ApiFuture;
21+
import com.google.cloud.clouddms.v1.CreateMigrationJobRequest;
22+
import com.google.cloud.clouddms.v1.DataMigrationServiceClient;
23+
import com.google.cloud.clouddms.v1.LocationName;
24+
import com.google.cloud.clouddms.v1.MigrationJob;
25+
import com.google.longrunning.Operation;
26+
27+
public class AsyncCreateMigrationJob {
28+
29+
public static void main(String[] args) throws Exception {
30+
asyncCreateMigrationJob();
31+
}
32+
33+
public static void asyncCreateMigrationJob() throws Exception {
34+
// This snippet has been automatically generated for illustrative purposes only.
35+
// It may require modifications to work in your environment.
36+
try (DataMigrationServiceClient dataMigrationServiceClient =
37+
DataMigrationServiceClient.create()) {
38+
CreateMigrationJobRequest request =
39+
CreateMigrationJobRequest.newBuilder()
40+
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
41+
.setMigrationJobId("migrationJobId1870575242")
42+
.setMigrationJob(MigrationJob.newBuilder().build())
43+
.setRequestId("requestId693933066")
44+
.build();
45+
ApiFuture<Operation> future =
46+
dataMigrationServiceClient.createMigrationJobCallable().futureCall(request);
47+
// Do something.
48+
Operation response = future.get();
49+
}
50+
}
51+
}
52+
// [END clouddms_v1_generated_datamigrationserviceclient_createmigrationjob_async]

0 commit comments

Comments
 (0)