Skip to content

Commit a65bad0

Browse files
gcf-owl-bot[bot]averikitsch
authored andcommitted
chore: remove unused proto imports (#777)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: googleapis/googleapis@cfa1b37 Source-Link: googleapis/googleapis-gen@09b7666 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9
1 parent b9aef38 commit a65bad0

File tree

154 files changed

+7019
-0
lines changed

Some content is hidden

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

154 files changed

+7019
-0
lines changed
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_create_setcredentialsprovider_sync]
20+
import com.google.api.gax.core.FixedCredentialsProvider;
21+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
22+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings;
23+
import com.google.cloud.datalabeling.v1beta1.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+
DataLabelingServiceSettings dataLabelingServiceSettings =
35+
DataLabelingServiceSettings.newBuilder()
36+
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
37+
.build();
38+
DataLabelingServiceClient dataLabelingServiceClient =
39+
DataLabelingServiceClient.create(dataLabelingServiceSettings);
40+
}
41+
}
42+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_create_setendpoint_sync]
20+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
21+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceSettings;
22+
import com.google.cloud.datalabeling.v1beta1.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+
DataLabelingServiceSettings dataLabelingServiceSettings =
34+
DataLabelingServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
35+
DataLabelingServiceClient dataLabelingServiceClient =
36+
DataLabelingServiceClient.create(dataLabelingServiceSettings);
37+
}
38+
}
39+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_create_setendpoint_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_async]
20+
import com.google.api.core.ApiFuture;
21+
import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
22+
import com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
23+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
24+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
25+
26+
public class AsyncCreateAnnotationSpecSet {
27+
28+
public static void main(String[] args) throws Exception {
29+
asyncCreateAnnotationSpecSet();
30+
}
31+
32+
public static void asyncCreateAnnotationSpecSet() throws Exception {
33+
// This snippet has been automatically generated for illustrative purposes only.
34+
// It may require modifications to work in your environment.
35+
try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
36+
CreateAnnotationSpecSetRequest request =
37+
CreateAnnotationSpecSetRequest.newBuilder()
38+
.setParent(ProjectName.of("[PROJECT]").toString())
39+
.setAnnotationSpecSet(AnnotationSpecSet.newBuilder().build())
40+
.build();
41+
ApiFuture<AnnotationSpecSet> future =
42+
dataLabelingServiceClient.createAnnotationSpecSetCallable().futureCall(request);
43+
// Do something.
44+
AnnotationSpecSet response = future.get();
45+
}
46+
}
47+
}
48+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_sync]
20+
import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
21+
import com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
22+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
23+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
24+
25+
public class SyncCreateAnnotationSpecSet {
26+
27+
public static void main(String[] args) throws Exception {
28+
syncCreateAnnotationSpecSet();
29+
}
30+
31+
public static void syncCreateAnnotationSpecSet() 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 (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
35+
CreateAnnotationSpecSetRequest request =
36+
CreateAnnotationSpecSetRequest.newBuilder()
37+
.setParent(ProjectName.of("[PROJECT]").toString())
38+
.setAnnotationSpecSet(AnnotationSpecSet.newBuilder().build())
39+
.build();
40+
AnnotationSpecSet response = dataLabelingServiceClient.createAnnotationSpecSet(request);
41+
}
42+
}
43+
}
44+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_projectnameannotationspecset_sync]
20+
import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
21+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
22+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
23+
24+
public class SyncCreateAnnotationSpecSetProjectnameAnnotationspecset {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateAnnotationSpecSetProjectnameAnnotationspecset();
28+
}
29+
30+
public static void syncCreateAnnotationSpecSetProjectnameAnnotationspecset() 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 (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
34+
ProjectName parent = ProjectName.of("[PROJECT]");
35+
AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
36+
AnnotationSpecSet response =
37+
dataLabelingServiceClient.createAnnotationSpecSet(parent, annotationSpecSet);
38+
}
39+
}
40+
}
41+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_projectnameannotationspecset_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_stringannotationspecset_sync]
20+
import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
21+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
22+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
23+
24+
public class SyncCreateAnnotationSpecSetStringAnnotationspecset {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateAnnotationSpecSetStringAnnotationspecset();
28+
}
29+
30+
public static void syncCreateAnnotationSpecSetStringAnnotationspecset() 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 (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
34+
String parent = ProjectName.of("[PROJECT]").toString();
35+
AnnotationSpecSet annotationSpecSet = AnnotationSpecSet.newBuilder().build();
36+
AnnotationSpecSet response =
37+
dataLabelingServiceClient.createAnnotationSpecSet(parent, annotationSpecSet);
38+
}
39+
}
40+
}
41+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createannotationspecset_stringannotationspecset_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_async]
20+
import com.google.api.core.ApiFuture;
21+
import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
22+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
23+
import com.google.cloud.datalabeling.v1beta1.Dataset;
24+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
25+
26+
public class AsyncCreateDataset {
27+
28+
public static void main(String[] args) throws Exception {
29+
asyncCreateDataset();
30+
}
31+
32+
public static void asyncCreateDataset() throws Exception {
33+
// This snippet has been automatically generated for illustrative purposes only.
34+
// It may require modifications to work in your environment.
35+
try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
36+
CreateDatasetRequest request =
37+
CreateDatasetRequest.newBuilder()
38+
.setParent(ProjectName.of("[PROJECT]").toString())
39+
.setDataset(Dataset.newBuilder().build())
40+
.build();
41+
ApiFuture<Dataset> future =
42+
dataLabelingServiceClient.createDatasetCallable().futureCall(request);
43+
// Do something.
44+
Dataset response = future.get();
45+
}
46+
}
47+
}
48+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_async]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_sync]
20+
import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
21+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
22+
import com.google.cloud.datalabeling.v1beta1.Dataset;
23+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
24+
25+
public class SyncCreateDataset {
26+
27+
public static void main(String[] args) throws Exception {
28+
syncCreateDataset();
29+
}
30+
31+
public static void syncCreateDataset() 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 (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
35+
CreateDatasetRequest request =
36+
CreateDatasetRequest.newBuilder()
37+
.setParent(ProjectName.of("[PROJECT]").toString())
38+
.setDataset(Dataset.newBuilder().build())
39+
.build();
40+
Dataset response = dataLabelingServiceClient.createDataset(request);
41+
}
42+
}
43+
}
44+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_sync]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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.datalabeling.v1beta1.samples;
18+
19+
// [START datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_projectnamedataset_sync]
20+
import com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient;
21+
import com.google.cloud.datalabeling.v1beta1.Dataset;
22+
import com.google.cloud.datalabeling.v1beta1.ProjectName;
23+
24+
public class SyncCreateDatasetProjectnameDataset {
25+
26+
public static void main(String[] args) throws Exception {
27+
syncCreateDatasetProjectnameDataset();
28+
}
29+
30+
public static void syncCreateDatasetProjectnameDataset() 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 (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
34+
ProjectName parent = ProjectName.of("[PROJECT]");
35+
Dataset dataset = Dataset.newBuilder().build();
36+
Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
37+
}
38+
}
39+
}
40+
// [END datalabeling_v1beta1_generated_datalabelingserviceclient_createdataset_projectnamedataset_sync]

0 commit comments

Comments
 (0)