From c62a2d8339a31a7cd93b44a09b561153556d1355 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 4 Aug 2021 16:07:19 -0400 Subject: [PATCH] feat: remove empty protos ServiceMonitoringProto and DrilldownsProto (#421) --- owlbot.py | 3 + .../clirr-ignored-differences.xml | 9 +++ .../dashboard/v1/DrilldownsProto.java | 58 ------------------- .../dashboard/v1/ServiceMonitoringProto.java | 53 ----------------- 4 files changed, 12 insertions(+), 111 deletions(-) delete mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java delete mode 100644 proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java diff --git a/owlbot.py b/owlbot.py index dca9d867..fdbe86b3 100644 --- a/owlbot.py +++ b/owlbot.py @@ -14,10 +14,13 @@ import synthtool as s from synthtool.languages import java +import os for library in s.get_staging_dirs(): # put any special-case replacements here + os.remove("owl-bot-staging/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java") + os.remove("owl-bot-staging/v1/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java") s.move(library) s.remove_staging_dirs() diff --git a/proto-google-cloud-monitoring-dashboard-v1/clirr-ignored-differences.xml b/proto-google-cloud-monitoring-dashboard-v1/clirr-ignored-differences.xml index 845981e2..61dc760c 100644 --- a/proto-google-cloud-monitoring-dashboard-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-monitoring-dashboard-v1/clirr-ignored-differences.xml @@ -16,4 +16,13 @@ com/google/monitoring/dashboard/v1/*OrBuilder boolean has*(*) + + + 8001 + com/google/monitoring/dashboard/v1/DrilldownsProto + + + 8001 + com/google/monitoring/dashboard/v1/ServiceMonitoringProto + diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java deleted file mode 100644 index 80c0c58e..00000000 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/DrilldownsProto.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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/monitoring/dashboard/v1/drilldowns.proto - -package com.google.monitoring.dashboard.v1; - -public final class DrilldownsProto { - private DrilldownsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/monitoring/dashboard/v1/drilldo" - + "wns.proto\022\036google.monitoring.dashboard.v" - + "1\032+google/monitoring/dashboard/v1/common" - + ".protoB\322\001\n\"com.google.monitoring.dashboa" - + "rd.v1B\017DrilldownsProtoP\001ZGgoogle.golang." - + "org/genproto/googleapis/monitoring/dashb" - + "oard/v1;dashboard\312\002$Google\\Cloud\\Monitor" - + "ing\\Dashboard\\V1\352\002(Google::Cloud::Monito" - + "ring::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(), - }); - com.google.monitoring.dashboard.v1.CommonProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java b/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java deleted file mode 100644 index 7f24f069..00000000 --- a/proto-google-cloud-monitoring-dashboard-v1/src/main/java/com/google/monitoring/dashboard/v1/ServiceMonitoringProto.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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/monitoring/dashboard/v1/service.proto - -package com.google.monitoring.dashboard.v1; - -public final class ServiceMonitoringProto { - private ServiceMonitoringProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/monitoring/dashboard/v1/service" - + ".proto\022\036google.monitoring.dashboard.v1B\331" - + "\001\n\"com.google.monitoring.dashboard.v1B\026S" - + "erviceMonitoringProtoP\001ZGgoogle.golang.o" - + "rg/genproto/googleapis/monitoring/dashbo" - + "ard/v1;dashboard\312\002$Google\\Cloud\\Monitori" - + "ng\\Dashboard\\V1\352\002(Google::Cloud::Monitor" - + "ing::Dashboard::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -}