@@ -1171,6 +1171,59 @@ private DlpServiceGrpc() {}
11711171 return getDeleteJobTriggerMethod ;
11721172 }
11731173
1174+ @ io .grpc .ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1901" )
1175+ @ java .lang .Deprecated // Use {@link #getActivateJobTriggerMethod()} instead.
1176+ public static final io .grpc .MethodDescriptor <
1177+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest , com .google .privacy .dlp .v2 .DlpJob >
1178+ METHOD_ACTIVATE_JOB_TRIGGER = getActivateJobTriggerMethodHelper ();
1179+
1180+ private static volatile io .grpc .MethodDescriptor <
1181+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest , com .google .privacy .dlp .v2 .DlpJob >
1182+ getActivateJobTriggerMethod ;
1183+
1184+ @ io .grpc .ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1901" )
1185+ public static io .grpc .MethodDescriptor <
1186+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest , com .google .privacy .dlp .v2 .DlpJob >
1187+ getActivateJobTriggerMethod () {
1188+ return getActivateJobTriggerMethodHelper ();
1189+ }
1190+
1191+ private static io .grpc .MethodDescriptor <
1192+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest , com .google .privacy .dlp .v2 .DlpJob >
1193+ getActivateJobTriggerMethodHelper () {
1194+ io .grpc .MethodDescriptor <
1195+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest , com .google .privacy .dlp .v2 .DlpJob >
1196+ getActivateJobTriggerMethod ;
1197+ if ((getActivateJobTriggerMethod = DlpServiceGrpc .getActivateJobTriggerMethod ) == null ) {
1198+ synchronized (DlpServiceGrpc .class ) {
1199+ if ((getActivateJobTriggerMethod = DlpServiceGrpc .getActivateJobTriggerMethod ) == null ) {
1200+ DlpServiceGrpc .getActivateJobTriggerMethod =
1201+ getActivateJobTriggerMethod =
1202+ io .grpc .MethodDescriptor
1203+ .<com .google .privacy .dlp .v2 .ActivateJobTriggerRequest ,
1204+ com .google .privacy .dlp .v2 .DlpJob >
1205+ newBuilder ()
1206+ .setType (io .grpc .MethodDescriptor .MethodType .UNARY )
1207+ .setFullMethodName (
1208+ generateFullMethodName (
1209+ "google.privacy.dlp.v2.DlpService" , "ActivateJobTrigger" ))
1210+ .setSampledToLocalTracing (true )
1211+ .setRequestMarshaller (
1212+ io .grpc .protobuf .ProtoUtils .marshaller (
1213+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest
1214+ .getDefaultInstance ()))
1215+ .setResponseMarshaller (
1216+ io .grpc .protobuf .ProtoUtils .marshaller (
1217+ com .google .privacy .dlp .v2 .DlpJob .getDefaultInstance ()))
1218+ .setSchemaDescriptor (
1219+ new DlpServiceMethodDescriptorSupplier ("ActivateJobTrigger" ))
1220+ .build ();
1221+ }
1222+ }
1223+ }
1224+ return getActivateJobTriggerMethod ;
1225+ }
1226+
11741227 @ io .grpc .ExperimentalApi ("https://github.com/grpc/grpc-java/issues/1901" )
11751228 @ java .lang .Deprecated // Use {@link #getCreateDlpJobMethod()} instead.
11761229 public static final io .grpc .MethodDescriptor <
@@ -2066,6 +2119,20 @@ public void deleteJobTrigger(
20662119 asyncUnimplementedUnaryCall (getDeleteJobTriggerMethodHelper (), responseObserver );
20672120 }
20682121
2122+ /**
2123+ *
2124+ *
2125+ * <pre>
2126+ * Activate a job trigger. Causes the immediate execute of a trigger
2127+ * instead of waiting on the trigger event to occur.
2128+ * </pre>
2129+ */
2130+ public void activateJobTrigger (
2131+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest request ,
2132+ io .grpc .stub .StreamObserver <com .google .privacy .dlp .v2 .DlpJob > responseObserver ) {
2133+ asyncUnimplementedUnaryCall (getActivateJobTriggerMethodHelper (), responseObserver );
2134+ }
2135+
20692136 /**
20702137 *
20712138 *
@@ -2362,6 +2429,12 @@ public final io.grpc.ServerServiceDefinition bindService() {
23622429 new MethodHandlers <
23632430 com .google .privacy .dlp .v2 .DeleteJobTriggerRequest , com .google .protobuf .Empty >(
23642431 this , METHODID_DELETE_JOB_TRIGGER )))
2432+ .addMethod (
2433+ getActivateJobTriggerMethodHelper (),
2434+ asyncUnaryCall (
2435+ new MethodHandlers <
2436+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest ,
2437+ com .google .privacy .dlp .v2 .DlpJob >(this , METHODID_ACTIVATE_JOB_TRIGGER )))
23652438 .addMethod (
23662439 getCreateDlpJobMethodHelper (),
23672440 asyncUnaryCall (
@@ -2835,6 +2908,23 @@ public void deleteJobTrigger(
28352908 responseObserver );
28362909 }
28372910
2911+ /**
2912+ *
2913+ *
2914+ * <pre>
2915+ * Activate a job trigger. Causes the immediate execute of a trigger
2916+ * instead of waiting on the trigger event to occur.
2917+ * </pre>
2918+ */
2919+ public void activateJobTrigger (
2920+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest request ,
2921+ io .grpc .stub .StreamObserver <com .google .privacy .dlp .v2 .DlpJob > responseObserver ) {
2922+ asyncUnaryCall (
2923+ getChannel ().newCall (getActivateJobTriggerMethodHelper (), getCallOptions ()),
2924+ request ,
2925+ responseObserver );
2926+ }
2927+
28382928 /**
28392929 *
28402930 *
@@ -3362,6 +3452,20 @@ public com.google.protobuf.Empty deleteJobTrigger(
33623452 getChannel (), getDeleteJobTriggerMethodHelper (), getCallOptions (), request );
33633453 }
33643454
3455+ /**
3456+ *
3457+ *
3458+ * <pre>
3459+ * Activate a job trigger. Causes the immediate execute of a trigger
3460+ * instead of waiting on the trigger event to occur.
3461+ * </pre>
3462+ */
3463+ public com .google .privacy .dlp .v2 .DlpJob activateJobTrigger (
3464+ com .google .privacy .dlp .v2 .ActivateJobTriggerRequest request ) {
3465+ return blockingUnaryCall (
3466+ getChannel (), getActivateJobTriggerMethodHelper (), getCallOptions (), request );
3467+ }
3468+
33653469 /**
33663470 *
33673471 *
@@ -3876,6 +3980,20 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
38763980 getChannel ().newCall (getDeleteJobTriggerMethodHelper (), getCallOptions ()), request );
38773981 }
38783982
3983+ /**
3984+ *
3985+ *
3986+ * <pre>
3987+ * Activate a job trigger. Causes the immediate execute of a trigger
3988+ * instead of waiting on the trigger event to occur.
3989+ * </pre>
3990+ */
3991+ public com .google .common .util .concurrent .ListenableFuture <com .google .privacy .dlp .v2 .DlpJob >
3992+ activateJobTrigger (com .google .privacy .dlp .v2 .ActivateJobTriggerRequest request ) {
3993+ return futureUnaryCall (
3994+ getChannel ().newCall (getActivateJobTriggerMethodHelper (), getCallOptions ()), request );
3995+ }
3996+
38793997 /**
38803998 *
38813999 *
@@ -4060,16 +4178,17 @@ protected DlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
40604178 private static final int METHODID_GET_JOB_TRIGGER = 17 ;
40614179 private static final int METHODID_LIST_JOB_TRIGGERS = 18 ;
40624180 private static final int METHODID_DELETE_JOB_TRIGGER = 19 ;
4063- private static final int METHODID_CREATE_DLP_JOB = 20 ;
4064- private static final int METHODID_LIST_DLP_JOBS = 21 ;
4065- private static final int METHODID_GET_DLP_JOB = 22 ;
4066- private static final int METHODID_DELETE_DLP_JOB = 23 ;
4067- private static final int METHODID_CANCEL_DLP_JOB = 24 ;
4068- private static final int METHODID_CREATE_STORED_INFO_TYPE = 25 ;
4069- private static final int METHODID_UPDATE_STORED_INFO_TYPE = 26 ;
4070- private static final int METHODID_GET_STORED_INFO_TYPE = 27 ;
4071- private static final int METHODID_LIST_STORED_INFO_TYPES = 28 ;
4072- private static final int METHODID_DELETE_STORED_INFO_TYPE = 29 ;
4181+ private static final int METHODID_ACTIVATE_JOB_TRIGGER = 20 ;
4182+ private static final int METHODID_CREATE_DLP_JOB = 21 ;
4183+ private static final int METHODID_LIST_DLP_JOBS = 22 ;
4184+ private static final int METHODID_GET_DLP_JOB = 23 ;
4185+ private static final int METHODID_DELETE_DLP_JOB = 24 ;
4186+ private static final int METHODID_CANCEL_DLP_JOB = 25 ;
4187+ private static final int METHODID_CREATE_STORED_INFO_TYPE = 26 ;
4188+ private static final int METHODID_UPDATE_STORED_INFO_TYPE = 27 ;
4189+ private static final int METHODID_GET_STORED_INFO_TYPE = 28 ;
4190+ private static final int METHODID_LIST_STORED_INFO_TYPES = 29 ;
4191+ private static final int METHODID_DELETE_STORED_INFO_TYPE = 30 ;
40734192
40744193 private static final class MethodHandlers <Req , Resp >
40754194 implements io .grpc .stub .ServerCalls .UnaryMethod <Req , Resp >,
@@ -4203,6 +4322,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserv
42034322 (com .google .privacy .dlp .v2 .DeleteJobTriggerRequest ) request ,
42044323 (io .grpc .stub .StreamObserver <com .google .protobuf .Empty >) responseObserver );
42054324 break ;
4325+ case METHODID_ACTIVATE_JOB_TRIGGER :
4326+ serviceImpl .activateJobTrigger (
4327+ (com .google .privacy .dlp .v2 .ActivateJobTriggerRequest ) request ,
4328+ (io .grpc .stub .StreamObserver <com .google .privacy .dlp .v2 .DlpJob >) responseObserver );
4329+ break ;
42064330 case METHODID_CREATE_DLP_JOB :
42074331 serviceImpl .createDlpJob (
42084332 (com .google .privacy .dlp .v2 .CreateDlpJobRequest ) request ,
@@ -4342,6 +4466,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
43424466 .addMethod (getGetJobTriggerMethodHelper ())
43434467 .addMethod (getListJobTriggersMethodHelper ())
43444468 .addMethod (getDeleteJobTriggerMethodHelper ())
4469+ .addMethod (getActivateJobTriggerMethodHelper ())
43454470 .addMethod (getCreateDlpJobMethodHelper ())
43464471 .addMethod (getListDlpJobsMethodHelper ())
43474472 .addMethod (getGetDlpJobMethodHelper ())
0 commit comments